blob: 4488dcce01233269134710219b67f1ce3c120ce9 [file] [log] [blame]
Andrew Davisebc98d92023-04-11 13:24:54 -05001// SPDX-License-Identifier: GPL-2.0-only
Enric Balletbo i Serra96572262018-12-28 11:55:48 +01002/*
3 * am335x-igep0033.dtsi - Device Tree file for IGEP COM AQUILA AM335x
4 *
5 * Copyright (C) 2013 ISEE 2007 SL - http://www.isee.biz
Enric Balletbo i Serra96572262018-12-28 11:55:48 +01006 */
7
8/dts-v1/;
9
10#include "am33xx.dtsi"
11#include <dt-bindings/interrupt-controller/irq.h>
12
13/ {
14 cpus {
15 cpu@0 {
16 cpu0-supply = <&vdd1_reg>;
17 };
18 };
19
20 memory@80000000 {
21 device_type = "memory";
22 reg = <0x80000000 0x10000000>; /* 256 MB */
23 };
24
25 leds {
26 pinctrl-names = "default";
27 pinctrl-0 = <&leds_pins>;
28
29 compatible = "gpio-leds";
30
31 led0 {
32 label = "com:green:user";
33 gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
34 default-state = "on";
35 };
36 };
37
38 vbat: fixedregulator0 {
39 compatible = "regulator-fixed";
40 regulator-name = "vbat";
41 regulator-min-microvolt = <5000000>;
42 regulator-max-microvolt = <5000000>;
43 regulator-boot-on;
44 };
45
46 vmmc: fixedregulator1 {
47 compatible = "regulator-fixed";
48 regulator-name = "vmmc";
49 regulator-min-microvolt = <3300000>;
50 regulator-max-microvolt = <3300000>;
51 };
52};
53
54&am33xx_pinmux {
55 i2c0_pins: pinmux_i2c0_pins {
56 pinctrl-single,pins = <
Andrew Davis7eeef8a2023-04-11 13:25:03 -050057 AM33XX_PADCONF(AM335X_PIN_I2C0_SDA, PIN_INPUT_PULLUP, MUX_MODE0)
58 AM33XX_PADCONF(AM335X_PIN_I2C0_SCL, PIN_INPUT_PULLUP, MUX_MODE0)
Enric Balletbo i Serra96572262018-12-28 11:55:48 +010059 >;
60 };
61
62 nandflash_pins: pinmux_nandflash_pins {
63 pinctrl-single,pins = <
Andrew Davis7eeef8a2023-04-11 13:25:03 -050064 AM33XX_PADCONF(AM335X_PIN_GPMC_AD0, PIN_INPUT_PULLUP, MUX_MODE0)
65 AM33XX_PADCONF(AM335X_PIN_GPMC_AD1, PIN_INPUT_PULLUP, MUX_MODE0)
66 AM33XX_PADCONF(AM335X_PIN_GPMC_AD2, PIN_INPUT_PULLUP, MUX_MODE0)
67 AM33XX_PADCONF(AM335X_PIN_GPMC_AD3, PIN_INPUT_PULLUP, MUX_MODE0)
68 AM33XX_PADCONF(AM335X_PIN_GPMC_AD4, PIN_INPUT_PULLUP, MUX_MODE0)
69 AM33XX_PADCONF(AM335X_PIN_GPMC_AD5, PIN_INPUT_PULLUP, MUX_MODE0)
70 AM33XX_PADCONF(AM335X_PIN_GPMC_AD6, PIN_INPUT_PULLUP, MUX_MODE0)
71 AM33XX_PADCONF(AM335X_PIN_GPMC_AD7, PIN_INPUT_PULLUP, MUX_MODE0)
72 AM33XX_PADCONF(AM335X_PIN_GPMC_WAIT0, PIN_INPUT_PULLUP, MUX_MODE0)
73 AM33XX_PADCONF(AM335X_PIN_GPMC_WPN, PIN_INPUT_PULLUP, MUX_MODE7) /* gpmc_wpn.gpio0_31 */
74 AM33XX_PADCONF(AM335X_PIN_GPMC_CSN0, PIN_OUTPUT, MUX_MODE0)
75 AM33XX_PADCONF(AM335X_PIN_GPMC_ADVN_ALE, PIN_OUTPUT, MUX_MODE0)
76 AM33XX_PADCONF(AM335X_PIN_GPMC_OEN_REN, PIN_OUTPUT, MUX_MODE0)
77 AM33XX_PADCONF(AM335X_PIN_GPMC_WEN, PIN_OUTPUT, MUX_MODE0)
78 AM33XX_PADCONF(AM335X_PIN_GPMC_BEN0_CLE, PIN_OUTPUT, MUX_MODE0)
Enric Balletbo i Serra96572262018-12-28 11:55:48 +010079 >;
80 };
81
82 uart0_pins: pinmux_uart0_pins {
83 pinctrl-single,pins = <
Andrew Davis7eeef8a2023-04-11 13:25:03 -050084 AM33XX_PADCONF(AM335X_PIN_UART0_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
85 AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
Enric Balletbo i Serra96572262018-12-28 11:55:48 +010086 >;
87 };
88
89 leds_pins: pinmux_leds_pins {
90 pinctrl-single,pins = <
Andrew Davis7eeef8a2023-04-11 13:25:03 -050091 AM33XX_PADCONF(AM335X_PIN_GPMC_A7, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* gpmc_a7.gpio1_23 */
Enric Balletbo i Serra96572262018-12-28 11:55:48 +010092 >;
93 };
94};
95
96&mac {
97 status = "okay";
98};
99
100&davinci_mdio {
101 status = "okay";
Grygorii Strashkoa6f37dc2019-08-31 10:30:34 +0300102
103 ethphy0: ethernet-phy@0 {
104 reg = <0>;
105 };
106
107 ethphy1: ethernet-phy@1 {
108 reg = <1>;
109 };
Enric Balletbo i Serra96572262018-12-28 11:55:48 +0100110};
111
112&cpsw_emac0 {
Grygorii Strashkoa6f37dc2019-08-31 10:30:34 +0300113 phy-handle = <&ethphy0>;
Enric Balletbo i Serra96572262018-12-28 11:55:48 +0100114 phy-mode = "rmii";
115};
116
117&cpsw_emac1 {
Grygorii Strashkoa6f37dc2019-08-31 10:30:34 +0300118 phy-handle = <&ethphy1>;
Enric Balletbo i Serra96572262018-12-28 11:55:48 +0100119 phy-mode = "rmii";
120};
121
122&phy_sel {
123 rmii-clock-ext;
124};
125
126&elm {
127 status = "okay";
128};
129
130&gpmc {
131 status = "okay";
132 pinctrl-names = "default";
133 pinctrl-0 = <&nandflash_pins>;
134
135 ranges = <0 0 0x08000000 0x1000000>; /* CS0: 16MB for NAND */
136
137 nand@0,0 {
138 compatible = "ti,omap2-nand";
139 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
140 interrupt-parent = <&gpmc>;
141 interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
142 <1 IRQ_TYPE_NONE>; /* termcount */
143 rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
144 nand-bus-width = <8>;
145 ti,nand-ecc-opt = "bch8";
146 gpmc,device-width = <1>;
147 gpmc,sync-clk-ps = <0>;
148 gpmc,cs-on-ns = <0>;
149 gpmc,cs-rd-off-ns = <44>;
150 gpmc,cs-wr-off-ns = <44>;
151 gpmc,adv-on-ns = <6>;
152 gpmc,adv-rd-off-ns = <34>;
153 gpmc,adv-wr-off-ns = <44>;
154 gpmc,we-on-ns = <0>;
155 gpmc,we-off-ns = <40>;
156 gpmc,oe-on-ns = <0>;
157 gpmc,oe-off-ns = <54>;
158 gpmc,access-ns = <64>;
159 gpmc,rd-cycle-ns = <82>;
160 gpmc,wr-cycle-ns = <82>;
161 gpmc,bus-turnaround-ns = <0>;
162 gpmc,cycle2cycle-delay-ns = <0>;
163 gpmc,clk-activation-ns = <0>;
164 gpmc,wr-access-ns = <40>;
165 gpmc,wr-data-mux-bus-ns = <0>;
166
167 #address-cells = <1>;
168 #size-cells = <1>;
169 ti,elm-id = <&elm>;
170
171 /* MTD partition table */
172 partition@0 {
173 label = "SPL";
Andrew Davisa45320d2023-04-11 13:25:05 -0500174 reg = <0x00000000 0x00080000>;
Enric Balletbo i Serra96572262018-12-28 11:55:48 +0100175 };
176
177 partition@1 {
Michal Simek22dc1132023-06-05 13:58:59 +0200178 label = "U-Boot";
Enric Balletbo i Serra96572262018-12-28 11:55:48 +0100179 reg = <0x00080000 0x001e0000>;
180 };
181
182 partition@2 {
183 label = "U-Boot Env";
184 reg = <0x00260000 0x00020000>;
185 };
186
187 partition@3 {
188 label = "Kernel";
189 reg = <0x00280000 0x00500000>;
190 };
191
192 partition@4 {
193 label = "File System";
Andrew Davisa45320d2023-04-11 13:25:05 -0500194 reg = <0x00780000 0x07880000>;
Enric Balletbo i Serra96572262018-12-28 11:55:48 +0100195 };
196 };
197};
198
199&i2c0 {
200 status = "okay";
201 pinctrl-names = "default";
202 pinctrl-0 = <&i2c0_pins>;
203
204 clock-frequency = <400000>;
205
206 tps: tps@2d {
207 reg = <0x2d>;
208 };
209};
210
211&mmc1 {
212 status = "okay";
213 vmmc-supply = <&vmmc>;
214 bus-width = <4>;
215};
216
217&uart0 {
218 status = "okay";
219 pinctrl-names = "default";
220 pinctrl-0 = <&uart0_pins>;
221};
222
223&usb {
224 status = "okay";
225};
226
227&usb_ctrl_mod {
228 status = "okay";
229};
230
231&usb0_phy {
232 status = "okay";
233};
234
235&usb1_phy {
236 status = "okay";
237};
238
239&usb0 {
240 status = "okay";
241};
242
243&usb1 {
244 status = "okay";
245 dr_mode = "host";
246};
247
248&cppi41dma {
249 status = "okay";
250};
251
252#include "tps65910.dtsi"
253
254&tps {
255 vcc1-supply = <&vbat>;
256 vcc2-supply = <&vbat>;
257 vcc3-supply = <&vbat>;
258 vcc4-supply = <&vbat>;
259 vcc5-supply = <&vbat>;
260 vcc6-supply = <&vbat>;
261 vcc7-supply = <&vbat>;
262 vccio-supply = <&vbat>;
263
264 regulators {
265 vrtc_reg: regulator@0 {
266 regulator-always-on;
267 };
268
269 vio_reg: regulator@1 {
270 regulator-always-on;
271 };
272
273 vdd1_reg: regulator@2 {
274 /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
275 regulator-name = "vdd_mpu";
276 regulator-min-microvolt = <912500>;
277 regulator-max-microvolt = <1312500>;
278 regulator-boot-on;
279 regulator-always-on;
280 };
281
282 vdd2_reg: regulator@3 {
283 /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
284 regulator-name = "vdd_core";
285 regulator-min-microvolt = <912500>;
286 regulator-max-microvolt = <1150000>;
287 regulator-boot-on;
288 regulator-always-on;
289 };
290
291 vdd3_reg: regulator@4 {
292 regulator-always-on;
293 };
294
295 vdig1_reg: regulator@5 {
296 regulator-always-on;
297 };
298
299 vdig2_reg: regulator@6 {
300 regulator-always-on;
301 };
302
303 vpll_reg: regulator@7 {
304 regulator-always-on;
305 };
306
307 vdac_reg: regulator@8 {
308 regulator-always-on;
309 };
310
311 vaux1_reg: regulator@9 {
312 regulator-always-on;
313 };
314
315 vaux2_reg: regulator@10 {
316 regulator-always-on;
317 };
318
319 vaux33_reg: regulator@11 {
320 regulator-always-on;
321 };
322
323 vmmc_reg: regulator@12 {
324 regulator-always-on;
325 };
326 };
327};
328