Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: leds: lp50xx: correct reg/unit addresses in example

The multi-led node defined address/size cells, so it is intended to have
children with unit addresses.

The second multi-led's reg property defined three LED indexes within one
reg item, which is not correct - these are three separate items.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220607075247.58048-1-krzysztof.kozlowski@linaro.org

authored by

Krzysztof Kozlowski and committed by
Rob Herring
3eb229f2 e76f4a61

+15 -9
+15 -9
Documentation/devicetree/bindings/leds/leds-lp50xx.yaml
··· 99 99 color = <LED_COLOR_ID_RGB>; 100 100 function = LED_FUNCTION_CHARGING; 101 101 102 - led-0 { 102 + led@0 { 103 + reg = <0x0>; 103 104 color = <LED_COLOR_ID_RED>; 104 105 }; 105 106 106 - led-1 { 107 + led@1 { 108 + reg = <0x1>; 107 109 color = <LED_COLOR_ID_GREEN>; 108 110 }; 109 111 110 - led-2 { 112 + led@2 { 113 + reg = <0x2>; 111 114 color = <LED_COLOR_ID_BLUE>; 112 115 }; 113 116 }; 114 117 115 - multi-led@2 { 118 + multi-led@3 { 116 119 #address-cells = <1>; 117 - #size-cells = <2>; 118 - reg = <0x2 0x3 0x5>; 120 + #size-cells = <0>; 121 + reg = <0x3>, <0x4>, <0x5>; 119 122 color = <LED_COLOR_ID_RGB>; 120 123 function = LED_FUNCTION_STANDBY; 121 124 122 - led-6 { 125 + led@3 { 126 + reg = <0x3>; 123 127 color = <LED_COLOR_ID_RED>; 124 128 }; 125 129 126 - led-7 { 130 + led@4 { 131 + reg = <0x4>; 127 132 color = <LED_COLOR_ID_GREEN>; 128 133 }; 129 134 130 - led-8 { 135 + led@5 { 136 + reg = <0x5>; 131 137 color = <LED_COLOR_ID_BLUE>; 132 138 }; 133 139 };