devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 leds-next 2/3] dt-bindings: leds: Document Turris Omnia LED controller binding
       [not found] <20190327041522.27402-1-marek.behun@nic.cz>
@ 2019-03-27  4:15 ` Marek Behún
  2019-03-27 10:10   ` Pavel Machek
  0 siblings, 1 reply; 2+ messages in thread
From: Marek Behún @ 2019-03-27  4:15 UTC (permalink / raw)
  To: linux-leds
  Cc: Pavel Machek, Jacek Anaszewski, Marek Behún, Rob Herring,
	devicetree

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       | 36 +++++++++++++++++++
 1 file changed, 36 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..15d37471568e
--- /dev/null
+++ b/Documentation/devicetree/bindings/leds/leds-turris-omnia.txt
@@ -0,0 +1,35 @@
+Bindings for LEDs on CZ.NIC's Turris Omnia
+
+Required properties:
+ - compatible :		Should be "cznic,turris-omnia-leds"
+ - reg :		I2C slave address
+
+Optional properties (required if any sub-nodes are given):
+ - #address-cells :	Should be 1
+ - #size-cells :	Should be 0
+
+LED sub-nodes can be given for LEDs for which label shall be non-default or
+for which default-trigger is to be set.
+
+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 = <0>;
+			label = "omnia::heartbeat";
+			linux,default-trigger = "heartbeat";
+		};
+	};
-- 
2.19.2

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

* Re: [PATCH v1 leds-next 2/3] dt-bindings: leds: Document Turris Omnia LED controller binding
  2019-03-27  4:15 ` [PATCH v1 leds-next 2/3] dt-bindings: leds: Document Turris Omnia LED controller binding Marek Behún
@ 2019-03-27 10:10   ` Pavel Machek
  0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2019-03-27 10:10 UTC (permalink / raw)
  To: Marek Behún; +Cc: linux-leds, Jacek Anaszewski, Rob Herring, devicetree

[-- Attachment #1: Type: text/plain, Size: 494 bytes --]

On Wed 2019-03-27 05:15:21, Marek Behún wrote:
> 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

Acked-by: Pavel Machek <pavel@ucw.cz>
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

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

end of thread, other threads:[~2019-03-27 10:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20190327041522.27402-1-marek.behun@nic.cz>
2019-03-27  4:15 ` [PATCH v1 leds-next 2/3] dt-bindings: leds: Document Turris Omnia LED controller binding Marek Behún
2019-03-27 10:10   ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).