Use predefined LED node name to match the LED node in driver. It would be nice to offload common LED property parsing to LED core driver. One of the key things to allow this is somehow 'pair' the LED DT node with LED driver initialization data. This patch uses LED node name as a 'key' in a same fashion as regulators do. The lm3692x was selected as demonstration example and this change is not intended to be feasible as such (surprize =]) This servers just as an example to initiate discussion as to how (if) we could pair the driver data and DT node. Signed-off-by: Matti Vaittinen <matti.vaittinen@xxxxxxxxxxxxxxxxx> --- Documentation/devicetree/bindings/leds/leds-lm3692x.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/leds/leds-lm3692x.txt b/Documentation/devicetree/bindings/leds/leds-lm3692x.txt index 4c2d923f8758..03866d491d01 100644 --- a/Documentation/devicetree/bindings/leds/leds-lm3692x.txt +++ b/Documentation/devicetree/bindings/leds/leds-lm3692x.txt @@ -5,7 +5,7 @@ white-LED driver designed for LCD display backlighting. The main difference between the LM36922 and LM36923 is the number of LED strings it supports. The LM36922 supports two strings while the LM36923 -supports three strings. +supports three strings. LED sub-node must be named as "led_node_name_here". Required properties: - compatible: @@ -45,7 +45,7 @@ led-controller@36 { enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>; vled-supply = <&vbatt>; - led@0 { + led_node_name_here { reg = <0>; function = LED_FUNCTION_BACKLIGHT; color = <LED_COLOR_ID_WHITE>; -- 2.21.0 -- Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =]