diff options
Diffstat (limited to 'arch/arm/boot/dts/am335x-bone.dts')
-rw-r--r-- | arch/arm/boot/dts/am335x-bone.dts | 118 |
1 files changed, 107 insertions, 11 deletions
diff --git a/arch/arm/boot/dts/am335x-bone.dts b/arch/arm/boot/dts/am335x-bone.dts index 5302f79c05b7..04feaf8f1420 100644 --- a/arch/arm/boot/dts/am335x-bone.dts +++ b/arch/arm/boot/dts/am335x-bone.dts | |||
@@ -7,7 +7,7 @@ | |||
7 | */ | 7 | */ |
8 | /dts-v1/; | 8 | /dts-v1/; |
9 | 9 | ||
10 | /include/ "am33xx.dtsi" | 10 | #include "am33xx.dtsi" |
11 | 11 | ||
12 | / { | 12 | / { |
13 | model = "TI AM335x BeagleBone"; | 13 | model = "TI AM335x BeagleBone"; |
@@ -26,24 +26,104 @@ | |||
26 | 26 | ||
27 | am33xx_pinmux: pinmux@44e10800 { | 27 | am33xx_pinmux: pinmux@44e10800 { |
28 | pinctrl-names = "default"; | 28 | pinctrl-names = "default"; |
29 | pinctrl-0 = <&user_leds_s0>; | 29 | pinctrl-0 = <&clkout2_pin>; |
30 | 30 | ||
31 | user_leds_s0: user_leds_s0 { | 31 | user_leds_s0: user_leds_s0 { |
32 | pinctrl-single,pins = < | 32 | pinctrl-single,pins = < |
33 | 0x54 0x7 /* gpmc_a5.gpio1_21, OUTPUT | MODE7 */ | 33 | 0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a5.gpio1_21 */ |
34 | 0x58 0x17 /* gpmc_a6.gpio1_22, OUTPUT_PULLUP | MODE7 */ | 34 | 0x58 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */ |
35 | 0x5c 0x7 /* gpmc_a7.gpio1_23, OUTPUT | MODE7 */ | 35 | 0x5c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a7.gpio1_23 */ |
36 | 0x60 0x17 /* gpmc_a8.gpio1_24, OUTPUT_PULLUP | MODE7 */ | 36 | 0x60 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio1_24 */ |
37 | >; | ||
38 | }; | ||
39 | |||
40 | i2c0_pins: pinmux_i2c0_pins { | ||
41 | pinctrl-single,pins = < | ||
42 | 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */ | ||
43 | 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */ | ||
44 | >; | ||
45 | }; | ||
46 | |||
47 | uart0_pins: pinmux_uart0_pins { | ||
48 | pinctrl-single,pins = < | ||
49 | 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */ | ||
50 | 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */ | ||
51 | >; | ||
52 | }; | ||
53 | |||
54 | clkout2_pin: pinmux_clkout2_pin { | ||
55 | pinctrl-single,pins = < | ||
56 | 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */ | ||
57 | >; | ||
58 | }; | ||
59 | |||
60 | cpsw_default: cpsw_default { | ||
61 | pinctrl-single,pins = < | ||
62 | /* Slave 1 */ | ||
63 | 0x110 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxerr.mii1_rxerr */ | ||
64 | 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txen.mii1_txen */ | ||
65 | 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxdv.mii1_rxdv */ | ||
66 | 0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd3.mii1_txd3 */ | ||
67 | 0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd2.mii1_txd2 */ | ||
68 | 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd1.mii1_txd1 */ | ||
69 | 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd0.mii1_txd0 */ | ||
70 | 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_txclk.mii1_txclk */ | ||
71 | 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxclk.mii1_rxclk */ | ||
72 | 0x134 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd3.mii1_rxd3 */ | ||
73 | 0x138 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd2.mii1_rxd2 */ | ||
74 | 0x13c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd1.mii1_rxd1 */ | ||
75 | 0x140 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd0.mii1_rxd0 */ | ||
76 | >; | ||
77 | }; | ||
78 | |||
79 | cpsw_sleep: cpsw_sleep { | ||
80 | pinctrl-single,pins = < | ||
81 | /* Slave 1 reset value */ | ||
82 | 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7) | ||
83 | 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7) | ||
84 | 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7) | ||
85 | 0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7) | ||
86 | 0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7) | ||
87 | 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7) | ||
88 | 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7) | ||
89 | 0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7) | ||
90 | 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7) | ||
91 | 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7) | ||
92 | 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7) | ||
93 | 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7) | ||
94 | 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7) | ||
95 | >; | ||
96 | }; | ||
97 | |||
98 | davinci_mdio_default: davinci_mdio_default { | ||
99 | pinctrl-single,pins = < | ||
100 | /* MDIO */ | ||
101 | 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */ | ||
102 | 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */ | ||
103 | >; | ||
104 | }; | ||
105 | |||
106 | davinci_mdio_sleep: davinci_mdio_sleep { | ||
107 | pinctrl-single,pins = < | ||
108 | /* MDIO reset value */ | ||
109 | 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7) | ||
110 | 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7) | ||
37 | >; | 111 | >; |
38 | }; | 112 | }; |
39 | }; | 113 | }; |
40 | 114 | ||
41 | ocp { | 115 | ocp { |
42 | uart1: serial@44e09000 { | 116 | uart0: serial@44e09000 { |
117 | pinctrl-names = "default"; | ||
118 | pinctrl-0 = <&uart0_pins>; | ||
119 | |||
43 | status = "okay"; | 120 | status = "okay"; |
44 | }; | 121 | }; |
45 | 122 | ||
46 | i2c0: i2c@44e0b000 { | 123 | i2c0: i2c@44e0b000 { |
124 | pinctrl-names = "default"; | ||
125 | pinctrl-0 = <&i2c0_pins>; | ||
126 | |||
47 | status = "okay"; | 127 | status = "okay"; |
48 | clock-frequency = <400000>; | 128 | clock-frequency = <400000>; |
49 | 129 | ||
@@ -55,31 +135,34 @@ | |||
55 | }; | 135 | }; |
56 | 136 | ||
57 | leds { | 137 | leds { |
138 | pinctrl-names = "default"; | ||
139 | pinctrl-0 = <&user_leds_s0>; | ||
140 | |||
58 | compatible = "gpio-leds"; | 141 | compatible = "gpio-leds"; |
59 | 142 | ||
60 | led@2 { | 143 | led@2 { |
61 | label = "beaglebone:green:heartbeat"; | 144 | label = "beaglebone:green:heartbeat"; |
62 | gpios = <&gpio1 21 0>; | 145 | gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>; |
63 | linux,default-trigger = "heartbeat"; | 146 | linux,default-trigger = "heartbeat"; |
64 | default-state = "off"; | 147 | default-state = "off"; |
65 | }; | 148 | }; |
66 | 149 | ||
67 | led@3 { | 150 | led@3 { |
68 | label = "beaglebone:green:mmc0"; | 151 | label = "beaglebone:green:mmc0"; |
69 | gpios = <&gpio1 22 0>; | 152 | gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>; |
70 | linux,default-trigger = "mmc0"; | 153 | linux,default-trigger = "mmc0"; |
71 | default-state = "off"; | 154 | default-state = "off"; |
72 | }; | 155 | }; |
73 | 156 | ||
74 | led@4 { | 157 | led@4 { |
75 | label = "beaglebone:green:usr2"; | 158 | label = "beaglebone:green:usr2"; |
76 | gpios = <&gpio1 23 0>; | 159 | gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>; |
77 | default-state = "off"; | 160 | default-state = "off"; |
78 | }; | 161 | }; |
79 | 162 | ||
80 | led@5 { | 163 | led@5 { |
81 | label = "beaglebone:green:usr3"; | 164 | label = "beaglebone:green:usr3"; |
82 | gpios = <&gpio1 24 0>; | 165 | gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>; |
83 | default-state = "off"; | 166 | default-state = "off"; |
84 | }; | 167 | }; |
85 | }; | 168 | }; |
@@ -136,3 +219,16 @@ | |||
136 | &cpsw_emac1 { | 219 | &cpsw_emac1 { |
137 | phy_id = <&davinci_mdio>, <1>; | 220 | phy_id = <&davinci_mdio>, <1>; |
138 | }; | 221 | }; |
222 | |||
223 | &mac { | ||
224 | pinctrl-names = "default", "sleep"; | ||
225 | pinctrl-0 = <&cpsw_default>; | ||
226 | pinctrl-1 = <&cpsw_sleep>; | ||
227 | |||
228 | }; | ||
229 | |||
230 | &davinci_mdio { | ||
231 | pinctrl-names = "default", "sleep"; | ||
232 | pinctrl-0 = <&davinci_mdio_default>; | ||
233 | pinctrl-1 = <&davinci_mdio_sleep>; | ||
234 | }; | ||