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