xref: /freebsd-src/sys/contrib/device-tree/src/arm/nxp/imx/e60k02.dtsi (revision 0e8011faf58b743cc652e3b2ad0f7671227610df)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright 2019 Andreas Kemnade
4f126890aSEmmanuel Vadot * based on works
5f126890aSEmmanuel Vadot * Copyright 2016 Freescale Semiconductor, Inc.
6f126890aSEmmanuel Vadot * and
7f126890aSEmmanuel Vadot * Copyright (C) 2014 Ricoh Electronic Devices Co., Ltd
8f126890aSEmmanuel Vadot *
9f126890aSEmmanuel Vadot * Netronix E60K02 board common.
10f126890aSEmmanuel Vadot * This board is equipped with different SoCs and
11f126890aSEmmanuel Vadot * found in ebook-readers like the Kobo Clara HD (with i.MX6SLL) and
12f126890aSEmmanuel Vadot * the Tolino Shine 3 (with i.MX6SL)
13f126890aSEmmanuel Vadot */
14f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h>
15f126890aSEmmanuel Vadot
16f126890aSEmmanuel Vadot/ {
17*0e8011faSEmmanuel Vadot	aliases {
18*0e8011faSEmmanuel Vadot		mmc0 = &usdhc2;
19*0e8011faSEmmanuel Vadot		mmc1 = &usdhc3;
20*0e8011faSEmmanuel Vadot	};
21f126890aSEmmanuel Vadot
22f126890aSEmmanuel Vadot	chosen {
23f126890aSEmmanuel Vadot		stdout-path = &uart1;
24f126890aSEmmanuel Vadot	};
25f126890aSEmmanuel Vadot
26f126890aSEmmanuel Vadot	gpio_keys: gpio-keys {
27f126890aSEmmanuel Vadot		compatible = "gpio-keys";
28f126890aSEmmanuel Vadot
29f126890aSEmmanuel Vadot		key-power {
30f126890aSEmmanuel Vadot			label = "Power";
31f126890aSEmmanuel Vadot			gpios = <&gpio5 8 GPIO_ACTIVE_LOW>;
32f126890aSEmmanuel Vadot			linux,code = <KEY_POWER>;
33f126890aSEmmanuel Vadot			wakeup-source;
34f126890aSEmmanuel Vadot		};
35f126890aSEmmanuel Vadot
36f126890aSEmmanuel Vadot		key-cover {
37f126890aSEmmanuel Vadot			label = "Cover";
38f126890aSEmmanuel Vadot			gpios = <&gpio5 12 GPIO_ACTIVE_LOW>;
39f126890aSEmmanuel Vadot			linux,code = <SW_LID>;
40f126890aSEmmanuel Vadot			linux,input-type = <EV_SW>;
41f126890aSEmmanuel Vadot			wakeup-source;
42f126890aSEmmanuel Vadot		};
43f126890aSEmmanuel Vadot	};
44f126890aSEmmanuel Vadot
45f126890aSEmmanuel Vadot	leds: leds {
46f126890aSEmmanuel Vadot		compatible = "gpio-leds";
47f126890aSEmmanuel Vadot
48f126890aSEmmanuel Vadot		led {
49f126890aSEmmanuel Vadot			label = "e60k02:white:on";
50f126890aSEmmanuel Vadot			gpios = <&gpio5 7 GPIO_ACTIVE_LOW>;
51f126890aSEmmanuel Vadot			linux,default-trigger = "timer";
52f126890aSEmmanuel Vadot		};
53f126890aSEmmanuel Vadot	};
54f126890aSEmmanuel Vadot
55f126890aSEmmanuel Vadot	memory@80000000 {
56f126890aSEmmanuel Vadot		device_type = "memory";
57f126890aSEmmanuel Vadot		reg = <0x80000000 0x20000000>;
58f126890aSEmmanuel Vadot	};
59f126890aSEmmanuel Vadot
60f126890aSEmmanuel Vadot	reg_wifi: regulator-wifi {
61f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
62f126890aSEmmanuel Vadot		regulator-name = "SD3_SPWR";
63f126890aSEmmanuel Vadot		regulator-min-microvolt = <3000000>;
64f126890aSEmmanuel Vadot		regulator-max-microvolt = <3000000>;
65f126890aSEmmanuel Vadot		gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
66f126890aSEmmanuel Vadot		enable-active-high;
67f126890aSEmmanuel Vadot	};
68f126890aSEmmanuel Vadot
69f126890aSEmmanuel Vadot	wifi_pwrseq: wifi_pwrseq {
70f126890aSEmmanuel Vadot		compatible = "mmc-pwrseq-simple";
71f126890aSEmmanuel Vadot		post-power-on-delay-ms = <20>;
72f126890aSEmmanuel Vadot		reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>;
73f126890aSEmmanuel Vadot	};
74f126890aSEmmanuel Vadot};
75f126890aSEmmanuel Vadot
76f126890aSEmmanuel Vadot
77f126890aSEmmanuel Vadot&i2c1 {
78f126890aSEmmanuel Vadot	clock-frequency = <100000>;
79f126890aSEmmanuel Vadot	status = "okay";
80f126890aSEmmanuel Vadot
81f126890aSEmmanuel Vadot	lm3630a: backlight@36 {
82f126890aSEmmanuel Vadot		reg = <0x36>;
83f126890aSEmmanuel Vadot		compatible = "ti,lm3630a";
84f126890aSEmmanuel Vadot		enable-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
85f126890aSEmmanuel Vadot
86f126890aSEmmanuel Vadot		#address-cells = <1>;
87f126890aSEmmanuel Vadot		#size-cells = <0>;
88f126890aSEmmanuel Vadot
89f126890aSEmmanuel Vadot		led@0 {
90f126890aSEmmanuel Vadot			reg = <0>;
91f126890aSEmmanuel Vadot			led-sources = <0>;
92f126890aSEmmanuel Vadot			label = "backlight_warm";
93f126890aSEmmanuel Vadot			default-brightness = <0>;
94f126890aSEmmanuel Vadot			max-brightness = <255>;
95f126890aSEmmanuel Vadot		};
96f126890aSEmmanuel Vadot
97f126890aSEmmanuel Vadot		led@1 {
98f126890aSEmmanuel Vadot			reg = <1>;
99f126890aSEmmanuel Vadot			led-sources = <1>;
100f126890aSEmmanuel Vadot			label = "backlight_cold";
101f126890aSEmmanuel Vadot			default-brightness = <0>;
102f126890aSEmmanuel Vadot			max-brightness = <255>;
103f126890aSEmmanuel Vadot		};
104f126890aSEmmanuel Vadot	};
105f126890aSEmmanuel Vadot};
106f126890aSEmmanuel Vadot
107f126890aSEmmanuel Vadot&i2c2 {
108f126890aSEmmanuel Vadot	clock-frequency = <100000>;
109f126890aSEmmanuel Vadot	status = "okay";
110f126890aSEmmanuel Vadot
111f126890aSEmmanuel Vadot	touchscreen@24 {
112f126890aSEmmanuel Vadot		compatible = "cypress,tt21000";
113f126890aSEmmanuel Vadot		reg = <0x24>;
114f126890aSEmmanuel Vadot		pinctrl-names = "default";
115f126890aSEmmanuel Vadot		pinctrl-0 = <&pinctrl_cyttsp5_gpio>;
116f126890aSEmmanuel Vadot		interrupt-parent = <&gpio5>;
117f126890aSEmmanuel Vadot		interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
118f126890aSEmmanuel Vadot		reset-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
119f126890aSEmmanuel Vadot		vdd-supply = <&ldo5_reg>;
120f126890aSEmmanuel Vadot	};
121f126890aSEmmanuel Vadot
122f126890aSEmmanuel Vadot	/* TODO: TPS65185 PMIC for E Ink at 0x68 */
123f126890aSEmmanuel Vadot
124f126890aSEmmanuel Vadot};
125f126890aSEmmanuel Vadot
126f126890aSEmmanuel Vadot&i2c3 {
127f126890aSEmmanuel Vadot	clock-frequency = <100000>;
128f126890aSEmmanuel Vadot	status = "okay";
129f126890aSEmmanuel Vadot
130f126890aSEmmanuel Vadot	ricoh619: pmic@32 {
131f126890aSEmmanuel Vadot		compatible = "ricoh,rc5t619";
132f126890aSEmmanuel Vadot		reg = <0x32>;
133f126890aSEmmanuel Vadot		interrupt-parent = <&gpio5>;
1347d0873ebSEmmanuel Vadot		interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
135f126890aSEmmanuel Vadot		system-power-controller;
136f126890aSEmmanuel Vadot
137f126890aSEmmanuel Vadot		regulators {
138f126890aSEmmanuel Vadot			dcdc1_reg: DCDC1 {
139f126890aSEmmanuel Vadot				regulator-name = "DCDC1";
140f126890aSEmmanuel Vadot				regulator-min-microvolt = <300000>;
141f126890aSEmmanuel Vadot				regulator-max-microvolt = <1875000>;
142f126890aSEmmanuel Vadot				regulator-always-on;
143f126890aSEmmanuel Vadot				regulator-boot-on;
144f126890aSEmmanuel Vadot
145f126890aSEmmanuel Vadot				regulator-state-mem {
146f126890aSEmmanuel Vadot					regulator-on-in-suspend;
147f126890aSEmmanuel Vadot					regulator-suspend-max-microvolt = <900000>;
148f126890aSEmmanuel Vadot					regulator-suspend-min-microvolt = <900000>;
149f126890aSEmmanuel Vadot				};
150f126890aSEmmanuel Vadot			};
151f126890aSEmmanuel Vadot
152f126890aSEmmanuel Vadot			/* Core3_3V3 */
153f126890aSEmmanuel Vadot			dcdc2_reg: DCDC2 {
154f126890aSEmmanuel Vadot				regulator-name = "DCDC2";
155f126890aSEmmanuel Vadot				regulator-always-on;
156f126890aSEmmanuel Vadot				regulator-boot-on;
157f126890aSEmmanuel Vadot
158f126890aSEmmanuel Vadot				regulator-state-mem {
159f126890aSEmmanuel Vadot					regulator-on-in-suspend;
160f126890aSEmmanuel Vadot					regulator-suspend-max-microvolt = <3300000>;
161f126890aSEmmanuel Vadot					regulator-suspend-min-microvolt = <3300000>;
162f126890aSEmmanuel Vadot				};
163f126890aSEmmanuel Vadot			};
164f126890aSEmmanuel Vadot
165f126890aSEmmanuel Vadot			dcdc3_reg: DCDC3 {
166f126890aSEmmanuel Vadot				regulator-name = "DCDC3";
167f126890aSEmmanuel Vadot				regulator-min-microvolt = <300000>;
168f126890aSEmmanuel Vadot				regulator-max-microvolt = <1875000>;
169f126890aSEmmanuel Vadot				regulator-always-on;
170f126890aSEmmanuel Vadot				regulator-boot-on;
171f126890aSEmmanuel Vadot
172f126890aSEmmanuel Vadot				regulator-state-mem {
173f126890aSEmmanuel Vadot					regulator-on-in-suspend;
174f126890aSEmmanuel Vadot					regulator-suspend-max-microvolt = <1140000>;
175f126890aSEmmanuel Vadot					regulator-suspend-min-microvolt = <1140000>;
176f126890aSEmmanuel Vadot				};
177f126890aSEmmanuel Vadot			};
178f126890aSEmmanuel Vadot
179f126890aSEmmanuel Vadot			/* Core4_1V2 */
180f126890aSEmmanuel Vadot			dcdc4_reg: DCDC4 {
181f126890aSEmmanuel Vadot				regulator-name = "DCDC4";
182f126890aSEmmanuel Vadot				regulator-min-microvolt = <1200000>;
183f126890aSEmmanuel Vadot				regulator-max-microvolt = <1200000>;
184f126890aSEmmanuel Vadot				regulator-always-on;
185f126890aSEmmanuel Vadot				regulator-boot-on;
186f126890aSEmmanuel Vadot
187f126890aSEmmanuel Vadot				regulator-state-mem {
188f126890aSEmmanuel Vadot					regulator-on-in-suspend;
189f126890aSEmmanuel Vadot					regulator-suspend-max-microvolt = <1140000>;
190f126890aSEmmanuel Vadot					regulator-suspend-min-microvolt = <1140000>;
191f126890aSEmmanuel Vadot				};
192f126890aSEmmanuel Vadot			};
193f126890aSEmmanuel Vadot
194f126890aSEmmanuel Vadot			/* Core4_1V8 */
195f126890aSEmmanuel Vadot			dcdc5_reg: DCDC5 {
196f126890aSEmmanuel Vadot				regulator-name = "DCDC5";
197f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
198f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
199f126890aSEmmanuel Vadot				regulator-always-on;
200f126890aSEmmanuel Vadot				regulator-boot-on;
201f126890aSEmmanuel Vadot
202f126890aSEmmanuel Vadot				regulator-state-mem {
203f126890aSEmmanuel Vadot					regulator-on-in-suspend;
204f126890aSEmmanuel Vadot					regulator-suspend-max-microvolt = <1700000>;
205f126890aSEmmanuel Vadot					regulator-suspend-min-microvolt = <1700000>;
206f126890aSEmmanuel Vadot				};
207f126890aSEmmanuel Vadot			};
208f126890aSEmmanuel Vadot
209f126890aSEmmanuel Vadot			/* IR_3V3 */
210f126890aSEmmanuel Vadot			ldo1_reg: LDO1  {
211f126890aSEmmanuel Vadot				regulator-name = "LDO1";
212f126890aSEmmanuel Vadot				regulator-boot-on;
213f126890aSEmmanuel Vadot			};
214f126890aSEmmanuel Vadot
215f126890aSEmmanuel Vadot			/* Core1_3V3 */
216f126890aSEmmanuel Vadot			ldo2_reg: LDO2  {
217f126890aSEmmanuel Vadot				regulator-name = "LDO2";
218f126890aSEmmanuel Vadot				regulator-always-on;
219f126890aSEmmanuel Vadot				regulator-boot-on;
220f126890aSEmmanuel Vadot
221f126890aSEmmanuel Vadot				regulator-state-mem {
222f126890aSEmmanuel Vadot					regulator-on-in-suspend;
223f126890aSEmmanuel Vadot					regulator-suspend-max-microvolt = <3000000>;
224f126890aSEmmanuel Vadot					regulator-suspend-min-microvolt = <3000000>;
225f126890aSEmmanuel Vadot				};
226f126890aSEmmanuel Vadot			};
227f126890aSEmmanuel Vadot
228f126890aSEmmanuel Vadot			/* Core5_1V2 */
229f126890aSEmmanuel Vadot			ldo3_reg: LDO3  {
230f126890aSEmmanuel Vadot				regulator-name = "LDO3";
231f126890aSEmmanuel Vadot				regulator-always-on;
232f126890aSEmmanuel Vadot				regulator-boot-on;
233f126890aSEmmanuel Vadot			};
234f126890aSEmmanuel Vadot
235f126890aSEmmanuel Vadot			ldo4_reg: LDO4 {
236f126890aSEmmanuel Vadot				regulator-name = "LDO4";
237f126890aSEmmanuel Vadot				regulator-boot-on;
238f126890aSEmmanuel Vadot			};
239f126890aSEmmanuel Vadot
240f126890aSEmmanuel Vadot			/* SPD_3V3 */
241f126890aSEmmanuel Vadot			ldo5_reg: LDO5 {
242f126890aSEmmanuel Vadot				regulator-name = "LDO5";
243f126890aSEmmanuel Vadot				regulator-always-on;
244f126890aSEmmanuel Vadot				regulator-boot-on;
245f126890aSEmmanuel Vadot			};
246f126890aSEmmanuel Vadot
247f126890aSEmmanuel Vadot			/* DDR_0V6 */
248f126890aSEmmanuel Vadot			ldo6_reg: LDO6 {
249f126890aSEmmanuel Vadot				regulator-name = "LDO6";
250f126890aSEmmanuel Vadot				regulator-always-on;
251f126890aSEmmanuel Vadot				regulator-boot-on;
252f126890aSEmmanuel Vadot			};
253f126890aSEmmanuel Vadot
254f126890aSEmmanuel Vadot			/* VDD_PWM */
255f126890aSEmmanuel Vadot			ldo7_reg: LDO7 {
256f126890aSEmmanuel Vadot				regulator-name = "LDO7";
257f126890aSEmmanuel Vadot				regulator-always-on;
258f126890aSEmmanuel Vadot				regulator-boot-on;
259f126890aSEmmanuel Vadot			};
260f126890aSEmmanuel Vadot
261f126890aSEmmanuel Vadot			/* ldo_1v8 */
262f126890aSEmmanuel Vadot			ldo8_reg: LDO8 {
263f126890aSEmmanuel Vadot				regulator-name = "LDO8";
264f126890aSEmmanuel Vadot				regulator-min-microvolt = <1800000>;
265f126890aSEmmanuel Vadot				regulator-max-microvolt = <1800000>;
266f126890aSEmmanuel Vadot				regulator-always-on;
267f126890aSEmmanuel Vadot				regulator-boot-on;
268f126890aSEmmanuel Vadot			};
269f126890aSEmmanuel Vadot
270f126890aSEmmanuel Vadot			ldo9_reg: LDO9 {
271f126890aSEmmanuel Vadot				regulator-name = "LDO9";
272f126890aSEmmanuel Vadot				regulator-boot-on;
273f126890aSEmmanuel Vadot			};
274f126890aSEmmanuel Vadot
275f126890aSEmmanuel Vadot			ldo10_reg: LDO10 {
276f126890aSEmmanuel Vadot				regulator-name = "LDO10";
277f126890aSEmmanuel Vadot				regulator-boot-on;
278f126890aSEmmanuel Vadot			};
279f126890aSEmmanuel Vadot
280f126890aSEmmanuel Vadot			ldortc1_reg: LDORTC1  {
281f126890aSEmmanuel Vadot				regulator-name = "LDORTC1";
282f126890aSEmmanuel Vadot				regulator-boot-on;
283f126890aSEmmanuel Vadot			};
284f126890aSEmmanuel Vadot		};
285f126890aSEmmanuel Vadot	};
286f126890aSEmmanuel Vadot};
287f126890aSEmmanuel Vadot
288f126890aSEmmanuel Vadot&snvs_rtc {
289f126890aSEmmanuel Vadot	/* we are using the rtc in the pmic, not disabled in imx6sll.dtsi */
290f126890aSEmmanuel Vadot	status = "disabled";
291f126890aSEmmanuel Vadot};
292f126890aSEmmanuel Vadot
293f126890aSEmmanuel Vadot&uart1 {
294f126890aSEmmanuel Vadot	/* J4, through-hole */
295f126890aSEmmanuel Vadot	status = "okay";
296f126890aSEmmanuel Vadot};
297f126890aSEmmanuel Vadot
298f126890aSEmmanuel Vadot&uart4 {
299f126890aSEmmanuel Vadot	/* TP198, next to J4, SMD pads */
300f126890aSEmmanuel Vadot	status = "okay";
301f126890aSEmmanuel Vadot};
302f126890aSEmmanuel Vadot
303f126890aSEmmanuel Vadot&usdhc2 {
304f126890aSEmmanuel Vadot	non-removable;
305f126890aSEmmanuel Vadot	status = "okay";
306f126890aSEmmanuel Vadot};
307f126890aSEmmanuel Vadot
308f126890aSEmmanuel Vadot&usdhc3 {
309f126890aSEmmanuel Vadot	vmmc-supply = <&reg_wifi>;
310f126890aSEmmanuel Vadot	mmc-pwrseq = <&wifi_pwrseq>;
311f126890aSEmmanuel Vadot	cap-power-off-card;
312f126890aSEmmanuel Vadot	non-removable;
313f126890aSEmmanuel Vadot	status = "okay";
314f126890aSEmmanuel Vadot};
315f126890aSEmmanuel Vadot
316f126890aSEmmanuel Vadot&usbotg1 {
317f126890aSEmmanuel Vadot	pinctrl-names = "default";
318f126890aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_usbotg1>;
319f126890aSEmmanuel Vadot	disable-over-current;
320f126890aSEmmanuel Vadot	srp-disable;
321f126890aSEmmanuel Vadot	hnp-disable;
322f126890aSEmmanuel Vadot	adp-disable;
323f126890aSEmmanuel Vadot	status = "okay";
324f126890aSEmmanuel Vadot};
325