ARM: dts: am335x: add am335x-sancloud-bbe board support
[muen/linux.git] / arch / arm / boot / dts / am335x-sancloud-bbe.dts
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 /dts-v1/;
9
10 #include "am33xx.dtsi"
11 #include "am335x-bone-common.dtsi"
12 #include "am335x-boneblack-common.dtsi"
13 #include <dt-bindings/interrupt-controller/irq.h>
14
15 / {
16         model = "SanCloud BeagleBone Enhanced";
17         compatible = "sancloud,am335x-boneenhanced", "ti,am335x-bone-black", "ti,am335x-bone", "ti,am33xx";
18 };
19
20 &am33xx_pinmux {
21         pinctrl-names = "default";
22
23         cpsw_default: cpsw_default {
24                 pinctrl-single,pins = <
25                         /* Slave 1 */
26                         AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* mii1_txen.rgmii1_tctl */
27                         AM33XX_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE2)     /* mii1_rxdv.rgmii1_rctl */
28                         AM33XX_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* mii1_txd3.rgmii1_td3 */
29                         AM33XX_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* mii1_txd2.rgmii1_td2 */
30                         AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* mii1_txd1.rgmii1_td1 */
31                         AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* mii1_txd0.rgmii1_td0 */
32                         AM33XX_IOPAD(0x92c, PIN_OUTPUT_PULLDOWN | MUX_MODE2)    /* mii1_txclk.rgmii1_tclk */
33                         AM33XX_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE2)     /* mii1_rxclk.rgmii1_rclk */
34                         AM33XX_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE2)     /* mii1_rxd3.rgmii1_rd3 */
35                         AM33XX_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE2)     /* mii1_rxd2.rgmii1_rd2 */
36                         AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE2)     /* mii1_rxd1.rgmii1_rd1 */
37                         AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE2)     /* mii1_rxd0.rgmii1_rd0 */
38                 >;
39         };
40
41         cpsw_sleep: cpsw_sleep {
42                 pinctrl-single,pins = <
43                         /* Slave 1 reset value */
44                         AM33XX_IOPAD(0x914, PIN_INPUT_PULLDOWN | MUX_MODE7)
45                         AM33XX_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE7)
46                         AM33XX_IOPAD(0x91c, PIN_INPUT_PULLDOWN | MUX_MODE7)
47                         AM33XX_IOPAD(0x920, PIN_INPUT_PULLDOWN | MUX_MODE7)
48                         AM33XX_IOPAD(0x924, PIN_INPUT_PULLDOWN | MUX_MODE7)
49                         AM33XX_IOPAD(0x928, PIN_INPUT_PULLDOWN | MUX_MODE7)
50                         AM33XX_IOPAD(0x92c, PIN_INPUT_PULLDOWN | MUX_MODE7)
51                         AM33XX_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE7)
52                         AM33XX_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE7)
53                         AM33XX_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE7)
54                         AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE7)
55                         AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE7)
56                 >;
57         };
58
59         davinci_mdio_default: davinci_mdio_default {
60                 pinctrl-single,pins = <
61                         /* MDIO */
62                         AM33XX_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0)       /* mdio_data.mdio_data */
63                         AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0)                      /* mdio_clk.mdio_clk */
64                 >;
65         };
66
67         davinci_mdio_sleep: davinci_mdio_sleep {
68                 pinctrl-single,pins = <
69                         /* MDIO reset value */
70                         AM33XX_IOPAD(0x948, PIN_INPUT_PULLDOWN | MUX_MODE7)
71                         AM33XX_IOPAD(0x94c, PIN_INPUT_PULLDOWN | MUX_MODE7)
72                 >;
73         };
74
75         usb_hub_ctrl: usb_hub_ctrl {
76                 pinctrl-single,pins = <
77                         AM33XX_IOPAD(0x944, PIN_OUTPUT_PULLUP | MUX_MODE7)     /* rmii1_refclk.gpio0_29 */
78                 >;
79         };
80
81         mpu6050_pins: pinmux_mpu6050_pins {
82                 pinctrl-single,pins = <
83                         AM33XX_IOPAD(0x968, PIN_INPUT | MUX_MODE7)    /* uart0_ctsn.gpio1_8 */
84                 >;
85         };
86
87         lps3331ap_pins: pinmux_lps3331ap_pins {
88                 pinctrl-single,pins = <
89                         AM33XX_IOPAD(0x868, PIN_INPUT | MUX_MODE7)     /* gpmc_a10.gpio1_26 */
90                 >;
91         };
92 };
93
94 &mac {
95         pinctrl-names = "default", "sleep";
96         pinctrl-0 = <&cpsw_default>;
97         pinctrl-1 = <&cpsw_sleep>;
98         status = "okay";
99 };
100
101 &davinci_mdio {
102         pinctrl-names = "default", "sleep";
103         pinctrl-0 = <&davinci_mdio_default>;
104         pinctrl-1 = <&davinci_mdio_sleep>;
105         status = "okay";
106 };
107
108 &cpsw_emac0 {
109         phy_id = <&davinci_mdio>, <0>;
110         phy-mode = "rgmii-txid";
111 };
112
113 &i2c0 {
114         lps331ap: barometer@5c {
115                 compatible = "st,lps331ap-press";
116                 st,drdy-int-pin = <1>;
117                 reg = <0x5c>;
118                 interrupt-parent = <&gpio1>;
119                 interrupts = <26 IRQ_TYPE_EDGE_RISING>;
120         };
121
122         mpu6050: accelerometer@68 {
123                 compatible = "invensense,mpu6050";
124                 reg = <0x68>;
125                 interrupt-parent = <&gpio0>;
126                 interrupts = <2 IRQ_TYPE_EDGE_RISING>;
127                 orientation = <0xff 0 0 0 1 0 0 0 0xff>;
128         };
129
130         usb2512b: usb-hub@2c {
131                 compatible = "microchip,usb2512b";
132                 reg = <0x2c>;
133                 reset-gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
134                 /* wifi on port 4 */
135         };
136 };