blob: e5a4227aa7ebcbbe5d469ae38fb1c4986ae9d61a [file] [log] [blame]
Rajendra Nayak38b248d2014-04-29 16:35:10 +05301/*
2 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8/dts-v1/;
9
10#include "dra72x.dtsi"
11
12/ {
13 model = "TI DRA722";
14 compatible = "ti,dra72-evm", "ti,dra722", "ti,dra72", "ti,dra7";
15
16 memory {
17 device_type = "memory";
18 reg = <0x80000000 0x40000000>; /* 1024 MB */
19 };
20};
21
Keerthy J7e9711a2014-07-28 11:48:53 +053022&dra7_pmx_core {
23 i2c1_pins: pinmux_i2c1_pins {
24 pinctrl-single,pins = <
25 0x400 (PIN_INPUT | MUX_MODE0) /* i2c1_sda.i2c1_sda */
26 0x404 (PIN_INPUT | MUX_MODE0) /* i2c1_scl.i2c1_scl */
27 >;
28 };
Roger Quadros09d49932014-10-21 13:41:17 +030029
30 nand_default: nand_default {
31 pinctrl-single,pins = <
32 0x0 (PIN_INPUT | MUX_MODE0) /* gpmc_ad0 */
33 0x4 (PIN_INPUT | MUX_MODE0) /* gpmc_ad1 */
34 0x8 (PIN_INPUT | MUX_MODE0) /* gpmc_ad2 */
35 0xc (PIN_INPUT | MUX_MODE0) /* gpmc_ad3 */
36 0x10 (PIN_INPUT | MUX_MODE0) /* gpmc_ad4 */
37 0x14 (PIN_INPUT | MUX_MODE0) /* gpmc_ad5 */
38 0x18 (PIN_INPUT | MUX_MODE0) /* gpmc_ad6 */
39 0x1c (PIN_INPUT | MUX_MODE0) /* gpmc_ad7 */
40 0x20 (PIN_INPUT | MUX_MODE0) /* gpmc_ad8 */
41 0x24 (PIN_INPUT | MUX_MODE0) /* gpmc_ad9 */
42 0x28 (PIN_INPUT | MUX_MODE0) /* gpmc_ad10 */
43 0x2c (PIN_INPUT | MUX_MODE0) /* gpmc_ad11 */
44 0x30 (PIN_INPUT | MUX_MODE0) /* gpmc_ad12 */
45 0x34 (PIN_INPUT | MUX_MODE0) /* gpmc_ad13 */
46 0x38 (PIN_INPUT | MUX_MODE0) /* gpmc_ad14 */
47 0x3c (PIN_INPUT | MUX_MODE0) /* gpmc_ad15 */
48 0xb4 (PIN_OUTPUT | MUX_MODE0) /* gpmc_cs0 */
49 0xc4 (PIN_OUTPUT | MUX_MODE0) /* gpmc_advn_ale */
50 0xcc (PIN_OUTPUT | MUX_MODE0) /* gpmc_wen */
51 0xc8 (PIN_OUTPUT | MUX_MODE0) /* gpmc_oen_ren */
52 0xd0 (PIN_OUTPUT | MUX_MODE0) /* gpmc_ben0 */
53 0xd8 (PIN_INPUT | MUX_MODE0) /* gpmc_wait0 */
54 >;
55 };
George Cherian95cc6af2014-10-21 13:41:19 +030056
57 usb1_pins: pinmux_usb1_pins {
58 pinctrl-single,pins = <
59 0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */
60 >;
61 };
62
63 usb2_pins: pinmux_usb2_pins {
64 pinctrl-single,pins = <
65 0x284 (PIN_INPUT_SLEW | MUX_MODE0) /* usb2_drvvbus */
66 >;
67 };
Nishanth Menon829acd02014-10-21 09:30:46 -050068
69 tps65917_pins_default: tps65917_pins_default {
70 pinctrl-single,pins = <
71 0x424 (PIN_INPUT_PULLUP | MUX_MODE1) /* wakeup3.sys_nirq1 */
72 >;
73 };
Keerthy J7e9711a2014-07-28 11:48:53 +053074};
75
76&i2c1 {
77 status = "okay";
78 pinctrl-names = "default";
79 pinctrl-0 = <&i2c1_pins>;
80 clock-frequency = <400000>;
Keerthy Jb359c422014-07-28 11:48:54 +053081
82 tps65917: tps65917@58 {
83 compatible = "ti,tps65917";
84 reg = <0x58>;
85
Nishanth Menon829acd02014-10-21 09:30:46 -050086 pinctrl-names = "default";
87 pinctrl-0 = <&tps65917_pins_default>;
88
Keerthy Jb359c422014-07-28 11:48:54 +053089 interrupts = <GIC_SPI 2 IRQ_TYPE_NONE>; /* IRQ_SYS_1N */
90 interrupt-parent = <&gic>;
91 interrupt-controller;
92 #interrupt-cells = <2>;
93
94 ti,system-power-controller;
95
96 tps65917_pmic {
97 compatible = "ti,tps65917-pmic";
98
99 regulators {
100 smps1_reg: smps1 {
101 /* VDD_MPU */
102 regulator-name = "smps1";
103 regulator-min-microvolt = <850000>;
104 regulator-max-microvolt = <1250000>;
105 regulator-always-on;
106 regulator-boot-on;
107 };
108
109 smps2_reg: smps2 {
110 /* VDD_CORE */
111 regulator-name = "smps2";
112 regulator-min-microvolt = <850000>;
113 regulator-max-microvolt = <1030000>;
114 regulator-boot-on;
115 regulator-always-on;
116 };
117
118 smps3_reg: smps3 {
119 /* VDD_GPU IVA DSPEVE */
120 regulator-name = "smps3";
121 regulator-min-microvolt = <850000>;
122 regulator-max-microvolt = <1250000>;
123 regulator-boot-on;
124 regulator-always-on;
125 };
126
127 smps4_reg: smps4 {
128 /* VDDS1V8 */
129 regulator-name = "smps4";
130 regulator-min-microvolt = <1800000>;
131 regulator-max-microvolt = <1800000>;
132 regulator-always-on;
133 regulator-boot-on;
134 };
135
136 smps5_reg: smps5 {
137 /* VDD_DDR */
138 regulator-name = "smps5";
139 regulator-min-microvolt = <1350000>;
140 regulator-max-microvolt = <1350000>;
141 regulator-boot-on;
142 regulator-always-on;
143 };
144
145 ldo1_reg: ldo1 {
146 /* LDO1_OUT --> SDIO */
147 regulator-name = "ldo1";
148 regulator-min-microvolt = <1800000>;
149 regulator-max-microvolt = <3300000>;
150 regulator-boot-on;
151 };
152
153 ldo2_reg: ldo2 {
154 /* LDO2_OUT --> TP1017 (UNUSED) */
155 regulator-name = "ldo2";
156 regulator-min-microvolt = <1800000>;
157 regulator-max-microvolt = <3300000>;
158 };
159
160 ldo3_reg: ldo3 {
161 /* VDDA_1V8_PHY */
162 regulator-name = "ldo3";
163 regulator-min-microvolt = <1800000>;
164 regulator-max-microvolt = <1800000>;
165 regulator-boot-on;
166 regulator-always-on;
167 };
168
169 ldo5_reg: ldo5 {
170 /* VDDA_1V8_PLL */
171 regulator-name = "ldo5";
172 regulator-min-microvolt = <1800000>;
173 regulator-max-microvolt = <1800000>;
174 regulator-always-on;
175 regulator-boot-on;
176 };
177
178 ldo4_reg: ldo4 {
179 /* VDDA_3V_USB: VDDA_USBHS33 */
180 regulator-name = "ldo4";
181 regulator-min-microvolt = <3300000>;
182 regulator-max-microvolt = <3300000>;
183 regulator-boot-on;
184 };
185 };
186 };
Nishanth Menonab1d3c82014-10-21 09:30:47 -0500187
188 tps65917_power_button {
189 compatible = "ti,palmas-pwrbutton";
190 interrupt-parent = <&tps65917>;
191 interrupts = <1 IRQ_TYPE_NONE>;
192 wakeup-source;
193 ti,palmas-long-press-seconds = <6>;
194 };
Keerthy Jb359c422014-07-28 11:48:54 +0530195 };
Keerthy J7e9711a2014-07-28 11:48:53 +0530196};
197
Rajendra Nayak38b248d2014-04-29 16:35:10 +0530198&uart1 {
199 status = "okay";
200};
Roger Quadros09d49932014-10-21 13:41:17 +0300201
202&elm {
203 status = "okay";
204};
205
206&gpmc {
207 status = "okay";
208 pinctrl-names = "default";
209 pinctrl-0 = <&nand_default>;
210 ranges = <0 0 0 0x01000000>; /* minimum GPMC partition = 16MB */
211 nand@0,0 {
212 /* To use NAND, DIP switch SW5 must be set like so:
213 * SW5.1 (NAND_SELn) = ON (LOW)
214 * SW5.9 (GPMC_WPN) = OFF (HIGH)
215 */
216 reg = <0 0 4>; /* device IO registers */
217 ti,nand-ecc-opt = "bch8";
218 ti,elm-id = <&elm>;
219 nand-bus-width = <16>;
220 gpmc,device-width = <2>;
221 gpmc,sync-clk-ps = <0>;
222 gpmc,cs-on-ns = <0>;
223 gpmc,cs-rd-off-ns = <80>;
224 gpmc,cs-wr-off-ns = <80>;
225 gpmc,adv-on-ns = <0>;
226 gpmc,adv-rd-off-ns = <60>;
227 gpmc,adv-wr-off-ns = <60>;
228 gpmc,we-on-ns = <10>;
229 gpmc,we-off-ns = <50>;
230 gpmc,oe-on-ns = <4>;
231 gpmc,oe-off-ns = <40>;
232 gpmc,access-ns = <40>;
233 gpmc,wr-access-ns = <80>;
234 gpmc,rd-cycle-ns = <80>;
235 gpmc,wr-cycle-ns = <80>;
236 gpmc,bus-turnaround-ns = <0>;
237 gpmc,cycle2cycle-delay-ns = <0>;
238 gpmc,clk-activation-ns = <0>;
239 gpmc,wait-monitoring-ns = <0>;
240 gpmc,wr-data-mux-bus-ns = <0>;
241 /* MTD partition table */
242 /* All SPL-* partitions are sized to minimal length
243 * which can be independently programmable. For
244 * NAND flash this is equal to size of erase-block */
245 #address-cells = <1>;
246 #size-cells = <1>;
247 partition@0 {
248 label = "NAND.SPL";
249 reg = <0x00000000 0x000020000>;
250 };
251 partition@1 {
252 label = "NAND.SPL.backup1";
253 reg = <0x00020000 0x00020000>;
254 };
255 partition@2 {
256 label = "NAND.SPL.backup2";
257 reg = <0x00040000 0x00020000>;
258 };
259 partition@3 {
260 label = "NAND.SPL.backup3";
261 reg = <0x00060000 0x00020000>;
262 };
263 partition@4 {
264 label = "NAND.u-boot-spl-os";
265 reg = <0x00080000 0x00040000>;
266 };
267 partition@5 {
268 label = "NAND.u-boot";
269 reg = <0x000c0000 0x00100000>;
270 };
271 partition@6 {
272 label = "NAND.u-boot-env";
273 reg = <0x001c0000 0x00020000>;
274 };
275 partition@7 {
276 label = "NAND.u-boot-env.backup1";
277 reg = <0x001e0000 0x00020000>;
278 };
279 partition@8 {
280 label = "NAND.kernel";
281 reg = <0x00200000 0x00800000>;
282 };
283 partition@9 {
284 label = "NAND.file-system";
285 reg = <0x00a00000 0x0f600000>;
286 };
287 };
288};
George Cherian95cc6af2014-10-21 13:41:19 +0300289
Roger Quadros7a15c8e2014-10-21 13:41:20 +0300290&usb2_phy1 {
291 phy-supply = <&ldo4_reg>;
292};
293
294&usb2_phy2 {
295 phy-supply = <&ldo4_reg>;
296};
297
George Cherian95cc6af2014-10-21 13:41:19 +0300298&usb1 {
299 dr_mode = "peripheral";
300 pinctrl-names = "default";
301 pinctrl-0 = <&usb1_pins>;
302};
303
304&usb2 {
305 dr_mode = "host";
306 pinctrl-names = "default";
307 pinctrl-0 = <&usb2_pins>;
308};