Merge tag 'spi-fix-v6.5-merge-window' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / arch / arm64 / boot / dts / qcom / msm8916-samsung-gt510.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 /dts-v1/;
4
5 #include "msm8916-samsung-gt5-common.dtsi"
6
7 / {
8         model = "Samsung Galaxy Tab A 9.7 (2015)";
9         compatible = "samsung,gt510", "qcom,msm8916";
10         chassis-type = "tablet";
11
12         clk_pwm: pwm {
13                 compatible = "clk-pwm";
14                 #pwm-cells = <2>;
15
16                 clocks = <&gcc GCC_GP2_CLK>;
17
18                 pinctrl-0 = <&motor_pwm_default>;
19                 pinctrl-names = "default";
20         };
21
22         reg_motor_vdd: regulator-motor-vdd {
23                 compatible = "regulator-fixed";
24                 regulator-name = "motor_vdd";
25                 regulator-min-microvolt = <3000000>;
26                 regulator-max-microvolt = <3000000>;
27
28                 gpio = <&tlmm 76 GPIO_ACTIVE_HIGH>;
29                 enable-active-high;
30
31                 pinctrl-0 = <&motor_en_default>;
32                 pinctrl-names = "default";
33         };
34
35         reg_tsp_1p8v: regulator-tsp-1p8v {
36                 compatible = "regulator-fixed";
37                 regulator-name = "tsp_1p8v";
38                 regulator-min-microvolt = <1800000>;
39                 regulator-max-microvolt = <1800000>;
40
41                 gpio = <&tlmm 73 GPIO_ACTIVE_HIGH>;
42                 enable-active-high;
43
44                 pinctrl-0 = <&tsp_en_default>;
45                 pinctrl-names = "default";
46         };
47
48         reg_tsp_3p3v: regulator-tsp-3p3v {
49                 compatible = "regulator-fixed";
50                 regulator-name = "tsp_3p3v";
51                 regulator-min-microvolt = <3300000>;
52                 regulator-max-microvolt = <3300000>;
53
54                 gpio = <&tlmm 73 GPIO_ACTIVE_HIGH>;
55                 enable-active-high;
56         };
57
58         vibrator {
59                 compatible = "pwm-vibrator";
60
61                 pwms = <&clk_pwm 0 100000>;
62                 pwm-names = "enable";
63
64                 vcc-supply = <&reg_motor_vdd>;
65         };
66 };
67
68 &blsp_i2c5 {
69         status = "okay";
70
71         touchscreen@4a {
72                 compatible = "atmel,maxtouch";
73                 reg = <0x4a>;
74                 interrupt-parent = <&tlmm>;
75                 interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
76
77                 vdd-supply = <&reg_tsp_1p8v>;
78                 vdda-supply = <&reg_tsp_3p3v>;
79
80                 reset-gpios = <&tlmm 114 GPIO_ACTIVE_LOW>;
81
82                 pinctrl-0 = <&tsp_int_rst_default>;
83                 pinctrl-names = "default";
84         };
85 };
86
87 &tlmm {
88         motor_en_default: motor-en-default-state {
89                 pins = "gpio76";
90                 function = "gpio";
91                 drive-strength = <2>;
92                 bias-disable;
93         };
94
95         motor_pwm_default: motor-pwm-default-state {
96                 pins = "gpio50";
97                 function = "gcc_gp2_clk_a";
98         };
99
100         tsp_en_default: tsp-en-default-state {
101                 pins = "gpio73";
102                 function = "gpio";
103                 drive-strength = <2>;
104                 bias-disable;
105         };
106
107         tsp_int_rst_default: tsp-int-rst-default-state {
108                 pins = "gpio13", "gpio114";
109                 function = "gpio";
110                 drive-strength = <2>;
111                 bias-disable;
112         };
113 };