All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: leds: Add SC27xx breathing light controller documentation
@ 2018-05-04 10:08 Baolin Wang
  2018-05-04 10:08 ` [PATCH 2/2] leds: Add Spreadtrum SC27xx breathing light controller driver Baolin Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Baolin Wang @ 2018-05-04 10:08 UTC (permalink / raw)
  To: jacek.anaszewski, pavel, robh+dt, mark.rutland
  Cc: xiaotong.lu, baolin.wang, broonie, linux-leds, devicetree, linux-kernel

This patch adds the binding documentation for Spreadtrum SC27xx series
breathing light controller, which supports 3 outputs: red LED, green
LED and blue LED.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
---
 .../devicetree/bindings/leds/leds-sc27xx-bltc.txt  |   39 ++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt

diff --git a/Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt b/Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt
new file mode 100644
index 0000000..d4e267d
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/leds-sc27xx-bltc.txt
@@ -0,0 +1,39 @@
+LEDs connected to Spreadtrum SC27XX PMIC breathing light controller
+
+The SC27xx breathing light controller supports to 3 outputs:
+red LED, green LED and blue LED. Each LED can work at normal
+PWM mode or breath light mode.
+
+Required properties:
+- compatible: should be "sprd,sc27xx-bltc".
+- #address-cells: must be 1.
+- #size-cells: must be 0.
+- reg: specify controller address.
+
+LED sub-node properties:
+- reg: number of LED line (could be from 0 to 2).
+- label: (optional) name of LED.
+
+Examples:
+
+led-controller@200 {
+	compatible = "sprd,sc27xx-bltc";
+	#address-cells = <1>;
+	#size-cells = <0>;
+	reg = <0x200>;
+
+	red@0 {
+		label = "red";
+		reg = <0x0>;
+	};
+
+	green@1 {
+		label = "green";
+		reg = <0x1>;
+	};
+
+	blue@2 {
+		label = "blue";
+		reg = <0x2>;
+	};
+};
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-05-08  2:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-04 10:08 [PATCH 1/2] dt-bindings: leds: Add SC27xx breathing light controller documentation Baolin Wang
2018-05-04 10:08 ` [PATCH 2/2] leds: Add Spreadtrum SC27xx breathing light controller driver Baolin Wang
2018-05-05  5:26   ` kbuild test robot
2018-05-05  5:26     ` kbuild test robot
2018-05-05  6:04     ` Xiaotong Lu (卢小通)
2018-05-05  6:04       ` Xiaotong Lu (卢小通)
2018-05-07 20:13   ` Jacek Anaszewski
2018-05-08  2:21     ` Baolin Wang
2018-05-07 20:13 ` [PATCH 1/2] dt-bindings: leds: Add SC27xx breathing light controller documentation Jacek Anaszewski
2018-05-08  1:52   ` Baolin Wang
2018-05-07 21:10 ` Rob Herring
2018-05-08  1:50   ` Baolin Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.