new file mode 100644
@@ -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";
+ };
+ };
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@nic.cz> Cc: Rob Herring <robh+dt@kernel.org> Cc: devicetree@vger.kernel.org --- .../bindings/leds/leds-turris-omnia.txt | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-turris-omnia.txt