[PATCH v2 leds-next 2/3] dt-bindings: leds: Document Turris Omnia LED controller binding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This adds device tree binding documentation for the front panel LEDs
controller of CZ.NIC's Turris Omnia router.

Signed-off-by: Marek Behún <marek.behun@xxxxxx>
Cc: Rob Herring <robh+dt@xxxxxxxxxx>
Cc: devicetree@xxxxxxxxxxxxxxx
---
 .../bindings/leds/leds-turris-omnia.txt       | 85 +++++++++++++++++++
 1 file changed, 85 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/leds/leds-turris-omnia.txt

diff --git a/Documentation/devicetree/bindings/leds/leds-turris-omnia.txt b/Documentation/devicetree/bindings/leds/leds-turris-omnia.txt
new file mode 100644
index 000000000000..741a88458408
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/leds-turris-omnia.txt
@@ -0,0 +1,85 @@
+Bindings for LEDs on CZ.NIC's Turris Omnia
+
+Required properties:
+ - compatible :		Should be "cznic,turris-omnia-leds"
+ - reg :		I2C slave address
+ - #address-cells :	Should be 1
+ - #size-cells :	Should be 0
+
+LED sub-node properties:
+ - reg :		Must be from 0x0 to 0xb, since there are 12 LEDs on this
+			controller.
+ - label :		(optional)
+   see Documentation/devicetree/bindings/leds/common.txt
+ - linux,default-trigger : (optional)
+   see Documentation/devicetree/bindings/leds/common.txt
+
+Example:
+
+	led-controller@2b {
+		compatible = "cznic,turris-omnia-leds";
+		reg = <0x2b>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		led@0 {
+			reg = <0x0>;
+			label = "omnia::userB";
+			linux,default-trigger = "heartbeat";
+		};
+
+		led@1 {
+			reg = <0x1>;
+			label = "omnia::userA";
+		};
+
+		led@2 {
+			reg = <0x2>;
+			label = "omnia::pci3";
+		};
+
+		led@3 {
+			reg = <0x3>;
+			label = "omnia::pci2";
+		};
+
+		led@4 {
+			reg = <0x4>;
+			label = "omnia::pci1";
+		};
+
+		led@5 {
+			reg = <0x5>;
+			label = "omnia::wan";
+		};
+
+		led@6 {
+			reg = <0x6>;
+			label = "omnia::lan4";
+		};
+
+		led@7 {
+			reg = <0x7>;
+			label = "omnia::lan3";
+		};
+
+		led@8 {
+			reg = <0x8>;
+			label = "omnia::lan2";
+		};
+
+		led@9 {
+			reg = <0x9>;
+			label = "omnia::lan1";
+		};
+
+		led@a {
+			reg = <0xa>;
+			label = "omnia::lan0";
+		};
+
+		led@b {
+			reg = <0xb>;
+			label = "omnia::power";
+		};
+	};
-- 
2.19.2




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux