summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/imx50-kobo-aura.dts
blob: a0eaf869b9135025a3a2a7045d6501e47b7ea41b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
// SPDX-License-Identifier: GPL-2.0+
// Copyright 2019 Jonathan Neuschäfer
//
// The Kobo Aura e-book reader, model N514. The mainboard is marked as E606F0B.

/dts-v1/;
#include "imx50.dtsi"
#include <dt-bindings/input/input.h>

/ {
	model = "Kobo Aura (N514)";
	compatible = "kobo,aura", "fsl,imx50";

	chosen {
		stdout-path = "serial1:115200n8";
	};

	memory@70000000 {
		device_type = "memory";
		reg = <0x70000000 0x10000000>;
	};

	gpio-leds {
		compatible = "gpio-leds";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_leds>;

		on {
			label = "kobo_aura:orange:on";
			gpios = <&gpio6 24 GPIO_ACTIVE_LOW>;
			panic-indicator;
		};
	};

	gpio-keys {
		compatible = "gpio-keys";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_gpiokeys>;

		power {
			label = "Power Button";
			gpios = <&gpio4 10 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_POWER>;
		};

		hallsensor {
			label = "Hallsensor";
			gpios = <&gpio5 15 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_RESERVED>;
			linux,input-type = <EV_SW>;
		};

		frontlight {
			label = "Frontlight";
			gpios = <&gpio4 1 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_DISPLAYTOGGLE>;
		};
	};

	sd2_pwrseq: pwrseq {
		compatible = "mmc-pwrseq-simple";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_sd2_reset>;
		reset-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>;
	};

	sd2_vmmc: gpio-regulator {
		compatible = "regulator-gpio";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_sd2_vmmc>;
		regulator-name = "vmmc";
		states = <3300000 0>;
		regulator-min-microvolt = <3300000>;
		regulator-max-microvolt = <3300000>;
		enable-gpio = <&gpio4 12 GPIO_ACTIVE_LOW>;
		startup-delay-us = <100000>;
	};
};

&esdhc1 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_sd1>;
	max-frequency = <50000000>;
	bus-width = <4>;
	cd-gpios = <&gpio5 17 GPIO_ACTIVE_LOW>;
	disable-wp;
	status = "okay";

	/* External µSD card */
};

&esdhc2 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_sd2>;
	bus-width = <4>;
	max-frequency = <50000000>;
	disable-wp;
	mmc-pwrseq = <&sd2_pwrseq>;
	vmmc-supply = <&sd2_vmmc>;
	status = "okay";

	/* CyberTan WC121 SDIO WiFi (BCM43362) */
};

&esdhc3 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_sd3>;
	bus-width = <8>;
	non-removable;
	max-frequency = <50000000>;
	disable-wp;
	status = "okay";

	/* Internal eMMC */
};

&i2c1 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_i2c1>;
	status = "okay";

	/* TODO: ektf2132 touch controller at 0x15 */
};

&i2c2 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_i2c2>;
	status = "okay";

	/* TODO: TPS65185 PMIC for E Ink at 0x68 */
};

&i2c3 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_i2c3>;
	status = "okay";

	/* TODO: embedded controller at 0x43 */
};

&iomuxc {
	pinctrl_gpiokeys: gpiokeys {
		fsl,pins = <
			MX50_PAD_CSPI_MISO__GPIO4_10		0x0
			MX50_PAD_SD2_D7__GPIO5_15		0x0
			MX50_PAD_KEY_ROW0__GPIO4_1		0x0
		>;
	};

	pinctrl_i2c1: i2c1 {
		fsl,pins = <
			MX50_PAD_I2C1_SCL__I2C1_SCL		0x400001fd
			MX50_PAD_I2C1_SDA__I2C1_SDA		0x400001fd
		>;
	};

	pinctrl_i2c2: i2c2 {
		fsl,pins = <
			MX50_PAD_I2C2_SCL__I2C2_SCL		0x400001fd
			MX50_PAD_I2C2_SDA__I2C2_SDA		0x400001fd
		>;
	};

	pinctrl_i2c3: i2c3 {
		fsl,pins = <
			MX50_PAD_I2C3_SCL__I2C3_SCL		0x400001fd
			MX50_PAD_I2C3_SDA__I2C3_SDA		0x400001fd
		>;
	};

	pinctrl_leds: leds {
		fsl,pins = <
			MX50_PAD_PWM1__GPIO6_24			0x0
		>;
	};

	pinctrl_sd1: sd1 {
		fsl,pins = <
			MX50_PAD_SD1_CMD__ESDHC1_CMD		0x1e4
			MX50_PAD_SD1_CLK__ESDHC1_CLK		0xd4
			MX50_PAD_SD1_D0__ESDHC1_DAT0		0x1d4
			MX50_PAD_SD1_D1__ESDHC1_DAT1		0x1d4
			MX50_PAD_SD1_D2__ESDHC1_DAT2		0x1d4
			MX50_PAD_SD1_D3__ESDHC1_DAT3		0x1d4

			MX50_PAD_SD2_CD__GPIO5_17		0x0
		>;
	};

	pinctrl_sd2: sd2 {
		fsl,pins = <
			MX50_PAD_SD2_CMD__ESDHC2_CMD		0x1e4
			MX50_PAD_SD2_CLK__ESDHC2_CLK		0xd4
			MX50_PAD_SD2_D0__ESDHC2_DAT0		0x1d4
			MX50_PAD_SD2_D1__ESDHC2_DAT1		0x1d4
			MX50_PAD_SD2_D2__ESDHC2_DAT2		0x1d4
			MX50_PAD_SD2_D3__ESDHC2_DAT3		0x1d4
		>;
	};

	pinctrl_sd2_reset: sd2-reset {
		fsl,pins = <
			MX50_PAD_ECSPI2_MOSI__GPIO4_17		0x0
		>;
	};

	pinctrl_sd2_vmmc: sd2-vmmc {
		fsl,pins = <
			MX50_PAD_ECSPI1_SCLK__GPIO4_12		0x0
		>;
	};

	pinctrl_sd3: sd3 {
		fsl,pins = <
			MX50_PAD_SD3_CMD__ESDHC3_CMD		0x1e4
			MX50_PAD_SD3_CLK__ESDHC3_CLK		0xd4
			MX50_PAD_SD3_D0__ESDHC3_DAT0		0x1d4
			MX50_PAD_SD3_D1__ESDHC3_DAT1		0x1d4
			MX50_PAD_SD3_D2__ESDHC3_DAT2		0x1d4
			MX50_PAD_SD3_D3__ESDHC3_DAT3		0x1d4
			MX50_PAD_SD3_D4__ESDHC3_DAT4		0x1d4
			MX50_PAD_SD3_D5__ESDHC3_DAT5		0x1d4
			MX50_PAD_SD3_D6__ESDHC3_DAT6		0x1d4
			MX50_PAD_SD3_D7__ESDHC3_DAT7		0x1d4
		>;
	};

	pinctrl_uart2: uart2 {
		fsl,pins = <
			MX50_PAD_UART2_TXD__UART2_TXD_MUX	0x1e4
			MX50_PAD_UART2_RXD__UART2_RXD_MUX	0x1e4
		>;
	};

	pinctrl_usbphy: usbphy {
		fsl,pins = <
			MX50_PAD_ECSPI2_SS0__GPIO4_19		0x0
		>;
	};
};

&uart2 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart2>;
	status = "okay";
};

&usbotg {
	phy_type = "utmi_wide";
	dr_mode = "peripheral";
	status = "okay";
};

&usbphy0 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_usbphy>;
	vbus-detect-gpio = <&gpio4 19 GPIO_ACTIVE_LOW>;
};