BSP: IFPMIC Haptic device driver
authorlijilai <lijilai@huaqin.com>
Mon, 16 Jul 2018 07:32:20 +0000 (15:32 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:29:35 +0000 (17:29 +0800)
[9609][WING] drivers: Haptic device driver for HW

Bug:HQ00000000

Workaround:no

Change-Id: I505807b054e99adac17b17abe109ee039c9d5d85
Signed-off-by: Jinchul Kim <jinchul7.kim@samsung.com>
arch/arm64/boot/dts/exynos/exynos9609-wing.dts
arch/arm64/configs/wing_defconfig

index 475033bb17ba48ab25e32371c3b3a78a831ed2f9..038d46eec3c41156f5ff4cee5507d4324328774c 100755 (executable)
                        samsung,pins = "gpg0-7";
                        samsung,pin-con-pdn = <3>;
                };
+
+               motor_pwm: motor_pwm {
+                       samsung,pins = "gpg4-2";
+                       samsung,pin-function = <2>;
+                       samsung,pin-pud = <1>;
+                       samsung,pin-drv = <0>;
+               };
        };
 
 
                };
        };
 
+       s2mu106-haptic {
+               status = "okay";
+               haptic,pwm_id = <1>;
+               haptic,operation_mode = <2>; /* 0 : ERM_I2C, 1 : ERM_GPIO, 2 : LRA */
+               haptic,hbst_en;
+               haptic,hbst_automode;
+               haptic,boost_level = <5000>;
+       };
+
        s2mcs02-charger@41 {
                compatible = "samsung,s2mcs02-charger";
                reg = <0x41>;
        };
 };
 
+&sec_pwm {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&motor_pwm>;
+};
+
+
 &fmp_0 {
        exynos,block-type = "sda";
        exynos,fips-block_offset = <5>;
index f881c5560d7e31e0bdd7ecf76974788832907070..30bbf3f2be1430c5fd6aa82884b281d9f361c772 100644 (file)
@@ -241,6 +241,7 @@ CONFIG_SCSC_WLAN_WIFI_SHARING=y
 # CONFIG_SCSC_WLAN_SINGLE_ANTENNA is not set
 CONFIG_INPUT_EVDEV=y
 CONFIG_INPUT_KEYRESET=y
+CONFIG_INPUT_S2MU106_HAPTIC=y
 CONFIG_KEYBOARD_GPIO=y
 CONFIG_KEYBOARD_SAMSUNG=y
 # CONFIG_INPUT_MOUSE is not set