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