From patchwork Sat Nov 16 18:56:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 1196162 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=fi.rohmeurope.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47Fkvv46Gcz9sPV for ; Sun, 17 Nov 2019 05:56:27 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727603AbfKPS40 (ORCPT ); Sat, 16 Nov 2019 13:56:26 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:41800 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727577AbfKPS40 (ORCPT ); Sat, 16 Nov 2019 13:56:26 -0500 Received: by mail-lj1-f194.google.com with SMTP id m4so9300784ljj.8; Sat, 16 Nov 2019 10:56:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=XWuJNiu7qJWjgtGBqSOC0OBvtjKSmvsa3XLOIKFwnfs=; b=Te65iiDB2OJoJIcWuLNCrtcOR4F5A28CDCdUOCQmAarlr4YpVVndBMmKfH0ojbmIJw blBz8kNiVEcpWMX6lpM+8xRuB+kDD0oxuSMJLtbDnP8SYz1MWmbqnRrQd3yW88E6YJ1I PTTqN/dmv8h497nn0bHFRogAXcO80yVVeSjCBvpvQD9msUjR/wibwrOyti4qeX3FQvSt afu5Bm7wjZzvVaF6dj/BoX1Yj86+i5gztLGfrktDOOWQZ05uR1E+8nhyUqq2Y6ya0q5H YFxwBY4Z2IzPEsgKSKxGRdsgxhRd117QrM8TY6yeeM2FBoUnegQgEDEPixZK2PdzGr5t QVfg== X-Gm-Message-State: APjAAAV/ehx7QGOreJB+uqL28FqHFjIcZS1aVNGuVZvcpkKWh0zrJ8JK DM9xFOoPUFaIs4/50X5kMnI= X-Google-Smtp-Source: APXvYqwqXmwNEnllaIiM+/7NpknM0pk110fH7OliieYIS0fXnj7tp9SO71g+7gvgyAitjGVYf/IuLA== X-Received: by 2002:a2e:2a43:: with SMTP id q64mr15775437ljq.242.1573930583300; Sat, 16 Nov 2019 10:56:23 -0800 (PST) Received: from localhost.localdomain (dyttqz39y2bkc1ryvyh3t-4.rev.dnainternet.fi. [2001:14bb:420:da5f:a0b0:502a:b811:1af]) by smtp.gmail.com with ESMTPSA id u2sm6416568ljg.34.2019.11.16.10.56.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Nov 2019 10:56:22 -0800 (PST) Date: Sat, 16 Nov 2019 20:56:13 +0200 From: Matti Vaittinen To: matti.vaittinen@fi.rohmeurope.com, mazziesaccount@gmail.com Cc: Lee Jones , Jacek Anaszewski , Pavel Machek , Dan Murphy , Rob Herring , Mark Rutland , Liam Girdwood , Mark Brown , Jonathan Corbet , Michael Turquette , Stephen Boyd , Linus Walleij , Bartosz Golaszewski , Alessandro Zummo , Alexandre Belloni , Mauro Carvalho Chehab , Jeff Kirsher , Wolfram Sang , Marek Szyprowski , Heiner Kallweit , Nicholas Mc Guire , Phil Edworthy , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-rtc@vger.kernel.org Subject: [PATCH v4 02/16] dt-bindings: leds: ROHM BD71282 PMIC LED driver Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document ROHM BD71828 PMIC LED driver device tree bindings. Signed-off-by: Matti Vaittinen --- .../bindings/leds/rohm,bd71828-leds.yaml | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/rohm,bd71828-leds.yaml diff --git a/Documentation/devicetree/bindings/leds/rohm,bd71828-leds.yaml b/Documentation/devicetree/bindings/leds/rohm,bd71828-leds.yaml new file mode 100644 index 000000000000..e72c9ae0fc2a --- /dev/null +++ b/Documentation/devicetree/bindings/leds/rohm,bd71828-leds.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: GPL-2.0-only +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/rohm,bd71828-leds.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ROHM BD71828 Power Management Integrated Circuit LED driver + +maintainers: + - Matti Vaittinen + +description: | + This module is part of the ROHM BD71828 MFD device. For more details + see Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml. + + The LED controller is represented as a sub-node of the PMIC node on the device + tree. + + The device has two LED outputs referred as GRNLED and AMBLED in data-sheet. + +properties: + compatible: + const: rohm,bd71828-leds + +patternProperties: + "^led-[1-2]$": + type: object + description: + Properties for a single LED. + properties: + #$ref: "common.yaml#" + rohm,led-compatible: + description: LED identification string + allOf: + - $ref: "/schemas/types.yaml#/definitions/string" + - oneOf: + - const: bd71828-ambled + - const: bd71828-grnled + function: + description: + Purpose of LED as defined in dt-bindings/leds/common.h + $ref: "/schemas/types.yaml#/definitions/string" + color: + description: + LED colour as defined in dt-bindings/leds/common.h + $ref: "/schemas/types.yaml#/definitions/uint32" + +required: + - compatible