Lines Matching +full:pwm +full:- +full:gpios
1 // SPDX-License-Identifier: GPL-2.0-only
3 #include "msm8916-pm8916.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/interrupt-controller/irq.h>
7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h>
17 stdout-path = "serial0";
20 reserved-memory {
22 tz-apps@85500000 {
24 no-map;
28 clk_pwm: pwm {
29 compatible = "clk-pwm";
30 #pwm-cells = <2>;
34 pinctrl-names = "default";
35 pinctrl-0 = <&motor_pwm_default>;
39 gpio-keys {
40 compatible = "gpio-keys";
42 pinctrl-names = "default";
43 pinctrl-0 = <&gpio_keys_default>;
47 button-volume-up {
49 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>;
53 button-home {
55 gpios = <&tlmm 109 GPIO_ACTIVE_LOW>;
60 gpio-hall-sensor {
61 compatible = "gpio-keys";
63 pinctrl-names = "default";
64 pinctrl-0 = <&gpio_hall_sensor_default>;
68 event-hall-sensor {
70 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
71 linux,input-type = <EV_SW>;
73 linux,can-disable;
82 reg_motor_vdd: regulator-motor-vdd {
83 compatible = "regulator-fixed";
84 regulator-name = "motor_vdd";
85 regulator-min-microvolt = <3000000>;
86 regulator-max-microvolt = <3000000>;
89 enable-active-high;
91 pinctrl-names = "default";
92 pinctrl-0 = <&motor_en_default>;
95 reg_vdd_tsp_a: regulator-vdd-tsp-a {
96 compatible = "regulator-fixed";
97 regulator-name = "vdd_tsp_a";
98 regulator-min-microvolt = <3300000>;
99 regulator-max-microvolt = <3300000>;
102 enable-active-high;
104 pinctrl-names = "default";
105 pinctrl-0 = <&tsp_en_default>;
108 i2c-muic {
109 compatible = "i2c-gpio";
110 sda-gpios = <&tlmm 105 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
111 scl-gpios = <&tlmm 106 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
113 pinctrl-names = "default";
114 pinctrl-0 = <&muic_i2c_default>;
116 #address-cells = <1>;
117 #size-cells = <0>;
120 compatible = "siliconmitus,sm5502-muic";
123 interrupt-parent = <&tlmm>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&muic_int_default>;
131 i2c-tkey {
132 compatible = "i2c-gpio";
133 sda-gpios = <&tlmm 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
134 scl-gpios = <&tlmm 17 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
136 pinctrl-names = "default";
137 pinctrl-0 = <&tkey_i2c_default>;
139 #address-cells = <1>;
140 #size-cells = <0>;
144 compatible = "coreriver,tc360-touchkey";
147 interrupt-parent = <&tlmm>;
150 /* vcc/vdd-supply are board-specific */
151 vddio-supply = <&pm8916_l6>;
155 pinctrl-names = "default";
156 pinctrl-0 = <&tkey_default>;
160 i2c-nfc {
161 compatible = "i2c-gpio";
162 sda-gpios = <&tlmm 0 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
163 scl-gpios = <&tlmm 1 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
165 pinctrl-names = "default";
166 pinctrl-0 = <&nfc_i2c_default>;
168 #address-cells = <1>;
169 #size-cells = <0>;
172 compatible = "samsung,s3fwrn5-i2c";
175 interrupt-parent = <&tlmm>;
178 en-gpios = <&tlmm 20 GPIO_ACTIVE_LOW>;
179 wake-gpios = <&tlmm 49 GPIO_ACTIVE_HIGH>;
183 pinctrl-names = "default";
184 pinctrl-0 = <&nfc_default &nfc_clk_req>;
189 compatible = "pwm-vibrator";
192 pwm-names = "enable";
194 vcc-supply = <®_motor_vdd>;
205 interrupt-parent = <&tlmm>;
208 vdd-supply = <&pm8916_l17>;
209 vddio-supply = <&pm8916_l5>;
211 pinctrl-names = "default";
212 pinctrl-0 = <&accel_int_default>;
219 vdd-supply = <&pm8916_l17>;
220 vddio-supply = <&pm8916_l5>;
228 compatible = "richtek,rt5033-battery";
230 interrupt-parent = <&tlmm>;
233 pinctrl-names = "default";
234 pinctrl-0 = <&fg_alert_default>;
247 pinctrl-names = "default", "sleep";
248 pinctrl-0 = <&mdss_default>;
249 pinctrl-1 = <&mdss_sleep>;
259 regulator-min-microvolt = <2850000>;
260 regulator-max-microvolt = <2850000>;
271 pinctrl-names = "default", "sleep";
272 pinctrl-0 = <&sdc2_default &sdc2_cd_default>;
273 pinctrl-1 = <&sdc2_sleep &sdc2_cd_default>;
275 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
288 accel_int_default: accel-int-default-state {
292 drive-strength = <2>;
293 bias-disable;
296 fg_alert_default: fg-alert-default-state {
300 drive-strength = <2>;
301 bias-disable;
304 gpio_keys_default: gpio-keys-default-state {
308 drive-strength = <2>;
309 bias-pull-up;
312 gpio_hall_sensor_default: gpio-hall-sensor-default-state {
316 drive-strength = <2>;
317 bias-disable;
320 mdss_default: mdss-default-state {
324 drive-strength = <8>;
325 bias-disable;
327 mdss_sleep: mdss-sleep-state {
331 drive-strength = <2>;
332 bias-pull-down;
335 motor_en_default: motor-en-default-state {
339 drive-strength = <2>;
340 bias-disable;
343 motor_pwm_default: motor-pwm-default-state {
348 muic_i2c_default: muic-i2c-default-state {
352 drive-strength = <2>;
353 bias-disable;
356 muic_int_default: muic-int-default-state {
360 drive-strength = <2>;
361 bias-disable;
364 nfc_default: nfc-default-state {
365 nfc-pins {
369 drive-strength = <2>;
370 bias-disable;
373 irq-pins {
377 drive-strength = <2>;
378 bias-pull-down;
382 nfc_i2c_default: nfc-i2c-default-state {
386 drive-strength = <2>;
387 bias-disable;
390 sdc2_cd_default: sdc2-cd-default-state {
393 drive-strength = <2>;
394 bias-disable;
397 tkey_default: tkey-default-state {
401 drive-strength = <2>;
402 bias-disable;
405 tkey_i2c_default: tkey-i2c-default-state {
409 drive-strength = <2>;
410 bias-disable;
413 tsp_en_default: tsp-en-default-state {
417 drive-strength = <2>;
418 bias-disable;
421 ts_int_default: ts-int-default-state {
425 drive-strength = <2>;
426 bias-disable;
431 nfc_clk_req: nfc-clk-req-state {
435 input-enable;
436 bias-disable;
437 power-source = <PM8916_GPIO_L2>;