1279377Simp/*
2279377Simp * am335x-igep0033.dtsi - Device Tree file for IGEP COM AQUILA AM335x
3279377Simp *
4279377Simp * Copyright (C) 2013 ISEE 2007 SL - http://www.isee.biz
5279377Simp *
6279377Simp * This program is free software; you can redistribute it and/or modify
7279377Simp * it under the terms of the GNU General Public License version 2 as
8279377Simp * published by the Free Software Foundation.
9279377Simp */
10279377Simp
11279377Simp/dts-v1/;
12279377Simp
13279377Simp#include "am33xx.dtsi"
14279377Simp
15279377Simp/ {
16279377Simp	cpus {
17279377Simp		cpu@0 {
18279377Simp			cpu0-supply = <&vdd1_reg>;
19279377Simp		};
20279377Simp	};
21279377Simp
22279377Simp	memory {
23279377Simp		device_type = "memory";
24279377Simp		reg = <0x80000000 0x10000000>; /* 256 MB */
25279377Simp	};
26279377Simp
27279377Simp	leds {
28279377Simp		pinctrl-names = "default";
29279377Simp		pinctrl-0 = <&leds_pins>;
30279377Simp
31279377Simp		compatible = "gpio-leds";
32279377Simp
33279377Simp		led@0 {
34279377Simp			label = "com:green:user";
35279377Simp			gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
36279377Simp			default-state = "on";
37279377Simp		};
38279377Simp	};
39279377Simp
40279377Simp	vbat: fixedregulator@0 {
41279377Simp		compatible = "regulator-fixed";
42279377Simp		regulator-name = "vbat";
43279377Simp		regulator-min-microvolt = <5000000>;
44279377Simp		regulator-max-microvolt = <5000000>;
45279377Simp		regulator-boot-on;
46279377Simp	};
47279377Simp
48279377Simp	vmmc: fixedregulator@0 {
49279377Simp		compatible = "regulator-fixed";
50279377Simp		regulator-name = "vmmc";
51279377Simp		regulator-min-microvolt = <3300000>;
52279377Simp		regulator-max-microvolt = <3300000>;
53279377Simp	};
54279377Simp};
55279377Simp
56279377Simp&am33xx_pinmux {
57279377Simp	i2c0_pins: pinmux_i2c0_pins {
58279377Simp		pinctrl-single,pins = <
59295436Sandrew			AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c0_sda.i2c0_sda */
60295436Sandrew			AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0)	/* i2c0_scl.i2c0_scl */
61279377Simp		>;
62279377Simp	};
63279377Simp
64279377Simp	nandflash_pins: pinmux_nandflash_pins {
65279377Simp		pinctrl-single,pins = <
66295436Sandrew			AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad0.gpmc_ad0 */
67295436Sandrew			AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad1.gpmc_ad1 */
68295436Sandrew			AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad2.gpmc_ad2 */
69295436Sandrew			AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad3.gpmc_ad3 */
70295436Sandrew			AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad4.gpmc_ad4 */
71295436Sandrew			AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad5.gpmc_ad5 */
72295436Sandrew			AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad6.gpmc_ad6 */
73295436Sandrew			AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_ad7.gpmc_ad7 */
74295436Sandrew			AM33XX_IOPAD(0x870, PIN_INPUT_PULLUP | MUX_MODE0)	/* gpmc_wait0.gpmc_wait0 */
75295436Sandrew			AM33XX_IOPAD(0x874, PIN_INPUT_PULLUP | MUX_MODE7)	/* gpmc_wpn.gpio0_30 */
76295436Sandrew			AM33XX_IOPAD(0x87c, PIN_OUTPUT | MUX_MODE0)		/* gpmc_csn0.gpmc_csn0 */
77295436Sandrew			AM33XX_IOPAD(0x890, PIN_OUTPUT | MUX_MODE0)		/* gpmc_advn_ale.gpmc_advn_ale */
78295436Sandrew			AM33XX_IOPAD(0x894, PIN_OUTPUT | MUX_MODE0)		/* gpmc_oen_ren.gpmc_oen_ren */
79295436Sandrew			AM33XX_IOPAD(0x898, PIN_OUTPUT | MUX_MODE0)		/* gpmc_wen.gpmc_wen */
80295436Sandrew			AM33XX_IOPAD(0x89c, PIN_OUTPUT | MUX_MODE0)		/* gpmc_be0n_cle.gpmc_be0n_cle */
81279377Simp		>;
82279377Simp	};
83279377Simp
84279377Simp	uart0_pins: pinmux_uart0_pins {
85279377Simp		pinctrl-single,pins = <
86295436Sandrew			AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0)	/* uart0_rxd.uart0_rxd */
87295436Sandrew			AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0)	/* uart0_txd.uart0_txd */
88279377Simp		>;
89279377Simp	};
90279377Simp
91279377Simp	leds_pins: pinmux_leds_pins {
92279377Simp		pinctrl-single,pins = <
93295436Sandrew			AM33XX_IOPAD(0x85c, PIN_OUTPUT_PULLDOWN | MUX_MODE7)	/* gpmc_a7.gpio1_23 */
94279377Simp		>;
95279377Simp	};
96279377Simp};
97279377Simp
98279377Simp&mac {
99279377Simp	status = "okay";
100279377Simp};
101279377Simp
102279377Simp&davinci_mdio {
103279377Simp	status = "okay";
104279377Simp};
105279377Simp
106279377Simp&cpsw_emac0 {
107279377Simp	phy_id = <&davinci_mdio>, <0>;
108279377Simp	phy-mode = "rmii";
109279377Simp};
110279377Simp
111279377Simp&cpsw_emac1 {
112279377Simp	phy_id = <&davinci_mdio>, <1>;
113279377Simp	phy-mode = "rmii";
114279377Simp};
115279377Simp
116279377Simp&phy_sel {
117279377Simp	rmii-clock-ext;
118279377Simp};
119279377Simp
120279377Simp&elm {
121279377Simp	status = "okay";
122279377Simp};
123279377Simp
124279377Simp&gpmc {
125279377Simp	status = "okay";
126279377Simp	pinctrl-names = "default";
127279377Simp	pinctrl-0 = <&nandflash_pins>;
128279377Simp
129279377Simp	ranges = <0 0 0x08000000 0x1000000>;	/* CS0: 16MB for NAND */
130279377Simp
131279377Simp	nand@0,0 {
132279377Simp		reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
133279377Simp		nand-bus-width = <8>;
134279377Simp		ti,nand-ecc-opt = "bch8";
135279377Simp		gpmc,device-width = <1>;
136279377Simp		gpmc,sync-clk-ps = <0>;
137279377Simp		gpmc,cs-on-ns = <0>;
138279377Simp		gpmc,cs-rd-off-ns = <44>;
139279377Simp		gpmc,cs-wr-off-ns = <44>;
140279377Simp		gpmc,adv-on-ns = <6>;
141279377Simp		gpmc,adv-rd-off-ns = <34>;
142279377Simp		gpmc,adv-wr-off-ns = <44>;
143279377Simp		gpmc,we-on-ns = <0>;
144279377Simp		gpmc,we-off-ns = <40>;
145279377Simp		gpmc,oe-on-ns = <0>;
146279377Simp		gpmc,oe-off-ns = <54>;
147279377Simp		gpmc,access-ns = <64>;
148279377Simp		gpmc,rd-cycle-ns = <82>;
149279377Simp		gpmc,wr-cycle-ns = <82>;
150279377Simp		gpmc,wait-on-read = "true";
151279377Simp		gpmc,wait-on-write = "true";
152279377Simp		gpmc,bus-turnaround-ns = <0>;
153279377Simp		gpmc,cycle2cycle-delay-ns = <0>;
154279377Simp		gpmc,clk-activation-ns = <0>;
155279377Simp		gpmc,wait-monitoring-ns = <0>;
156279377Simp		gpmc,wr-access-ns = <40>;
157279377Simp		gpmc,wr-data-mux-bus-ns = <0>;
158279377Simp
159279377Simp		#address-cells = <1>;
160279377Simp		#size-cells = <1>;
161279377Simp		elm_id = <&elm>;
162279377Simp
163279377Simp		/* MTD partition table */
164279377Simp		partition@0 {
165279377Simp			label = "SPL";
166279377Simp			reg = <0x00000000 0x000080000>;
167279377Simp		};
168279377Simp
169279377Simp		partition@1 {
170279377Simp			label = "U-boot";
171279377Simp			reg = <0x00080000 0x001e0000>;
172279377Simp		};
173279377Simp
174279377Simp		partition@2 {
175279377Simp			label = "U-Boot Env";
176279377Simp			reg = <0x00260000 0x00020000>;
177279377Simp		};
178279377Simp
179279377Simp		partition@3 {
180279377Simp			label = "Kernel";
181279377Simp			reg = <0x00280000 0x00500000>;
182279377Simp		};
183279377Simp
184279377Simp		partition@4 {
185279377Simp			label = "File System";
186279377Simp			reg = <0x00780000 0x007880000>;
187279377Simp		};
188279377Simp	};
189279377Simp};
190279377Simp
191279377Simp&i2c0 {
192279377Simp	status = "okay";
193279377Simp	pinctrl-names = "default";
194279377Simp	pinctrl-0 = <&i2c0_pins>;
195279377Simp
196279377Simp	clock-frequency = <400000>;
197279377Simp
198279377Simp	tps: tps@2d {
199279377Simp		reg = <0x2d>;
200279377Simp	};
201279377Simp};
202279377Simp
203279377Simp&mmc1 {
204279377Simp	status = "okay";
205279377Simp	vmmc-supply = <&vmmc>;
206279377Simp	bus-width = <4>;
207279377Simp};
208279377Simp
209279377Simp&uart0 {
210279377Simp	status = "okay";
211279377Simp	pinctrl-names = "default";
212279377Simp	pinctrl-0 = <&uart0_pins>;
213279377Simp};
214279377Simp
215279377Simp&usb {
216279377Simp	status = "okay";
217279377Simp};
218279377Simp
219279377Simp&usb_ctrl_mod {
220279377Simp	status = "okay";
221279377Simp};
222279377Simp
223279377Simp&usb0_phy {
224279377Simp	status = "okay";
225279377Simp};
226279377Simp
227279377Simp&usb1_phy {
228279377Simp	status = "okay";
229279377Simp};
230279377Simp
231279377Simp&usb0 {
232279377Simp	status = "okay";
233279377Simp};
234279377Simp
235279377Simp&usb1 {
236279377Simp	status = "okay";
237279377Simp	dr_mode = "host";
238279377Simp};
239279377Simp
240279377Simp&cppi41dma  {
241279377Simp	status = "okay";
242279377Simp};
243279377Simp
244279377Simp#include "tps65910.dtsi"
245279377Simp
246279377Simp&tps {
247279377Simp	vcc1-supply = <&vbat>;
248279377Simp	vcc2-supply = <&vbat>;
249279377Simp	vcc3-supply = <&vbat>;
250279377Simp	vcc4-supply = <&vbat>;
251279377Simp	vcc5-supply = <&vbat>;
252279377Simp	vcc6-supply = <&vbat>;
253279377Simp	vcc7-supply = <&vbat>;
254279377Simp	vccio-supply = <&vbat>;
255279377Simp
256279377Simp	regulators {
257279377Simp		vrtc_reg: regulator@0 {
258279377Simp			regulator-always-on;
259279377Simp		};
260279377Simp
261279377Simp		vio_reg: regulator@1 {
262279377Simp			regulator-always-on;
263279377Simp		};
264279377Simp
265279377Simp		vdd1_reg: regulator@2 {
266279377Simp			/* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
267279377Simp			regulator-name = "vdd_mpu";
268279377Simp			regulator-min-microvolt = <912500>;
269279377Simp			regulator-max-microvolt = <1312500>;
270279377Simp			regulator-boot-on;
271279377Simp			regulator-always-on;
272279377Simp		};
273279377Simp
274279377Simp		vdd2_reg: regulator@3 {
275279377Simp			/* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
276279377Simp			regulator-name = "vdd_core";
277279377Simp			regulator-min-microvolt = <912500>;
278279377Simp			regulator-max-microvolt = <1150000>;
279279377Simp			regulator-boot-on;
280279377Simp			regulator-always-on;
281279377Simp		};
282279377Simp
283279377Simp		vdd3_reg: regulator@4 {
284279377Simp			regulator-always-on;
285279377Simp		};
286279377Simp
287279377Simp		vdig1_reg: regulator@5 {
288279377Simp			regulator-always-on;
289279377Simp		};
290279377Simp
291279377Simp		vdig2_reg: regulator@6 {
292279377Simp			regulator-always-on;
293279377Simp		};
294279377Simp
295279377Simp		vpll_reg: regulator@7 {
296279377Simp			regulator-always-on;
297279377Simp		};
298279377Simp
299279377Simp		vdac_reg: regulator@8 {
300279377Simp			regulator-always-on;
301279377Simp		};
302279377Simp
303279377Simp		vaux1_reg: regulator@9 {
304279377Simp			regulator-always-on;
305279377Simp		};
306279377Simp
307279377Simp		vaux2_reg: regulator@10 {
308279377Simp			regulator-always-on;
309279377Simp		};
310279377Simp
311279377Simp		vaux33_reg: regulator@11 {
312279377Simp			regulator-always-on;
313279377Simp		};
314279377Simp
315279377Simp		vmmc_reg: regulator@12 {
316279377Simp			regulator-always-on;
317279377Simp		};
318279377Simp	};
319279377Simp};
320279377Simp
321