xref: /freebsd-src/sys/contrib/device-tree/src/arm/st/ste-ux500-samsung-gavini.dts (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Devicetree for the Samsung Galaxy Beam GT-I8530 also known as Gavini.
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot/dts-v1/;
7*f126890aSEmmanuel Vadot#include "ste-db8500.dtsi"
8*f126890aSEmmanuel Vadot#include "ste-ab8500.dtsi"
9*f126890aSEmmanuel Vadot#include "ste-dbx5x0-pinctrl.dtsi"
10*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
11*f126890aSEmmanuel Vadot#include <dt-bindings/leds/common.h>
12*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
13*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
14*f126890aSEmmanuel Vadot
15*f126890aSEmmanuel Vadot/ {
16*f126890aSEmmanuel Vadot	model = "Samsung Galaxy Beam (GT-I8530)";
17*f126890aSEmmanuel Vadot	compatible = "samsung,gavini", "st-ericsson,u8500";
18*f126890aSEmmanuel Vadot
19*f126890aSEmmanuel Vadot	chosen {
20*f126890aSEmmanuel Vadot		stdout-path = &serial2;
21*f126890aSEmmanuel Vadot	};
22*f126890aSEmmanuel Vadot
23*f126890aSEmmanuel Vadot	battery: battery {
24*f126890aSEmmanuel Vadot		compatible = "samsung,eb585157lu";
25*f126890aSEmmanuel Vadot	};
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot	thermal-zones {
28*f126890aSEmmanuel Vadot		battery-thermal {
29*f126890aSEmmanuel Vadot			/* This zone will be polled by the battery temperature code */
30*f126890aSEmmanuel Vadot			polling-delay = <0>;
31*f126890aSEmmanuel Vadot			polling-delay-passive = <0>;
32*f126890aSEmmanuel Vadot			thermal-sensors = <&bat_therm>;
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot			trips {
35*f126890aSEmmanuel Vadot				battery-crit-hi {
36*f126890aSEmmanuel Vadot					temperature = <70000>;
37*f126890aSEmmanuel Vadot					hysteresis = <2000>;
38*f126890aSEmmanuel Vadot					type = "critical";
39*f126890aSEmmanuel Vadot				};
40*f126890aSEmmanuel Vadot			};
41*f126890aSEmmanuel Vadot		};
42*f126890aSEmmanuel Vadot	};
43*f126890aSEmmanuel Vadot
44*f126890aSEmmanuel Vadot	bat_therm: thermistor {
45*f126890aSEmmanuel Vadot		compatible = "samsung,1404-001221";
46*f126890aSEmmanuel Vadot		io-channels = <&gpadc 0x02>; /* BatTemp */
47*f126890aSEmmanuel Vadot		pullup-uv = <1800000>;
48*f126890aSEmmanuel Vadot		pullup-ohm = <230000>;
49*f126890aSEmmanuel Vadot		pulldown-ohm = <0>;
50*f126890aSEmmanuel Vadot		#thermal-sensor-cells = <0>;
51*f126890aSEmmanuel Vadot	};
52*f126890aSEmmanuel Vadot
53*f126890aSEmmanuel Vadot	/* TI TXS0206 level translator for 2.9 V */
54*f126890aSEmmanuel Vadot	sd_level_translator: regulator-gpio {
55*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
56*f126890aSEmmanuel Vadot
57*f126890aSEmmanuel Vadot		/* GPIO193 EN */
58*f126890aSEmmanuel Vadot		gpios = <&gpio6 1 GPIO_ACTIVE_HIGH>;
59*f126890aSEmmanuel Vadot		enable-active-high;
60*f126890aSEmmanuel Vadot
61*f126890aSEmmanuel Vadot		regulator-name = "sd-level-translator";
62*f126890aSEmmanuel Vadot		regulator-min-microvolt = <2900000>;
63*f126890aSEmmanuel Vadot		regulator-max-microvolt = <2900000>;
64*f126890aSEmmanuel Vadot		regulator-type = "voltage";
65*f126890aSEmmanuel Vadot
66*f126890aSEmmanuel Vadot		startup-delay-us = <200>;
67*f126890aSEmmanuel Vadot
68*f126890aSEmmanuel Vadot		pinctrl-names = "default";
69*f126890aSEmmanuel Vadot		pinctrl-0 = <&sd_level_translator_default>;
70*f126890aSEmmanuel Vadot	};
71*f126890aSEmmanuel Vadot
72*f126890aSEmmanuel Vadot	/* External LDO for eMMC LDO VMEM_3V3 controlled by GPIO6 */
73*f126890aSEmmanuel Vadot	ldo_3v3_reg: regulator-gpio-ldo-3v3 {
74*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
75*f126890aSEmmanuel Vadot		/* Supplied in turn by VBAT */
76*f126890aSEmmanuel Vadot		regulator-name = "VMEM_3V3";
77*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
78*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
79*f126890aSEmmanuel Vadot		gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>;
80*f126890aSEmmanuel Vadot		startup-delay-us = <5000>; // FIXME
81*f126890aSEmmanuel Vadot		enable-active-high;
82*f126890aSEmmanuel Vadot		pinctrl-names = "default";
83*f126890aSEmmanuel Vadot		pinctrl-0 = <&emmc_ldo_en_default_mode>;
84*f126890aSEmmanuel Vadot	};
85*f126890aSEmmanuel Vadot
86*f126890aSEmmanuel Vadot	/*
87*f126890aSEmmanuel Vadot	 * External Ricoh "TSP" regulator for the touchscreen.
88*f126890aSEmmanuel Vadot	 * One GPIO line controls two voltages of 3.3V and 1.8V
89*f126890aSEmmanuel Vadot	 * this line is known as "TSP_LDO_ON1" in the schematics.
90*f126890aSEmmanuel Vadot	 */
91*f126890aSEmmanuel Vadot	ldo_tsp_3v3_reg: regulator-gpio-tsp-ldo-3v3 {
92*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
93*f126890aSEmmanuel Vadot		/* Supplied in turn by VBAT */
94*f126890aSEmmanuel Vadot		regulator-name = "LDO_TSP_A3V3";
95*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
96*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
97*f126890aSEmmanuel Vadot		/* GPIO94 controls this regulator */
98*f126890aSEmmanuel Vadot		gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>;
99*f126890aSEmmanuel Vadot		/* 70 ms power-on delay */
100*f126890aSEmmanuel Vadot		startup-delay-us = <70000>;
101*f126890aSEmmanuel Vadot		enable-active-high;
102*f126890aSEmmanuel Vadot		pinctrl-names = "default";
103*f126890aSEmmanuel Vadot		pinctrl-0 = <&tsp_ldo_en_default_mode>;
104*f126890aSEmmanuel Vadot	};
105*f126890aSEmmanuel Vadot	ldo_tsp_1v8_reg: regulator-gpio-tsp-ldo-1v8 {
106*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
107*f126890aSEmmanuel Vadot		/* Supplied in turn by VBAT */
108*f126890aSEmmanuel Vadot		regulator-name = "VREG_TSP_1V8";
109*f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
110*f126890aSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
111*f126890aSEmmanuel Vadot		/* GPIO94 controls this regulator */
112*f126890aSEmmanuel Vadot		gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>;
113*f126890aSEmmanuel Vadot		/* 70 ms power-on delay */
114*f126890aSEmmanuel Vadot		startup-delay-us = <70000>;
115*f126890aSEmmanuel Vadot		enable-active-high;
116*f126890aSEmmanuel Vadot		pinctrl-names = "default";
117*f126890aSEmmanuel Vadot		pinctrl-0 = <&tsp_ldo_en_default_mode>;
118*f126890aSEmmanuel Vadot	};
119*f126890aSEmmanuel Vadot
120*f126890aSEmmanuel Vadot	/*
121*f126890aSEmmanuel Vadot	 * External Ricoh RP152L010B-TR LCD LDO regulator for the display.
122*f126890aSEmmanuel Vadot	 * LCD_PWR_EN controls both a 3.0V and 1.8V output.
123*f126890aSEmmanuel Vadot	 */
124*f126890aSEmmanuel Vadot	lcd_3v0_reg: regulator-gpio-lcd-3v0 {
125*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
126*f126890aSEmmanuel Vadot		/* Supplied in turn by VBAT */
127*f126890aSEmmanuel Vadot		regulator-name = "VREG_LCD_3V0";
128*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3000000>;
129*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3000000>;
130*f126890aSEmmanuel Vadot		/* GPIO219 controls this regulator */
131*f126890aSEmmanuel Vadot		gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
132*f126890aSEmmanuel Vadot		enable-active-high;
133*f126890aSEmmanuel Vadot		pinctrl-names = "default";
134*f126890aSEmmanuel Vadot		pinctrl-0 = <&lcd_pwr_en_default_mode>;
135*f126890aSEmmanuel Vadot	};
136*f126890aSEmmanuel Vadot	lcd_1v8_reg: regulator-gpio-lcd-1v8 {
137*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
138*f126890aSEmmanuel Vadot		/* Supplied in turn by VBAT */
139*f126890aSEmmanuel Vadot		regulator-name = "VREG_LCD_1V8";
140*f126890aSEmmanuel Vadot		regulator-min-microvolt = <1800000>;
141*f126890aSEmmanuel Vadot		regulator-max-microvolt = <1800000>;
142*f126890aSEmmanuel Vadot		/* GPIO219 controls this regulator too */
143*f126890aSEmmanuel Vadot		gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
144*f126890aSEmmanuel Vadot		enable-active-high;
145*f126890aSEmmanuel Vadot		pinctrl-names = "default";
146*f126890aSEmmanuel Vadot		pinctrl-0 = <&lcd_pwr_en_default_mode>;
147*f126890aSEmmanuel Vadot	};
148*f126890aSEmmanuel Vadot
149*f126890aSEmmanuel Vadot	/*
150*f126890aSEmmanuel Vadot	 * This regulator is a GPIO line that drives the Broadcom WLAN
151*f126890aSEmmanuel Vadot	 * line WL_REG_ON high and enables the internal regulators
152*f126890aSEmmanuel Vadot	 * inside the chip. Unfortunatley it is erroneously named
153*f126890aSEmmanuel Vadot	 * WLAN_RST_N on the schematic but it is not a reset line.
154*f126890aSEmmanuel Vadot	 *
155*f126890aSEmmanuel Vadot	 * The voltage specified here is only used to determine the OCR mask,
156*f126890aSEmmanuel Vadot	 * the for the SDIO connector, the chip is actually connected
157*f126890aSEmmanuel Vadot	 * directly to VBAT.
158*f126890aSEmmanuel Vadot	 */
159*f126890aSEmmanuel Vadot	wl_reg: regulator-gpio-wlan {
160*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
161*f126890aSEmmanuel Vadot		regulator-name = "WL_REG_ON";
162*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3000000>;
163*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3000000>;
164*f126890aSEmmanuel Vadot		startup-delay-us = <100000>;
165*f126890aSEmmanuel Vadot		/* GPIO215 (WLAN_RST_N to WL_REG_ON) */
166*f126890aSEmmanuel Vadot		gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>;
167*f126890aSEmmanuel Vadot		enable-active-high;
168*f126890aSEmmanuel Vadot		pinctrl-names = "default";
169*f126890aSEmmanuel Vadot		pinctrl-0 = <&wlan_ldo_en_default>;
170*f126890aSEmmanuel Vadot	};
171*f126890aSEmmanuel Vadot
172*f126890aSEmmanuel Vadot	gpio-keys {
173*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
174*f126890aSEmmanuel Vadot		pinctrl-names = "default";
175*f126890aSEmmanuel Vadot		pinctrl-0 = <&gpio_keys_default_mode>;
176*f126890aSEmmanuel Vadot
177*f126890aSEmmanuel Vadot		button-projector {
178*f126890aSEmmanuel Vadot			linux,code = <KEY_SWITCHVIDEOMODE>;
179*f126890aSEmmanuel Vadot			label = "Projector";
180*f126890aSEmmanuel Vadot			/* GPIO32 "Projector On HotKey" */
181*f126890aSEmmanuel Vadot			gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
182*f126890aSEmmanuel Vadot		};
183*f126890aSEmmanuel Vadot		button-home {
184*f126890aSEmmanuel Vadot			linux,code = <KEY_HOME>;
185*f126890aSEmmanuel Vadot			label = "HOME";
186*f126890aSEmmanuel Vadot			/* GPIO91 */
187*f126890aSEmmanuel Vadot			gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
188*f126890aSEmmanuel Vadot		};
189*f126890aSEmmanuel Vadot		button-volup {
190*f126890aSEmmanuel Vadot			linux,code = <KEY_VOLUMEUP>;
191*f126890aSEmmanuel Vadot			label = "VOL+";
192*f126890aSEmmanuel Vadot			/* GPIO67 */
193*f126890aSEmmanuel Vadot			gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
194*f126890aSEmmanuel Vadot		};
195*f126890aSEmmanuel Vadot		button-voldown {
196*f126890aSEmmanuel Vadot			linux,code = <KEY_VOLUMEDOWN>;
197*f126890aSEmmanuel Vadot			label = "VOL-";
198*f126890aSEmmanuel Vadot			/* GPIO92 */
199*f126890aSEmmanuel Vadot			gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
200*f126890aSEmmanuel Vadot		};
201*f126890aSEmmanuel Vadot	};
202*f126890aSEmmanuel Vadot
203*f126890aSEmmanuel Vadot	/* Richtek RT8515GQW Flash LED Driver IC */
204*f126890aSEmmanuel Vadot	flash {
205*f126890aSEmmanuel Vadot		compatible = "richtek,rt8515";
206*f126890aSEmmanuel Vadot		/* GPIO 140 */
207*f126890aSEmmanuel Vadot		enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
208*f126890aSEmmanuel Vadot		/* GPIO 141 */
209*f126890aSEmmanuel Vadot		ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
210*f126890aSEmmanuel Vadot		/*
211*f126890aSEmmanuel Vadot		 * RFS is 16 kOhm and RTS is 100 kOhm giving
212*f126890aSEmmanuel Vadot		 * the flash max current 343mA and torch max
213*f126890aSEmmanuel Vadot		 * current 55 mA.
214*f126890aSEmmanuel Vadot		 */
215*f126890aSEmmanuel Vadot		richtek,rfs-ohms = <16000>;
216*f126890aSEmmanuel Vadot		richtek,rts-ohms = <100000>;
217*f126890aSEmmanuel Vadot		pinctrl-names = "default";
218*f126890aSEmmanuel Vadot		pinctrl-0 = <&gpio_flash_default_mode>;
219*f126890aSEmmanuel Vadot
220*f126890aSEmmanuel Vadot		led {
221*f126890aSEmmanuel Vadot			function = LED_FUNCTION_FLASH;
222*f126890aSEmmanuel Vadot			color = <LED_COLOR_ID_WHITE>;
223*f126890aSEmmanuel Vadot			flash-max-timeout-us = <250000>;
224*f126890aSEmmanuel Vadot			flash-max-microamp = <343750>;
225*f126890aSEmmanuel Vadot			led-max-microamp = <55000>;
226*f126890aSEmmanuel Vadot		};
227*f126890aSEmmanuel Vadot	};
228*f126890aSEmmanuel Vadot
229*f126890aSEmmanuel Vadot	gpio-leds {
230*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
231*f126890aSEmmanuel Vadot		pinctrl-names = "default";
232*f126890aSEmmanuel Vadot		pinctrl-0 = <&gpio_leds_default_mode>;
233*f126890aSEmmanuel Vadot		used-led {
234*f126890aSEmmanuel Vadot			label = "touchkeys";
235*f126890aSEmmanuel Vadot			/* GPIO68 */
236*f126890aSEmmanuel Vadot			gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
237*f126890aSEmmanuel Vadot			default-state = "on";
238*f126890aSEmmanuel Vadot		};
239*f126890aSEmmanuel Vadot	};
240*f126890aSEmmanuel Vadot
241*f126890aSEmmanuel Vadot	ktd259: backlight {
242*f126890aSEmmanuel Vadot		compatible = "kinetic,ktd259";
243*f126890aSEmmanuel Vadot		/* GPIO20 */
244*f126890aSEmmanuel Vadot		enable-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
245*f126890aSEmmanuel Vadot		/* Default to 13/32 brightness */
246*f126890aSEmmanuel Vadot		default-brightness = <13>;
247*f126890aSEmmanuel Vadot		pinctrl-names = "default";
248*f126890aSEmmanuel Vadot		pinctrl-0 = <&ktd259_backlight_default_mode>;
249*f126890aSEmmanuel Vadot	};
250*f126890aSEmmanuel Vadot
251*f126890aSEmmanuel Vadot	/* Bit-banged I2C on GPIO143 and GPIO144 also called "SUBPMU I2C" */
252*f126890aSEmmanuel Vadot	i2c-gpio-0 {
253*f126890aSEmmanuel Vadot		compatible = "i2c-gpio";
254*f126890aSEmmanuel Vadot		sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
255*f126890aSEmmanuel Vadot		scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
256*f126890aSEmmanuel Vadot		pinctrl-names = "default";
257*f126890aSEmmanuel Vadot		pinctrl-0 = <&i2c_gpio_0_default>;
258*f126890aSEmmanuel Vadot		#address-cells = <1>;
259*f126890aSEmmanuel Vadot		#size-cells = <0>;
260*f126890aSEmmanuel Vadot
261*f126890aSEmmanuel Vadot		/* Yamaha YAS530 magnetometer */
262*f126890aSEmmanuel Vadot		magnetometer@2e {
263*f126890aSEmmanuel Vadot			compatible = "yamaha,yas530";
264*f126890aSEmmanuel Vadot			reg = <0x2e>;
265*f126890aSEmmanuel Vadot			/* VDD 3V */
266*f126890aSEmmanuel Vadot			vdd-supply = <&ab8500_ldo_aux1_reg>;
267*f126890aSEmmanuel Vadot			/* IOVDD 1.8V */
268*f126890aSEmmanuel Vadot			iovdd-supply = <&ab8500_ldo_aux2_reg>;
269*f126890aSEmmanuel Vadot			/* GPIO204 COMPASS_RST_N */
270*f126890aSEmmanuel Vadot			reset-gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
271*f126890aSEmmanuel Vadot			pinctrl-names = "default";
272*f126890aSEmmanuel Vadot			pinctrl-0 = <&yas530_default>;
273*f126890aSEmmanuel Vadot		};
274*f126890aSEmmanuel Vadot		/* TODO: this should also be used by the NCP6914 Camera power management unit */
275*f126890aSEmmanuel Vadot	};
276*f126890aSEmmanuel Vadot
277*f126890aSEmmanuel Vadot	/*
278*f126890aSEmmanuel Vadot	 * TODO: See if we can use the PL023 for this instead.
279*f126890aSEmmanuel Vadot	 */
280*f126890aSEmmanuel Vadot	spi {
281*f126890aSEmmanuel Vadot		compatible = "spi-gpio";
282*f126890aSEmmanuel Vadot		/* Clock on GPIO220, pin SCL */
283*f126890aSEmmanuel Vadot		sck-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>;
284*f126890aSEmmanuel Vadot		/* MOSI on GPIO224, pin SDI "slave data in" */
285*f126890aSEmmanuel Vadot		mosi-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
286*f126890aSEmmanuel Vadot		/* MISO on GPIO225, pin SDO "slave data out" */
287*f126890aSEmmanuel Vadot		miso-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
288*f126890aSEmmanuel Vadot		/* Chip select on GPIO223 */
289*f126890aSEmmanuel Vadot		cs-gpios = <&gpio6 31 GPIO_ACTIVE_LOW>;
290*f126890aSEmmanuel Vadot		num-chipselects = <1>;
291*f126890aSEmmanuel Vadot
292*f126890aSEmmanuel Vadot		pinctrl-names = "default";
293*f126890aSEmmanuel Vadot		pinctrl-0 = <&spi_gpio_0_default>;
294*f126890aSEmmanuel Vadot		#address-cells = <1>;
295*f126890aSEmmanuel Vadot		#size-cells = <0>;
296*f126890aSEmmanuel Vadot
297*f126890aSEmmanuel Vadot		panel@0 {
298*f126890aSEmmanuel Vadot			compatible = "samsung,lms397kf04";
299*f126890aSEmmanuel Vadot			/* 300 ns at read cycle -> 3 MHz max speed */
300*f126890aSEmmanuel Vadot			//spi-max-frequency = <3000000>;
301*f126890aSEmmanuel Vadot			spi-max-frequency = <1200000>;
302*f126890aSEmmanuel Vadot			/* TYPE 3: inverse clock polarity and phase */
303*f126890aSEmmanuel Vadot			spi-cpha;
304*f126890aSEmmanuel Vadot			spi-cpol;
305*f126890aSEmmanuel Vadot
306*f126890aSEmmanuel Vadot			reg = <0>;
307*f126890aSEmmanuel Vadot			vci-supply = <&lcd_3v0_reg>;
308*f126890aSEmmanuel Vadot			vccio-supply = <&lcd_1v8_reg>;
309*f126890aSEmmanuel Vadot			/* Reset on GPIO139 */
310*f126890aSEmmanuel Vadot			reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
311*f126890aSEmmanuel Vadot			pinctrl-names = "default";
312*f126890aSEmmanuel Vadot			pinctrl-0 = <&panel_default_mode>;
313*f126890aSEmmanuel Vadot			backlight = <&ktd259>;
314*f126890aSEmmanuel Vadot
315*f126890aSEmmanuel Vadot			port {
316*f126890aSEmmanuel Vadot				panel_in: endpoint {
317*f126890aSEmmanuel Vadot					remote-endpoint = <&display_out>;
318*f126890aSEmmanuel Vadot				};
319*f126890aSEmmanuel Vadot			};
320*f126890aSEmmanuel Vadot		};
321*f126890aSEmmanuel Vadot	};
322*f126890aSEmmanuel Vadot
323*f126890aSEmmanuel Vadot	/* Bit-banged I2C on GPIO201 and GPIO202 also called "MOT_I2C" */
324*f126890aSEmmanuel Vadot	i2c-gpio-2 {
325*f126890aSEmmanuel Vadot		compatible = "i2c-gpio";
326*f126890aSEmmanuel Vadot		sda-gpios = <&gpio6 10 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
327*f126890aSEmmanuel Vadot		scl-gpios = <&gpio6 9 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
328*f126890aSEmmanuel Vadot		pinctrl-names = "default";
329*f126890aSEmmanuel Vadot		pinctrl-0 = <&i2c_gpio_2_default>;
330*f126890aSEmmanuel Vadot		#address-cells = <1>;
331*f126890aSEmmanuel Vadot		#size-cells = <0>;
332*f126890aSEmmanuel Vadot		/* TODO: add the Immersion ISA1200 I2C device here */
333*f126890aSEmmanuel Vadot	};
334*f126890aSEmmanuel Vadot
335*f126890aSEmmanuel Vadot	/* Bit-banged I2C on GPIO196 and GPIO197 also called "MPR_I2C" */
336*f126890aSEmmanuel Vadot	i2c-gpio-3 {
337*f126890aSEmmanuel Vadot		compatible = "i2c-gpio";
338*f126890aSEmmanuel Vadot		sda-gpios = <&gpio6 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
339*f126890aSEmmanuel Vadot		scl-gpios = <&gpio6 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
340*f126890aSEmmanuel Vadot		pinctrl-names = "default";
341*f126890aSEmmanuel Vadot		pinctrl-0 = <&i2c_gpio_3_default>;
342*f126890aSEmmanuel Vadot		#address-cells = <1>;
343*f126890aSEmmanuel Vadot		#size-cells = <0>;
344*f126890aSEmmanuel Vadot		/* TODO: add the DPP2601 projector I2C device 0x1b here */
345*f126890aSEmmanuel Vadot	};
346*f126890aSEmmanuel Vadot
347*f126890aSEmmanuel Vadot	soc {
348*f126890aSEmmanuel Vadot		/* External Micro SD slot */
349*f126890aSEmmanuel Vadot		mmc@80126000 {
350*f126890aSEmmanuel Vadot			arm,primecell-periphid = <0x10480180>;
351*f126890aSEmmanuel Vadot			max-frequency = <50000000>;
352*f126890aSEmmanuel Vadot			bus-width = <4>;
353*f126890aSEmmanuel Vadot			cap-sd-highspeed;
354*f126890aSEmmanuel Vadot			cap-mmc-highspeed;
355*f126890aSEmmanuel Vadot			st,sig-pin-fbclk;
356*f126890aSEmmanuel Vadot			full-pwr-cycle;
357*f126890aSEmmanuel Vadot			/* MMC is powered by AUX3 1.2V .. 2.91V */
358*f126890aSEmmanuel Vadot			vmmc-supply = <&ab8500_ldo_aux3_reg>;
359*f126890aSEmmanuel Vadot			/* 2.9 V level translator */
360*f126890aSEmmanuel Vadot			vqmmc-supply = <&sd_level_translator>;
361*f126890aSEmmanuel Vadot			pinctrl-names = "default", "sleep";
362*f126890aSEmmanuel Vadot			pinctrl-0 = <&mc0_a_2_default>;
363*f126890aSEmmanuel Vadot			pinctrl-1 = <&mc0_a_2_sleep>;
364*f126890aSEmmanuel Vadot			/* "flash detect" actually card detect */
365*f126890aSEmmanuel Vadot			cd-gpios = <&gpio6 25 GPIO_ACTIVE_LOW>;
366*f126890aSEmmanuel Vadot			status = "okay";
367*f126890aSEmmanuel Vadot		};
368*f126890aSEmmanuel Vadot
369*f126890aSEmmanuel Vadot		/* WLAN SDIO channel */
370*f126890aSEmmanuel Vadot		mmc@80118000 {
371*f126890aSEmmanuel Vadot			arm,primecell-periphid = <0x10480180>;
372*f126890aSEmmanuel Vadot			max-frequency = <50000000>;
373*f126890aSEmmanuel Vadot			bus-width = <4>;
374*f126890aSEmmanuel Vadot			non-removable;
375*f126890aSEmmanuel Vadot			cap-sd-highspeed;
376*f126890aSEmmanuel Vadot			pinctrl-names = "default", "sleep";
377*f126890aSEmmanuel Vadot			pinctrl-0 = <&mc1_a_2_default>;
378*f126890aSEmmanuel Vadot			pinctrl-1 = <&mc1_a_2_sleep>;
379*f126890aSEmmanuel Vadot			/*
380*f126890aSEmmanuel Vadot			 * GPIO-controlled voltage enablement: this drives
381*f126890aSEmmanuel Vadot			 * the WL_REG_ON line high when we use this device.
382*f126890aSEmmanuel Vadot			 * Represented as regulator to fill OCR mask.
383*f126890aSEmmanuel Vadot			 */
384*f126890aSEmmanuel Vadot			vmmc-supply = <&wl_reg>;
385*f126890aSEmmanuel Vadot
386*f126890aSEmmanuel Vadot			#address-cells = <1>;
387*f126890aSEmmanuel Vadot			#size-cells = <0>;
388*f126890aSEmmanuel Vadot			status = "okay";
389*f126890aSEmmanuel Vadot
390*f126890aSEmmanuel Vadot			wifi@1 {
391*f126890aSEmmanuel Vadot				compatible = "brcm,bcm4330-fmac", "brcm,bcm4329-fmac";
392*f126890aSEmmanuel Vadot				reg = <1>;
393*f126890aSEmmanuel Vadot				/* GPIO216 WL_HOST_WAKE */
394*f126890aSEmmanuel Vadot				interrupt-parent = <&gpio6>;
395*f126890aSEmmanuel Vadot				interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
396*f126890aSEmmanuel Vadot				interrupt-names = "host-wake";
397*f126890aSEmmanuel Vadot				pinctrl-names = "default";
398*f126890aSEmmanuel Vadot				pinctrl-0 = <&wlan_default_mode>;
399*f126890aSEmmanuel Vadot			};
400*f126890aSEmmanuel Vadot		};
401*f126890aSEmmanuel Vadot
402*f126890aSEmmanuel Vadot		/* eMMC */
403*f126890aSEmmanuel Vadot		mmc@80005000 {
404*f126890aSEmmanuel Vadot			arm,primecell-periphid = <0x10480180>;
405*f126890aSEmmanuel Vadot		        max-frequency = <50000000>;
406*f126890aSEmmanuel Vadot			bus-width = <8>;
407*f126890aSEmmanuel Vadot			non-removable;
408*f126890aSEmmanuel Vadot			cap-mmc-highspeed;
409*f126890aSEmmanuel Vadot			mmc-ddr-1_8v;
410*f126890aSEmmanuel Vadot			no-sdio;
411*f126890aSEmmanuel Vadot			no-sd;
412*f126890aSEmmanuel Vadot			vmmc-supply = <&ldo_3v3_reg>;
413*f126890aSEmmanuel Vadot			pinctrl-names = "default", "sleep";
414*f126890aSEmmanuel Vadot			pinctrl-0 = <&mc2_a_1_default>;
415*f126890aSEmmanuel Vadot			pinctrl-1 = <&mc2_a_1_sleep>;
416*f126890aSEmmanuel Vadot			status = "okay";
417*f126890aSEmmanuel Vadot		};
418*f126890aSEmmanuel Vadot
419*f126890aSEmmanuel Vadot		/* GBF (Bluetooth) UART */
420*f126890aSEmmanuel Vadot		serial@80120000 {
421*f126890aSEmmanuel Vadot			pinctrl-names = "default", "sleep";
422*f126890aSEmmanuel Vadot			pinctrl-0 = <&u0_a_1_default>;
423*f126890aSEmmanuel Vadot			pinctrl-1 = <&u0_a_1_sleep>;
424*f126890aSEmmanuel Vadot			status = "okay";
425*f126890aSEmmanuel Vadot
426*f126890aSEmmanuel Vadot			bluetooth {
427*f126890aSEmmanuel Vadot				compatible = "brcm,bcm4330-bt";
428*f126890aSEmmanuel Vadot				/* GPIO222 rail BT_VREG_EN to BT_REG_ON */
429*f126890aSEmmanuel Vadot				shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
430*f126890aSEmmanuel Vadot				/* BT_WAKE on GPIO199 */
431*f126890aSEmmanuel Vadot				device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
432*f126890aSEmmanuel Vadot				/* BT_HOST_WAKE on GPIO97 */
433*f126890aSEmmanuel Vadot				host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
434*f126890aSEmmanuel Vadot				/* BT_RST_N on GPIO209 */
435*f126890aSEmmanuel Vadot				reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>;
436*f126890aSEmmanuel Vadot				pinctrl-names = "default";
437*f126890aSEmmanuel Vadot				pinctrl-0 = <&bluetooth_default_mode>;
438*f126890aSEmmanuel Vadot			};
439*f126890aSEmmanuel Vadot		};
440*f126890aSEmmanuel Vadot
441*f126890aSEmmanuel Vadot		/* GPS UART */
442*f126890aSEmmanuel Vadot		serial@80121000 {
443*f126890aSEmmanuel Vadot			status = "okay";
444*f126890aSEmmanuel Vadot			pinctrl-names = "default", "sleep";
445*f126890aSEmmanuel Vadot			/* CTS/RTS is not used, CTS is repurposed as GPIO */
446*f126890aSEmmanuel Vadot			pinctrl-0 = <&u1rxtx_a_1_default>;
447*f126890aSEmmanuel Vadot			pinctrl-1 = <&u1rxtx_a_1_sleep>;
448*f126890aSEmmanuel Vadot			/* FIXME: add a device for the GPS here */
449*f126890aSEmmanuel Vadot		};
450*f126890aSEmmanuel Vadot
451*f126890aSEmmanuel Vadot		/* Debugging console UART connected to TSU6111RSVR (FSA880) */
452*f126890aSEmmanuel Vadot		serial@80007000 {
453*f126890aSEmmanuel Vadot			status = "okay";
454*f126890aSEmmanuel Vadot			pinctrl-names = "default", "sleep";
455*f126890aSEmmanuel Vadot			pinctrl-0 = <&u2rxtx_c_1_default>;
456*f126890aSEmmanuel Vadot			pinctrl-1 = <&u2rxtx_c_1_sleep>;
457*f126890aSEmmanuel Vadot		};
458*f126890aSEmmanuel Vadot
459*f126890aSEmmanuel Vadot		prcmu@80157000 {
460*f126890aSEmmanuel Vadot			ab8500 {
461*f126890aSEmmanuel Vadot				phy {
462*f126890aSEmmanuel Vadot					pinctrl-names = "default", "sleep";
463*f126890aSEmmanuel Vadot					pinctrl-0 = <&usb_a_1_default>;
464*f126890aSEmmanuel Vadot					pinctrl-1 = <&usb_a_1_sleep>;
465*f126890aSEmmanuel Vadot				};
466*f126890aSEmmanuel Vadot
467*f126890aSEmmanuel Vadot				ab8500_fg {
468*f126890aSEmmanuel Vadot					line-impedance-micro-ohms = <43000>;
469*f126890aSEmmanuel Vadot				};
470*f126890aSEmmanuel Vadot
471*f126890aSEmmanuel Vadot				regulator {
472*f126890aSEmmanuel Vadot					ab8500_ldo_aux1 {
473*f126890aSEmmanuel Vadot						/* Used for VDD for sensors */
474*f126890aSEmmanuel Vadot						regulator-name = "V-SENSORS-VDD";
475*f126890aSEmmanuel Vadot						regulator-min-microvolt = <3000000>;
476*f126890aSEmmanuel Vadot						regulator-max-microvolt = <3000000>;
477*f126890aSEmmanuel Vadot					};
478*f126890aSEmmanuel Vadot
479*f126890aSEmmanuel Vadot					ab8500_ldo_aux2 {
480*f126890aSEmmanuel Vadot						/* Used for VIO for sensors */
481*f126890aSEmmanuel Vadot						regulator-name = "V-SENSORS-VIO";
482*f126890aSEmmanuel Vadot						regulator-min-microvolt = <1800000>;
483*f126890aSEmmanuel Vadot						regulator-max-microvolt = <1800000>;
484*f126890aSEmmanuel Vadot					};
485*f126890aSEmmanuel Vadot
486*f126890aSEmmanuel Vadot					ab8500_ldo_aux3 {
487*f126890aSEmmanuel Vadot						/* Used for voltage for external MMC/SD card */
488*f126890aSEmmanuel Vadot						regulator-name = "V-MMC-SD";
489*f126890aSEmmanuel Vadot						regulator-min-microvolt = <1200000>;
490*f126890aSEmmanuel Vadot						regulator-max-microvolt = <2910000>;
491*f126890aSEmmanuel Vadot					};
492*f126890aSEmmanuel Vadot				};
493*f126890aSEmmanuel Vadot			};
494*f126890aSEmmanuel Vadot		};
495*f126890aSEmmanuel Vadot
496*f126890aSEmmanuel Vadot		/* I2C0 */
497*f126890aSEmmanuel Vadot		i2c@80004000 {
498*f126890aSEmmanuel Vadot			status = "okay";
499*f126890aSEmmanuel Vadot			pinctrl-names = "default", "sleep";
500*f126890aSEmmanuel Vadot			pinctrl-0 = <&i2c0_a_1_default>;
501*f126890aSEmmanuel Vadot			pinctrl-1 = <&i2c0_a_1_sleep>;
502*f126890aSEmmanuel Vadot
503*f126890aSEmmanuel Vadot			/* FIXME: fix the proximity sensor bindings and driver */
504*f126890aSEmmanuel Vadot			proximity@39 {
505*f126890aSEmmanuel Vadot				/* Gavini has the GP2A030S00F proximity sensor */
506*f126890aSEmmanuel Vadot				compatible = "sharp,gp2a030s00f";
507*f126890aSEmmanuel Vadot				clock-frequency = <400000>;
508*f126890aSEmmanuel Vadot				reg = <0x39>;
509*f126890aSEmmanuel Vadot				/* FIXME: GPIO146 provides power on, IR LED? */
510*f126890aSEmmanuel Vadot			};
511*f126890aSEmmanuel Vadot
512*f126890aSEmmanuel Vadot			gyroscope@68 {
513*f126890aSEmmanuel Vadot				compatible = "invensense,mpu3050";
514*f126890aSEmmanuel Vadot				reg = <0x68>;
515*f126890aSEmmanuel Vadot				/* GPIO226 interrupt */
516*f126890aSEmmanuel Vadot				interrupt-parent = <&gpio7>;
517*f126890aSEmmanuel Vadot				interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
518*f126890aSEmmanuel Vadot				mount-matrix = "0", "1", "0",
519*f126890aSEmmanuel Vadot					       "1", "0", "0",
520*f126890aSEmmanuel Vadot					       "0", "0", "1";
521*f126890aSEmmanuel Vadot				vlogic-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
522*f126890aSEmmanuel Vadot				vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
523*f126890aSEmmanuel Vadot				pinctrl-names = "default";
524*f126890aSEmmanuel Vadot				pinctrl-0 = <&mpu3050_default>;
525*f126890aSEmmanuel Vadot
526*f126890aSEmmanuel Vadot				/*
527*f126890aSEmmanuel Vadot				 * The MPU-3050 acts as a hub for the
528*f126890aSEmmanuel Vadot				 * accelerometer.
529*f126890aSEmmanuel Vadot				 */
530*f126890aSEmmanuel Vadot				i2c-gate {
531*f126890aSEmmanuel Vadot					#address-cells = <1>;
532*f126890aSEmmanuel Vadot					#size-cells = <0>;
533*f126890aSEmmanuel Vadot
534*f126890aSEmmanuel Vadot					/* Bosch BMA222E accelerometer */
535*f126890aSEmmanuel Vadot					accelerometer@18 {
536*f126890aSEmmanuel Vadot						compatible = "bosch,bma222e";
537*f126890aSEmmanuel Vadot						reg = <0x18>;
538*f126890aSEmmanuel Vadot						mount-matrix = "0", "-1", "0",
539*f126890aSEmmanuel Vadot							       "1", "0", "0",
540*f126890aSEmmanuel Vadot							       "0", "0", "1";
541*f126890aSEmmanuel Vadot						vddio-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
542*f126890aSEmmanuel Vadot						vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
543*f126890aSEmmanuel Vadot					};
544*f126890aSEmmanuel Vadot				};
545*f126890aSEmmanuel Vadot			};
546*f126890aSEmmanuel Vadot		};
547*f126890aSEmmanuel Vadot
548*f126890aSEmmanuel Vadot		/* I2C2 "AGC I2C" */
549*f126890aSEmmanuel Vadot		i2c@80128000 {
550*f126890aSEmmanuel Vadot			status = "okay";
551*f126890aSEmmanuel Vadot			pinctrl-names = "default", "sleep";
552*f126890aSEmmanuel Vadot			pinctrl-0 = <&i2c2_b_1_default>;
553*f126890aSEmmanuel Vadot			pinctrl-1 = <&i2c2_b_1_sleep>;
554*f126890aSEmmanuel Vadot
555*f126890aSEmmanuel Vadot			/* Texas Instruments TSU6111 micro USB switch */
556*f126890aSEmmanuel Vadot			usb-switch@25 {
557*f126890aSEmmanuel Vadot				compatible = "ti,tsu6111";
558*f126890aSEmmanuel Vadot				reg = <0x25>;
559*f126890aSEmmanuel Vadot				/* Interrupt JACK_INT_N on GPIO95 */
560*f126890aSEmmanuel Vadot				interrupt-parent = <&gpio2>;
561*f126890aSEmmanuel Vadot				interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
562*f126890aSEmmanuel Vadot				pinctrl-names = "default";
563*f126890aSEmmanuel Vadot				pinctrl-0 = <&tsu6111_default>;
564*f126890aSEmmanuel Vadot			};
565*f126890aSEmmanuel Vadot		};
566*f126890aSEmmanuel Vadot
567*f126890aSEmmanuel Vadot		/* I2C3 */
568*f126890aSEmmanuel Vadot		i2c@80110000 {
569*f126890aSEmmanuel Vadot			status = "okay";
570*f126890aSEmmanuel Vadot
571*f126890aSEmmanuel Vadot			pinctrl-names = "default", "sleep";
572*f126890aSEmmanuel Vadot			pinctrl-0 = <&i2c3_c_2_default>;
573*f126890aSEmmanuel Vadot			pinctrl-1 = <&i2c3_c_2_sleep>;
574*f126890aSEmmanuel Vadot
575*f126890aSEmmanuel Vadot			/* Melfas MMS136 touchscreen */
576*f126890aSEmmanuel Vadot			touchscreen@48 {
577*f126890aSEmmanuel Vadot				compatible = "melfas,mms136";
578*f126890aSEmmanuel Vadot				reg = <0x48>;
579*f126890aSEmmanuel Vadot				/* GPIO218 (TSP_INT_1V8) */
580*f126890aSEmmanuel Vadot				interrupt-parent = <&gpio6>;
581*f126890aSEmmanuel Vadot				interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
582*f126890aSEmmanuel Vadot				/* AVDD is "analog supply", 2.57-3.47 V */
583*f126890aSEmmanuel Vadot				avdd-supply = <&ldo_tsp_3v3_reg>;
584*f126890aSEmmanuel Vadot				/* VDD is "digital supply" 1.71-3.47V */
585*f126890aSEmmanuel Vadot				vdd-supply = <&ldo_tsp_1v8_reg>;
586*f126890aSEmmanuel Vadot				pinctrl-names = "default";
587*f126890aSEmmanuel Vadot				pinctrl-0 = <&tsp_default>;
588*f126890aSEmmanuel Vadot				touchscreen-size-x = <480>;
589*f126890aSEmmanuel Vadot				touchscreen-size-y = <800>;
590*f126890aSEmmanuel Vadot			};
591*f126890aSEmmanuel Vadot		};
592*f126890aSEmmanuel Vadot
593*f126890aSEmmanuel Vadot		mcde@a0350000 {
594*f126890aSEmmanuel Vadot			status = "okay";
595*f126890aSEmmanuel Vadot			pinctrl-names = "default";
596*f126890aSEmmanuel Vadot			pinctrl-0 = <&dpi_default_mode>;
597*f126890aSEmmanuel Vadot
598*f126890aSEmmanuel Vadot			port {
599*f126890aSEmmanuel Vadot				display_out: endpoint {
600*f126890aSEmmanuel Vadot					remote-endpoint = <&panel_in>;
601*f126890aSEmmanuel Vadot				};
602*f126890aSEmmanuel Vadot			};
603*f126890aSEmmanuel Vadot		};
604*f126890aSEmmanuel Vadot	};
605*f126890aSEmmanuel Vadot};
606*f126890aSEmmanuel Vadot
607*f126890aSEmmanuel Vadot&pinctrl {
608*f126890aSEmmanuel Vadot	/*
609*f126890aSEmmanuel Vadot	 * This extends the MC0_A_2 default config to include
610*f126890aSEmmanuel Vadot	 * the card detect GPIO217 line.
611*f126890aSEmmanuel Vadot	 */
612*f126890aSEmmanuel Vadot	sdi0 {
613*f126890aSEmmanuel Vadot		mc0_a_2_default {
614*f126890aSEmmanuel Vadot			default_cfg4 {
615*f126890aSEmmanuel Vadot				pins = "GPIO217_AH12"; /* card detect */
616*f126890aSEmmanuel Vadot				ste,config = <&gpio_in_nopull>;
617*f126890aSEmmanuel Vadot			};
618*f126890aSEmmanuel Vadot		};
619*f126890aSEmmanuel Vadot	};
620*f126890aSEmmanuel Vadot	mcde {
621*f126890aSEmmanuel Vadot		dpi_default_mode: dpi_default {
622*f126890aSEmmanuel Vadot			default_mux1 {
623*f126890aSEmmanuel Vadot				/* Mux in all the data lines */
624*f126890aSEmmanuel Vadot				function = "lcd";
625*f126890aSEmmanuel Vadot				groups =
626*f126890aSEmmanuel Vadot					/* Data lines D0-D7 GPIO70..GPIO77 */
627*f126890aSEmmanuel Vadot					"lcd_d0_d7_a_1",
628*f126890aSEmmanuel Vadot					/* Data lines D8-D11 GPIO78..GPIO81 */
629*f126890aSEmmanuel Vadot					"lcd_d8_d11_a_1",
630*f126890aSEmmanuel Vadot					/* Data lines D12-D15 GPIO82..GPIO85 */
631*f126890aSEmmanuel Vadot					"lcd_d12_d15_a_1",
632*f126890aSEmmanuel Vadot					/* Data lines D16-D23 GPIO161..GPIO168 */
633*f126890aSEmmanuel Vadot					"lcd_d16_d23_b_1";
634*f126890aSEmmanuel Vadot			};
635*f126890aSEmmanuel Vadot			default_mux2 {
636*f126890aSEmmanuel Vadot				function = "lcda";
637*f126890aSEmmanuel Vadot				/* Clock line on GPIO150, DE, VSO, HSO on GPIO169..GPIO171 */
638*f126890aSEmmanuel Vadot				groups = "lcdaclk_b_1", "lcda_b_1";
639*f126890aSEmmanuel Vadot			};
640*f126890aSEmmanuel Vadot			/* Input, no pull-up is the default state for pins used for an alt function */
641*f126890aSEmmanuel Vadot			default_cfg1 {
642*f126890aSEmmanuel Vadot				pins = "GPIO150_C14", "GPIO169_D22", "GPIO170_C23", "GPIO171_D23";
643*f126890aSEmmanuel Vadot				ste,config = <&in_nopull>;
644*f126890aSEmmanuel Vadot			};
645*f126890aSEmmanuel Vadot		};
646*f126890aSEmmanuel Vadot	};
647*f126890aSEmmanuel Vadot	/* GPIO for panel reset control */
648*f126890aSEmmanuel Vadot	panel {
649*f126890aSEmmanuel Vadot		panel_default_mode: panel_default {
650*f126890aSEmmanuel Vadot			gavini_cfg1 {
651*f126890aSEmmanuel Vadot				/* Reset line */
652*f126890aSEmmanuel Vadot				pins = "GPIO139_C9";
653*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_lo>;
654*f126890aSEmmanuel Vadot			};
655*f126890aSEmmanuel Vadot		};
656*f126890aSEmmanuel Vadot	};
657*f126890aSEmmanuel Vadot	/* GPIO that enables the LDO regulator for the eMMC */
658*f126890aSEmmanuel Vadot	emmc-ldo {
659*f126890aSEmmanuel Vadot		emmc_ldo_en_default_mode: emmc_ldo_default {
660*f126890aSEmmanuel Vadot			/* LDO enable on GPIO6 */
661*f126890aSEmmanuel Vadot			gavini_cfg1 {
662*f126890aSEmmanuel Vadot				pins = "GPIO6_AF6";
663*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_hi>;
664*f126890aSEmmanuel Vadot			};
665*f126890aSEmmanuel Vadot		};
666*f126890aSEmmanuel Vadot	};
667*f126890aSEmmanuel Vadot	/* GPIO that enables the LDO regulator for the touchscreen */
668*f126890aSEmmanuel Vadot	tsp-ldo {
669*f126890aSEmmanuel Vadot		tsp_ldo_en_default_mode: tsp_ldo_default {
670*f126890aSEmmanuel Vadot			/* LDO enable on GPIO94 */
671*f126890aSEmmanuel Vadot			gavini_cfg1 {
672*f126890aSEmmanuel Vadot				pins = "GPIO94_D7";
673*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_hi>;
674*f126890aSEmmanuel Vadot			};
675*f126890aSEmmanuel Vadot		};
676*f126890aSEmmanuel Vadot	};
677*f126890aSEmmanuel Vadot	/* Reset line for the Yamaha YAS530 magnetometer */
678*f126890aSEmmanuel Vadot	yas530 {
679*f126890aSEmmanuel Vadot		yas530_default: yas530_janice {
680*f126890aSEmmanuel Vadot			janice_cfg1 {
681*f126890aSEmmanuel Vadot				pins = "GPIO204_AF23";
682*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_hi>;
683*f126890aSEmmanuel Vadot			};
684*f126890aSEmmanuel Vadot		};
685*f126890aSEmmanuel Vadot	};
686*f126890aSEmmanuel Vadot	/* Flash and torch */
687*f126890aSEmmanuel Vadot	flash {
688*f126890aSEmmanuel Vadot		gpio_flash_default_mode: flash_default {
689*f126890aSEmmanuel Vadot			janice_cfg1 {
690*f126890aSEmmanuel Vadot				pins = "GPIO140_B11", "GPIO141_C12";
691*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_lo>;
692*f126890aSEmmanuel Vadot			};
693*f126890aSEmmanuel Vadot		};
694*f126890aSEmmanuel Vadot	};
695*f126890aSEmmanuel Vadot	/* GPIO that enables the LDO regulator for the key LED */
696*f126890aSEmmanuel Vadot	gpio-leds {
697*f126890aSEmmanuel Vadot		gpio_leds_default_mode: gpio_leds_default {
698*f126890aSEmmanuel Vadot			/* EN_LED_LDO on GPIO68 */
699*f126890aSEmmanuel Vadot			gavini_cfg1 {
700*f126890aSEmmanuel Vadot				pins = "GPIO68_E1";
701*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_hi>;
702*f126890aSEmmanuel Vadot			};
703*f126890aSEmmanuel Vadot		};
704*f126890aSEmmanuel Vadot	};
705*f126890aSEmmanuel Vadot	backlight {
706*f126890aSEmmanuel Vadot		ktd259_backlight_default_mode: backlight_default {
707*f126890aSEmmanuel Vadot			skomer_cfg1 {
708*f126890aSEmmanuel Vadot				pins = "GPIO20_AB4"; /* LCD_BL_EN */
709*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_lo>;
710*f126890aSEmmanuel Vadot			};
711*f126890aSEmmanuel Vadot		};
712*f126890aSEmmanuel Vadot	};
713*f126890aSEmmanuel Vadot	/* GPIO that enables the LDO regulator for the touchkeys */
714*f126890aSEmmanuel Vadot	touchkey-ldo {
715*f126890aSEmmanuel Vadot		tsp_ldo_on2_default_mode: tsp_ldo_on2_default {
716*f126890aSEmmanuel Vadot			/* TSP_LDO_ON2 on GPIO89 */
717*f126890aSEmmanuel Vadot			gavini_cfg1 {
718*f126890aSEmmanuel Vadot				pins = "GPIO89_E6";
719*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_lo>;
720*f126890aSEmmanuel Vadot			};
721*f126890aSEmmanuel Vadot		};
722*f126890aSEmmanuel Vadot	};
723*f126890aSEmmanuel Vadot	touchkey {
724*f126890aSEmmanuel Vadot		touchkey_default_mode: touchkey_default {
725*f126890aSEmmanuel Vadot			gavini_cfg1 {
726*f126890aSEmmanuel Vadot				/* Interrupt */
727*f126890aSEmmanuel Vadot				pins = "GPIO198_AG25";
728*f126890aSEmmanuel Vadot				ste,config = <&gpio_in_nopull>;
729*f126890aSEmmanuel Vadot			};
730*f126890aSEmmanuel Vadot			gavini_cfg2 {
731*f126890aSEmmanuel Vadot				/* Reset, actually completely unused (not routed) */
732*f126890aSEmmanuel Vadot				pins = "GPIO205_AG23";
733*f126890aSEmmanuel Vadot				ste,config = <&gpio_in_pd>;
734*f126890aSEmmanuel Vadot			};
735*f126890aSEmmanuel Vadot		};
736*f126890aSEmmanuel Vadot	};
737*f126890aSEmmanuel Vadot	/* GPIO that enables the LDO regulator for the LCD display */
738*f126890aSEmmanuel Vadot	lcd-ldo {
739*f126890aSEmmanuel Vadot		lcd_pwr_en_default_mode: lcd_pwr_en_default {
740*f126890aSEmmanuel Vadot			/* LCD_PWR_EN on GPIO219 */
741*f126890aSEmmanuel Vadot			gavini_cfg1 {
742*f126890aSEmmanuel Vadot				pins = "GPIO219_AG10";
743*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_hi>;
744*f126890aSEmmanuel Vadot			};
745*f126890aSEmmanuel Vadot		};
746*f126890aSEmmanuel Vadot	};
747*f126890aSEmmanuel Vadot	/* GPIO that enables the WLAN internal LDO regulators */
748*f126890aSEmmanuel Vadot	wlan-ldo {
749*f126890aSEmmanuel Vadot		wlan_ldo_en_default: wlan_ldo_default {
750*f126890aSEmmanuel Vadot			/* GPIO215 named WLAN_RST_N */
751*f126890aSEmmanuel Vadot			gavini_cfg1 {
752*f126890aSEmmanuel Vadot				pins = "GPIO215_AH13";
753*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_lo>;
754*f126890aSEmmanuel Vadot			};
755*f126890aSEmmanuel Vadot		};
756*f126890aSEmmanuel Vadot	};
757*f126890aSEmmanuel Vadot	/* GPIO that enables the 2.9V SD card level translator */
758*f126890aSEmmanuel Vadot	sd-level-translator {
759*f126890aSEmmanuel Vadot		sd_level_translator_default: sd_level_translator_default {
760*f126890aSEmmanuel Vadot			/* level shifter on GPIO193 */
761*f126890aSEmmanuel Vadot			skomer_cfg1 {
762*f126890aSEmmanuel Vadot				pins = "GPIO193_AH27";
763*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_hi>;
764*f126890aSEmmanuel Vadot			};
765*f126890aSEmmanuel Vadot		};
766*f126890aSEmmanuel Vadot	};
767*f126890aSEmmanuel Vadot	/* GPIO keys */
768*f126890aSEmmanuel Vadot	gpio-keys {
769*f126890aSEmmanuel Vadot		gpio_keys_default_mode: gpio_keys_default {
770*f126890aSEmmanuel Vadot			skomer_cfg1 {
771*f126890aSEmmanuel Vadot				pins = "GPIO32_V2", /* Projector On HotKey */
772*f126890aSEmmanuel Vadot				       "GPIO67_G2", /* VOL UP */
773*f126890aSEmmanuel Vadot				       "GPIO91_B6", /* HOME */
774*f126890aSEmmanuel Vadot				       "GPIO92_D6"; /* VOL DOWN */
775*f126890aSEmmanuel Vadot				ste,config = <&gpio_in_pu>;
776*f126890aSEmmanuel Vadot			};
777*f126890aSEmmanuel Vadot		};
778*f126890aSEmmanuel Vadot	};
779*f126890aSEmmanuel Vadot	/* Interrupt line for the Atmel MXT228 touchscreen */
780*f126890aSEmmanuel Vadot	tsp {
781*f126890aSEmmanuel Vadot		tsp_default: tsp_default {
782*f126890aSEmmanuel Vadot			gavini_cfg1 {
783*f126890aSEmmanuel Vadot				pins = "GPIO218_AH11";	/* TSP_INT_1V8 */
784*f126890aSEmmanuel Vadot				ste,config = <&gpio_in_nopull>;
785*f126890aSEmmanuel Vadot			};
786*f126890aSEmmanuel Vadot		};
787*f126890aSEmmanuel Vadot	};
788*f126890aSEmmanuel Vadot	/* Interrupt line for Invensense MPU3050 gyroscope */
789*f126890aSEmmanuel Vadot	mpu3050 {
790*f126890aSEmmanuel Vadot		mpu3050_default: mpu3050 {
791*f126890aSEmmanuel Vadot			gavini_cfg1 {
792*f126890aSEmmanuel Vadot				/* GPIO226 used for IRQ */
793*f126890aSEmmanuel Vadot				pins = "GPIO226_AF8";
794*f126890aSEmmanuel Vadot				ste,config = <&gpio_in_nopull>;
795*f126890aSEmmanuel Vadot			};
796*f126890aSEmmanuel Vadot		};
797*f126890aSEmmanuel Vadot	};
798*f126890aSEmmanuel Vadot	/* GPIO-based I2C bus for magnetometer and NCP6914 */
799*f126890aSEmmanuel Vadot	i2c-gpio-0 {
800*f126890aSEmmanuel Vadot		i2c_gpio_0_default: i2c_gpio_0 {
801*f126890aSEmmanuel Vadot			gavini_cfg1 {
802*f126890aSEmmanuel Vadot				pins = "GPIO143_D12", "GPIO144_B13";
803*f126890aSEmmanuel Vadot				ste,config = <&gpio_in_nopull>;
804*f126890aSEmmanuel Vadot			};
805*f126890aSEmmanuel Vadot		};
806*f126890aSEmmanuel Vadot	};
807*f126890aSEmmanuel Vadot	/* GPIO-based I2C bus for the Immersion ISA1200 */
808*f126890aSEmmanuel Vadot	i2c-gpio-2 {
809*f126890aSEmmanuel Vadot		i2c_gpio_2_default: i2c_gpio_2 {
810*f126890aSEmmanuel Vadot			gavini_cfg1 {
811*f126890aSEmmanuel Vadot				pins = "GPIO201_AF24", "GPIO202_AF25";
812*f126890aSEmmanuel Vadot				ste,config = <&gpio_in_nopull>;
813*f126890aSEmmanuel Vadot			};
814*f126890aSEmmanuel Vadot		};
815*f126890aSEmmanuel Vadot	};
816*f126890aSEmmanuel Vadot	/* GPIO-based I2C bus for the TI DPP2601 */
817*f126890aSEmmanuel Vadot	i2c-gpio-3 {
818*f126890aSEmmanuel Vadot		i2c_gpio_3_default: i2c_gpio_3 {
819*f126890aSEmmanuel Vadot			gavini_cfg1 {
820*f126890aSEmmanuel Vadot				pins = "GPIO196_AG26", "GPIO197_AH24";
821*f126890aSEmmanuel Vadot				ste,config = <&gpio_in_nopull>;
822*f126890aSEmmanuel Vadot			};
823*f126890aSEmmanuel Vadot		};
824*f126890aSEmmanuel Vadot	};
825*f126890aSEmmanuel Vadot	/* GPIO-based SPI bus for the display */
826*f126890aSEmmanuel Vadot	spi-gpio-0 {
827*f126890aSEmmanuel Vadot		spi_gpio_0_default: spi_gpio_0_d {
828*f126890aSEmmanuel Vadot			gavini_cfg1 {
829*f126890aSEmmanuel Vadot				pins = "GPIO220_AH10", "GPIO223_AH9", "GPIO224_AG9";
830*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_hi>;
831*f126890aSEmmanuel Vadot			};
832*f126890aSEmmanuel Vadot			gavini_cfg2 {
833*f126890aSEmmanuel Vadot				pins = "GPIO225_AG8";
834*f126890aSEmmanuel Vadot				ste,config = <&gpio_in_nopull>;
835*f126890aSEmmanuel Vadot			};
836*f126890aSEmmanuel Vadot		};
837*f126890aSEmmanuel Vadot		spi_gpio_0_sleep: spi_gpio_0_s {
838*f126890aSEmmanuel Vadot			gavini_cfg1 {
839*f126890aSEmmanuel Vadot				pins = "GPIO220_AH10", "GPIO223_AH9",
840*f126890aSEmmanuel Vadot				     "GPIO224_AG9", "GPIO225_AG8";
841*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_hi>;
842*f126890aSEmmanuel Vadot			};
843*f126890aSEmmanuel Vadot			gavini_cfg2 {
844*f126890aSEmmanuel Vadot				pins = "GPIO225_AG8";
845*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_lo>;
846*f126890aSEmmanuel Vadot			};
847*f126890aSEmmanuel Vadot		};
848*f126890aSEmmanuel Vadot	};
849*f126890aSEmmanuel Vadot	wlan {
850*f126890aSEmmanuel Vadot		wlan_default_mode: wlan_default {
851*f126890aSEmmanuel Vadot			/* GPIO216 for WL_HOST_WAKE */
852*f126890aSEmmanuel Vadot			gavini_cfg2 {
853*f126890aSEmmanuel Vadot				pins = "GPIO216_AG12";
854*f126890aSEmmanuel Vadot				ste,config = <&gpio_in_pd>;
855*f126890aSEmmanuel Vadot			};
856*f126890aSEmmanuel Vadot		};
857*f126890aSEmmanuel Vadot	};
858*f126890aSEmmanuel Vadot	bluetooth {
859*f126890aSEmmanuel Vadot		bluetooth_default_mode: bluetooth_default {
860*f126890aSEmmanuel Vadot			/* GPIO199 BT_WAKE and GPIO222 BT_VREG_ON */
861*f126890aSEmmanuel Vadot			gavini_cfg1 {
862*f126890aSEmmanuel Vadot				pins = "GPIO199_AH23", "GPIO222_AJ9";
863*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_lo>;
864*f126890aSEmmanuel Vadot			};
865*f126890aSEmmanuel Vadot			/* GPIO97 BT_HOST_WAKE */
866*f126890aSEmmanuel Vadot			gavini_cfg2 {
867*f126890aSEmmanuel Vadot				pins = "GPIO97_D9";
868*f126890aSEmmanuel Vadot				ste,config = <&gpio_in_nopull>;
869*f126890aSEmmanuel Vadot			};
870*f126890aSEmmanuel Vadot			/* GPIO209 BT_RST_N */
871*f126890aSEmmanuel Vadot			gavini_cfg3 {
872*f126890aSEmmanuel Vadot				pins = "GPIO209_AG15";
873*f126890aSEmmanuel Vadot				ste,config = <&gpio_out_hi>;
874*f126890aSEmmanuel Vadot			};
875*f126890aSEmmanuel Vadot		};
876*f126890aSEmmanuel Vadot	};
877*f126890aSEmmanuel Vadot	/* Interrupt line for TI TSU6111 Micro USB switch */
878*f126890aSEmmanuel Vadot	tsu6111 {
879*f126890aSEmmanuel Vadot		tsu6111_default: tsu6111 {
880*f126890aSEmmanuel Vadot			gavini_cfg1 {
881*f126890aSEmmanuel Vadot				/* GPIO95 used for IRQ */
882*f126890aSEmmanuel Vadot				pins = "GPIO95_E8";
883*f126890aSEmmanuel Vadot				ste,config = <&gpio_in_nopull>;
884*f126890aSEmmanuel Vadot			};
885*f126890aSEmmanuel Vadot		};
886*f126890aSEmmanuel Vadot	};
887*f126890aSEmmanuel Vadot};
888