]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: dts: imx6dl-yapp4: Fix lp5562 LED driver probe
authorMichal Vokáč <michal.vokac@ysoft.com>
Wed, 18 Aug 2021 07:02:08 +0000 (09:02 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 22 Sep 2021 03:06:49 +0000 (11:06 +0800)
commit2449af82b3188def11d1c58b0cc84f3d93509102
tree3af6fee6e6951c8fb31f739b2d698be9e9b4d476
parent4ce062870c70d404088bf50de34ea03772413b4e
ARM: dts: imx6dl-yapp4: Fix lp5562 LED driver probe

Since the LED multicolor framework support was added in commit
16ede27574ce ("leds: lp55xx: Add multicolor framework support to lp55xx")
LEDs on this platform stopped working.

Author of the framework attempted to accommodate this DT to the
framework in commit ae11030c7c5a ("ARM: dts: imx6dl-yapp4: Add reg property
to the lp5562 channel node") but that is not sufficient. A color property
is now required even if the multicolor framework is not used, otherwise
the driver probe fails:

  lp5562: probe of 1-0030 failed with error -22

Add the color property to fix this.

Fixes: 16ede27574ce ("leds: lp55xx: Add multicolor framework support to lp55xx")
Cc: <stable@vger.kernel.org>
Cc: linux-leds@vger.kernel.org
Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6dl-yapp4-common.dtsi