Commit | Line | Data |
---|---|---|
124bfc66 TL |
1 | /* |
2 | * This program is free software; you can redistribute it and/or modify | |
3 | * it under the terms of the GNU General Public License version 2 as | |
4 | * published by the Free Software Foundation. | |
5 | */ | |
6 | /dts-v1/; | |
7 | ||
8 | #include "dra62x.dtsi" | |
9 | ||
10 | / { | |
11 | model = "DRA62x J5 Eco EVM"; | |
12 | compatible = "ti,dra62x-j5eco-evm", "ti,dra62x", "ti,dm8148"; | |
13 | ||
14 | memory { | |
15 | device_type = "memory"; | |
16 | reg = <0x80000000 0x40000000>; /* 1 GB */ | |
17 | }; | |
4d810fb2 TL |
18 | |
19 | /* MIC94060YC6 controlled by SD1_POW pin */ | |
20 | vmmcsd_fixed: fixedregulator@0 { | |
21 | compatible = "regulator-fixed"; | |
22 | regulator-name = "vmmcsd_fixed"; | |
23 | regulator-min-microvolt = <3300000>; | |
24 | regulator-max-microvolt = <3300000>; | |
25 | }; | |
124bfc66 TL |
26 | }; |
27 | ||
28 | &cpsw_emac0 { | |
29 | phy_id = <&davinci_mdio>, <0>; | |
30 | phy-mode = "rgmii"; | |
31 | }; | |
32 | ||
33 | &cpsw_emac1 { | |
34 | phy_id = <&davinci_mdio>, <1>; | |
35 | phy-mode = "rgmii"; | |
36 | }; | |
4d810fb2 | 37 | |
100be58a TL |
38 | &gpmc { |
39 | ranges = <0 0 0x04000000 0x01000000>; /* CS0: 16MB for NAND */ | |
40 | ||
41 | nand@0,0 { | |
42 | linux,mtd-name= "micron,mt29f2g16aadwp"; | |
43 | reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ | |
44 | #address-cells = <1>; | |
45 | #size-cells = <1>; | |
46 | ti,nand-ecc-opt = "bch8"; | |
47 | nand-bus-width = <16>; | |
48 | gpmc,device-width = <2>; | |
49 | gpmc,sync-clk-ps = <0>; | |
50 | gpmc,cs-on-ns = <0>; | |
51 | gpmc,cs-rd-off-ns = <44>; | |
52 | gpmc,cs-wr-off-ns = <44>; | |
53 | gpmc,adv-on-ns = <6>; | |
54 | gpmc,adv-rd-off-ns = <34>; | |
55 | gpmc,adv-wr-off-ns = <44>; | |
56 | gpmc,we-on-ns = <0>; | |
57 | gpmc,we-off-ns = <40>; | |
58 | gpmc,oe-on-ns = <0>; | |
59 | gpmc,oe-off-ns = <54>; | |
60 | gpmc,access-ns = <64>; | |
61 | gpmc,rd-cycle-ns = <82>; | |
62 | gpmc,wr-cycle-ns = <82>; | |
63 | gpmc,wait-on-read = "true"; | |
64 | gpmc,wait-on-write = "true"; | |
65 | gpmc,bus-turnaround-ns = <0>; | |
66 | gpmc,cycle2cycle-delay-ns = <0>; | |
67 | gpmc,clk-activation-ns = <0>; | |
68 | gpmc,wait-monitoring-ns = <0>; | |
69 | gpmc,wr-access-ns = <40>; | |
70 | gpmc,wr-data-mux-bus-ns = <0>; | |
71 | partition@0 { | |
72 | label = "X-Loader"; | |
73 | reg = <0 0x80000>; | |
74 | }; | |
75 | partition@0x80000 { | |
76 | label = "U-Boot"; | |
77 | reg = <0x80000 0x1c0000>; | |
78 | }; | |
79 | partition@0x1c0000 { | |
80 | label = "Environment"; | |
81 | reg = <0x240000 0x40000>; | |
82 | }; | |
83 | partition@0x280000 { | |
84 | label = "Kernel"; | |
85 | reg = <0x280000 0x500000>; | |
86 | }; | |
87 | partition@0x780000 { | |
88 | label = "Filesystem"; | |
89 | reg = <0x780000 0xf880000>; | |
90 | }; | |
91 | }; | |
92 | }; | |
93 | ||
4d810fb2 TL |
94 | &mmc2 { |
95 | pinctrl-names = "default"; | |
96 | pinctrl-0 = <&sd1_pins>; | |
97 | vmmc-supply = <&vmmcsd_fixed>; | |
98 | bus-width = <4>; | |
99 | cd-gpios = <&gpio2 6 GPIO_ACTIVE_LOW>; | |
100 | }; | |
101 | ||
102 | &pincntl { | |
103 | sd1_pins: pinmux_sd1_pins { | |
104 | pinctrl-single,pins = < | |
105 | DM814X_IOPAD(0x0800, PIN_INPUT | 0x1) /* SD1_CLK */ | |
106 | DM814X_IOPAD(0x0804, PIN_INPUT_PULLUP | 0x1) /* SD1_CMD */ | |
107 | DM814X_IOPAD(0x0808, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[0] */ | |
108 | DM814X_IOPAD(0x080c, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[1] */ | |
109 | DM814X_IOPAD(0x0810, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[2] */ | |
110 | DM814X_IOPAD(0x0814, PIN_INPUT_PULLUP | 0x1) /* SD1_DAT[3] */ | |
111 | DM814X_IOPAD(0x0924, PIN_OUTPUT | 0x40) /* SD1_POW */ | |
112 | DM814X_IOPAD(0x093C, PIN_INPUT_PULLUP | 0x80) /* GP1[6] */ | |
113 | >; | |
114 | }; | |
43fe6de3 TL |
115 | |
116 | usb0_pins: pinmux_usb0_pins { | |
117 | pinctrl-single,pins = < | |
118 | DM814X_IOPAD(0x0c34, PIN_OUTPUT | 0x1) /* USB0_DRVVBUS */ | |
119 | >; | |
120 | }; | |
121 | }; | |
122 | ||
123 | /* USB0_ID pin state: SW10[1] = 0 cable detection, SW10[1] = 1 ID grounded */ | |
124 | &usb0 { | |
125 | pinctrl-names = "default"; | |
126 | pinctrl-0 = <&usb0_pins>; | |
127 | dr_mode = "otg"; | |
128 | }; | |
129 | ||
130 | &usb1_phy { | |
131 | status = "disabled"; | |
132 | }; | |
133 | ||
134 | &usb1 { | |
135 | status = "disabled"; | |
4d810fb2 | 136 | }; |