Loading...
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Devicetree for the Samsung Galaxy S Advance GT-I9070 also known as Janice.
4 */
5
6/dts-v1/;
7#include "ste-db8500.dtsi"
8#include "ste-ab8500.dtsi"
9#include "ste-dbx5x0-pinctrl.dtsi"
10#include <dt-bindings/gpio/gpio.h>
11#include <dt-bindings/leds/common.h>
12#include <dt-bindings/input/input.h>
13#include <dt-bindings/interrupt-controller/irq.h>
14
15/ {
16 model = "Samsung Galaxy S Advance (GT-I9070)";
17 compatible = "samsung,janice", "st-ericsson,u8500";
18
19 chosen {
20 stdout-path = &serial2;
21 };
22
23 battery: battery {
24 compatible = "samsung,eb535151vu";
25 };
26
27 thermal-zones {
28 battery-thermal {
29 /* This zone will be polled by the battery temperature code */
30 polling-delay = <0>;
31 polling-delay-passive = <0>;
32 thermal-sensors = <&bat_therm>;
33
34 trips {
35 battery-crit-hi {
36 temperature = <70000>;
37 hysteresis = <2000>;
38 type = "critical";
39 };
40 };
41 };
42 };
43
44 bat_therm: thermistor {
45 compatible = "samsung,1404-001221";
46 io-channels = <&gpadc 0x02>; /* BatTemp */
47 pullup-uv = <1800000>;
48 pullup-ohm = <230000>;
49 pulldown-ohm = <0>;
50 #thermal-sensor-cells = <0>;
51 };
52
53 /* External LDO for eMMC LDO VMEM_3V3 controlled by GPIO6 */
54 ldo_3v3_reg: regulator-gpio-ldo-3v3 {
55 compatible = "regulator-fixed";
56 /* Supplied in turn by VBAT */
57 regulator-name = "VMEM_3V3";
58 regulator-min-microvolt = <3300000>;
59 regulator-max-microvolt = <3300000>;
60 gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>;
61 startup-delay-us = <5000>; // FIXME
62 enable-active-high;
63 pinctrl-names = "default";
64 pinctrl-0 = <&emmc_ldo_en_default_mode>;
65 };
66
67 /*
68 * External Ricoh "TSP" regulator for the touchscreen.
69 * One GPIO line controls two voltages of 3.3V and 1.8V
70 * this line is known as "TSP_LDO_ON1" in the schematics.
71 */
72 ldo_tsp_3v3_reg: regulator-gpio-tsp-ldo-3v3 {
73 compatible = "regulator-fixed";
74 /* Supplied in turn by VBAT */
75 regulator-name = "LDO_TSP_A3V3";
76 regulator-min-microvolt = <3300000>;
77 regulator-max-microvolt = <3300000>;
78 /* GPIO94 controls this regulator */
79 gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>;
80 /* 70 ms power-on delay */
81 startup-delay-us = <70000>;
82 enable-active-high;
83 pinctrl-names = "default";
84 pinctrl-0 = <&tsp_ldo_en_default_mode>;
85 };
86 ldo_tsp_1v8_reg: regulator-gpio-tsp-ldo-1v8 {
87 compatible = "regulator-fixed";
88 /* Supplied in turn by VBAT */
89 regulator-name = "VREG_TSP_1V8";
90 regulator-min-microvolt = <1800000>;
91 regulator-max-microvolt = <1800000>;
92 /* GPIO94 controls this regulator */
93 gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>;
94 /* 70 ms power-on delay */
95 startup-delay-us = <70000>;
96 enable-active-high;
97 pinctrl-names = "default";
98 pinctrl-0 = <&tsp_ldo_en_default_mode>;
99 };
100
101 /*
102 * External Ricoh "TSP" regulator for the touchkeys.
103 * Two GPIO lines controls two voltages of 3.3V and 1.8V
104 * TSP_LDO_ON2 controls VREG_TOUCHKEY_1V8
105 * EN_LED_LDO controls VREG_KLED_3V3 (key LED)
106 */
107 ldo_kled_3v3_reg: regulator-gpio-vreg-kled-3v3 {
108 compatible = "regulator-fixed";
109 /* Supplied in turn by VBAT */
110 regulator-name = "VREG_KLED_3V3";
111 regulator-min-microvolt = <3300000>;
112 regulator-max-microvolt = <3300000>;
113 /* GPIO68 controls this regulator */
114 gpio = <&gpio2 4 GPIO_ACTIVE_HIGH>;
115 /* 70 ms power-on delay */
116 startup-delay-us = <70000>;
117 enable-active-high;
118 pinctrl-names = "default";
119 pinctrl-0 = <&en_led_ldo_default_mode>;
120 };
121 ldo_touchkey_1v8_reg: regulator-gpio-vreg-touchkey-1v8 {
122 compatible = "regulator-fixed";
123 /* Supplied in turn by VBAT */
124 regulator-name = "VREG_TOUCHKEY_1V8";
125 regulator-min-microvolt = <1800000>;
126 regulator-max-microvolt = <1800000>;
127 /* GPIO89 controls this regulator */
128 gpio = <&gpio2 25 GPIO_ACTIVE_HIGH>;
129 /* 70 ms power-on delay */
130 startup-delay-us = <70000>;
131 enable-active-high;
132 pinctrl-names = "default";
133 pinctrl-0 = <&tsp_ldo_on2_default_mode>;
134 };
135
136
137 /*
138 * External Ricoh RP152L010B-TR LCD LDO regulator for the display.
139 * LCD_PWR_EN controls a 3.0V and 1.8V output.
140 */
141 lcd_3v0_reg: regulator-gpio-lcd-3v0 {
142 compatible = "regulator-fixed";
143 /* Supplied in turn by VBAT */
144 regulator-name = "VREG_LCD_3V0";
145 regulator-min-microvolt = <3000000>;
146 regulator-max-microvolt = <3000000>;
147 /* GPIO219 controls this regulator */
148 gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
149 enable-active-high;
150 pinctrl-names = "default";
151 pinctrl-0 = <&lcd_pwr_en_default_mode>;
152 };
153 lcd_1v8_reg: regulator-gpio-lcd-1v8 {
154 compatible = "regulator-fixed";
155 /* Supplied in turn by VBAT */
156 regulator-name = "VREG_LCD_1V8";
157 regulator-min-microvolt = <1800000>;
158 regulator-max-microvolt = <1800000>;
159 /* GPIO219 controls this regulator */
160 gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
161 enable-active-high;
162 pinctrl-names = "default";
163 pinctrl-0 = <&lcd_pwr_en_default_mode>;
164 };
165
166 /*
167 * This regulator is a GPIO line that drives the Broadcom WLAN
168 * line WL_REG_ON high and enables the internal regulators
169 * inside the chip. Unfortunatley it is erroneously named
170 * WLAN_RST_N on the schematic but it is not a reset line.
171 *
172 * The voltage specified here is only used to determine the OCR mask,
173 * the for the SDIO connector, the chip is actually connected
174 * directly to VBAT.
175 */
176 wl_reg: regulator-gpio-wlan {
177 compatible = "regulator-fixed";
178 regulator-name = "WL_REG_ON";
179 regulator-min-microvolt = <3000000>;
180 regulator-max-microvolt = <3000000>;
181 startup-delay-us = <100000>;
182 /* GPIO215 (WLAN_RST_N to WL_REG_ON) */
183 gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>;
184 enable-active-high;
185 pinctrl-names = "default";
186 pinctrl-0 = <&wlan_ldo_en_default>;
187 };
188
189
190 gpio-keys {
191 compatible = "gpio-keys";
192 pinctrl-names = "default";
193 pinctrl-0 = <&gpio_keys_default_mode>;
194
195 button-home {
196 linux,code = <KEY_HOME>;
197 label = "HOME";
198 /* GPIO91 */
199 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
200 };
201 button-volup {
202 linux,code = <KEY_VOLUMEUP>;
203 label = "VOL+";
204 /* GPIO67 */
205 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
206 };
207 button-voldown {
208 linux,code = <KEY_VOLUMEDOWN>;
209 label = "VOL-";
210 /* GPIO92 */
211 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
212 };
213 };
214
215 /* Richtek RT8515GQW Flash LED Driver IC */
216 flash {
217 compatible = "richtek,rt8515";
218 /* GPIO 140 */
219 enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
220 /* GPIO 141 */
221 ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
222 /*
223 * RFS is 16 kOhm and RTS is 100 kOhm giving
224 * the flash max current 343mA and torch max
225 * current 55 mA.
226 */
227 richtek,rfs-ohms = <16000>;
228 richtek,rts-ohms = <100000>;
229 pinctrl-names = "default";
230 pinctrl-0 = <&gpio_flash_default_mode>;
231
232 led {
233 function = LED_FUNCTION_FLASH;
234 color = <LED_COLOR_ID_WHITE>;
235 flash-max-timeout-us = <250000>;
236 flash-max-microamp = <343750>;
237 led-max-microamp = <55000>;
238 };
239 };
240
241 /* Bit-banged I2C on GPIO143 and GPIO144 also called "SUBPMU I2C" */
242 i2c-gpio-0 {
243 compatible = "i2c-gpio";
244 sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
245 scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
246 pinctrl-names = "default";
247 pinctrl-0 = <&i2c_gpio_0_default>;
248 #address-cells = <1>;
249 #size-cells = <0>;
250
251 /* Yamaha YAS530 magnetometer */
252 magnetometer@2e {
253 compatible = "yamaha,yas530";
254 reg = <0x2e>;
255 /* VDD 3V */
256 vdd-supply = <&ab8500_ldo_aux1_reg>;
257 /* IOVDD 1.8V */
258 iovdd-supply = <&ab8500_ldo_aux2_reg>;
259 /* GPIO204 COMPASS_RST_N */
260 reset-gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
261 pinctrl-names = "default";
262 pinctrl-0 = <&yas529_default>;
263 };
264 /* TODO: this should also be used by the NCP6914 Camera power management unit */
265 };
266
267 /*
268 * These pins do have an spi controller, however the controller on
269 * these pins is not the fully featured PL022 SSP/SPI block but the
270 * ST Micro diet "PL023" version. One of the lacking features in
271 * this derivative is 3wire support, so it cannot be used to drive
272 * this panel interface. We have to use GPIO bit-banging instead.
273 */
274 spi {
275 compatible = "spi-gpio";
276 /* Clock on GPIO220 */
277 sck-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>;
278 /* MISO/MOSI on GPIO224 (no separate MISO pin) */
279 mosi-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
280 /* Chip select on GPIO223 */
281 cs-gpios = <&gpio6 31 GPIO_ACTIVE_LOW>;
282 num-chipselects = <1>;
283
284 pinctrl-names = "default";
285 pinctrl-0 = <&spi_gpio_0_default>;
286 #address-cells = <1>;
287 #size-cells = <0>;
288
289 panel@0 {
290 compatible = "samsung,s6e63m0";
291 reg = <0>;
292 vdd3-supply = <&lcd_3v0_reg>;
293 vci-supply = <&lcd_1v8_reg>;
294 /* Reset on GPIO139 */
295 reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
296 pinctrl-names = "default";
297 pinctrl-0 = <&panel_default_mode>;
298 spi-3wire;
299 /* TYPE 3: inverse clock polarity and phase */
300 spi-cpha;
301 spi-cpol;
302
303 port {
304 panel_in: endpoint {
305 remote-endpoint = <&display_out>;
306 };
307 };
308 };
309 };
310
311 /*
312 * Current sense amplifier on the light sensor to convert current to
313 * voltage. We do not know if this is the actual configuration. The
314 * sense resistor value was found by calibrating in a room ambient
315 * light with a second mobile phone light sensor as reference. If you
316 * pry a Janice phone apart and inspect it you may figure this out.
317 */
318 gp2a_shunt: current-sense-shunt {
319 compatible = "current-sense-shunt";
320 io-channels = <&gpadc 0x07>;
321 shunt-resistor-micro-ohms = <15000000>; /* 15 ohms c:a */
322 #io-channel-cells = <0>;
323 io-channel-ranges;
324 };
325
326 /* Bit-banged I2C on GPIO196 and GPIO197 also called "TOUCHKEY_I2C" */
327 i2c-gpio-1 {
328 compatible = "i2c-gpio";
329 sda-gpios = <&gpio6 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
330 scl-gpios = <&gpio6 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
331 clock-frequency = <400000>;
332 pinctrl-names = "default";
333 pinctrl-0 = <&i2c_gpio_1_default>;
334 #address-cells = <1>;
335 #size-cells = <0>;
336
337 touchkey@20 {
338 compatible = "coreriver,tc360-touchkey";
339 reg = <0x20>;
340 vdd-supply = <&ldo_kled_3v3_reg>;
341 vcc-supply = <&ldo_touchkey_1v8_reg>;
342 vddio-supply = <&ldo_touchkey_1v8_reg>;
343
344 /* Interrupt on GPIO 198 */
345 interrupt-parent = <&gpio6>;
346 interrupts = <6 IRQ_TYPE_EDGE_RISING>;
347
348 pinctrl-names = "default";
349 pinctrl-0 = <&touchkey_default_mode>;
350 linux,keycodes = <KEY_MENU KEY_BACK>;
351 };
352 };
353
354 /* Bit-banged I2C on GPIO201 and GPIO202 also called "MOT_I2C" */
355 i2c-gpio-2 {
356 compatible = "i2c-gpio";
357 sda-gpios = <&gpio6 10 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
358 scl-gpios = <&gpio6 9 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
359 pinctrl-names = "default";
360 pinctrl-0 = <&i2c_gpio_2_default>;
361 #address-cells = <1>;
362 #size-cells = <0>;
363 /* TODO: add the Immersion ISA1200 I2C device here */
364 };
365
366 /* Bit-banged I2C on GPIO151 and GPIO152 also called "NFC_I2C" */
367 i2c-gpio-3 {
368 compatible = "i2c-gpio";
369 sda-gpios = <&gpio4 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
370 scl-gpios = <&gpio4 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
371 pinctrl-names = "default";
372 pinctrl-0 = <&i2c_gpio_3_default>;
373 #address-cells = <1>;
374 #size-cells = <0>;
375
376 /* This is only mounted on the GT-I9070P */
377 nfc@2b { /* 0x30? */
378 /* NXP NFC circuit PN544 C1 marked NXP 44501 */
379 compatible = "nxp,pn544-i2c";
380 /* IF0, IF1 high, gives I2C address 0x2B */
381 reg = <0x2b>;
382 clock-frequency = <400000>;
383 /* NFC IRQ on GPIO32 */
384 interrupt-parent = <&gpio1>;
385 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
386 /* GPIO 31 */
387 firmware-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
388 /* GPIO88 */
389 enable-gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>;
390 pinctrl-names = "default";
391 pinctrl-0 = <&pn544_janice_default>;
392 };
393 };
394
395 soc {
396 /* External Micro SD slot */
397 mmc@80126000 {
398 arm,primecell-periphid = <0x10480180>;
399 max-frequency = <50000000>;
400 bus-width = <4>;
401 cap-sd-highspeed;
402 cap-mmc-highspeed;
403 st,sig-dir-cmd;
404 st,sig-dir-dat0;
405 st,sig-dir-dat2;
406 st,sig-pin-fbclk;
407 full-pwr-cycle;
408 /* MMC is powered by AUX3 1.2V .. 2.91V */
409 vmmc-supply = <&ab8500_ldo_aux3_reg>;
410 /* 2.9 V level translator is using AUX3 at 2.9 V as well */
411 vqmmc-supply = <&ab8500_ldo_aux3_reg>;
412 pinctrl-names = "default", "sleep";
413 pinctrl-0 = <&mc0_a_2_default>;
414 pinctrl-1 = <&mc0_a_2_sleep>;
415 cd-gpios = <&gpio6 25 GPIO_ACTIVE_LOW>; // GPIO217
416 status = "okay";
417 };
418
419 /* WLAN SDIO channel */
420 mmc@80118000 {
421 arm,primecell-periphid = <0x10480180>;
422 max-frequency = <50000000>;
423 bus-width = <4>;
424 non-removable;
425 cap-sd-highspeed;
426 pinctrl-names = "default", "sleep";
427 pinctrl-0 = <&mc1_a_2_default>;
428 pinctrl-1 = <&mc1_a_2_sleep>;
429 /*
430 * GPIO-controlled voltage enablement: this drives
431 * the WL_REG_ON line high when we use this device.
432 * Represented as regulator to fill OCR mask.
433 */
434 vmmc-supply = <&wl_reg>;
435
436 #address-cells = <1>;
437 #size-cells = <0>;
438 status = "okay";
439
440 wifi@1 {
441 compatible = "brcm,bcm4330-fmac", "brcm,bcm4329-fmac";
442 reg = <1>;
443 /* GPIO216 WL_HOST_WAKE */
444 interrupt-parent = <&gpio6>;
445 interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
446 interrupt-names = "host-wake";
447 pinctrl-names = "default";
448 pinctrl-0 = <&wlan_default_mode>;
449 };
450 };
451
452 /* eMMC */
453 mmc@80005000 {
454 arm,primecell-periphid = <0x10480180>;
455 max-frequency = <50000000>;
456 bus-width = <8>;
457 non-removable;
458 cap-mmc-highspeed;
459 mmc-ddr-1_8v;
460 no-sdio;
461 no-sd;
462 vmmc-supply = <&ldo_3v3_reg>;
463 pinctrl-names = "default", "sleep";
464 pinctrl-0 = <&mc2_a_1_default>;
465 pinctrl-1 = <&mc2_a_1_sleep>;
466 status = "okay";
467 };
468
469 /* GBF (Bluetooth) UART */
470 uart@80120000 {
471 pinctrl-names = "default", "sleep";
472 pinctrl-0 = <&u0_a_1_default>;
473 pinctrl-1 = <&u0_a_1_sleep>;
474 status = "okay";
475
476 bluetooth {
477 /* BCM4330B1 actually */
478 compatible = "brcm,bcm4330-bt";
479 /* GPIO222 rail BT_VREG_EN to BT_REG_ON */
480 shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
481 /* BT_WAKE on GPIO199 */
482 device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
483 /* BT_HOST_WAKE on GPIO97 */
484 /* FIXME: convert to interrupt */
485 host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
486 /* BT_RST_N on GPIO209 */
487 reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>;
488 pinctrl-names = "default";
489 pinctrl-0 = <&bluetooth_default_mode>;
490 };
491 };
492
493 /* GPS UART */
494 uart@80121000 {
495 status = "okay";
496 pinctrl-names = "default", "sleep";
497 /* CTS/RTS is not used, CTS is repurposed as GPIO */
498 pinctrl-0 = <&u1rxtx_a_1_default>;
499 pinctrl-1 = <&u1rxtx_a_1_sleep>;
500
501 gnss {
502 /*
503 * The Low Noise Amplifier (LNA) power and enablement is controlled
504 * autonomously by the GSD4t.
505 * Janice has a SiRFstarIV-based GSD4t
506 * Golden has a SiRFstarV 5t-based CSRG05TA03-ICJE-R.
507 */
508 compatible = "csr,gsd4t";
509 /* GPS_RSTN on GPIO21 */
510 reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
511 /* GPS_ON_OFF on GPIO96 */
512 sirf,onoff-gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>;
513 /* GPS_1V8 (VSMPS2) */
514 vcc-supply = <&db8500_vsmps2_reg>;
515 pinctrl-names = "default";
516 pinctrl-0 = <&gsd4t_janice_default>;
517 /* According to /etc/sirfgps.conf */
518 current-speed = <460800>;
519 };
520 };
521
522 /* Debugging console UART connected to TSU6111RSVR (FSA880) */
523 uart@80007000 {
524 status = "okay";
525 pinctrl-names = "default", "sleep";
526 pinctrl-0 = <&u2rxtx_c_1_default>;
527 pinctrl-1 = <&u2rxtx_c_1_sleep>;
528 };
529
530 prcmu@80157000 {
531 ab8500 {
532 phy {
533 pinctrl-names = "default", "sleep";
534 pinctrl-0 = <&usb_a_1_default>;
535 pinctrl-1 = <&usb_a_1_sleep>;
536 };
537
538 ab8500_fg {
539 line-impedance-micro-ohms = <15000>;
540 };
541
542 regulator {
543 ab8500_ldo_aux1 {
544 /* Used for VDD for sensors */
545 regulator-name = "V-SENSORS-VDD";
546 regulator-min-microvolt = <3000000>;
547 regulator-max-microvolt = <3000000>;
548 };
549
550 ab8500_ldo_aux2 {
551 /* Used for VIO for sensors */
552 regulator-name = "V-SENSORS-VIO";
553 regulator-min-microvolt = <1800000>;
554 regulator-max-microvolt = <1800000>;
555 };
556
557 ab8500_ldo_aux3 {
558 /* Used for voltage for external MMC/SD card */
559 regulator-name = "V-MMC-SD";
560 regulator-min-microvolt = <1200000>;
561 regulator-max-microvolt = <2910000>;
562 };
563 };
564 };
565 };
566
567 /* I2C0 */
568 i2c@80004000 {
569 status = "okay";
570 pinctrl-names = "default", "sleep";
571 pinctrl-0 = <&i2c0_a_1_default>;
572 pinctrl-1 = <&i2c0_a_1_sleep>;
573
574 proximity@44 {
575 /* Janice has the GP2AP002A00F with light sensor */
576 compatible = "sharp,gp2ap002a00f";
577 clock-frequency = <400000>;
578 reg = <0x44>;
579
580 interrupt-parent = <&gpio4>;
581 interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
582 vdd-supply = <&ab8500_ldo_aux1_reg>;
583 vio-supply = <&ab8500_ldo_aux2_reg>;
584 /* ADC channel AUX2 to read ALSOUT ambient light sensor out */
585 io-channels = <&gp2a_shunt>;
586 io-channel-names = "alsout";
587 pinctrl-names = "default";
588 pinctrl-0 = <&gp2ap002_janice_default>;
589 /* B1 mode (arch/arm/mach-ux500/include/mach/gp2a.h) */
590 sharp,proximity-far-hysteresis = /bits/ 8 <0x40>;
591 sharp,proximity-close-hysteresis = /bits/ 8 <0x0f>;
592 };
593 };
594
595 /* I2C1 on GPIO16 and GPIO17 also called "MUS I2C" */
596 i2c@80122000 {
597 status = "okay";
598 pinctrl-names = "default","sleep";
599 pinctrl-0 = <&i2c1_b_2_default>;
600 pinctrl-1 = <&i2c1_b_2_sleep>;
601
602 /* Texas Instruments TSU6111 micro USB switch */
603 usb-switch@25 {
604 compatible = "ti,tsu6111";
605 reg = <0x25>;
606 /* Interrupt JACK_INT_N on GPIO95 */
607 interrupt-parent = <&gpio2>;
608 interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
609 pinctrl-names = "default";
610 pinctrl-0 = <&tsu6111_janice_default>;
611 };
612 };
613
614 /* I2C2 on GPIO10 and GPIO11 also called "SENSORS I2C" */
615 i2c@80128000 {
616 status = "okay";
617 pinctrl-names = "default", "sleep";
618 pinctrl-0 = <&i2c2_b_2_default>;
619 pinctrl-1 = <&i2c2_b_2_sleep>;
620
621 gyroscope@68 {
622 compatible = "invensense,mpu3050";
623 reg = <0x68>;
624 /* GPIO226 interrupt */
625 interrupt-parent = <&gpio7>;
626 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
627 /* FIXME: no idea about this */
628 mount-matrix = "1", "0", "0",
629 "0", "1", "0",
630 "0", "0", "1";
631 vlogic-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
632 vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
633 pinctrl-names = "default";
634 pinctrl-0 = <&mpu3050_janice_default>;
635
636 /*
637 * The MPU-3050 acts as a hub for the
638 * accelerometer.
639 */
640 i2c-gate {
641 #address-cells = <1>;
642 #size-cells = <0>;
643
644 /* Bosch BMA222 accelerometer */
645 accelerometer@8 {
646 compatible = "bosch,bma222";
647 reg = <0x08>;
648 mount-matrix = "0", "-1", "0",
649 "1", "0", "0",
650 "0", "0", "1";
651 vddio-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
652 vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
653 };
654 };
655 };
656 };
657
658 /* I2C3 */
659 i2c@80110000 {
660 status = "okay";
661
662 pinctrl-names = "default", "sleep";
663 pinctrl-0 = <&i2c3_c_2_default>;
664 pinctrl-1 = <&i2c3_c_2_sleep>;
665
666 /* Atmel mXT224E touchscreen */
667 touchscreen@4a {
668 compatible = "atmel,maxtouch";
669 reg = <0x4a>;
670 /* GPIO218 (TSP_INT_1V8) */
671 interrupt-parent = <&gpio6>;
672 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
673 /* VDDA is "analog supply", 2.57-3.47 V */
674 vdda-supply = <&ldo_tsp_3v3_reg>;
675 /* VDD is "digital supply" 1.71-3.47V */
676 vdd-supply = <&ldo_tsp_1v8_reg>;
677 pinctrl-names = "default";
678 pinctrl-0 = <&tsp_default>;
679 };
680 };
681
682 mcde@a0350000 {
683 status = "okay";
684 pinctrl-names = "default";
685 pinctrl-0 = <&dpi_default_mode>;
686
687 port {
688 display_out: endpoint {
689 remote-endpoint = <&panel_in>;
690 };
691 };
692 };
693 };
694};
695
696&pinctrl {
697 /*
698 * This extends the MC0_A_2 default config to include
699 * the card detect GPIO217 line.
700 */
701 sdi0 {
702 mc0_a_2_default {
703 default_cfg4 {
704 pins = "GPIO217_AH12"; /* card detect */
705 ste,config = <&gpio_in_pd>;
706 };
707 };
708 };
709 mcde {
710 dpi_default_mode: dpi_default {
711 default_mux1 {
712 /* Mux in all the data lines */
713 function = "lcd";
714 groups =
715 /* Data lines D0-D7 GPIO70..GPIO77 */
716 "lcd_d0_d7_a_1",
717 /* Data lines D8-D11 GPIO78..GPIO81 */
718 "lcd_d8_d11_a_1",
719 /* Data lines D12-D15 GPIO82..GPIO85 */
720 "lcd_d12_d15_a_1",
721 /* Data lines D16-D23 GPIO161..GPIO168 */
722 "lcd_d16_d23_b_1";
723 };
724 default_mux2 {
725 function = "lcda";
726 /* Clock line on GPIO150, DE, VSO, HSO on GPIO169..GPIO171 */
727 groups = "lcdaclk_b_1", "lcda_b_1";
728 };
729 /* Input, no pull-up is the default state for pins used for an alt function */
730 default_cfg1 {
731 pins = "GPIO150_C14", "GPIO169_D22", "GPIO170_C23", "GPIO171_D23";
732 ste,config = <&in_nopull>;
733 };
734 };
735 };
736 /* GPIO for panel reset control */
737 panel {
738 panel_default_mode: panel_default {
739 janice_cfg1 {
740 /* Reset line */
741 pins = "GPIO139_C9";
742 ste,config = <&gpio_out_lo>;
743 };
744 };
745 };
746 /* GPIO that enables the LDO regulator for the eMMC */
747 emmc-ldo {
748 emmc_ldo_en_default_mode: emmc_ldo_default {
749 /* LDO enable on GPIO6 */
750 janice_cfg1 {
751 pins = "GPIO6_AF6";
752 ste,config = <&gpio_out_hi>;
753 };
754 };
755 };
756 /* GPIO that enables the LDO regulator for the touchscreen */
757 tsp-ldo {
758 tsp_ldo_en_default_mode: tsp_ldo_default {
759 /* LDO enable on GPIO94 */
760 janice_cfg1 {
761 pins = "GPIO94_D7";
762 ste,config = <&gpio_out_hi>;
763 };
764 };
765 };
766 /* GPIO that enables the LDO regulator for the key LED */
767 key-led {
768 en_led_ldo_default_mode: en_led_ldo_default {
769 /* EN_LED_LDO on GPIO68 */
770 janice_cfg1 {
771 pins = "GPIO68_E1";
772 ste,config = <&gpio_out_hi>;
773 };
774 };
775 };
776 /* GPIO that enables the LDO regulator for the touchkeys */
777 touchkey-ldo {
778 tsp_ldo_on2_default_mode: tsp_ldo_on2_default {
779 /* TSP_LDO_ON2 on GPIO89 */
780 janice_cfg1 {
781 pins = "GPIO89_E6";
782 ste,config = <&gpio_out_lo>;
783 };
784 };
785 };
786 touchkey {
787 touchkey_default_mode: touchkey_default {
788 janice_cfg1 {
789 /* Interrupt */
790 pins = "GPIO198_AG25";
791 ste,config = <&gpio_in_nopull>;
792 };
793 janice_cfg2 {
794 /* Reset, actually completely unused (not routed) */
795 pins = "GPIO205_AG23";
796 ste,config = <&gpio_in_pd>;
797 };
798 };
799 };
800 /* GPIO that enabled the LDO regulator for the LCD display */
801 lcd-ldo {
802 lcd_pwr_en_default_mode: lcd_pwr_en_default {
803 /* LCD_PWR_EN on GPIO219 */
804 janice_cfg1 {
805 pins = "GPIO219_AG10";
806 ste,config = <&gpio_out_hi>;
807 };
808 };
809 };
810 /* GPIO that enables the WLAN internal LDO regulators */
811 wlan-ldo {
812 wlan_ldo_en_default: wlan_ldo_default {
813 /* GPIO215 named WLAN_RST_N */
814 janice_cfg1 {
815 pins = "GPIO215_AH13";
816 ste,config = <&gpio_out_lo>;
817 };
818 };
819 };
820 /* Flash and torch */
821 flash {
822 gpio_flash_default_mode: flash_default {
823 janice_cfg1 {
824 pins = "GPIO140_B11", "GPIO141_C12";
825 ste,config = <&gpio_out_lo>;
826 };
827 };
828 };
829 /* GPIO keys */
830 gpio-keys {
831 gpio_keys_default_mode: gpio_keys_default {
832 skomer_cfg1 {
833 pins = "GPIO67_G2", /* VOL UP */
834 "GPIO91_B6", /* HOME */
835 "GPIO92_D6"; /* VOL DOWN */
836 ste,config = <&gpio_in_pu>;
837 };
838 };
839 };
840 /* Interrupt line for the Atmel MXT228 touchscreen */
841 tsp {
842 tsp_default: tsp_default {
843 janice_cfg1 {
844 pins = "GPIO218_AH11"; /* TSP_INT_1V8 */
845 ste,config = <&gpio_in_nopull>;
846 };
847 };
848 };
849 /* Reset line for the Yamaha YAS529 magnetometer */
850 yas529 {
851 yas529_default: yas529_janice {
852 janice_cfg1 {
853 pins = "GPIO204_AF23";
854 ste,config = <&gpio_out_hi>;
855 };
856 };
857 };
858 /* Interrupt line for light/proximity sensor GP2AP002 */
859 gp2ap002 {
860 gp2ap002_janice_default: gp2ap002_janice {
861 janice_cfg1 {
862 pins = "GPIO146_D13";
863 ste,config = <&gpio_in_nopull>;
864 };
865 };
866 };
867 /* Interrupt line for Invensense MPU3050 gyroscope */
868 mpu3050 {
869 mpu3050_janice_default: mpu3050_janice {
870 janice_cfg1 {
871 /* GPIO226 used for IRQ */
872 pins = "GPIO226_AF8";
873 ste,config = <&gpio_in_nopull>;
874 };
875 };
876 };
877 /* GPIO-based I2C bus for magnetometer and NCP6914 */
878 i2c-gpio-0 {
879 i2c_gpio_0_default: i2c_gpio_0 {
880 janice_cfg1 {
881 pins = "GPIO143_D12", "GPIO144_B13";
882 ste,config = <&gpio_in_nopull>;
883 };
884 };
885 };
886 /* GPIO-based I2C bus for the Cypress touchkeys */
887 i2c-gpio-1 {
888 i2c_gpio_1_default: i2c_gpio_1 {
889 janice_cfg1 {
890 pins = "GPIO196_AG26", "GPIO197_AH24";
891 ste,config = <&gpio_in_nopull>;
892 };
893 };
894 };
895 /* GPIO-based I2C bus for the Immersion ISA1200 */
896 i2c-gpio-2 {
897 i2c_gpio_2_default: i2c_gpio_2 {
898 janice_cfg1 {
899 pins = "GPIO201_AF24", "GPIO202_AF25";
900 ste,config = <&gpio_in_nopull>;
901 };
902 };
903 };
904 /* GPIO-based I2C bus for the NFC */
905 i2c-gpio-3 {
906 i2c_gpio_3_default: i2c_gpio_3 {
907 janice_cfg1 {
908 pins = "GPIO151_D17", "GPIO152_D16";
909 ste,config = <&gpio_in_nopull>;
910 };
911 };
912 };
913 /* GPIO-based SPI bus for the display */
914 spi-gpio-0 {
915 spi_gpio_0_default: spi_gpio_0 {
916 janice_cfg1 {
917 pins = "GPIO220_AH10", "GPIO223_AH9", "GPIO224_AG9";
918 ste,config = <&gpio_out_hi>;
919 };
920 /* This pin is unused but belongs with this SPI block */
921 janice_cfg2 {
922 pins = "GPIO225_AG8";
923 ste,config = <&in_pd>;
924 };
925 };
926 };
927 wlan {
928 wlan_default_mode: wlan_default {
929 /* GPIO216 for WL_HOST_WAKE */
930 janice_cfg2 {
931 pins = "GPIO216_AG12";
932 ste,config = <&gpio_in_pd>;
933 };
934 };
935 };
936 bluetooth {
937 bluetooth_default_mode: bluetooth_default {
938 /* GPIO199 BT_WAKE and GPIO222 BT_VREG_ON */
939 janice_cfg1 {
940 pins = "GPIO199_AH23", "GPIO222_AJ9";
941 ste,config = <&gpio_out_lo>;
942 };
943 /* GPIO97 BT_HOST_WAKE */
944 janice_cfg2 {
945 pins = "GPIO97_D9";
946 ste,config = <&gpio_in_nopull>;
947 };
948 /* GPIO209 BT_RST_N */
949 janice_cfg3 {
950 pins = "GPIO209_AG15";
951 ste,config = <&gpio_out_hi>;
952 };
953 };
954 };
955 /* Interrupt line for TI TSU6111 Micro USB switch */
956 tsu6111 {
957 tsu6111_janice_default: tsu6111_janice {
958 janice_cfg1 {
959 /* GPIO95 used for IRQ */
960 pins = "GPIO95_E8";
961 ste,config = <&gpio_in_nopull>;
962 };
963 };
964 };
965 nfc {
966 pn544_janice_default: pn544_janice {
967 /* Interrupt line */
968 janice_cfg1 {
969 pins = "GPIO32_V2";
970 ste,config = <&gpio_in_nopull>;
971 };
972 /* Enable and firmware GPIOs */
973 janice_cfg2 {
974 pins = "GPIO31_V3", "GPIO88_C4";
975 ste,config = <&gpio_out_lo>;
976 };
977 };
978 };
979 gsd4t {
980 gsd4t_janice_default: gsd4t_janice {
981 /* Reset line, start out asserted */
982 janice_cfg1 {
983 pins = "GPIO21_AB3";
984 ste,config = <&gpio_out_lo>;
985 };
986 /* GPS_ON_OFF, start out deasserted (off) */
987 janice_cfg2 {
988 pins = "GPIO96_D8";
989 ste,config = <&gpio_out_lo>;
990 };
991 /* Unused power enablement line, used in R0.0 and R0.1 boards */
992 janice_cfg3 {
993 pins = "GPIO86_C6";
994 ste,config = <&gpio_in_pd>;
995 };
996 };
997 };
998};
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Devicetree for the Samsung Galaxy S Advance GT-I9070 also known as Janice.
4 */
5
6/dts-v1/;
7#include "ste-db8500.dtsi"
8#include "ste-ab8500.dtsi"
9#include "ste-dbx5x0-pinctrl.dtsi"
10#include <dt-bindings/gpio/gpio.h>
11#include <dt-bindings/leds/common.h>
12#include <dt-bindings/input/input.h>
13#include <dt-bindings/interrupt-controller/irq.h>
14
15/ {
16 model = "Samsung Galaxy S Advance (GT-I9070)";
17 compatible = "samsung,janice", "st-ericsson,u8500";
18
19 chosen {
20 stdout-path = &serial2;
21 };
22
23 /* External LDO for eMMC LDO VMEM_3V3 controlled by GPIO6 */
24 ldo_3v3_reg: regulator-gpio-ldo-3v3 {
25 compatible = "regulator-fixed";
26 /* Supplied in turn by VBAT */
27 regulator-name = "VMEM_3V3";
28 regulator-min-microvolt = <3300000>;
29 regulator-max-microvolt = <3300000>;
30 gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>;
31 startup-delay-us = <5000>; // FIXME
32 enable-active-high;
33 pinctrl-names = "default";
34 pinctrl-0 = <&emmc_ldo_en_default_mode>;
35 };
36
37 /*
38 * External Ricoh "TSP" regulator for the touchscreen.
39 * One GPIO line controls two voltages of 3.3V and 1.8V
40 * this line is known as "TSP_LDO_ON1" in the schematics.
41 */
42 ldo_tsp_3v3_reg: regulator-gpio-tsp-ldo-3v3 {
43 compatible = "regulator-fixed";
44 /* Supplied in turn by VBAT */
45 regulator-name = "LDO_TSP_A3V3";
46 regulator-min-microvolt = <3300000>;
47 regulator-max-microvolt = <3300000>;
48 /* GPIO94 controls this regulator */
49 gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>;
50 /* 70 ms power-on delay */
51 startup-delay-us = <70000>;
52 enable-active-high;
53 pinctrl-names = "default";
54 pinctrl-0 = <&tsp_ldo_en_default_mode>;
55 };
56 ldo_tsp_1v8_reg: regulator-gpio-tsp-ldo-1v8 {
57 compatible = "regulator-fixed";
58 /* Supplied in turn by VBAT */
59 regulator-name = "VREG_TSP_1V8";
60 regulator-min-microvolt = <1800000>;
61 regulator-max-microvolt = <1800000>;
62 /* GPIO94 controls this regulator */
63 gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>;
64 /* 70 ms power-on delay */
65 startup-delay-us = <70000>;
66 enable-active-high;
67 pinctrl-names = "default";
68 pinctrl-0 = <&tsp_ldo_en_default_mode>;
69 };
70
71 /*
72 * External Ricoh "TSP" regulator for the touchkeys.
73 * Two GPIO lines controls two voltages of 3.3V and 1.8V
74 * TSP_LDO_ON2 controls VREG_TOUCHKEY_1V8
75 * EN_LED_LDO controls VREG_KLED_3V3 (key LED)
76 */
77 ldo_kled_3v3_reg: regulator-gpio-vreg-kled-3v3 {
78 compatible = "regulator-fixed";
79 /* Supplied in turn by VBAT */
80 regulator-name = "VREG_KLED_3V3";
81 regulator-min-microvolt = <3300000>;
82 regulator-max-microvolt = <3300000>;
83 /* GPIO68 controls this regulator */
84 gpio = <&gpio2 4 GPIO_ACTIVE_HIGH>;
85 /* 70 ms power-on delay */
86 startup-delay-us = <70000>;
87 enable-active-high;
88 pinctrl-names = "default";
89 pinctrl-0 = <&en_led_ldo_default_mode>;
90 };
91 ldo_touchkey_1v8_reg: regulator-gpio-vreg-touchkey-1v8 {
92 compatible = "regulator-fixed";
93 /* Supplied in turn by VBAT */
94 regulator-name = "VREG_TOUCHKEY_1V8";
95 regulator-min-microvolt = <1800000>;
96 regulator-max-microvolt = <1800000>;
97 /* GPIO89 controls this regulator */
98 gpio = <&gpio2 25 GPIO_ACTIVE_HIGH>;
99 /* 70 ms power-on delay */
100 startup-delay-us = <70000>;
101 enable-active-high;
102 pinctrl-names = "default";
103 pinctrl-0 = <&tsp_ldo_on2_default_mode>;
104 };
105
106
107 /*
108 * External Ricoh RP152L010B-TR LCD LDO regulator for the display.
109 * LCD_PWR_EN controls a 3.0V and 1.8V output.
110 */
111 lcd_3v0_reg: regulator-gpio-lcd-3v0 {
112 compatible = "regulator-fixed";
113 /* Supplied in turn by VBAT */
114 regulator-name = "VREG_LCD_3V0";
115 regulator-min-microvolt = <3000000>;
116 regulator-max-microvolt = <3000000>;
117 /* GPIO219 controls this regulator */
118 gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
119 enable-active-high;
120 pinctrl-names = "default";
121 pinctrl-0 = <&lcd_pwr_en_default_mode>;
122 };
123 lcd_1v8_reg: regulator-gpio-lcd-1v8 {
124 compatible = "regulator-fixed";
125 /* Supplied in turn by VBAT */
126 regulator-name = "VREG_LCD_1V8";
127 regulator-min-microvolt = <1800000>;
128 regulator-max-microvolt = <1800000>;
129 /* GPIO219 controls this regulator */
130 gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
131 enable-active-high;
132 pinctrl-names = "default";
133 pinctrl-0 = <&lcd_pwr_en_default_mode>;
134 };
135
136 /*
137 * This regulator is a GPIO line that drives the Broadcom WLAN
138 * line WL_REG_ON high and enables the internal regulators
139 * inside the chip. Unfortunatley it is erroneously named
140 * WLAN_RST_N on the schematic but it is not a reset line.
141 *
142 * The voltage specified here is only used to determine the OCR mask,
143 * the for the SDIO connector, the chip is actually connected
144 * directly to VBAT.
145 */
146 wl_reg: regulator-gpio-wlan {
147 compatible = "regulator-fixed";
148 regulator-name = "WL_REG_ON";
149 regulator-min-microvolt = <3000000>;
150 regulator-max-microvolt = <3000000>;
151 startup-delay-us = <100000>;
152 /* GPIO215 (WLAN_RST_N to WL_REG_ON) */
153 gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>;
154 enable-active-high;
155 pinctrl-names = "default";
156 pinctrl-0 = <&wlan_ldo_en_default>;
157 };
158
159
160 gpio-keys {
161 compatible = "gpio-keys";
162 pinctrl-names = "default";
163 pinctrl-0 = <&gpio_keys_default_mode>;
164
165 button-home {
166 linux,code = <KEY_HOME>;
167 label = "HOME";
168 /* GPIO91 */
169 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
170 };
171 button-volup {
172 linux,code = <KEY_VOLUMEUP>;
173 label = "VOL+";
174 /* GPIO67 */
175 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
176 };
177 button-voldown {
178 linux,code = <KEY_VOLUMEDOWN>;
179 label = "VOL-";
180 /* GPIO92 */
181 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
182 };
183 };
184
185 /* Richtek RT8515GQW Flash LED Driver IC */
186 flash {
187 compatible = "richtek,rt8515";
188 /* GPIO 140 */
189 enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
190 /* GPIO 141 */
191 ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
192 /*
193 * RFS is 16 kOhm and RTS is 100 kOhm giving
194 * the flash max current 343mA and torch max
195 * current 55 mA.
196 */
197 richtek,rfs-ohms = <16000>;
198 richtek,rts-ohms = <100000>;
199 pinctrl-names = "default";
200 pinctrl-0 = <&gpio_flash_default_mode>;
201
202 led {
203 function = LED_FUNCTION_FLASH;
204 color = <LED_COLOR_ID_WHITE>;
205 flash-max-timeout-us = <250000>;
206 flash-max-microamp = <343750>;
207 led-max-microamp = <55000>;
208 };
209 };
210
211 /* Bit-banged I2C on GPIO143 and GPIO144 also called "SUBPMU I2C" */
212 i2c-gpio-0 {
213 compatible = "i2c-gpio";
214 sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
215 scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
216 pinctrl-names = "default";
217 pinctrl-0 = <&i2c_gpio_0_default>;
218 #address-cells = <1>;
219 #size-cells = <0>;
220
221 /* Yamaha YAS530 magnetometer */
222 magnetometer@2e {
223 compatible = "yamaha,yas530";
224 reg = <0x2e>;
225 /* VDD 3V */
226 vdd-supply = <&ab8500_ldo_aux1_reg>;
227 /* IOVDD 1.8V */
228 iovdd-supply = <&ab8500_ldo_aux2_reg>;
229 /* GPIO204 COMPASS_RST_N */
230 reset-gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
231 pinctrl-names = "default";
232 pinctrl-0 = <&yas529_default>;
233 };
234 /* TODO: this should also be used by the NCP6914 Camera power management unit */
235 };
236
237 /*
238 * These pins do have an spi controller, however the controller on
239 * these pins is not the fully featured PL022 SSP/SPI block but the
240 * ST Micro diet "PL023" version. One of the lacking features in
241 * this derivative is 3wire support, so it cannot be used to drive
242 * this panel interface. We have to use GPIO bit-banging instead.
243 */
244 spi-gpio-0 {
245 compatible = "spi-gpio";
246 /* Clock on GPIO220 */
247 sck-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>;
248 /* MISO/MOSI on GPIO224 (no separate MISO pin) */
249 mosi-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
250 /* Chip select on GPIO223 */
251 cs-gpios = <&gpio6 31 GPIO_ACTIVE_LOW>;
252 num-chipselects = <1>;
253
254 pinctrl-names = "default";
255 pinctrl-0 = <&spi_gpio_0_default>;
256 #address-cells = <1>;
257 #size-cells = <0>;
258
259 panel@0 {
260 compatible = "samsung,s6e63m0";
261 reg = <0>;
262 vdd3-supply = <&lcd_3v0_reg>;
263 vci-supply = <&lcd_1v8_reg>;
264 /* Reset on GPIO139 */
265 reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
266 pinctrl-names = "default";
267 pinctrl-0 = <&panel_default_mode>;
268 spi-3wire;
269
270 port {
271 panel_in: endpoint {
272 remote-endpoint = <&display_out>;
273 };
274 };
275 };
276 };
277
278 /*
279 * Current sense amplifier on the light sensor to convert current to
280 * voltage. We do not know if this is the actual configuration. The
281 * sense resistor value was found by calibrating in a room ambient
282 * light with a second mobile phone light sensor as reference. If you
283 * pry a Janice phone apart and inspect it you may figure this out.
284 */
285 gp2a_shunt: current-sense-shunt {
286 compatible = "current-sense-shunt";
287 io-channels = <&gpadc 0x07>;
288 shunt-resistor-micro-ohms = <15000000>; /* 15 ohms c:a */
289 #io-channel-cells = <0>;
290 io-channel-ranges;
291 };
292
293 /* Bit-banged I2C on GPIO196 and GPIO197 also called "TOUCHKEY_I2C" */
294 i2c-gpio-1 {
295 compatible = "i2c-gpio";
296 sda-gpios = <&gpio6 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
297 scl-gpios = <&gpio6 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
298 clock-frequency = <400000>;
299 pinctrl-names = "default";
300 pinctrl-0 = <&i2c_gpio_1_default>;
301 #address-cells = <1>;
302 #size-cells = <0>;
303
304 touchkey@20 {
305 compatible = "coreriver,tc360-touchkey";
306 reg = <0x20>;
307 vdd-supply = <&ldo_kled_3v3_reg>;
308 vcc-supply = <&ldo_touchkey_1v8_reg>;
309 vddio-supply = <&ldo_touchkey_1v8_reg>;
310
311 /* Interrupt on GPIO 198 */
312 interrupt-parent = <&gpio6>;
313 interrupts = <6 IRQ_TYPE_EDGE_RISING>;
314
315 pinctrl-names = "default";
316 pinctrl-0 = <&touchkey_default_mode>;
317 linux,keycodes = <KEY_MENU KEY_BACK>;
318 };
319 };
320
321 /* Bit-banged I2C on GPIO201 and GPIO202 also called "MOT_I2C" */
322 i2c-gpio-2 {
323 compatible = "i2c-gpio";
324 sda-gpios = <&gpio6 10 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
325 scl-gpios = <&gpio6 9 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
326 pinctrl-names = "default";
327 pinctrl-0 = <&i2c_gpio_2_default>;
328 #address-cells = <1>;
329 #size-cells = <0>;
330 /* TODO: add the Immersion ISA1200 I2C device here */
331 };
332
333 /* Bit-banged I2C on GPIO151 and GPIO152 also called "NFC_I2C" */
334 i2c-gpio-3 {
335 compatible = "i2c-gpio";
336 sda-gpios = <&gpio4 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
337 scl-gpios = <&gpio4 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
338 pinctrl-names = "default";
339 pinctrl-0 = <&i2c_gpio_3_default>;
340 #address-cells = <1>;
341 #size-cells = <0>;
342
343 nfc@30 {
344 compatible = "nxp,pn547", "nxp,nxp-nci-i2c";
345 reg = <0x30>;
346 /* NFC IRQ on GPIO32 */
347 interrupt-parent = <&gpio1>;
348 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
349 /* GPIO 31 */
350 firmware-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
351 /* GPIO88 */
352 enable-gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>;
353 pinctrl-names = "default";
354 pinctrl-0 = <&pn547_janice_default>;
355 };
356 };
357
358 soc {
359 /* External Micro SD slot */
360 mmc@80126000 {
361 arm,primecell-periphid = <0x10480180>;
362 max-frequency = <50000000>;
363 bus-width = <4>;
364 cap-sd-highspeed;
365 cap-mmc-highspeed;
366 st,sig-dir-cmd;
367 st,sig-dir-dat0;
368 st,sig-dir-dat2;
369 st,sig-pin-fbclk;
370 full-pwr-cycle;
371 /* MMC is powered by AUX3 1.2V .. 2.91V */
372 vmmc-supply = <&ab8500_ldo_aux3_reg>;
373 /* 2.9 V level translator is using AUX3 at 2.9 V as well */
374 vqmmc-supply = <&ab8500_ldo_aux3_reg>;
375 pinctrl-names = "default", "sleep";
376 pinctrl-0 = <&mc0_a_2_default>;
377 pinctrl-1 = <&mc0_a_2_sleep>;
378 cd-gpios = <&gpio6 25 GPIO_ACTIVE_LOW>; // GPIO217
379 status = "okay";
380 };
381
382 /* WLAN SDIO channel */
383 mmc@80118000 {
384 arm,primecell-periphid = <0x10480180>;
385 max-frequency = <50000000>;
386 bus-width = <4>;
387 non-removable;
388 cap-sd-highspeed;
389 pinctrl-names = "default", "sleep";
390 pinctrl-0 = <&mc1_a_2_default>;
391 pinctrl-1 = <&mc1_a_2_sleep>;
392 /*
393 * GPIO-controlled voltage enablement: this drives
394 * the WL_REG_ON line high when we use this device.
395 * Represented as regulator to fill OCR mask.
396 */
397 vmmc-supply = <&wl_reg>;
398
399 #address-cells = <1>;
400 #size-cells = <0>;
401 status = "okay";
402
403 wifi@1 {
404 compatible = "brcm,bcm4330-fmac", "brcm,bcm4329-fmac";
405 reg = <1>;
406 /* GPIO216 WL_HOST_WAKE */
407 interrupt-parent = <&gpio6>;
408 interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
409 interrupt-names = "host-wake";
410 pinctrl-names = "default";
411 pinctrl-0 = <&wlan_default_mode>;
412 };
413 };
414
415 /* eMMC */
416 mmc@80005000 {
417 arm,primecell-periphid = <0x10480180>;
418 max-frequency = <50000000>;
419 bus-width = <8>;
420 non-removable;
421 cap-mmc-highspeed;
422 mmc-ddr-1_8v;
423 vmmc-supply = <&ldo_3v3_reg>;
424 pinctrl-names = "default", "sleep";
425 pinctrl-0 = <&mc2_a_1_default>;
426 pinctrl-1 = <&mc2_a_1_sleep>;
427 status = "okay";
428 };
429
430 /* GBF (Bluetooth) UART */
431 uart@80120000 {
432 pinctrl-names = "default", "sleep";
433 pinctrl-0 = <&u0_a_1_default>;
434 pinctrl-1 = <&u0_a_1_sleep>;
435 status = "okay";
436
437 bluetooth {
438 /* BCM4330B1 actually */
439 compatible = "brcm,bcm4330-bt";
440 /* GPIO222 rail BT_VREG_EN to BT_REG_ON */
441 shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
442 /* BT_WAKE on GPIO199 */
443 device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
444 /* BT_HOST_WAKE on GPIO97 */
445 /* FIXME: convert to interrupt */
446 host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
447 /* BT_RST_N on GPIO209 */
448 reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>;
449 pinctrl-names = "default";
450 pinctrl-0 = <&bluetooth_default_mode>;
451 };
452 };
453
454 /* GPS UART */
455 uart@80121000 {
456 status = "okay";
457 pinctrl-names = "default", "sleep";
458 /* CTS/RTS is not used, CTS is repurposed as GPIO */
459 pinctrl-0 = <&u1rxtx_a_1_default>;
460 pinctrl-1 = <&u1rxtx_a_1_sleep>;
461 /* FIXME: add a device for the GPS here */
462 };
463
464 /* Debugging console UART connected to TSU6111RSVR (FSA880) */
465 uart@80007000 {
466 status = "okay";
467 pinctrl-names = "default", "sleep";
468 pinctrl-0 = <&u2rxtx_c_1_default>;
469 pinctrl-1 = <&u2rxtx_c_1_sleep>;
470 };
471
472 prcmu@80157000 {
473 ab8500 {
474 ab8500_usb {
475 pinctrl-names = "default", "sleep";
476 pinctrl-0 = <&usb_a_1_default>;
477 pinctrl-1 = <&usb_a_1_sleep>;
478 };
479
480 ab8500-regulators {
481 ab8500_ldo_aux1 {
482 /* Used for VDD for sensors */
483 regulator-name = "V-SENSORS-VDD";
484 regulator-min-microvolt = <3000000>;
485 regulator-max-microvolt = <3000000>;
486 };
487
488 ab8500_ldo_aux2 {
489 /* Used for VIO for sensors */
490 regulator-name = "V-SENSORS-VIO";
491 regulator-min-microvolt = <1800000>;
492 regulator-max-microvolt = <1800000>;
493 };
494
495 ab8500_ldo_aux3 {
496 /* Used for voltage for external MMC/SD card */
497 regulator-name = "V-MMC-SD";
498 regulator-min-microvolt = <1200000>;
499 regulator-max-microvolt = <2910000>;
500 };
501 };
502 };
503 };
504
505 /* I2C0 */
506 i2c@80004000 {
507 status = "okay";
508 pinctrl-names = "default", "sleep";
509 pinctrl-0 = <&i2c0_a_1_default>;
510 pinctrl-1 = <&i2c0_a_1_sleep>;
511
512 proximity@44 {
513 /* Janice has the GP2AP002A00F with light sensor */
514 compatible = "sharp,gp2ap002a00f";
515 clock-frequency = <400000>;
516 reg = <0x44>;
517
518 interrupt-parent = <&gpio4>;
519 interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
520 vdd-supply = <&ab8500_ldo_aux1_reg>;
521 vio-supply = <&ab8500_ldo_aux2_reg>;
522 /* ADC channel AUX2 to read ALSOUT ambient light sensor out */
523 io-channels = <&gp2a_shunt>;
524 io-channel-names = "alsout";
525 pinctrl-names = "default";
526 pinctrl-0 = <&gp2ap002_janice_default>;
527 /* B1 mode (arch/arm/mach-ux500/include/mach/gp2a.h) */
528 sharp,proximity-far-hysteresis = /bits/ 8 <0x40>;
529 sharp,proximity-close-hysteresis = /bits/ 8 <0x0f>;
530 };
531 };
532
533 /* I2C1 on GPIO16 and GPIO17 also called "MUS I2C" */
534 i2c@80122000 {
535 status = "okay";
536 pinctrl-names = "default","sleep";
537 pinctrl-0 = <&i2c1_b_2_default>;
538 pinctrl-1 = <&i2c1_b_2_sleep>;
539
540 /* Texas Instruments TSU6111 micro USB switch */
541 usb-switch@25 {
542 compatible = "ti,tsu6111";
543 reg = <0x25>;
544 /* Interrupt JACK_INT_N on GPIO95 */
545 interrupt-parent = <&gpio2>;
546 interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
547 pinctrl-names = "default";
548 pinctrl-0 = <&tsu6111_janice_default>;
549 };
550 };
551
552 /* I2C2 on GPIO10 and GPIO11 also called "SENSORS I2C" */
553 i2c@80128000 {
554 status = "okay";
555 pinctrl-names = "default", "sleep";
556 pinctrl-0 = <&i2c2_b_2_default>;
557 pinctrl-1 = <&i2c2_b_2_sleep>;
558
559 gyroscope@68 {
560 compatible = "invensense,mpu3050";
561 reg = <0x68>;
562 /* GPIO226 interrupt */
563 interrupt-parent = <&gpio7>;
564 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
565 /* FIXME: no idea about this */
566 mount-matrix = "1", "0", "0",
567 "0", "1", "0",
568 "0", "0", "1";
569 vlogic-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
570 vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
571 pinctrl-names = "default";
572 pinctrl-0 = <&mpu3050_janice_default>;
573
574 /*
575 * The MPU-3050 acts as a hub for the
576 * accelerometer.
577 */
578 i2c-gate {
579 #address-cells = <1>;
580 #size-cells = <0>;
581
582 /* Bosch BMA222 accelerometer */
583 accelerometer@08 {
584 compatible = "bosch,bma222";
585 reg = <0x08>;
586 mount-matrix = "0", "1", "0",
587 "-1", "0", "0",
588 "0", "0", "-1";
589 vddio-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
590 vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
591 };
592 };
593 };
594 };
595
596 /* I2C3 */
597 i2c@80110000 {
598 status = "okay";
599
600 pinctrl-names = "default", "sleep";
601 pinctrl-0 = <&i2c3_c_2_default>;
602 pinctrl-1 = <&i2c3_c_2_sleep>;
603
604 /* Atmel mXT224E touchscreen */
605 touchscreen@4a {
606 compatible = "atmel,maxtouch";
607 reg = <0x4a>;
608 /* GPIO218 (TSP_INT_1V8) */
609 interrupt-parent = <&gpio6>;
610 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
611 /* VDDA is "analog supply", 2.57-3.47 V */
612 vdda-supply = <&ldo_tsp_3v3_reg>;
613 /* VDD is "digital supply" 1.71-3.47V */
614 vdd-supply = <&ldo_tsp_1v8_reg>;
615 pinctrl-names = "default";
616 pinctrl-0 = <&tsp_default>;
617 };
618 };
619
620 mcde@a0350000 {
621 status = "okay";
622 pinctrl-names = "default";
623 pinctrl-0 = <&dpi_default_mode>;
624
625 port {
626 display_out: endpoint {
627 remote-endpoint = <&panel_in>;
628 };
629 };
630 };
631 };
632};
633
634&pinctrl {
635 /*
636 * This extends the MC0_A_2 default config to include
637 * the card detect GPIO217 line.
638 */
639 sdi0 {
640 mc0_a_2_default {
641 default_cfg4 {
642 pins = "GPIO217_AH12"; /* card detect */
643 ste,config = <&gpio_in_pd>;
644 };
645 };
646 };
647 mcde {
648 dpi_default_mode: dpi_default {
649 default_mux1 {
650 /* Mux in all the data lines */
651 function = "lcd";
652 groups =
653 /* Data lines D0-D7 GPIO70..GPIO77 */
654 "lcd_d0_d7_a_1",
655 /* Data lines D8-D11 GPIO78..GPIO81 */
656 "lcd_d8_d11_a_1",
657 /* Data lines D12-D15 GPIO82..GPIO85 */
658 "lcd_d12_d15_a_1",
659 /* Data lines D16-D23 GPIO161..GPIO168 */
660 "lcd_d16_d23_b_1";
661 };
662 default_mux2 {
663 function = "lcda";
664 /* Clock line on GPIO150, DE, VSO, HSO on GPIO169..GPIO171 */
665 groups = "lcdaclk_b_1", "lcda_b_1";
666 };
667 /* Input, no pull-up is the default state for pins used for an alt function */
668 default_cfg1 {
669 pins = "GPIO150_C14", "GPIO169_D22", "GPIO170_C23", "GPIO171_D23";
670 ste,config = <&in_nopull>;
671 };
672 };
673 };
674 /* GPIO for panel reset control */
675 panel {
676 panel_default_mode: panel_default {
677 janice_cfg1 {
678 /* Reset line */
679 pins = "GPIO139_C9";
680 ste,config = <&gpio_out_lo>;
681 };
682 };
683 };
684 /* GPIO that enables the LDO regulator for the eMMC */
685 emmc-ldo {
686 emmc_ldo_en_default_mode: emmc_ldo_default {
687 /* LDO enable on GPIO6 */
688 janice_cfg1 {
689 pins = "GPIO6_AF6";
690 ste,config = <&gpio_out_hi>;
691 };
692 };
693 };
694 /* GPIO that enables the LDO regulator for the touchscreen */
695 tsp-ldo {
696 tsp_ldo_en_default_mode: tsp_ldo_default {
697 /* LDO enable on GPIO94 */
698 janice_cfg1 {
699 pins = "GPIO94_D7";
700 ste,config = <&gpio_out_hi>;
701 };
702 };
703 };
704 /* GPIO that enables the LDO regulator for the key LED */
705 key-led {
706 en_led_ldo_default_mode: en_led_ldo_default {
707 /* EN_LED_LDO on GPIO68 */
708 janice_cfg1 {
709 pins = "GPIO68_E1";
710 ste,config = <&gpio_out_hi>;
711 };
712 };
713 };
714 /* GPIO that enables the LDO regulator for the touchkeys */
715 touchkey-ldo {
716 tsp_ldo_on2_default_mode: tsp_ldo_on2_default {
717 /* TSP_LDO_ON2 on GPIO89 */
718 janice_cfg1 {
719 pins = "GPIO89_E6";
720 ste,config = <&gpio_out_lo>;
721 };
722 };
723 };
724 touchkey {
725 touchkey_default_mode: touchkey_default {
726 janice_cfg1 {
727 /* Interrupt */
728 pins = "GPIO198_AG25";
729 ste,config = <&gpio_in_nopull>;
730 };
731 janice_cfg2 {
732 /* Reset, actually completely unused (not routed) */
733 pins = "GPIO205_AG23";
734 ste,config = <&gpio_in_pd>;
735 };
736 };
737 };
738 /* GPIO that enabled the LDO regulator for the LCD display */
739 lcd-ldo {
740 lcd_pwr_en_default_mode: lcd_pwr_en_default {
741 /* LCD_PWR_EN on GPIO219 */
742 janice_cfg1 {
743 pins = "GPIO219_AG10";
744 ste,config = <&gpio_out_hi>;
745 };
746 };
747 };
748 /* GPIO that enables the WLAN internal LDO regulators */
749 wlan-ldo {
750 wlan_ldo_en_default: wlan_ldo_default {
751 /* GPIO215 named WLAN_RST_N */
752 janice_cfg1 {
753 pins = "GPIO215_AH13";
754 ste,config = <&gpio_out_lo>;
755 };
756 };
757 };
758 /* Flash and torch */
759 flash {
760 gpio_flash_default_mode: flash_default {
761 janice_cfg1 {
762 pins = "GPIO140_B11", "GPIO141_C12";
763 ste,config = <&gpio_out_lo>;
764 };
765 };
766 };
767 /* GPIO keys */
768 gpio-keys {
769 gpio_keys_default_mode: gpio_keys_default {
770 skomer_cfg1 {
771 pins = "GPIO67_G2", /* VOL UP */
772 "GPIO91_B6", /* HOME */
773 "GPIO92_D6"; /* VOL DOWN */
774 ste,config = <&gpio_in_pu>;
775 };
776 };
777 };
778 /* Interrupt line for the Atmel MXT228 touchscreen */
779 tsp {
780 tsp_default: tsp_default {
781 janice_cfg1 {
782 pins = "GPIO218_AH11"; /* TSP_INT_1V8 */
783 ste,config = <&gpio_in_nopull>;
784 };
785 };
786 };
787 /* Reset line for the Yamaha YAS529 magnetometer */
788 yas529 {
789 yas529_default: yas529_janice {
790 janice_cfg1 {
791 pins = "GPIO204_AF23";
792 ste,config = <&gpio_out_hi>;
793 };
794 };
795 };
796 /* Interrupt line for light/proximity sensor GP2AP002 */
797 gp2ap002 {
798 gp2ap002_janice_default: gp2ap002_janice {
799 janice_cfg1 {
800 pins = "GPIO146_D13";
801 ste,config = <&gpio_in_nopull>;
802 };
803 };
804 };
805 /* Interrupt line for Invensense MPU3050 gyroscope */
806 mpu3050 {
807 mpu3050_janice_default: mpu3050_janice {
808 janice_cfg1 {
809 /* GPIO226 used for IRQ */
810 pins = "GPIO226_AF8";
811 ste,config = <&gpio_in_nopull>;
812 };
813 };
814 };
815 /* GPIO-based I2C bus for magnetometer and NCP6914 */
816 i2c-gpio-0 {
817 i2c_gpio_0_default: i2c_gpio_0 {
818 janice_cfg1 {
819 pins = "GPIO143_D12", "GPIO144_B13";
820 ste,config = <&gpio_in_nopull>;
821 };
822 };
823 };
824 /* GPIO-based I2C bus for the Cypress touchkeys */
825 i2c-gpio-1 {
826 i2c_gpio_1_default: i2c_gpio_1 {
827 janice_cfg1 {
828 pins = "GPIO196_AG26", "GPIO197_AH24";
829 ste,config = <&gpio_in_nopull>;
830 };
831 };
832 };
833 /* GPIO-based I2C bus for the Immersion ISA1200 */
834 i2c-gpio-2 {
835 i2c_gpio_2_default: i2c_gpio_2 {
836 janice_cfg1 {
837 pins = "GPIO201_AF24", "GPIO202_AF25";
838 ste,config = <&gpio_in_nopull>;
839 };
840 };
841 };
842 /* GPIO-based I2C bus for the NFC */
843 i2c-gpio-3 {
844 i2c_gpio_3_default: i2c_gpio_3 {
845 janice_cfg1 {
846 pins = "GPIO151_D17", "GPIO152_D16";
847 ste,config = <&gpio_in_nopull>;
848 };
849 };
850 };
851 /* GPIO-based SPI bus for the display */
852 spi-gpio-0 {
853 spi_gpio_0_default: spi_gpio_0 {
854 janice_cfg1 {
855 pins = "GPIO220_AH10", "GPIO223_AH9", "GPIO224_AG9";
856 ste,config = <&gpio_out_hi>;
857 };
858 /* This pin is unused but belongs with this SPI block */
859 janice_cfg2 {
860 pins = "GPIO225_AG8";
861 ste,config = <&in_pd>;
862 };
863 };
864 };
865 wlan {
866 wlan_default_mode: wlan_default {
867 /* GPIO216 for WL_HOST_WAKE */
868 janice_cfg2 {
869 pins = "GPIO216_AG12";
870 ste,config = <&gpio_in_pd>;
871 };
872 };
873 };
874 bluetooth {
875 bluetooth_default_mode: bluetooth_default {
876 /* GPIO199 BT_WAKE and GPIO222 BT_VREG_ON */
877 janice_cfg1 {
878 pins = "GPIO199_AH23", "GPIO222_AJ9";
879 ste,config = <&gpio_out_lo>;
880 };
881 /* GPIO97 BT_HOST_WAKE */
882 janice_cfg2 {
883 pins = "GPIO97_D9";
884 ste,config = <&gpio_in_nopull>;
885 };
886 /* GPIO209 BT_RST_N */
887 janice_cfg3 {
888 pins = "GPIO209_AG15";
889 ste,config = <&gpio_out_hi>;
890 };
891 };
892 };
893 /* Interrupt line for TI TSU6111 Micro USB switch */
894 tsu6111 {
895 tsu6111_janice_default: tsu6111_janice {
896 janice_cfg1 {
897 /* GPIO95 used for IRQ */
898 pins = "GPIO95_E8";
899 ste,config = <&gpio_in_nopull>;
900 };
901 };
902 };
903 nfc {
904 pn547_janice_default: pn547_janice {
905 /* Interrupt line */
906 janice_cfg1 {
907 pins = "GPIO32_V2";
908 ste,config = <&gpio_in_nopull>;
909 };
910 /* Enable and firmware GPIOs */
911 janice_cfg2 {
912 pins = "GPIO31_V3", "GPIO88_C4";
913 ste,config = <&gpio_out_lo>;
914 };
915 };
916 };
917};