Mugunthan V N | eae7ae1 | 2015-09-29 14:42:27 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 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 "dra74x.dtsi" |
| 11 | #include <dt-bindings/gpio/gpio.h> |
| 12 | #include <dt-bindings/interrupt-controller/irq.h> |
| 13 | |
| 14 | / { |
| 15 | model = "TI AM5728 BeagleBoard-X15"; |
| 16 | compatible = "ti,am572x-beagle-x15", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7"; |
| 17 | |
| 18 | chosen { |
| 19 | stdout-path = &uart3; |
| 20 | }; |
| 21 | |
| 22 | aliases { |
| 23 | rtc0 = &mcp_rtc; |
| 24 | rtc1 = &tps659038_rtc; |
| 25 | rtc2 = &rtc; |
| 26 | display0 = &hdmi0; |
| 27 | }; |
| 28 | |
| 29 | memory { |
| 30 | device_type = "memory"; |
| 31 | reg = <0x80000000 0x80000000>; |
| 32 | }; |
| 33 | |
| 34 | vdd_3v3: fixedregulator-vdd_3v3 { |
| 35 | compatible = "regulator-fixed"; |
| 36 | regulator-name = "vdd_3v3"; |
| 37 | vin-supply = <®en1>; |
| 38 | regulator-min-microvolt = <3300000>; |
| 39 | regulator-max-microvolt = <3300000>; |
| 40 | }; |
| 41 | |
| 42 | vtt_fixed: fixedregulator-vtt { |
| 43 | /* TPS51200 */ |
| 44 | compatible = "regulator-fixed"; |
| 45 | regulator-name = "vtt_fixed"; |
| 46 | vin-supply = <&smps3_reg>; |
| 47 | regulator-min-microvolt = <3300000>; |
| 48 | regulator-max-microvolt = <3300000>; |
| 49 | regulator-always-on; |
| 50 | regulator-boot-on; |
| 51 | enable-active-high; |
| 52 | gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>; |
| 53 | }; |
| 54 | |
| 55 | leds { |
| 56 | compatible = "gpio-leds"; |
| 57 | pinctrl-names = "default"; |
| 58 | pinctrl-0 = <&leds_pins_default>; |
| 59 | |
| 60 | led@0 { |
| 61 | label = "beagle-x15:usr0"; |
| 62 | gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>; |
| 63 | linux,default-trigger = "heartbeat"; |
| 64 | default-state = "off"; |
| 65 | }; |
| 66 | |
| 67 | led@1 { |
| 68 | label = "beagle-x15:usr1"; |
| 69 | gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>; |
| 70 | linux,default-trigger = "cpu0"; |
| 71 | default-state = "off"; |
| 72 | }; |
| 73 | |
| 74 | led@2 { |
| 75 | label = "beagle-x15:usr2"; |
| 76 | gpios = <&gpio7 14 GPIO_ACTIVE_HIGH>; |
| 77 | linux,default-trigger = "mmc0"; |
| 78 | default-state = "off"; |
| 79 | }; |
| 80 | |
| 81 | led@3 { |
| 82 | label = "beagle-x15:usr3"; |
| 83 | gpios = <&gpio7 15 GPIO_ACTIVE_HIGH>; |
| 84 | linux,default-trigger = "ide-disk"; |
| 85 | default-state = "off"; |
| 86 | }; |
| 87 | }; |
| 88 | |
| 89 | gpio_fan: gpio_fan { |
| 90 | /* Based on 5v 500mA AFB02505HHB */ |
| 91 | compatible = "gpio-fan"; |
| 92 | gpios = <&tps659038_gpio 2 GPIO_ACTIVE_HIGH>; |
| 93 | gpio-fan,speed-map = <0 0>, |
| 94 | <13000 1>; |
| 95 | #cooling-cells = <2>; |
| 96 | }; |
| 97 | |
| 98 | extcon_usb1: extcon_usb1 { |
| 99 | compatible = "linux,extcon-usb-gpio"; |
| 100 | id-gpio = <&gpio7 25 GPIO_ACTIVE_HIGH>; |
| 101 | pinctrl-names = "default"; |
| 102 | pinctrl-0 = <&extcon_usb1_pins>; |
| 103 | }; |
| 104 | |
| 105 | extcon_usb2: extcon_usb2 { |
| 106 | compatible = "linux,extcon-usb-gpio"; |
| 107 | id-gpio = <&gpio7 24 GPIO_ACTIVE_HIGH>; |
| 108 | pinctrl-names = "default"; |
| 109 | pinctrl-0 = <&extcon_usb2_pins>; |
| 110 | }; |
| 111 | |
| 112 | hdmi0: connector { |
| 113 | compatible = "hdmi-connector"; |
| 114 | label = "hdmi"; |
| 115 | |
| 116 | type = "a"; |
| 117 | |
| 118 | port { |
| 119 | hdmi_connector_in: endpoint { |
| 120 | remote-endpoint = <&tpd12s015_out>; |
| 121 | }; |
| 122 | }; |
| 123 | }; |
| 124 | |
| 125 | tpd12s015: encoder { |
| 126 | compatible = "ti,tpd12s015"; |
| 127 | |
| 128 | pinctrl-names = "default"; |
| 129 | pinctrl-0 = <&tpd12s015_pins>; |
| 130 | |
| 131 | gpios = <&gpio7 10 GPIO_ACTIVE_HIGH>, /* gpio7_10, CT CP HPD */ |
| 132 | <&gpio6 28 GPIO_ACTIVE_HIGH>, /* gpio6_28, LS OE */ |
| 133 | <&gpio7 12 GPIO_ACTIVE_HIGH>; /* gpio7_12/sp1_cs2, HPD */ |
| 134 | |
| 135 | ports { |
| 136 | #address-cells = <1>; |
| 137 | #size-cells = <0>; |
| 138 | |
| 139 | port@0 { |
| 140 | reg = <0>; |
| 141 | |
| 142 | tpd12s015_in: endpoint { |
| 143 | remote-endpoint = <&hdmi_out>; |
| 144 | }; |
| 145 | }; |
| 146 | |
| 147 | port@1 { |
| 148 | reg = <1>; |
| 149 | |
| 150 | tpd12s015_out: endpoint { |
| 151 | remote-endpoint = <&hdmi_connector_in>; |
| 152 | }; |
| 153 | }; |
| 154 | }; |
| 155 | }; |
| 156 | }; |
| 157 | |
| 158 | &dra7_pmx_core { |
| 159 | leds_pins_default: leds_pins_default { |
| 160 | pinctrl-single,pins = < |
| 161 | 0x3a8 (PIN_OUTPUT | MUX_MODE14) /* spi1_d1.gpio7_8 */ |
| 162 | 0x3ac (PIN_OUTPUT | MUX_MODE14) /* spi1_d0.gpio7_9 */ |
| 163 | 0x3c0 (PIN_OUTPUT | MUX_MODE14) /* spi2_sclk.gpio7_14 */ |
| 164 | 0x3c4 (PIN_OUTPUT | MUX_MODE14) /* spi2_d1.gpio7_15 */ |
| 165 | >; |
| 166 | }; |
| 167 | |
| 168 | i2c1_pins_default: i2c1_pins_default { |
| 169 | pinctrl-single,pins = < |
| 170 | 0x400 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda.sda */ |
| 171 | 0x404 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl.scl */ |
| 172 | >; |
| 173 | }; |
| 174 | |
| 175 | hdmi_pins: pinmux_hdmi_pins { |
| 176 | pinctrl-single,pins = < |
| 177 | 0x408 (PIN_INPUT | MUX_MODE1) /* i2c2_sda.hdmi1_ddc_scl */ |
| 178 | 0x40c (PIN_INPUT | MUX_MODE1) /* i2c2_scl.hdmi1_ddc_sda */ |
| 179 | >; |
| 180 | }; |
| 181 | |
| 182 | i2c3_pins_default: i2c3_pins_default { |
| 183 | pinctrl-single,pins = < |
| 184 | 0x2a4 (PIN_INPUT| MUX_MODE10) /* mcasp1_aclkx.i2c3_sda */ |
| 185 | 0x2a8 (PIN_INPUT| MUX_MODE10) /* mcasp1_fsx.i2c3_scl */ |
| 186 | >; |
| 187 | }; |
| 188 | |
| 189 | uart3_pins_default: uart3_pins_default { |
| 190 | pinctrl-single,pins = < |
| 191 | 0x3f8 (PIN_INPUT_SLEW | MUX_MODE2) /* uart2_ctsn.uart3_rxd */ |
| 192 | 0x3fc (PIN_INPUT_SLEW | MUX_MODE1) /* uart2_rtsn.uart3_txd */ |
| 193 | >; |
| 194 | }; |
| 195 | |
| 196 | mmc1_pins_default: mmc1_pins_default { |
| 197 | pinctrl-single,pins = < |
| 198 | 0x36c (PIN_INPUT | MUX_MODE14) /* mmc1sdcd.gpio219 */ |
| 199 | 0x354 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.clk */ |
| 200 | 0x358 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.cmd */ |
| 201 | 0x35c (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.dat0 */ |
| 202 | 0x360 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.dat1 */ |
| 203 | 0x364 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.dat2 */ |
| 204 | 0x368 (PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.dat3 */ |
| 205 | >; |
| 206 | }; |
| 207 | |
| 208 | mmc2_pins_default: mmc2_pins_default { |
| 209 | pinctrl-single,pins = < |
| 210 | 0x9c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a23.mmc2_clk */ |
| 211 | 0xb0 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs1.mmc2_cmd */ |
| 212 | 0xa0 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a24.mmc2_dat0 */ |
| 213 | 0xa4 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a25.mmc2_dat1 */ |
| 214 | 0xa8 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a26.mmc2_dat2 */ |
| 215 | 0xac (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a27.mmc2_dat3 */ |
| 216 | 0x8c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a19.mmc2_dat4 */ |
| 217 | 0x90 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a20.mmc2_dat5 */ |
| 218 | 0x94 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a21.mmc2_dat6 */ |
| 219 | 0x98 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a22.mmc2_dat7 */ |
| 220 | >; |
| 221 | }; |
| 222 | |
| 223 | cpsw_pins_default: cpsw_pins_default { |
| 224 | pinctrl-single,pins = < |
| 225 | /* Slave 1 */ |
| 226 | 0x250 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_tclk */ |
| 227 | 0x254 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_tctl */ |
| 228 | 0x258 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td3 */ |
| 229 | 0x25c (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td2 */ |
| 230 | 0x260 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td1 */ |
| 231 | 0x264 (PIN_OUTPUT | MUX_MODE0) /* rgmii1_td0 */ |
| 232 | 0x268 (PIN_INPUT | MUX_MODE0) /* rgmii1_rclk */ |
| 233 | 0x26c (PIN_INPUT | MUX_MODE0) /* rgmii1_rctl */ |
| 234 | 0x270 (PIN_INPUT | MUX_MODE0) /* rgmii1_rd3 */ |
| 235 | 0x274 (PIN_INPUT | MUX_MODE0) /* rgmii1_rd2 */ |
| 236 | 0x278 (PIN_INPUT | MUX_MODE0) /* rgmii1_rd1 */ |
| 237 | 0x27c (PIN_INPUT | MUX_MODE0) /* rgmii1_rd0 */ |
| 238 | |
| 239 | /* Slave 2 */ |
| 240 | 0x198 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_tclk */ |
| 241 | 0x19c (PIN_OUTPUT | MUX_MODE3) /* rgmii2_tctl */ |
| 242 | 0x1a0 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td3 */ |
| 243 | 0x1a4 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td2 */ |
| 244 | 0x1a8 (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td1 */ |
| 245 | 0x1ac (PIN_OUTPUT | MUX_MODE3) /* rgmii2_td0 */ |
| 246 | 0x1b0 (PIN_INPUT | MUX_MODE3) /* rgmii2_rclk */ |
| 247 | 0x1b4 (PIN_INPUT | MUX_MODE3) /* rgmii2_rctl */ |
| 248 | 0x1b8 (PIN_INPUT | MUX_MODE3) /* rgmii2_rd3 */ |
| 249 | 0x1bc (PIN_INPUT | MUX_MODE3) /* rgmii2_rd2 */ |
| 250 | 0x1c0 (PIN_INPUT | MUX_MODE3) /* rgmii2_rd1 */ |
| 251 | 0x1c4 (PIN_INPUT | MUX_MODE3) /* rgmii2_rd0 */ |
| 252 | >; |
| 253 | |
| 254 | }; |
| 255 | |
| 256 | cpsw_pins_sleep: cpsw_pins_sleep { |
| 257 | pinctrl-single,pins = < |
| 258 | /* Slave 1 */ |
| 259 | 0x250 (PIN_INPUT | MUX_MODE15) |
| 260 | 0x254 (PIN_INPUT | MUX_MODE15) |
| 261 | 0x258 (PIN_INPUT | MUX_MODE15) |
| 262 | 0x25c (PIN_INPUT | MUX_MODE15) |
| 263 | 0x260 (PIN_INPUT | MUX_MODE15) |
| 264 | 0x264 (PIN_INPUT | MUX_MODE15) |
| 265 | 0x268 (PIN_INPUT | MUX_MODE15) |
| 266 | 0x26c (PIN_INPUT | MUX_MODE15) |
| 267 | 0x270 (PIN_INPUT | MUX_MODE15) |
| 268 | 0x274 (PIN_INPUT | MUX_MODE15) |
| 269 | 0x278 (PIN_INPUT | MUX_MODE15) |
| 270 | 0x27c (PIN_INPUT | MUX_MODE15) |
| 271 | |
| 272 | /* Slave 2 */ |
| 273 | 0x198 (PIN_INPUT | MUX_MODE15) |
| 274 | 0x19c (PIN_INPUT | MUX_MODE15) |
| 275 | 0x1a0 (PIN_INPUT | MUX_MODE15) |
| 276 | 0x1a4 (PIN_INPUT | MUX_MODE15) |
| 277 | 0x1a8 (PIN_INPUT | MUX_MODE15) |
| 278 | 0x1ac (PIN_INPUT | MUX_MODE15) |
| 279 | 0x1b0 (PIN_INPUT | MUX_MODE15) |
| 280 | 0x1b4 (PIN_INPUT | MUX_MODE15) |
| 281 | 0x1b8 (PIN_INPUT | MUX_MODE15) |
| 282 | 0x1bc (PIN_INPUT | MUX_MODE15) |
| 283 | 0x1c0 (PIN_INPUT | MUX_MODE15) |
| 284 | 0x1c4 (PIN_INPUT | MUX_MODE15) |
| 285 | >; |
| 286 | }; |
| 287 | |
| 288 | davinci_mdio_pins_default: davinci_mdio_pins_default { |
| 289 | pinctrl-single,pins = < |
| 290 | /* MDIO */ |
| 291 | 0x23c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_mclk */ |
| 292 | 0x240 (PIN_INPUT_PULLUP | MUX_MODE0) /* mdio_d */ |
| 293 | >; |
| 294 | }; |
| 295 | |
| 296 | davinci_mdio_pins_sleep: davinci_mdio_pins_sleep { |
| 297 | pinctrl-single,pins = < |
| 298 | 0x23c (PIN_INPUT | MUX_MODE15) |
| 299 | 0x240 (PIN_INPUT | MUX_MODE15) |
| 300 | >; |
| 301 | }; |
| 302 | |
| 303 | tps659038_pins_default: tps659038_pins_default { |
| 304 | pinctrl-single,pins = < |
| 305 | 0x418 (PIN_INPUT_PULLUP | MUX_MODE14) /* wakeup0.gpio1_0 */ |
| 306 | >; |
| 307 | }; |
| 308 | |
| 309 | tmp102_pins_default: tmp102_pins_default { |
| 310 | pinctrl-single,pins = < |
| 311 | 0x3C8 (PIN_INPUT_PULLUP | MUX_MODE14) /* spi2_d0.gpio7_16 */ |
| 312 | >; |
| 313 | }; |
| 314 | |
| 315 | mcp79410_pins_default: mcp79410_pins_default { |
| 316 | pinctrl-single,pins = < |
| 317 | 0x424 (PIN_INPUT_PULLUP | MUX_MODE1) /* wakeup3.sys_nirq1 */ |
| 318 | >; |
| 319 | }; |
| 320 | |
| 321 | usb1_pins: pinmux_usb1_pins { |
| 322 | pinctrl-single,pins = < |
| 323 | 0x280 (PIN_INPUT_SLEW | MUX_MODE0) /* usb1_drvvbus */ |
| 324 | >; |
| 325 | }; |
| 326 | |
| 327 | extcon_usb1_pins: extcon_usb1_pins { |
| 328 | pinctrl-single,pins = < |
| 329 | 0x3ec (PIN_INPUT_PULLUP | MUX_MODE14) /* uart1_rtsn.gpio7_25 */ |
| 330 | >; |
| 331 | }; |
| 332 | |
| 333 | extcon_usb2_pins: extcon_usb2_pins { |
| 334 | pinctrl-single,pins = < |
| 335 | 0x3e8 (PIN_INPUT_PULLUP | MUX_MODE14) /* uart1_ctsn.gpio7_24 */ |
| 336 | >; |
| 337 | }; |
| 338 | |
| 339 | tpd12s015_pins: pinmux_tpd12s015_pins { |
| 340 | pinctrl-single,pins = < |
| 341 | 0x3b0 (PIN_OUTPUT | MUX_MODE14) /* gpio7_10 CT_CP_HPD */ |
| 342 | 0x3b8 (PIN_INPUT_PULLDOWN | MUX_MODE14) /* gpio7_12 HPD */ |
| 343 | 0x370 (PIN_OUTPUT | MUX_MODE14) /* gpio6_28 LS_OE */ |
| 344 | >; |
| 345 | }; |
| 346 | }; |
| 347 | |
| 348 | &i2c1 { |
| 349 | status = "okay"; |
| 350 | pinctrl-names = "default"; |
| 351 | pinctrl-0 = <&i2c1_pins_default>; |
| 352 | clock-frequency = <400000>; |
| 353 | |
| 354 | tps659038: tps659038@58 { |
| 355 | compatible = "ti,tps659038"; |
| 356 | reg = <0x58>; |
| 357 | interrupt-parent = <&gpio1>; |
| 358 | interrupts = <0 IRQ_TYPE_LEVEL_LOW>; |
| 359 | |
| 360 | pinctrl-names = "default"; |
| 361 | pinctrl-0 = <&tps659038_pins_default>; |
| 362 | |
| 363 | #interrupt-cells = <2>; |
| 364 | interrupt-controller; |
| 365 | |
| 366 | ti,system-power-controller; |
| 367 | |
| 368 | tps659038_pmic { |
| 369 | compatible = "ti,tps659038-pmic"; |
| 370 | |
| 371 | regulators { |
| 372 | smps12_reg: smps12 { |
| 373 | /* VDD_MPU */ |
| 374 | regulator-name = "smps12"; |
| 375 | regulator-min-microvolt = < 850000>; |
| 376 | regulator-max-microvolt = <1250000>; |
| 377 | regulator-always-on; |
| 378 | regulator-boot-on; |
| 379 | }; |
| 380 | |
| 381 | smps3_reg: smps3 { |
| 382 | /* VDD_DDR */ |
| 383 | regulator-name = "smps3"; |
| 384 | regulator-min-microvolt = <1350000>; |
| 385 | regulator-max-microvolt = <1350000>; |
| 386 | regulator-always-on; |
| 387 | regulator-boot-on; |
| 388 | }; |
| 389 | |
| 390 | smps45_reg: smps45 { |
| 391 | /* VDD_DSPEVE, VDD_IVA, VDD_GPU */ |
| 392 | regulator-name = "smps45"; |
| 393 | regulator-min-microvolt = < 850000>; |
| 394 | regulator-max-microvolt = <1150000>; |
| 395 | regulator-always-on; |
| 396 | regulator-boot-on; |
| 397 | }; |
| 398 | |
| 399 | smps6_reg: smps6 { |
| 400 | /* VDD_CORE */ |
| 401 | regulator-name = "smps6"; |
| 402 | regulator-min-microvolt = <850000>; |
| 403 | regulator-max-microvolt = <1030000>; |
| 404 | regulator-always-on; |
| 405 | regulator-boot-on; |
| 406 | }; |
| 407 | |
| 408 | /* SMPS7 unused */ |
| 409 | |
| 410 | smps8_reg: smps8 { |
| 411 | /* VDD_1V8 */ |
| 412 | regulator-name = "smps8"; |
| 413 | regulator-min-microvolt = <1800000>; |
| 414 | regulator-max-microvolt = <1800000>; |
| 415 | regulator-always-on; |
| 416 | regulator-boot-on; |
| 417 | }; |
| 418 | |
| 419 | /* SMPS9 unused */ |
| 420 | |
| 421 | ldo1_reg: ldo1 { |
| 422 | /* VDD_SD */ |
| 423 | regulator-name = "ldo1"; |
| 424 | regulator-min-microvolt = <1800000>; |
| 425 | regulator-max-microvolt = <3300000>; |
| 426 | regulator-boot-on; |
| 427 | }; |
| 428 | |
| 429 | ldo2_reg: ldo2 { |
| 430 | /* VDD_SHV5 */ |
| 431 | regulator-name = "ldo2"; |
| 432 | regulator-min-microvolt = <3300000>; |
| 433 | regulator-max-microvolt = <3300000>; |
| 434 | regulator-always-on; |
| 435 | regulator-boot-on; |
| 436 | }; |
| 437 | |
| 438 | ldo3_reg: ldo3 { |
| 439 | /* VDDA_1V8_PHY */ |
| 440 | regulator-name = "ldo3"; |
| 441 | regulator-min-microvolt = <1800000>; |
| 442 | regulator-max-microvolt = <1800000>; |
| 443 | regulator-always-on; |
| 444 | regulator-boot-on; |
| 445 | }; |
| 446 | |
| 447 | ldo9_reg: ldo9 { |
| 448 | /* VDD_RTC */ |
| 449 | regulator-name = "ldo9"; |
| 450 | regulator-min-microvolt = <1050000>; |
| 451 | regulator-max-microvolt = <1050000>; |
| 452 | regulator-always-on; |
| 453 | regulator-boot-on; |
| 454 | }; |
| 455 | |
| 456 | ldoln_reg: ldoln { |
| 457 | /* VDDA_1V8_PLL */ |
| 458 | regulator-name = "ldoln"; |
| 459 | regulator-min-microvolt = <1800000>; |
| 460 | regulator-max-microvolt = <1800000>; |
| 461 | regulator-always-on; |
| 462 | regulator-boot-on; |
| 463 | }; |
| 464 | |
| 465 | ldousb_reg: ldousb { |
| 466 | /* VDDA_3V_USB: VDDA_USBHS33 */ |
| 467 | regulator-name = "ldousb"; |
| 468 | regulator-min-microvolt = <3300000>; |
| 469 | regulator-max-microvolt = <3300000>; |
| 470 | regulator-boot-on; |
| 471 | }; |
| 472 | |
| 473 | regen1: regen1 { |
| 474 | /* VDD_3V3_ON */ |
| 475 | regulator-name = "regen1"; |
| 476 | regulator-boot-on; |
| 477 | regulator-always-on; |
| 478 | }; |
| 479 | }; |
| 480 | }; |
| 481 | |
| 482 | tps659038_rtc: tps659038_rtc { |
| 483 | compatible = "ti,palmas-rtc"; |
| 484 | interrupt-parent = <&tps659038>; |
| 485 | interrupts = <8 IRQ_TYPE_EDGE_FALLING>; |
| 486 | wakeup-source; |
| 487 | }; |
| 488 | |
| 489 | tps659038_pwr_button: tps659038_pwr_button { |
| 490 | compatible = "ti,palmas-pwrbutton"; |
| 491 | interrupt-parent = <&tps659038>; |
| 492 | interrupts = <1 IRQ_TYPE_EDGE_FALLING>; |
| 493 | wakeup-source; |
| 494 | ti,palmas-long-press-seconds = <12>; |
| 495 | }; |
| 496 | |
| 497 | tps659038_gpio: tps659038_gpio { |
| 498 | compatible = "ti,palmas-gpio"; |
| 499 | gpio-controller; |
| 500 | #gpio-cells = <2>; |
| 501 | }; |
| 502 | }; |
| 503 | |
| 504 | tmp102: tmp102@48 { |
| 505 | compatible = "ti,tmp102"; |
| 506 | reg = <0x48>; |
| 507 | pinctrl-names = "default"; |
| 508 | pinctrl-0 = <&tmp102_pins_default>; |
| 509 | interrupt-parent = <&gpio7>; |
| 510 | interrupts = <16 IRQ_TYPE_LEVEL_LOW>; |
| 511 | #thermal-sensor-cells = <1>; |
| 512 | }; |
| 513 | }; |
| 514 | |
| 515 | &i2c3 { |
| 516 | status = "okay"; |
| 517 | pinctrl-names = "default"; |
| 518 | pinctrl-0 = <&i2c3_pins_default>; |
| 519 | clock-frequency = <400000>; |
| 520 | |
| 521 | mcp_rtc: rtc@6f { |
| 522 | compatible = "microchip,mcp7941x"; |
| 523 | reg = <0x6f>; |
| 524 | interrupts = <GIC_SPI 2 IRQ_TYPE_EDGE_RISING>; /* IRQ_SYS_1N */ |
| 525 | |
| 526 | pinctrl-names = "default"; |
| 527 | pinctrl-0 = <&mcp79410_pins_default>; |
| 528 | |
| 529 | vcc-supply = <&vdd_3v3>; |
| 530 | wakeup-source; |
| 531 | }; |
| 532 | }; |
| 533 | |
| 534 | &gpio7 { |
| 535 | ti,no-reset-on-init; |
| 536 | ti,no-idle-on-init; |
| 537 | }; |
| 538 | |
| 539 | &cpu0 { |
| 540 | cpu0-supply = <&smps12_reg>; |
| 541 | voltage-tolerance = <1>; |
| 542 | }; |
| 543 | |
| 544 | &uart3 { |
| 545 | status = "okay"; |
| 546 | interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>, |
| 547 | <&dra7_pmx_core 0x3f8>; |
| 548 | |
| 549 | pinctrl-names = "default"; |
| 550 | pinctrl-0 = <&uart3_pins_default>; |
| 551 | }; |
| 552 | |
| 553 | &mac { |
| 554 | status = "okay"; |
| 555 | pinctrl-names = "default", "sleep"; |
| 556 | pinctrl-0 = <&cpsw_pins_default>; |
| 557 | pinctrl-1 = <&cpsw_pins_sleep>; |
| 558 | dual_emac; |
| 559 | }; |
| 560 | |
| 561 | &cpsw_emac0 { |
| 562 | phy_id = <&davinci_mdio>, <1>; |
| 563 | phy-mode = "rgmii"; |
| 564 | dual_emac_res_vlan = <1>; |
| 565 | }; |
| 566 | |
| 567 | &cpsw_emac1 { |
| 568 | phy_id = <&davinci_mdio>, <2>; |
| 569 | phy-mode = "rgmii"; |
| 570 | dual_emac_res_vlan = <2>; |
| 571 | }; |
| 572 | |
| 573 | &davinci_mdio { |
| 574 | pinctrl-names = "default", "sleep"; |
| 575 | pinctrl-0 = <&davinci_mdio_pins_default>; |
| 576 | pinctrl-1 = <&davinci_mdio_pins_sleep>; |
| 577 | }; |
| 578 | |
| 579 | &mmc1 { |
| 580 | status = "okay"; |
| 581 | |
| 582 | pinctrl-names = "default"; |
| 583 | pinctrl-0 = <&mmc1_pins_default>; |
| 584 | |
| 585 | vmmc-supply = <&ldo1_reg>; |
| 586 | vmmc_aux-supply = <&vdd_3v3>; |
| 587 | pbias-supply = <&pbias_mmc_reg>; |
| 588 | bus-width = <4>; |
Mugunthan V N | e361421 | 2016-04-04 17:28:03 +0530 | [diff] [blame^] | 589 | cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */ |
Mugunthan V N | eae7ae1 | 2015-09-29 14:42:27 +0530 | [diff] [blame] | 590 | }; |
| 591 | |
| 592 | &mmc2 { |
| 593 | status = "okay"; |
| 594 | |
| 595 | pinctrl-names = "default"; |
| 596 | pinctrl-0 = <&mmc2_pins_default>; |
| 597 | |
| 598 | vmmc-supply = <&vdd_3v3>; |
| 599 | bus-width = <8>; |
| 600 | ti,non-removable; |
| 601 | cap-mmc-dual-data-rate; |
| 602 | }; |
| 603 | |
| 604 | &sata { |
| 605 | status = "okay"; |
| 606 | }; |
| 607 | |
| 608 | &usb2_phy1 { |
| 609 | phy-supply = <&ldousb_reg>; |
| 610 | }; |
| 611 | |
| 612 | &usb2_phy2 { |
| 613 | phy-supply = <&ldousb_reg>; |
| 614 | }; |
| 615 | |
| 616 | &usb1 { |
| 617 | dr_mode = "host"; |
| 618 | pinctrl-names = "default"; |
| 619 | pinctrl-0 = <&usb1_pins>; |
| 620 | }; |
| 621 | |
| 622 | &omap_dwc3_1 { |
| 623 | extcon = <&extcon_usb1>; |
| 624 | }; |
| 625 | |
| 626 | &omap_dwc3_2 { |
| 627 | extcon = <&extcon_usb2>; |
| 628 | }; |
| 629 | |
| 630 | &usb2 { |
| 631 | dr_mode = "peripheral"; |
| 632 | }; |
| 633 | |
| 634 | &cpu_trips { |
| 635 | cpu_alert1: cpu_alert1 { |
| 636 | temperature = <50000>; /* millicelsius */ |
| 637 | hysteresis = <2000>; /* millicelsius */ |
| 638 | type = "active"; |
| 639 | }; |
| 640 | }; |
| 641 | |
| 642 | &cpu_cooling_maps { |
| 643 | map1 { |
| 644 | trip = <&cpu_alert1>; |
| 645 | cooling-device = <&gpio_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 646 | }; |
| 647 | }; |
| 648 | |
| 649 | &thermal_zones { |
| 650 | board_thermal: board_thermal { |
| 651 | polling-delay-passive = <1250>; /* milliseconds */ |
| 652 | polling-delay = <1500>; /* milliseconds */ |
| 653 | |
| 654 | /* sensor ID */ |
| 655 | thermal-sensors = <&tmp102 0>; |
| 656 | |
| 657 | board_trips: trips { |
| 658 | board_alert0: board_alert { |
| 659 | temperature = <40000>; /* millicelsius */ |
| 660 | hysteresis = <2000>; /* millicelsius */ |
| 661 | type = "active"; |
| 662 | }; |
| 663 | |
| 664 | board_crit: board_crit { |
| 665 | temperature = <105000>; /* millicelsius */ |
| 666 | hysteresis = <0>; /* millicelsius */ |
| 667 | type = "critical"; |
| 668 | }; |
| 669 | }; |
| 670 | |
| 671 | board_cooling_maps: cooling-maps { |
| 672 | map0 { |
| 673 | trip = <&board_alert0>; |
| 674 | cooling-device = |
| 675 | <&gpio_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 676 | }; |
| 677 | }; |
| 678 | }; |
| 679 | }; |
| 680 | |
| 681 | &dss { |
| 682 | status = "ok"; |
| 683 | |
| 684 | vdda_video-supply = <&ldoln_reg>; |
| 685 | }; |
| 686 | |
| 687 | &hdmi { |
| 688 | status = "ok"; |
| 689 | vdda-supply = <&ldo3_reg>; |
| 690 | |
| 691 | pinctrl-names = "default"; |
| 692 | pinctrl-0 = <&hdmi_pins>; |
| 693 | |
| 694 | port { |
| 695 | hdmi_out: endpoint { |
| 696 | remote-endpoint = <&tpd12s015_in>; |
| 697 | }; |
| 698 | }; |
| 699 | }; |