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

ARM: dts: ste-href: Add reg property to the LP5521 channel nodes

Add the reg property to each channel node. This update is
to accommodate the multicolor framework. In addition to the
accommodation this allows the LEDs to be placed on any channel
and allow designs to skip channels as opposed to requiring
sequential order.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
CC: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20200812195020.13568-7-dmurphy@ti.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Dan Murphy and committed by
Linus Walleij
78efa6a7 7f6d6e48

+16 -6
+16 -6
arch/arm/boot/dts/ste-href.dtsi
··· 58 58 reg = <0x33>; 59 59 label = "lp5521_pri"; 60 60 clock-mode = /bits/ 8 <2>; 61 - chan0 { 61 + #address-cells = <1>; 62 + #size-cells = <0>; 63 + chan@0 { 64 + reg = <0>; 62 65 led-cur = /bits/ 8 <0x2f>; 63 66 max-cur = /bits/ 8 <0x5f>; 64 67 linux,default-trigger = "heartbeat"; 65 68 }; 66 - chan1 { 69 + chan@1 { 70 + reg = <1>; 67 71 led-cur = /bits/ 8 <0x2f>; 68 72 max-cur = /bits/ 8 <0x5f>; 69 73 }; 70 - chan2 { 74 + chan@2 { 75 + reg = <2>; 71 76 led-cur = /bits/ 8 <0x2f>; 72 77 max-cur = /bits/ 8 <0x5f>; 73 78 }; ··· 82 77 reg = <0x34>; 83 78 label = "lp5521_sec"; 84 79 clock-mode = /bits/ 8 <2>; 85 - chan0 { 80 + #address-cells = <1>; 81 + #size-cells = <0>; 82 + chan@0 { 83 + reg = <0>; 86 84 led-cur = /bits/ 8 <0x2f>; 87 85 max-cur = /bits/ 8 <0x5f>; 88 86 }; 89 - chan1 { 87 + chan@1 { 88 + reg = <1>; 90 89 led-cur = /bits/ 8 <0x2f>; 91 90 max-cur = /bits/ 8 <0x5f>; 92 91 }; 93 - chan2 { 92 + chan@2 { 93 + reg = <2>; 94 94 led-cur = /bits/ 8 <0x2f>; 95 95 max-cur = /bits/ 8 <0x5f>; 96 96 };