OSDN Git Service

ARM: dts: msm: Enable PWM, Haptics and Flash for PM2FALCON
authorAnirudh Ghayal <aghayal@codeaurora.org>
Sat, 3 Dec 2016 16:29:27 +0000 (21:59 +0530)
committerAnirudh Ghayal <aghayal@codeaurora.org>
Mon, 5 Dec 2016 05:14:31 +0000 (10:44 +0530)
Enable the PWMs mapped to the RGB module and specify
the lpg-lut-size.

While at it, enable the haptics and flash node.

Change-Id: I83cf7882d1abb96c343973894c2a7ab3f932dfb1
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
arch/arm/boot/dts/qcom/msm-pm2falcon.dtsi
arch/arm/boot/dts/qcom/msm-pmfalcon.dtsi

index 79883db..67247c9 100644 (file)
                        reg-names = "qpnp-lpg-channel-base",
                                        "qpnp-lpg-lut-base";
                        qcom,channel-id = <1>;
+                       qcom,lpg-lut-size = <0x7e>;
                        qcom,supported-sizes = <6>, <9>;
                        qcom,ramp-index = <0>;
                        #pwm-cells = <2>;
-                       status = "disabled";
                };
 
                pm2falcon_pwm_2: pwm@b200 {
                        reg-names = "qpnp-lpg-channel-base",
                                         "qpnp-lpg-lut-base";
                        qcom,channel-id = <2>;
+                       qcom,lpg-lut-size = <0x7e>;
                        qcom,supported-sizes = <6>, <9>;
                        qcom,ramp-index = <1>;
                        #pwm-cells = <2>;
-                       status = "disabled";
                };
 
                pm2falcon_pwm_3: pwm@b300 {
                        reg-names = "qpnp-lpg-channel-base",
                                         "qpnp-lpg-lut-base";
                        qcom,channel-id = <3>;
+                       qcom,lpg-lut-size = <0x7e>;
                        qcom,supported-sizes = <6>, <9>;
                        qcom,ramp-index = <2>;
                        #pwm-cells = <2>;
-                       status = "disabled";
                };
 
                pm2falcon_pwm_4: pwm@b400 {
                        reg-names = "qpnp-lpg-channel-base",
                                         "qpnp-lpg-lut-base";
                        qcom,channel-id = <4>;
+                       qcom,lpg-lut-size = <0x7e>;
                        qcom,supported-sizes = <6>, <9>;
                        qcom,ramp-index = <3>;
                        #pwm-cells = <2>;
                        compatible = "qcom,leds-qpnp";
                        reg = <0xd000 0x100>;
                        label = "rgb";
-                       status = "disabled";
 
                        red_led: qcom,rgb_0 {
                                label = "rgb";
                        qcom,thermal-derate-current = <200 500 1000>;
                        qcom,isc-delay = <192>;
                        qcom,pmic-revid = <&pm2falcon_revid>;
-                       status = "disabled";
 
                        pm2falcon_flash0: qcom,flash_0 {
                                label = "flash";
index 93cfab7..ade8c66 100644 (file)
                reg = <0x1 SPMI_USID>;
                #address-cells = <2>;
                #size-cells = <0>;
+
+               pmfalcon_haptics: qcom,haptic@c000 {
+                       compatible = "qcom,qpnp-haptic";
+                       reg = <0xc000 0x100>;
+                       interrupts = <0x1 0xc0 0x0>,
+                                    <0x1 0xc0 0x1>;
+                       interrupt-names = "sc-irq", "play-irq";
+                       qcom,actuator-type = "lra";
+                       qcom,play-mode = "direct";
+                       qcom,vmax-mv = <3200>;
+                       qcom,ilim-ma = <800>;
+                       qcom,wave-shape = "square";
+                       qcom,wave-play-rate-us = <6667>;
+                       qcom,int-pwm-freq-khz = <505>;
+                       qcom,sc-deb-cycles = <8>;
+                       qcom,en-brake;
+                       qcom,brake-pattern = [03 03 00 00];
+                       qcom,use-play-irq;
+                       qcom,use-sc-irq;
+                       qcom,lra-high-z = "opt1";
+                       qcom,lra-auto-res-mode = "qwd";
+                       qcom,lra-res-cal-period = <4>;
+               };
        };
 };