From: robh@kernel.org (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 1/4] dt-bindings: leds: Add document bindings for leds-mt6323
Date: Sun, 12 Mar 2017 09:04:48 -0500 [thread overview]
Message-ID: <20170312140448.v2jenx6olstscq3e@rob-hp-laptop> (raw)
In-Reply-To: <1488549385-19899-2-git-send-email-sean.wang@mediatek.com>
On Fri, Mar 03, 2017 at 09:56:22PM +0800, sean.wang at mediatek.com wrote:
> From: Sean Wang <sean.wang@mediatek.com>
>
> This patch adds documentation for devicetree bindings
> for LED support on MT6323 PMIC
>
> Signed-off-by: Sean Wang <sean.wang@mediatek.com>
> ---
> .../devicetree/bindings/leds/leds-mt6323.txt | 63 ++++++++++++++++++++++
> 1 file changed, 63 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/leds/leds-mt6323.txt
>
> diff --git a/Documentation/devicetree/bindings/leds/leds-mt6323.txt b/Documentation/devicetree/bindings/leds/leds-mt6323.txt
> new file mode 100644
> index 0000000..135c441
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/leds/leds-mt6323.txt
> @@ -0,0 +1,63 @@
> +Device Tree Bindings for LED support on MT6323 PMIC
> +
> +MT6323 LED controller is subfunction provided by
> +MT6323 PMIC, so the LED controllers are defined as
> +the subnode of the function node provided by MT6323
> +PMIC controller that is being defined as one kind of
> +Muti-Function Device (MFD) using shared bus called
> +PMIC wrapper for each subfunction to access remote
> +MT6323 PMIC hardware.
Your line wrap is kind of short. Fix you line wrap to 72-80 char.
> +
> +For MT6323 MFD bindings see:
> +Documentation/devicetree/bindings/mfd/mt6397.txt
> +For MediaTek PMIC wrapper bindings see:
> +Documentation/devicetree/bindings/soc/mediatek/pwrap.txt
> +
> +There's sub-node for the LED controller that describes
> +the initial behavior for each LED physically and currently
> +only four LED sub-nodes can be supported.
> +
> +Required properties:
> +- compatible : Must be "mediatek,mt6323-led"
> +- address-cells : Must be 1
> +- size-cells : Must be 0
> +
> +LED sub-node properties:
> +- reg : LED channel number (0..3)
> +- label : (optional)
> + see Documentation/devicetree/bindings/leds/common.txt
> +- linux,default-trigger : (optional)
> + see Documentation/devicetree/bindings/leds/common.txt
> +- default-state: (optional) The initial state of the LED
> + see Documentation/devicetree/bindings/leds/common.txt
Group these by required and optional. You can drop "The initial state of
the LED".
> +
> +Example:
> +
> + pmic: mt6323 {
mt6323: pmic {
> + compatible = "mediatek,mt6323";
> +
> + ...
> +
> + mt6323led: leds {
> + compatible = "mediatek,mt6323-led";
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + led at 0 {
> + reg = <0>;
> + label = "LED0";
> + linux,default-trigger = "timer";
> + default-state = "on";
> + };
> + led at 1 {
> + reg = <1>;
> + label = "LED1";
> + default-state = "off";
> + };
> + led at 2 {
> + reg = <2>;
> + label = "LED2";
> + default-state = "on";
> + };
> + };
> + };
> --
> 1.9.1
>
next prev parent reply other threads:[~2017-03-12 14:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-03 13:56 [PATCH v5 0/4] leds: add leds-mt6323 support on MT7623 SoC sean.wang at mediatek.com
2017-03-03 13:56 ` [PATCH v5 1/4] dt-bindings: leds: Add document bindings for leds-mt6323 sean.wang at mediatek.com
2017-03-12 14:04 ` Rob Herring [this message]
2017-03-03 13:56 ` [PATCH v5 2/4] dt-bindings: mfd: Add LED subnode binding for MT6323 PMIC sean.wang at mediatek.com
2017-03-12 14:05 ` Rob Herring
2017-03-13 12:00 ` Matthias Brugger
2017-03-13 18:35 ` Jacek Anaszewski
2017-03-14 5:40 ` Sean Wang
2017-03-03 13:56 ` [PATCH v5 3/4] leds: Add LED support " sean.wang at mediatek.com
2017-03-03 13:56 ` [PATCH v5 4/4] mfd: mt6397: Add MT6323 LED support into MT6397 driver sean.wang at mediatek.com
2017-03-14 14:42 ` Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170312140448.v2jenx6olstscq3e@rob-hp-laptop \
--to=robh@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox