ARM: dts: AM33XX: don't redefine OCP bus and device nodes
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / am335x-bone-common.dtsi
1 /*
2  * Copyright (C) 2012 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
9 / {
10         model = "TI AM335x BeagleBone";
11         compatible = "ti,am335x-bone", "ti,am33xx";
12
13         cpus {
14                 cpu@0 {
15                         cpu0-supply = <&dcdc2_reg>;
16                 };
17         };
18
19         memory {
20                 device_type = "memory";
21                 reg = <0x80000000 0x10000000>; /* 256 MB */
22         };
23
24         leds {
25                 pinctrl-names = "default";
26                 pinctrl-0 = <&user_leds_s0>;
27
28                 compatible = "gpio-leds";
29
30                 led@2 {
31                         label = "beaglebone:green:heartbeat";
32                         gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
33                         linux,default-trigger = "heartbeat";
34                         default-state = "off";
35                 };
36
37                 led@3 {
38                         label = "beaglebone:green:mmc0";
39                         gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
40                         linux,default-trigger = "mmc0";
41                         default-state = "off";
42                 };
43
44                 led@4 {
45                         label = "beaglebone:green:usr2";
46                         gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
47                         linux,default-trigger = "cpu0";
48                         default-state = "off";
49                 };
50
51                 led@5 {
52                         label = "beaglebone:green:usr3";
53                         gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
54                         linux,default-trigger = "mmc1";
55                         default-state = "off";
56                 };
57         };
58 };
59
60 &am33xx_pinmux {
61         pinctrl-names = "default";
62         pinctrl-0 = <&clkout2_pin>;
63
64         user_leds_s0: user_leds_s0 {
65                 pinctrl-single,pins = <
66                         0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE7)  /* gpmc_a5.gpio1_21 */
67                         0x58 (PIN_OUTPUT_PULLUP | MUX_MODE7)    /* gpmc_a6.gpio1_22 */
68                         0x5c (PIN_OUTPUT_PULLDOWN | MUX_MODE7)  /* gpmc_a7.gpio1_23 */
69                         0x60 (PIN_OUTPUT_PULLUP | MUX_MODE7)    /* gpmc_a8.gpio1_24 */
70                 >;
71         };
72
73         i2c0_pins: pinmux_i2c0_pins {
74                 pinctrl-single,pins = <
75                         0x188 (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c0_sda.i2c0_sda */
76                         0x18c (PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c0_scl.i2c0_scl */
77                 >;
78         };
79
80         uart0_pins: pinmux_uart0_pins {
81                 pinctrl-single,pins = <
82                         0x170 (PIN_INPUT_PULLUP | MUX_MODE0)    /* uart0_rxd.uart0_rxd */
83                         0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */
84                 >;
85         };
86
87         clkout2_pin: pinmux_clkout2_pin {
88                 pinctrl-single,pins = <
89                         0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */
90                 >;
91         };
92
93         cpsw_default: cpsw_default {
94                 pinctrl-single,pins = <
95                         /* Slave 1 */
96                         0x110 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mii1_rxerr.mii1_rxerr */
97                         0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txen.mii1_txen */
98                         0x118 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mii1_rxdv.mii1_rxdv */
99                         0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd3.mii1_txd3 */
100                         0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd2.mii1_txd2 */
101                         0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd1.mii1_txd1 */
102                         0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd0.mii1_txd0 */
103                         0x12c (PIN_INPUT_PULLUP | MUX_MODE0)    /* mii1_txclk.mii1_txclk */
104                         0x130 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mii1_rxclk.mii1_rxclk */
105                         0x134 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mii1_rxd3.mii1_rxd3 */
106                         0x138 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mii1_rxd2.mii1_rxd2 */
107                         0x13c (PIN_INPUT_PULLUP | MUX_MODE0)    /* mii1_rxd1.mii1_rxd1 */
108                         0x140 (PIN_INPUT_PULLUP | MUX_MODE0)    /* mii1_rxd0.mii1_rxd0 */
109                 >;
110         };
111
112         cpsw_sleep: cpsw_sleep {
113                 pinctrl-single,pins = <
114                         /* Slave 1 reset value */
115                         0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7)
116                         0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7)
117                         0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7)
118                         0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7)
119                         0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7)
120                         0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7)
121                         0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7)
122                         0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7)
123                         0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7)
124                         0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7)
125                         0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7)
126                         0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7)
127                         0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7)
128                 >;
129         };
130
131         davinci_mdio_default: davinci_mdio_default {
132                 pinctrl-single,pins = <
133                         /* MDIO */
134                         0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)    /* mdio_data.mdio_data */
135                         0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0)                   /* mdio_clk.mdio_clk */
136                 >;
137         };
138
139         davinci_mdio_sleep: davinci_mdio_sleep {
140                 pinctrl-single,pins = <
141                         /* MDIO reset value */
142                         0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7)
143                         0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7)
144                 >;
145         };
146
147         mmc1_pins: pinmux_mmc1_pins {
148                 pinctrl-single,pins = <
149                         0x160 (PIN_INPUT | MUX_MODE7) /* GPIO0_6 */
150                 >;
151         };
152
153         emmc_pins: pinmux_emmc_pins {
154                 pinctrl-single,pins = <
155                         0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */
156                         0x84 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_csn2.mmc1_cmd */
157                         0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
158                         0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
159                         0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
160                         0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
161                         0x10 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */
162                         0x14 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */
163                         0x18 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */
164                         0x1c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */
165                 >;
166         };
167 };
168
169 &uart0 {
170         pinctrl-names = "default";
171         pinctrl-0 = <&uart0_pins>;
172
173         status = "okay";
174 };
175
176 &usb {
177         status = "okay";
178
179         control@44e10000 {
180                 status = "okay";
181         };
182
183         usb-phy@47401300 {
184                 status = "okay";
185         };
186
187         usb-phy@47401b00 {
188                 status = "okay";
189         };
190
191         usb@47401000 {
192                 status = "okay";
193         };
194
195         usb@47401800 {
196                 status = "okay";
197                 dr_mode = "host";
198         };
199
200         dma-controller@07402000  {
201                 status = "okay";
202         };
203 };
204
205 &i2c0 {
206         pinctrl-names = "default";
207         pinctrl-0 = <&i2c0_pins>;
208
209         status = "okay";
210         clock-frequency = <400000>;
211
212         tps: tps@24 {
213                 reg = <0x24>;
214         };
215
216 };
217
218 /include/ "tps65217.dtsi"
219
220 &tps {
221         regulators {
222                 dcdc1_reg: regulator@0 {
223                         regulator-always-on;
224                 };
225
226                 dcdc2_reg: regulator@1 {
227                         /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
228                         regulator-name = "vdd_mpu";
229                         regulator-min-microvolt = <925000>;
230                         regulator-max-microvolt = <1325000>;
231                         regulator-boot-on;
232                         regulator-always-on;
233                 };
234
235                 dcdc3_reg: regulator@2 {
236                         /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
237                         regulator-name = "vdd_core";
238                         regulator-min-microvolt = <925000>;
239                         regulator-max-microvolt = <1150000>;
240                         regulator-boot-on;
241                         regulator-always-on;
242                 };
243
244                 ldo1_reg: regulator@3 {
245                         regulator-always-on;
246                 };
247
248                 ldo2_reg: regulator@4 {
249                         regulator-always-on;
250                 };
251
252                 ldo3_reg: regulator@5 {
253                         regulator-always-on;
254                 };
255
256                 ldo4_reg: regulator@6 {
257                         regulator-always-on;
258                 };
259         };
260
261         vmmcsd_fixed: fixedregulator@0 {
262                 compatible = "regulator-fixed";
263                 regulator-name = "vmmcsd_fixed";
264                 regulator-min-microvolt = <3300000>;
265                 regulator-max-microvolt = <3300000>;
266         };
267 };
268
269 &cpsw_emac0 {
270         phy_id = <&davinci_mdio>, <0>;
271         phy-mode = "mii";
272 };
273
274 &cpsw_emac1 {
275         phy_id = <&davinci_mdio>, <1>;
276         phy-mode = "mii";
277 };
278
279 &mac {
280         pinctrl-names = "default", "sleep";
281         pinctrl-0 = <&cpsw_default>;
282         pinctrl-1 = <&cpsw_sleep>;
283
284 };
285
286 &davinci_mdio {
287         pinctrl-names = "default", "sleep";
288         pinctrl-0 = <&davinci_mdio_default>;
289         pinctrl-1 = <&davinci_mdio_sleep>;
290 };
291
292 &mmc1 {
293         status = "okay";
294         bus-width = <0x4>;
295         pinctrl-names = "default";
296         pinctrl-0 = <&mmc1_pins>;
297         cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
298         cd-inverted;
299 };