File Index
Files and directories
Sign in
FILE

e70k02.dtsi

File preview with syntax highlighting.

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