xref: /linux/arch/arm64/boot/dts/qcom/msm8916-samsung-gt510.dts (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
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_lcd_vmipi: regulator-lcd-vmipi {
23		compatible = "regulator-fixed";
24		regulator-name = "lcd_vmipi";
25		regulator-min-microvolt = <1800000>;
26		regulator-max-microvolt = <1800000>;
27
28		gpio = <&tlmm 8 GPIO_ACTIVE_HIGH>;
29		enable-active-high;
30
31		pinctrl-0 = <&lcd_en_default>;
32		pinctrl-names = "default";
33	};
34
35	reg_motor_vdd: regulator-motor-vdd {
36		compatible = "regulator-fixed";
37		regulator-name = "motor_vdd";
38		regulator-min-microvolt = <3000000>;
39		regulator-max-microvolt = <3000000>;
40
41		gpio = <&tlmm 76 GPIO_ACTIVE_HIGH>;
42		enable-active-high;
43
44		pinctrl-0 = <&motor_en_default>;
45		pinctrl-names = "default";
46	};
47
48	reg_tsp_1p8v: regulator-tsp-1p8v {
49		compatible = "regulator-fixed";
50		regulator-name = "tsp_1p8v";
51		regulator-min-microvolt = <1800000>;
52		regulator-max-microvolt = <1800000>;
53
54		gpio = <&tlmm 73 GPIO_ACTIVE_HIGH>;
55		enable-active-high;
56
57		pinctrl-0 = <&tsp_en_default>;
58		pinctrl-names = "default";
59	};
60
61	reg_tsp_3p3v: regulator-tsp-3p3v {
62		compatible = "regulator-fixed";
63		regulator-name = "tsp_3p3v";
64		regulator-min-microvolt = <3300000>;
65		regulator-max-microvolt = <3300000>;
66
67		gpio = <&tlmm 73 GPIO_ACTIVE_HIGH>;
68		enable-active-high;
69	};
70
71	reg_vlcd_5p4v: regulator-vlcd-5p4v {
72		compatible = "regulator-fixed";
73		regulator-name = "vlcd_5p4v";
74		regulator-min-microvolt = <5400000>;
75		regulator-max-microvolt = <5400000>;
76
77		gpio = <&tlmm 51 GPIO_ACTIVE_HIGH>;
78		enable-active-high;
79
80		pinctrl-0 = <&buckbooster_en_default>;
81		pinctrl-names = "default";
82	};
83
84	vibrator {
85		compatible = "pwm-vibrator";
86
87		pwms = <&clk_pwm 0 100000>;
88		pwm-names = "enable";
89
90		vcc-supply = <&reg_motor_vdd>;
91	};
92};
93
94&blsp_i2c5 {
95	status = "okay";
96
97	touchscreen@4a {
98		compatible = "atmel,maxtouch";
99		reg = <0x4a>;
100		interrupt-parent = <&tlmm>;
101		interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
102
103		vdd-supply = <&reg_tsp_1p8v>;
104		vdda-supply = <&reg_tsp_3p3v>;
105
106		reset-gpios = <&tlmm 114 GPIO_ACTIVE_LOW>;
107
108		pinctrl-0 = <&tsp_int_rst_default>;
109		pinctrl-names = "default";
110
111		linux,keycodes = <KEY_APPSELECT KEY_BACK>;
112	};
113};
114
115&mdss {
116	status = "okay";
117};
118
119&mdss_dsi0 {
120	pinctrl-0 = <&mdss_default>;
121	pinctrl-1 = <&mdss_sleep>;
122	pinctrl-names = "default", "sleep";
123
124	panel@0 {
125		compatible = "samsung,ltl101at01", "samsung,s6d7aa0";
126		reg = <0>;
127
128		power-supply = <&reg_vlcd_5p4v>;
129		vmipi-supply = <&reg_lcd_vmipi>;
130		reset-gpios = <&tlmm 97 GPIO_ACTIVE_LOW>;
131
132		port {
133			panel_in: endpoint {
134				remote-endpoint = <&mdss_dsi0_out>;
135			};
136		};
137	};
138};
139
140&mdss_dsi0_out {
141	data-lanes = <0 1 2 3>;
142	remote-endpoint = <&panel_in>;
143};
144
145&tlmm {
146	buckbooster_en_default: buckbooster-en-default-state {
147		pins = "gpio51";
148		function = "gpio";
149		drive-strength = <2>;
150		bias-disable;
151	};
152
153	motor_en_default: motor-en-default-state {
154		pins = "gpio76";
155		function = "gpio";
156		drive-strength = <2>;
157		bias-disable;
158	};
159
160	motor_pwm_default: motor-pwm-default-state {
161		pins = "gpio50";
162		function = "gcc_gp2_clk_a";
163	};
164
165	lcd_en_default: lcd-en-default-state {
166		pins = "gpio8";
167		function = "gpio";
168		drive-strength = <2>;
169		bias-disable;
170	};
171
172	mdss_default: mdss-default-state {
173		pins = "gpio97";
174		function = "gpio";
175		drive-strength = <8>;
176		bias-disable;
177	};
178
179	mdss_sleep: mdss-sleep-state {
180		pins = "gpio97";
181		function = "gpio";
182		drive-strength = <2>;
183		bias-pull-down;
184	};
185
186	tsp_en_default: tsp-en-default-state {
187		pins = "gpio73";
188		function = "gpio";
189		drive-strength = <2>;
190		bias-disable;
191	};
192
193	tsp_int_rst_default: tsp-int-rst-default-state {
194		pins = "gpio13", "gpio114";
195		function = "gpio";
196		drive-strength = <2>;
197		bias-disable;
198	};
199};
200