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

ARM: dts: imx6dl-yapp4: Add reg property to the lp5562 channel node

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.

Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
CC: Shawn Guo <shawnguo@kernel.org>
CC: Sascha Hauer <s.hauer@pengutronix.de>
CC: Pengutronix Kernel Team <kernel@pengutronix.de>
CC: Fabio Estevam <festevam@gmail.com>
CC: NXP Linux Team <linux-imx@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Dan Murphy and committed by
Shawn Guo
b86d3d21 675abeb9

+10 -4
+10 -4
arch/arm/boot/dts/imx6dl-yapp4-common.dtsi
··· 263 263 reg = <0x30>; 264 264 clock-mode = /bits/ 8 <1>; 265 265 status = "disabled"; 266 + #address-cells = <1>; 267 + #size-cells = <0>; 266 268 267 - chan0 { 269 + chan@0 { 268 270 chan-name = "R"; 269 271 led-cur = /bits/ 8 <0x20>; 270 272 max-cur = /bits/ 8 <0x60>; 273 + reg = <0>; 271 274 }; 272 275 273 - chan1 { 276 + chan@1 { 274 277 chan-name = "G"; 275 278 led-cur = /bits/ 8 <0x20>; 276 279 max-cur = /bits/ 8 <0x60>; 280 + reg = <1>; 277 281 }; 278 282 279 - chan2 { 283 + chan@2 { 280 284 chan-name = "B"; 281 285 led-cur = /bits/ 8 <0x20>; 282 286 max-cur = /bits/ 8 <0x60>; 287 + reg = <2>; 283 288 }; 284 289 285 - chan3 { 290 + chan@3 { 286 291 chan-name = "W"; 287 292 led-cur = /bits/ 8 <0x0>; 288 293 max-cur = /bits/ 8 <0x0>; 294 + reg = <3>; 289 295 }; 290 296 }; 291 297