BSP: IFPMIC RGB LED driver
authorKeunho Hwang <keunho.hwang@samsung.com>
Fri, 27 Jul 2018 04:56:23 +0000 (13:56 +0900)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:29:42 +0000 (17:29 +0800)
[9609][WING] drivers: Add & enable RGB LED driver

Bug:HQ00000000

Workaround:no

Change-Id: Iea0130332b92d5ff7f5213c6c791af486a4ebbc2
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
arch/arm64/boot/dts/exynos/exynos9609-wing.dts [changed mode: 0755->0644]
arch/arm64/configs/wing_defconfig [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 8bea221..e184ea2
                };
        };
 
+       rgb_led {
+               status = "okay";
+               default_current = <2>;
+               default_off_dur_mode = <0>;
+               max_current = <255>;
+
+               s2mu106-led1 {
+                       id = <0>;
+                       //      current = <5>;
+               };
+
+               s2mu106-led2 {
+                       id = <1>;
+                       //      current = <5>;
+               };
+
+               s2mu106-led3 {
+                       id = <2>;
+                       //      current = <5>;
+               };
+               s2mu106-led4 {
+                       id = <3>;
+                       //      current = <5>;
+               };
+       };
+
        s2mu106-charger {
                status = "okay";
                battery,charger_name = "s2mu106-charger";
old mode 100755 (executable)
new mode 100644 (file)
index f251289..50a3881
@@ -426,6 +426,7 @@ CONFIG_MMC_DW_DEBUG=y
 CONFIG_MMC_DW_FORCE_32BIT_SFR_RW=y
 CONFIG_LEDS_S2MPB02=y
 CONFIG_LEDS_S2MU106_FLASH=y
+CONFIG_LEDS_S2MU106_RGB=y
 CONFIG_RTC_CLASS=y
 CONFIG_RTC_DRV_S2MPU09=y
 CONFIG_DMADEVICES=y