Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1564653

[PATCH 1/4] Documentation: devicetree: Add document bindings for leds-mt6323

From <sean.wang@mediatek.com>
Newsgroups linux.kernel
Subject [PATCH 1/4] Documentation: devicetree: Add document bindings for leds-mt6323
Date 2017-01-23 05:00 +0100
Message-ID <t2DXs-1iJ-15@gated-at.bofh.it> (permalink)
References <t2DXr-1iJ-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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       | 60 ++++++++++++++++++++++
 1 file changed, 60 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..82bbf0c
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/leds-mt6323.txt
@@ -0,0 +1,60 @@
+Device Tree Bindings for LED support on MT6323 PMIC
+
+MT6323 LED controller is subfunction provided by
+MT6323 PMIC, so the LED controller 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.
+
+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 physcially and currently
+only four LED sub-nodes could be supported.
+
+Required properties:
+- compatible : must be "mediatek,mt6323-led"
+
+Optional properties:
+- 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
+
+Example:
+
+&pwrap {
+	pmic: mt6323 {
+		compatible = "mediatek,mt6323";
+		interrupt-parent = <&pio>;
+		interrupts = <150 IRQ_TYPE_LEVEL_HIGH>;
+		interrupt-controller;
+		#interrupt-cells = <2>;
+
+		mt6323led: mt6323led{
+			compatible = "mediatek,mt6323-led";
+
+			led0: isink0 {
+				lebel = "LED0"
+				linux,default-trigger = "timer";
+				default-state = "on";
+			};
+			led1: isink1 {
+				label = "LED1";
+				default-state = "on";
+			};
+			led2: isink2 {
+				label = "LED2";
+				linux,default-trigger = "timer";
+				default-state = "off";
+			};
+		};
+	};
+};
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] leds: add leds-mt6323 support on MT7623 SoC <sean.wang@mediatek.com> - 2017-01-23 05:00 +0100
  [PATCH 3/4] leds: Add LED support for MT6323 PMIC <sean.wang@mediatek.com> - 2017-01-23 05:00 +0100
    Re: [PATCH 3/4] leds: Add LED support for MT6323 PMIC Jacek Anaszewski <jacek.anaszewski@gmail.com> - 2017-01-25 00:00 +0100
      Re: [PATCH 3/4] leds: Add LED support for MT6323 PMIC Sean Wang <sean.wang@mediatek.com> - 2017-01-28 15:20 +0100
  [PATCH 4/4] mfd: mt6397: Add MT6323 LED support into MT6397 driver <sean.wang@mediatek.com> - 2017-01-23 05:00 +0100
    Re: [PATCH 4/4] mfd: mt6397: Add MT6323 LED support into MT6397  driver Lee Jones <lee.jones@linaro.org> - 2017-01-23 13:20 +0100
  [PATCH 2/4] Documentation: devicetree: Add LED subnode binding for MT6323 PMIC <sean.wang@mediatek.com> - 2017-01-23 05:00 +0100
    Re: [PATCH 2/4] Documentation: devicetree: Add LED subnode binding  for MT6323 PMIC Lee Jones <lee.jones@linaro.org> - 2017-01-23 13:20 +0100
    Re: [PATCH 2/4] Documentation: devicetree: Add LED subnode binding  for MT6323 PMIC Rob Herring <robh@kernel.org> - 2017-01-23 22:00 +0100
  [PATCH 1/4] Documentation: devicetree: Add document bindings for leds-mt6323 <sean.wang@mediatek.com> - 2017-01-23 05:00 +0100
    Re: [PATCH 1/4] Documentation: devicetree: Add document bindings for  leds-mt6323 Rob Herring <robh@kernel.org> - 2017-01-23 22:00 +0100

csiph-web