]> git.dujemihanovic.xyz Git - linux.git/commitdiff
arm64: dts: samsung-coreprimevelte: add vibrator
authorDuje Mihanović <duje.mihanovic@skole.hr>
Wed, 27 Dec 2023 20:47:07 +0000 (21:47 +0100)
committerDuje Mihanović <duje.mihanovic@skole.hr>
Sat, 20 Jan 2024 19:52:03 +0000 (20:52 +0100)
arch/arm64/boot/dts/marvell/pxa1908-samsung-coreprimevelte.dts
arch/arm64/boot/dts/marvell/pxa1908.dtsi

index db427f4ba7eab5e5c8eb48687856fb28215418bf..0bc65847e099cd34bf48aa38673603f1e11657f9 100644 (file)
                powerdown-gpios = <&gpio 57 GPIO_ACTIVE_HIGH>;
                reset-gpios = <&gpio 58 GPIO_ACTIVE_HIGH>;
        };
+
+       vibrator {
+               compatible = "pwm-vibrator";
+               pwm-names = "enable";
+               pwms = <&pwm 100000>;
+               enable-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&vibrator_pins>;
+       };
 };
 
 &smmu {
                pinctrl-single,bias-pulldown = <0x8000 0xa000 0x8000 0xa000>;
                pinctrl-single,low-power-mode = <0x288 0x388>;
        };
+
+       vibrator_pins: pinmux-vibrator {
+               pinctrl-single,pins = <0x12c 0>;
+               pinctrl-single,drive-strength = <0x1000 0x1800>;
+               pinctrl-single,bias-pullup = <0x8000 0xc000 0x8000 0xc000>;
+               pinctrl-single,bias-pulldown = <0xa000 0xa000 0 0xa000>;
+               pinctrl-single,input-schmitt = <0 0x30>;
+               pinctrl-single,input-schmitt-enable = <0x40 0 0x40 0x40>;
+               pinctrl-single,low-power-mode = <0 0x388>;
+       };
 };
 
 &uart0 {
index 9933cec5b7d28fc213b343e0c3283ed3007fabcf..21e41670c572a7147e73f59f9463fbe5d7560197 100644 (file)
                                };
                        };
 
+                       pwm: pwm@1ac00 {
+                               compatible = "marvell,pxa250-pwm";
+                               reg = <0x1ac00 0x10>;
+                               #pwm-cells = <1>;
+                               clocks = <&apbc PXA1908_CLK_PWM3>;
+                       };
+
                        pmx: pinmux@1e000 {
                                compatible = "marvell,pxa1908-padconf", "pinconf-single";
                                reg = <0x1e000 0x330>;