universal7580: a7xelte-dts: remove second touchkey entry
[GitHub/LineageOS/android_kernel_samsung_universal7580.git] / arch / arm64 / boot / dts / exynos7580-a7xelte_eur_open_03.dts
1 /*
2 * SAMSUNG A7XE board device tree source
3 *
4 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
12 /dts-v1/;
13 #include "exynos7580-reserve-3000MB-Ax.dtsi"
14 #include "exynos7580-a7xelte_common.dtsi"
15 #include "modem-carmen2-reserve-3000MB.dtsi"
16 #include "exynos7580-a7xelte_battery_03.dtsi"
17 #include "exynos7580-a7xelte_eur_open_gpio_03.dtsi"
18 #include "exynos7580-a7xelte_fingerprint-sensor_00.dtsi"
19 #include "exynos7580-a7xelte_mst_00.dtsi"
20
21 / {
22 model = "Samsung A7XE revision board based on EXYNOS7580";
23 model_info-chip = <7580>;
24 model_info-platform = "android";
25 model_info-subtype = "samsung";
26 model_info-hw_rev = <3>;
27 model_info-hw_rev_end = <7>;
28 compatible = "samsung,exynos7580-universal7580,r01", "samsung,exynos7580";
29
30 pinctrl@139B0000 {
31 pmic_irq: pmic-irq {
32 samsung,pins = "gpa0-2";
33 samsung,pin-pud = <3>;
34 samsung,pin-drv = <3>;
35 };
36 cod3022_irq: cod3022-irq {
37 samsung,pins = "gpa0-4";
38 samsung,pin-pud = <3>;
39 samsung,pin-drv = <3>;
40 };
41 if_irq: if-irq {
42 samsung,pins = "gpa0-5";
43 samsung,pin-pud = <3>;
44 samsung,pin-drv = <3>;
45 };
46 ps_als: ps_als {
47 samsung,pins = "gpa0-7";
48 samsung,pin-function = <0x0>;
49 samsung,pin-pud = <0>;
50 samsung,pin-drv = <0>;
51 };
52 muic_irq: muic-irq {
53 samsung,pins = "gpa1-3";
54 samsung,pin-pud = <0>;
55 samsung,pin-drv = <0>;
56 };
57 sub_det: sub-det {
58 samsung,pins = "gpa1-7";
59 samsung,pin-function = <0>;
60 samsung,pin-pud = <0>;
61 samsung,pin-drv = <0>;
62 };
63 bhy_int: bhy-int {
64 samsung,pins = "gpa3-0";
65 samsung,pin-function = <0>;
66 samsung,pin-pud = <1>;
67 samsung,pin-drv = <0>;
68 };
69 dwmmc2_cd_ext_irq: dwmmc2_cd_ext_irq {
70 samsung,pins = "gpa3-1";
71 samsung,pin-function = <0xf>;
72 samsung,pin-pud = <0>;
73 samsung,pin-drv = <0>;
74 };
75 gpiodetect_irq: gpiodetect-irq {
76 samsung,pins = "gpa3-4";
77 samsung,pin-function = <0>;
78 samsung,pin-pud = <0>;
79 samsung,pin-drv = <0>;
80 };
81 certify_hall_irq: certify-hall-irq {
82 samsung,pins = "gpa3-5";
83 samsung,pin-function = <0xf>;
84 samsung,pin-pud = <0>;
85 samsung,pin-drv = <0>;
86 };
87 hall_irq: hall_irq {
88 samsung,pins = "gpa3-6";
89 samsung,pin-function = <0xf>;
90 samsung,pin-pud = <0>;
91 samsung,pin-drv = <0>;
92 };
93 };
94
95 pinctrl@139C0000 {
96 optical: optical {
97 samsung,pins = "gpd3-1", "gpd3-2";
98 samsung,pin-function = <0>;
99 samsung,pin-pud = <0>;
100 samsung,pin-drv = <0>;
101 };
102 /* Warm reset information from AP */
103 pm_wrsti: pm-wrsti {
104 samsung,pins = "gpe1-0";
105 samsung,pin-con-pdn = <3>;
106 };
107 spk_amp_i2c: spk-amp-i2c {
108 samsung,pins = "gpc2-1", "gpc2-0";
109 samsung,pin-function = <2>;
110 samsung,pin-pud = <0>;
111 };
112 };
113
114 i2c@13840000 {
115 status = "okay";
116 samsung,i2c-sda-delay = <100>;
117 samsung,i2c-max-bus-freq = <300000>;
118 sec-nfc@27 {
119 compatible = "sec-nfc";
120 reg = <0x27>;
121 interrupts = <2 0 0>;
122 interrupt-parent = <&gpa1>;
123 sec-nfc,nfc_pd = <&gpc3 2 0x2>;
124 sec-nfc,firm-gpio = <&gpe0 0 0>;
125 sec-nfc,irq-gpio = <&gpa1 2 0>;
126 clkctrl-reg = <0x1046600C>;
127 sec-nfc,nfc_clkreq = <&gpc3 3 0x2>;
128 sec-nfc,i2c_1p8 = "ldo39";
129 pinctrl-names = "default";
130 pinctrl-0 = <&nfc_n5_firm &nfc_n5_clk_req &nfc_pd &nfc_int &ese_pwr_en>;
131 };
132 };
133
134 i2c@33 {
135 compatible = "i2c-gpio";
136 gpios = <&gpd3 2 0 /* sda */
137 &gpd3 1 0>; /* scl */
138
139 pinctrl-names = "default";
140 pinctrl-0 = <&optical &sensor_pwr_en>;
141 i2c-gpio,delay-us = <2>;
142 i2c-gpio,scl-output-only;
143 #address-cells = <1>;
144 #size-cells = <0>;
145 status = "okay";
146
147 bhy@28 {
148 compatible = "bhy";
149 pinctrl-names = "default";
150 pinctrl-0 = <&bhy_int>;
151 bhy,gpio_irq = <&gpa3 0 0x00>;
152 bhy,ldo_enable = <&gpd2 7 0x01>;
153 reg = <0x28>;
154 };
155
156 yas537@2e {
157 compatible = "yas_magnetometer";
158 reg = <0x2e>;
159 yas,orientation = <1>;
160 yas,softiron = <10000 0 0 0 10000 0 0 0 10000>;
161 yas,softiron_sign = <2 2 0 0 2 0 0 0 2>;
162 };
163
164 cm36655@60 {
165 compatible = "cm36655";
166 reg = <0x60>;
167 pinctrl-names = "dafault";
168 pinctrl-0 = <&ps_als &leden_gpio>;
169 interrupt-parent = <&gpa0>;
170 interrupts = <7 0 0>;
171 cm36655,led-supply = <&ldo37_reg>;
172 cm36655,irq_gpio = <&gpa0 7 0x00>;
173 cm36655,pwr_en = <&gpd2 3 0x01>;
174 cm36655,default_hi_thd = <18>;
175 cm36655,default_low_thd = <13>;
176 cm36655,cancel_hi_thd = <10>;
177 cm36655,cancel_low_thd = <7>;
178 cm36655,trim = <0x0003>;
179 };
180 };
181
182 hsi2c@13870000 {
183 status = "okay";
184 /*samsung,hs-mode;*/
185 clock-frequency = <400000>;
186 #address-cells = <1>;
187 #size-cells = <0>;
188 pinctrl-names = "default";
189 pinctrl-0 = <&spk_amp_i2c>;
190 };
191
192 pinctrl@139B0000 {
193 bt_enable: bt_enable {
194 samsung,pins = "gpa1-6";
195 samsung,pin-function = <1>;
196 samsung,pin-pud = <0>;
197 };
198 };
199
200 pinctrl@139C0000 {
201 uart0_rts: uart0-rts {
202 samsung,pins = "gpb0-7";
203 samsung,pin-function = <2>;
204 samsung,pin-pud = <1>;
205 samsung,pin-con-pdn = <3>;
206 samsung,pin-pud-pdn = <1>;
207 };
208
209 uart0_cts: uart0-cts {
210 samsung,pins = "gpb0-6";
211 samsung,pin-function = <2>;
212 samsung,pin-pud = <1>;
213 samsung,pin-con-pdn = <3>;
214 samsung,pin-pud-pdn = <1>;
215 };
216
217 uart0_tx: uart0-tx {
218 samsung,pins = "gpb0-5";
219 samsung,pin-function = <2>;
220 samsung,pin-pud = <3>;
221 samsung,pin-con-pdn = <3>;
222 samsung,pin-pud-pdn = <3>;
223 };
224
225 uart0_rx: uart0-rx {
226 samsung,pins = "gpb0-4";
227 samsung,pin-function = <2>;
228 samsung,pin-pud = <3>;
229 samsung,pin-con-pdn = <3>;
230 samsung,pin-pud-pdn = <3>;
231 };
232 };
233
234 mif_pdata {
235 pinctrl-names = "default";
236 pinctrl-0 = <&cp_rst_n &ds_det>;
237
238 /* To do: will be remove, for system revision */
239 gpios = <&gpd0 0 0x0>,
240 <&gpd0 1 0x0>,
241 <&gpd0 2 0x0>,
242 <&gpd0 3 0x0>;
243
244 modem_ctrl,gpio_cp_rst_n = <&gpe0 6 0x1>;
245 mif,gpio_ds_det = <&gpd0 4 0x0>;
246
247 mif,ap_clk_table = <
248 /* khz */
249 1600000
250 1500000
251 1400000
252 1300000
253 1200000
254 1100000
255 1000000
256 900000
257 800000
258 700000
259 600000
260 500000
261 400000
262 300000
263 >;
264
265 mif,mif_clk_table = <
266 /* khz */
267 825000
268 728000
269 667000
270 559000
271 416000
272 338000
273 273000
274 200000
275 >;
276 };
277
278 pinctrl@139C0000 {
279 ds_det: ds_det {
280 samsung,pins = "gpd0-4";
281 samsung,pin-function = <0>; /* INPUT */
282 samsung,pin-pud = <0>;
283 samsung,pin-con-pdn = <3>; /* PREV STATE */
284 samsung,pin-pud-pdn = <0>;
285 };
286
287 cp_rst_n: cp_rst_n {
288 samsung,pins = "gpe0-6";
289 samsung,pin-function = <1>; /* OUTPUT */
290 samsung,pin-pud = <0>; /* PU & PD DISABLE */
291 samsung,pin-con-pdn = <1>; /* OUTPUT 1 */
292 samsung,pin-pud-pdn = <0>; /* PU & PD DISABLE */
293 };
294
295 leden_gpio: leden_gpio {
296 samsung,pins = "gpd2-3";
297 samsung,pin-function = <1>;
298 samsung,pin-pud = <0>;
299 samsung,pin-val = <1>;
300 };
301
302 sensor_pwr_en: sensor_pwr_en {
303 samsung,pins = "gpd2-7";
304 samsung,pin-function = <1>;
305 samsung,pin-pud = <3>;
306 samsung,pin-drv = <0>;
307 samsung,pin-val = <1>;
308 };
309 };
310 };