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