1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ 4 */ 5/dts-v1/; 6 7#include "am33xx.dtsi" 8#include "am335x-osd335x-common.dtsi" 9#include <dt-bindings/interrupt-controller/irq.h> 10 11/ { 12 model = "TI AM335x BeagleBone Blue"; 13 compatible = "ti,am335x-bone-blue", "ti,am33xx"; 14 15 chosen { 16 stdout-path = &uart0; 17 }; 18 19 leds { 20 pinctrl-names = "default"; 21 pinctrl-0 = <&user_leds_s0>; 22 23 compatible = "gpio-leds"; 24 25 usr_0_led { 26 label = "beaglebone:green:usr0"; 27 gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>; 28 linux,default-trigger = "heartbeat"; 29 default-state = "off"; 30 }; 31 32 usr_1_led { 33 label = "beaglebone:green:usr1"; 34 gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>; 35 linux,default-trigger = "mmc0"; 36 default-state = "off"; 37 }; 38 39 usr_2_led { 40 label = "beaglebone:green:usr2"; 41 gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>; 42 linux,default-trigger = "cpu0"; 43 default-state = "off"; 44 }; 45 46 usr_3_led { 47 label = "beaglebone:green:usr3"; 48 gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>; 49 linux,default-trigger = "mmc1"; 50 default-state = "off"; 51 }; 52 53 wifi_led { 54 label = "wifi"; 55 gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; 56 default-state = "off"; 57 linux,default-trigger = "phy0assoc"; 58 }; 59 60 red_led { 61 label = "red"; 62 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; 63 default-state = "off"; 64 }; 65 66 green_led { 67 label = "green"; 68 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; 69 default-state = "off"; 70 }; 71 72 batt_1_led { 73 label = "bat25"; 74 gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>; 75 default-state = "off"; 76 }; 77 78 batt_2_led { 79 label = "bat50"; 80 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; 81 default-state = "off"; 82 }; 83 84 batt_3_led { 85 label = "bat75"; 86 gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>; 87 default-state = "off"; 88 }; 89 90 batt_4_led { 91 label = "bat100"; 92 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>; 93 default-state = "off"; 94 }; 95 }; 96 97 vmmcsd_fixed: fixedregulator0 { 98 compatible = "regulator-fixed"; 99 regulator-name = "vmmcsd_fixed"; 100 regulator-min-microvolt = <3300000>; 101 regulator-max-microvolt = <3300000>; 102 }; 103 104 wlan_en_reg: fixedregulator@2 { 105 compatible = "regulator-fixed"; 106 regulator-name = "wlan-en-regulator"; 107 regulator-min-microvolt = <1800000>; 108 regulator-max-microvolt = <1800000>; 109 startup-delay-us= <70000>; 110 111 /* WL_EN */ 112 gpio = <&gpio3 9 0>; 113 enable-active-high; 114 }; 115}; 116 117&am33xx_pinmux { 118 user_leds_s0: user_leds_s0 { 119 pinctrl-single,pins = < 120 AM33XX_PADCONF(AM335X_PIN_GPMC_A5, PIN_OUTPUT, MUX_MODE7) /* (V15) gpmc_a5.gpio1[21] - USR_LED_0 */ 121 AM33XX_PADCONF(AM335X_PIN_GPMC_A6, PIN_OUTPUT, MUX_MODE7) /* (U15) gpmc_a6.gpio1[22] - USR_LED_1 */ 122 AM33XX_PADCONF(AM335X_PIN_GPMC_A7, PIN_OUTPUT, MUX_MODE7) /* (T15) gpmc_a7.gpio1[23] - USR_LED_2 */ 123 AM33XX_PADCONF(AM335X_PIN_GPMC_A8, PIN_OUTPUT, MUX_MODE7) /* (V16) gpmc_a8.gpio1[24] - USR_LED_3 */ 124 AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR0, PIN_OUTPUT, MUX_MODE7) /* (A15) xdma_event_intr0.gpio0[19] - WIFI_LED */ 125 AM33XX_PADCONF(AM335X_PIN_GPMC_ADVN_ALE, PIN_OUTPUT, MUX_MODE7) /* (R7) gpmc_advn_ale.gpio2[2] - P8.7, LED_RED, GP1_PIN_5 */ 126 AM33XX_PADCONF(AM335X_PIN_GPMC_OEN_REN, PIN_OUTPUT, MUX_MODE7) /* (T7) gpmc_oen_ren.gpio2[3] - P8.8, LED_GREEN, GP1_PIN_6 */ 127 AM33XX_PADCONF(AM335X_PIN_GPMC_AD11, PIN_OUTPUT, MUX_MODE7) /* (U12) gpmc_ad11.gpio0[27] - P8.17, BATT_LED_1 */ 128 AM33XX_PADCONF(AM335X_PIN_LCD_DATA15, PIN_OUTPUT, MUX_MODE7) /* (T5) lcd_data15.gpio0[11] - P8.32, BATT_LED_2 */ 129 AM33XX_PADCONF(AM335X_PIN_GPMC_CSN0, PIN_OUTPUT, MUX_MODE7) /* (V6) gpmc_csn0.gpio1[29] - P8.26, BATT_LED_3 */ 130 AM33XX_PADCONF(AM335X_PIN_GPMC_AD10, PIN_OUTPUT, MUX_MODE7) /* (T11) gpmc_ad10.gpio0[26] - P8.14, BATT_LED_4 */ 131 132 >; 133 }; 134 135 i2c2_pins: pinmux_i2c2_pins { 136 pinctrl-single,pins = < 137 AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT_PULLUP, MUX_MODE3) /* (D18) uart1_ctsn.I2C2_SDA */ 138 AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_INPUT_PULLUP, MUX_MODE3) /* (D17) uart1_rtsn.I2C2_SCL */ 139 >; 140 }; 141 142 /* UT0 */ 143 uart0_pins: pinmux_uart0_pins { 144 pinctrl-single,pins = < 145 AM33XX_PADCONF(AM335X_PIN_UART0_RXD, PIN_INPUT_PULLUP, MUX_MODE0) 146 AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0) 147 >; 148 }; 149 150 /* UT1 */ 151 uart1_pins: pinmux_uart1_pins { 152 pinctrl-single,pins = < 153 AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT_PULLUP, MUX_MODE0) 154 AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0) 155 >; 156 }; 157 158 /* GPS */ 159 uart2_pins: pinmux_uart2_pins { 160 pinctrl-single,pins = < 161 AM33XX_PADCONF(AM335X_PIN_SPI0_SCLK, PIN_INPUT_PULLUP, MUX_MODE1) /* (A17) spi0_sclk.uart2_rxd */ 162 AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_OUTPUT_PULLDOWN, MUX_MODE1) /* (B17) spi0_d0.uart2_txd */ 163 >; 164 }; 165 166 /* DSM2 */ 167 uart4_pins: pinmux_uart4_pins { 168 pinctrl-single,pins = < 169 AM33XX_PADCONF(AM335X_PIN_GPMC_WAIT0, PIN_INPUT_PULLUP, MUX_MODE6) /* (T17) gpmc_wait0.uart4_rxd */ 170 >; 171 }; 172 173 /* UT5 */ 174 uart5_pins: pinmux_uart5_pins { 175 pinctrl-single,pins = < 176 AM33XX_PADCONF(AM335X_PIN_LCD_DATA9, PIN_INPUT_PULLUP, MUX_MODE4) /* (U2) lcd_data9.uart5_rxd */ 177 AM33XX_PADCONF(AM335X_PIN_LCD_DATA8, PIN_OUTPUT_PULLDOWN, MUX_MODE4) /* (U1) lcd_data8.uart5_txd */ 178 >; 179 }; 180 181 mmc1_pins: pinmux_mmc1_pins { 182 pinctrl-single,pins = < 183 AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT, MUX_MODE7) /* (C15) spi0_cs1.gpio0[6] */ 184 >; 185 }; 186 187 mmc2_pins: pinmux_mmc2_pins { 188 pinctrl-single,pins = < 189 AM33XX_PADCONF(AM335X_PIN_GPMC_CSN1, PIN_INPUT_PULLUP, MUX_MODE2) /* (U9) gpmc_csn1.mmc1_clk */ 190 AM33XX_PADCONF(AM335X_PIN_GPMC_CSN2, PIN_INPUT_PULLUP, MUX_MODE2) /* (V9) gpmc_csn2.mmc1_cmd */ 191 AM33XX_PADCONF(AM335X_PIN_GPMC_AD0, PIN_INPUT_PULLUP, MUX_MODE1) /* (U7) gpmc_ad0.mmc1_dat0 */ 192 AM33XX_PADCONF(AM335X_PIN_GPMC_AD1, PIN_INPUT_PULLUP, MUX_MODE1) /* (V7) gpmc_ad1.mmc1_dat1 */ 193 AM33XX_PADCONF(AM335X_PIN_GPMC_AD2, PIN_INPUT_PULLUP, MUX_MODE1) /* (R8) gpmc_ad2.mmc1_dat2 */ 194 AM33XX_PADCONF(AM335X_PIN_GPMC_AD3, PIN_INPUT_PULLUP, MUX_MODE1) /* (T8) gpmc_ad3.mmc1_dat3 */ 195 AM33XX_PADCONF(AM335X_PIN_GPMC_AD4, PIN_INPUT_PULLUP, MUX_MODE1) /* (U8) gpmc_ad4.mmc1_dat4 */ 196 AM33XX_PADCONF(AM335X_PIN_GPMC_AD5, PIN_INPUT_PULLUP, MUX_MODE1) /* (V8) gpmc_ad5.mmc1_dat5 */ 197 AM33XX_PADCONF(AM335X_PIN_GPMC_AD6, PIN_INPUT_PULLUP, MUX_MODE1) /* (R9) gpmc_ad6.mmc1_dat6 */ 198 AM33XX_PADCONF(AM335X_PIN_GPMC_AD7, PIN_INPUT_PULLUP, MUX_MODE1) /* (T9) gpmc_ad7.mmc1_dat7 */ 199 >; 200 }; 201 202 mmc3_pins: pinmux_mmc3_pins { 203 pinctrl-single,pins = < 204 AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLUP, MUX_MODE6) /* (L15) gmii1_rxd1.mmc2_clk */ 205 AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_INPUT_PULLUP, MUX_MODE6) /* (J16) gmii1_txen.mmc2_cmd */ 206 AM33XX_PADCONF(AM335X_PIN_MII1_RX_DV, PIN_INPUT_PULLUP, MUX_MODE5) /* (J17) gmii1_rxdv.mmc2_dat0 */ 207 AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_INPUT_PULLUP, MUX_MODE5) /* (J18) gmii1_txd3.mmc2_dat1 */ 208 AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_INPUT_PULLUP, MUX_MODE5) /* (K15) gmii1_txd2.mmc2_dat2 */ 209 AM33XX_PADCONF(AM335X_PIN_MII1_COL, PIN_INPUT_PULLUP, MUX_MODE5) /* (H16) gmii1_col.mmc2_dat3 */ 210 >; 211 }; 212 213 bt_pins: pinmux_bt_pins { 214 pinctrl-single,pins = < 215 AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLUP, MUX_MODE7) /* (K17) gmii1_txd0.gpio0[28] - BT_EN */ 216 >; 217 }; 218 219 uart3_pins: pinmux_uart3_pins { 220 pinctrl-single,pins = < 221 AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLUP, MUX_MODE1) /* (L17) gmii1_rxd3.uart3_rxd */ 222 AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_OUTPUT_PULLDOWN, MUX_MODE1) /* (L16) gmii1_rxd2.uart3_txd */ 223 AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT, MUX_MODE3) /* (M17) mdio_data.uart3_ctsn */ 224 AM33XX_PADCONF(AM335X_PIN_MDC, PIN_OUTPUT_PULLDOWN, MUX_MODE3) /* (M18) mdio_clk.uart3_rtsn */ 225 >; 226 }; 227 228 wl18xx_pins: pinmux_wl18xx_pins { 229 pinctrl-single,pins = < 230 AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* (K18) gmii1_txclk.gpio3[9] - WL_EN */ 231 AM33XX_PADCONF(AM335X_PIN_MII1_TXD1, PIN_INPUT_PULLDOWN, MUX_MODE7) /* (K16) gmii1_txd1.gpio0[21] - WL_IRQ */ 232 AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_OUTPUT_PULLUP, MUX_MODE7) /* (L18) gmii1_rxclk.gpio3[10] - LS_BUF_EN */ 233 >; 234 }; 235 236 /* DCAN */ 237 dcan1_pins: pinmux_dcan1_pins { 238 pinctrl-single,pins = < 239 AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_INPUT, MUX_MODE2) /* (E17) uart0_rtsn.dcan1_rx */ 240 AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_OUTPUT, MUX_MODE2) /* (E18) uart0_ctsn.dcan1_tx */ 241 AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_OUTPUT, MUX_MODE7) /* (M16) gmii1_rxd0.gpio2[21] */ 242 >; 243 }; 244}; 245 246&uart0 { 247 pinctrl-names = "default"; 248 pinctrl-0 = <&uart0_pins>; 249 250 status = "okay"; 251}; 252 253&uart1 { 254 pinctrl-names = "default"; 255 pinctrl-0 = <&uart1_pins>; 256 257 status = "okay"; 258}; 259 260&uart2 { 261 pinctrl-names = "default"; 262 pinctrl-0 = <&uart2_pins>; 263 264 status = "okay"; 265}; 266 267&uart4 { 268 pinctrl-names = "default"; 269 pinctrl-0 = <&uart4_pins>; 270 271 status = "okay"; 272}; 273 274&uart5 { 275 pinctrl-names = "default"; 276 pinctrl-0 = <&uart5_pins>; 277 278 status = "okay"; 279}; 280 281&usb { 282 status = "okay"; 283}; 284 285&usb_ctrl_mod { 286 status = "okay"; 287}; 288 289&usb0_phy { 290 status = "okay"; 291}; 292 293&usb1_phy { 294 status = "okay"; 295}; 296 297&usb0 { 298 status = "okay"; 299 dr_mode = "peripheral"; 300 interrupts-extended = <&intc 18 &tps 0>; 301 interrupt-names = "mc", "vbus"; 302}; 303 304&usb1 { 305 status = "okay"; 306 dr_mode = "host"; 307}; 308 309&cppi41dma { 310 status = "okay"; 311}; 312 313&i2c0 { 314 baseboard_eeprom: baseboard_eeprom@50 { 315 compatible = "atmel,24c256"; 316 reg = <0x50>; 317 318 #address-cells = <1>; 319 #size-cells = <1>; 320 baseboard_data: baseboard_data@0 { 321 reg = <0 0x100>; 322 }; 323 }; 324}; 325 326&i2c2 { 327 pinctrl-names = "default"; 328 pinctrl-0 = <&i2c2_pins>; 329 330 status = "okay"; 331 clock-frequency = <400000>; 332 333 mpu9250@68 { 334 compatible = "invensense,mpu9250"; 335 reg = <0x68>; 336 interrupt-parent = <&gpio3>; 337 interrupts = <21 IRQ_TYPE_EDGE_RISING>; 338 i2c-gate { 339 #address-cells = <1>; 340 #size-cells = <0>; 341 ax8975@c { 342 compatible = "ak,ak8975"; 343 reg = <0x0c>; 344 }; 345 }; 346 }; 347 348 pressure@76 { 349 compatible = "bosch,bmp280"; 350 reg = <0x76>; 351 }; 352}; 353 354/include/ "tps65217.dtsi" 355 356&tps { 357 /delete-property/ ti,pmic-shutdown-controller; 358 359 charger { 360 interrupts = <0>, <1>; 361 interrupt-names = "USB", "AC"; 362 status = "okay"; 363 }; 364}; 365 366&mmc1 { 367 status = "okay"; 368 vmmc-supply = <&vmmcsd_fixed>; 369 bus-width = <4>; 370 pinctrl-names = "default"; 371 pinctrl-0 = <&mmc1_pins>; 372 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; 373}; 374 375&mmc2 { 376 status = "okay"; 377 vmmc-supply = <&vmmcsd_fixed>; 378 bus-width = <8>; 379 pinctrl-names = "default"; 380 pinctrl-0 = <&mmc2_pins>; 381}; 382 383&mmc3 { 384 dmas = <&edma_xbar 12 0 1 385 &edma_xbar 13 0 2>; 386 dma-names = "tx", "rx"; 387 status = "okay"; 388 vmmc-supply = <&wlan_en_reg>; 389 bus-width = <4>; 390 non-removable; 391 cap-power-off-card; 392 ti,needs-special-hs-handling; 393 keep-power-in-suspend; 394 pinctrl-names = "default"; 395 pinctrl-0 = <&mmc3_pins &wl18xx_pins>; 396 397 #address-cells = <1>; 398 #size-cells = <0>; 399 wlcore: wlcore@2 { 400 compatible = "ti,wl1835"; 401 reg = <2>; 402 interrupt-parent = <&gpio0>; 403 interrupts = <21 IRQ_TYPE_EDGE_RISING>; 404 }; 405}; 406 407&tscadc { 408 status = "okay"; 409 adc { 410 ti,adc-channels = <0 1 2 3 4 5 6 7>; 411 }; 412}; 413 414&uart3 { 415 pinctrl-names = "default"; 416 pinctrl-0 = <&uart3_pins &bt_pins>; 417 status = "okay"; 418 419 bluetooth { 420 compatible = "ti,wl1835-st"; 421 enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; 422 }; 423}; 424 425&rtc { 426 system-power-controller; 427 clocks = <&clk_32768_ck>, <&clk_24mhz_clkctrl AM3_CLK_24MHZ_CLKDIV32K_CLKCTRL 0>; 428 clock-names = "ext-clk", "int-clk"; 429}; 430 431&dcan1 { 432 pinctrl-names = "default"; 433 pinctrl-0 = <&dcan1_pins>; 434 status = "okay"; 435}; 436 437&gpio3 { 438 ls_buf_en { 439 gpio-hog; 440 gpios = <10 GPIO_ACTIVE_HIGH>; 441 output-high; 442 line-name = "LS_BUF_EN"; 443 }; 444}; 445