diff options
| author | Duje Mihanović <duje@dujemihanovic.xyz> | 2025-09-14 00:21:07 +0300 |
|---|---|---|
| committer | Duje Mihanović <duje@dujemihanovic.xyz> | 2025-10-13 13:11:37 +0300 |
| commit | 412f54866385ad688d438524b5c6c2ffcd5f5cb9 (patch) | |
| tree | 08867d17828b062e74537343b0f212e497f18c33 | |
| parent | 1e49943914290df0fde4afcb7c0c3d672971f7ee (diff) | |
| download | linux-412f54866385ad688d438524b5c6c2ffcd5f5cb9.tar.xz | |
arm64: dts: marvell: samsung,coreprimevelte: Add vibrator
The board has a vibrator hooked up to PWM3. Add a node for it and its
associated pinctrl configuration.
Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz>
| -rw-r--r-- | arch/arm64/boot/dts/marvell/mmp/pxa1908-samsung-coreprimevelte.dts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/marvell/mmp/pxa1908-samsung-coreprimevelte.dts b/arch/arm64/boot/dts/marvell/mmp/pxa1908-samsung-coreprimevelte.dts index fad72854e2b7..1de9dd14b83b 100644 --- a/arch/arm64/boot/dts/marvell/mmp/pxa1908-samsung-coreprimevelte.dts +++ b/arch/arm64/boot/dts/marvell/mmp/pxa1908-samsung-coreprimevelte.dts @@ -122,6 +122,15 @@ ctrl-gpios = <&gpio 97 GPIO_ACTIVE_HIGH>; max-brightness = <210>; }; + + vibrator { + compatible = "pwm-vibrator"; + pwm-names = "enable"; + pwms = <&pwm3 100000>; + enable-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vibrator_pin>; + }; }; &smmu { @@ -428,6 +437,16 @@ pinctrl-single,bias-pulldown = <0x8000 0xa000 0x8000 0xa000>; pinctrl-single,low-power-mode = <0x288 0x388>; }; + + vibrator_pin: vibrator-pin { + 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 { @@ -518,3 +537,7 @@ bus-width = <4>; non-removable; }; + +&pwm3 { + status = "okay"; +}; |
