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