Paul Barker | 1d49b8d | 2022-04-11 15:41:59 +0000 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | /* |
| 3 | * Copyright (C) 2012 Texas Instruments Incorporated - https://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 | tick-timer = &timer2; |
| 18 | }; |
| 19 | |
| 20 | leds { |
| 21 | pinctrl-names = "default"; |
| 22 | pinctrl-0 = <&user_leds_s0>; |
| 23 | |
| 24 | compatible = "gpio-leds"; |
| 25 | |
| 26 | usr_0_led { |
| 27 | label = "beaglebone:green:usr0"; |
| 28 | gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>; |
| 29 | linux,default-trigger = "heartbeat"; |
| 30 | default-state = "off"; |
| 31 | }; |
| 32 | |
| 33 | usr_1_led { |
| 34 | label = "beaglebone:green:usr1"; |
| 35 | gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>; |
| 36 | linux,default-trigger = "mmc0"; |
| 37 | default-state = "off"; |
| 38 | }; |
| 39 | |
| 40 | usr_2_led { |
| 41 | label = "beaglebone:green:usr2"; |
| 42 | gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>; |
| 43 | linux,default-trigger = "cpu0"; |
| 44 | default-state = "off"; |
| 45 | }; |
| 46 | |
| 47 | usr_3_led { |
| 48 | label = "beaglebone:green:usr3"; |
| 49 | gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>; |
| 50 | linux,default-trigger = "mmc1"; |
| 51 | default-state = "off"; |
| 52 | }; |
| 53 | |
| 54 | wifi_led { |
| 55 | label = "wifi"; |
| 56 | gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; |
| 57 | default-state = "off"; |
| 58 | linux,default-trigger = "phy0assoc"; |
| 59 | }; |
| 60 | |
| 61 | red_led { |
| 62 | label = "red"; |
| 63 | gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; |
| 64 | default-state = "off"; |
| 65 | }; |
| 66 | |
| 67 | green_led { |
| 68 | label = "green"; |
| 69 | gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; |
| 70 | default-state = "off"; |
| 71 | }; |
| 72 | |
| 73 | batt_1_led { |
| 74 | label = "bat25"; |
| 75 | gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>; |
| 76 | default-state = "off"; |
| 77 | }; |
| 78 | |
| 79 | batt_2_led { |
| 80 | label = "bat50"; |
| 81 | gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; |
| 82 | default-state = "off"; |
| 83 | }; |
| 84 | |
| 85 | batt_3_led { |
| 86 | label = "bat75"; |
| 87 | gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>; |
| 88 | default-state = "off"; |
| 89 | }; |
| 90 | |
| 91 | batt_4_led { |
| 92 | label = "bat100"; |
| 93 | gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>; |
| 94 | default-state = "off"; |
| 95 | }; |
| 96 | }; |
| 97 | |
| 98 | vmmcsd_fixed: fixedregulator0 { |
| 99 | compatible = "regulator-fixed"; |
| 100 | regulator-name = "vmmcsd_fixed"; |
| 101 | regulator-min-microvolt = <3300000>; |
| 102 | regulator-max-microvolt = <3300000>; |
| 103 | }; |
| 104 | |
| 105 | wlan_en_reg: fixedregulator@2 { |
| 106 | compatible = "regulator-fixed"; |
| 107 | regulator-name = "wlan-en-regulator"; |
| 108 | regulator-min-microvolt = <1800000>; |
| 109 | regulator-max-microvolt = <1800000>; |
Andrew Davis | 211b3d7 | 2023-04-11 13:25:05 -0500 | [diff] [blame] | 110 | startup-delay-us = <70000>; |
Paul Barker | 1d49b8d | 2022-04-11 15:41:59 +0000 | [diff] [blame] | 111 | |
| 112 | /* WL_EN */ |
| 113 | gpio = <&gpio3 9 0>; |
| 114 | enable-active-high; |
| 115 | }; |
| 116 | }; |
| 117 | |
| 118 | &am33xx_pinmux { |
| 119 | user_leds_s0: user_leds_s0 { |
| 120 | pinctrl-single,pins = < |
| 121 | AM33XX_PADCONF(AM335X_PIN_GPMC_A5, PIN_OUTPUT, MUX_MODE7) /* (V15) gpmc_a5.gpio1[21] - USR_LED_0 */ |
| 122 | AM33XX_PADCONF(AM335X_PIN_GPMC_A6, PIN_OUTPUT, MUX_MODE7) /* (U15) gpmc_a6.gpio1[22] - USR_LED_1 */ |
| 123 | AM33XX_PADCONF(AM335X_PIN_GPMC_A7, PIN_OUTPUT, MUX_MODE7) /* (T15) gpmc_a7.gpio1[23] - USR_LED_2 */ |
| 124 | AM33XX_PADCONF(AM335X_PIN_GPMC_A8, PIN_OUTPUT, MUX_MODE7) /* (V16) gpmc_a8.gpio1[24] - USR_LED_3 */ |
| 125 | AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR0, PIN_OUTPUT, MUX_MODE7) /* (A15) xdma_event_intr0.gpio0[19] - WIFI_LED */ |
| 126 | AM33XX_PADCONF(AM335X_PIN_GPMC_ADVN_ALE, PIN_OUTPUT, MUX_MODE7) /* (R7) gpmc_advn_ale.gpio2[2] - P8.7, LED_RED, GP1_PIN_5 */ |
| 127 | AM33XX_PADCONF(AM335X_PIN_GPMC_OEN_REN, PIN_OUTPUT, MUX_MODE7) /* (T7) gpmc_oen_ren.gpio2[3] - P8.8, LED_GREEN, GP1_PIN_6 */ |
| 128 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD11, PIN_OUTPUT, MUX_MODE7) /* (U12) gpmc_ad11.gpio0[27] - P8.17, BATT_LED_1 */ |
| 129 | AM33XX_PADCONF(AM335X_PIN_LCD_DATA15, PIN_OUTPUT, MUX_MODE7) /* (T5) lcd_data15.gpio0[11] - P8.32, BATT_LED_2 */ |
| 130 | AM33XX_PADCONF(AM335X_PIN_GPMC_CSN0, PIN_OUTPUT, MUX_MODE7) /* (V6) gpmc_csn0.gpio1[29] - P8.26, BATT_LED_3 */ |
| 131 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD10, PIN_OUTPUT, MUX_MODE7) /* (T11) gpmc_ad10.gpio0[26] - P8.14, BATT_LED_4 */ |
| 132 | |
| 133 | >; |
| 134 | }; |
| 135 | |
| 136 | i2c2_pins: pinmux_i2c2_pins { |
| 137 | pinctrl-single,pins = < |
| 138 | AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT_PULLUP, MUX_MODE3) /* (D18) uart1_ctsn.I2C2_SDA */ |
| 139 | AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_INPUT_PULLUP, MUX_MODE3) /* (D17) uart1_rtsn.I2C2_SCL */ |
| 140 | >; |
| 141 | }; |
| 142 | |
| 143 | /* UT0 */ |
| 144 | uart0_pins: pinmux_uart0_pins { |
| 145 | pinctrl-single,pins = < |
| 146 | AM33XX_PADCONF(AM335X_PIN_UART0_RXD, PIN_INPUT_PULLUP, MUX_MODE0) |
| 147 | AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0) |
| 148 | >; |
| 149 | }; |
| 150 | |
| 151 | /* UT1 */ |
| 152 | uart1_pins: pinmux_uart1_pins { |
| 153 | pinctrl-single,pins = < |
| 154 | AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT_PULLUP, MUX_MODE0) |
| 155 | AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0) |
| 156 | >; |
| 157 | }; |
| 158 | |
| 159 | /* GPS */ |
| 160 | uart2_pins: pinmux_uart2_pins { |
| 161 | pinctrl-single,pins = < |
| 162 | AM33XX_PADCONF(AM335X_PIN_SPI0_SCLK, PIN_INPUT_PULLUP, MUX_MODE1) /* (A17) spi0_sclk.uart2_rxd */ |
| 163 | AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_OUTPUT_PULLDOWN, MUX_MODE1) /* (B17) spi0_d0.uart2_txd */ |
| 164 | >; |
| 165 | }; |
| 166 | |
| 167 | /* DSM2 */ |
| 168 | uart4_pins: pinmux_uart4_pins { |
| 169 | pinctrl-single,pins = < |
| 170 | AM33XX_PADCONF(AM335X_PIN_GPMC_WAIT0, PIN_INPUT_PULLUP, MUX_MODE6) /* (T17) gpmc_wait0.uart4_rxd */ |
| 171 | >; |
| 172 | }; |
| 173 | |
| 174 | /* UT5 */ |
| 175 | uart5_pins: pinmux_uart5_pins { |
| 176 | pinctrl-single,pins = < |
| 177 | AM33XX_PADCONF(AM335X_PIN_LCD_DATA9, PIN_INPUT_PULLUP, MUX_MODE4) /* (U2) lcd_data9.uart5_rxd */ |
| 178 | AM33XX_PADCONF(AM335X_PIN_LCD_DATA8, PIN_OUTPUT_PULLDOWN, MUX_MODE4) /* (U1) lcd_data8.uart5_txd */ |
| 179 | >; |
| 180 | }; |
| 181 | |
| 182 | mmc1_pins: pinmux_mmc1_pins { |
| 183 | pinctrl-single,pins = < |
| 184 | AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT, MUX_MODE7) /* (C15) spi0_cs1.gpio0[6] */ |
| 185 | >; |
| 186 | }; |
| 187 | |
| 188 | mmc2_pins: pinmux_mmc2_pins { |
| 189 | pinctrl-single,pins = < |
| 190 | AM33XX_PADCONF(AM335X_PIN_GPMC_CSN1, PIN_INPUT_PULLUP, MUX_MODE2) /* (U9) gpmc_csn1.mmc1_clk */ |
| 191 | AM33XX_PADCONF(AM335X_PIN_GPMC_CSN2, PIN_INPUT_PULLUP, MUX_MODE2) /* (V9) gpmc_csn2.mmc1_cmd */ |
| 192 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD0, PIN_INPUT_PULLUP, MUX_MODE1) /* (U7) gpmc_ad0.mmc1_dat0 */ |
| 193 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD1, PIN_INPUT_PULLUP, MUX_MODE1) /* (V7) gpmc_ad1.mmc1_dat1 */ |
| 194 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD2, PIN_INPUT_PULLUP, MUX_MODE1) /* (R8) gpmc_ad2.mmc1_dat2 */ |
| 195 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD3, PIN_INPUT_PULLUP, MUX_MODE1) /* (T8) gpmc_ad3.mmc1_dat3 */ |
| 196 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD4, PIN_INPUT_PULLUP, MUX_MODE1) /* (U8) gpmc_ad4.mmc1_dat4 */ |
| 197 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD5, PIN_INPUT_PULLUP, MUX_MODE1) /* (V8) gpmc_ad5.mmc1_dat5 */ |
| 198 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD6, PIN_INPUT_PULLUP, MUX_MODE1) /* (R9) gpmc_ad6.mmc1_dat6 */ |
| 199 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD7, PIN_INPUT_PULLUP, MUX_MODE1) /* (T9) gpmc_ad7.mmc1_dat7 */ |
| 200 | >; |
| 201 | }; |
| 202 | |
| 203 | mmc3_pins: pinmux_mmc3_pins { |
| 204 | pinctrl-single,pins = < |
| 205 | AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLUP, MUX_MODE6) /* (L15) gmii1_rxd1.mmc2_clk */ |
| 206 | AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_INPUT_PULLUP, MUX_MODE6) /* (J16) gmii1_txen.mmc2_cmd */ |
| 207 | AM33XX_PADCONF(AM335X_PIN_MII1_RX_DV, PIN_INPUT_PULLUP, MUX_MODE5) /* (J17) gmii1_rxdv.mmc2_dat0 */ |
| 208 | AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_INPUT_PULLUP, MUX_MODE5) /* (J18) gmii1_txd3.mmc2_dat1 */ |
| 209 | AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_INPUT_PULLUP, MUX_MODE5) /* (K15) gmii1_txd2.mmc2_dat2 */ |
| 210 | AM33XX_PADCONF(AM335X_PIN_MII1_COL, PIN_INPUT_PULLUP, MUX_MODE5) /* (H16) gmii1_col.mmc2_dat3 */ |
| 211 | >; |
| 212 | }; |
| 213 | |
| 214 | bt_pins: pinmux_bt_pins { |
| 215 | pinctrl-single,pins = < |
| 216 | AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLUP, MUX_MODE7) /* (K17) gmii1_txd0.gpio0[28] - BT_EN */ |
| 217 | >; |
| 218 | }; |
| 219 | |
| 220 | uart3_pins: pinmux_uart3_pins { |
| 221 | pinctrl-single,pins = < |
| 222 | AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLUP, MUX_MODE1) /* (L17) gmii1_rxd3.uart3_rxd */ |
| 223 | AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_OUTPUT_PULLDOWN, MUX_MODE1) /* (L16) gmii1_rxd2.uart3_txd */ |
| 224 | AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT, MUX_MODE3) /* (M17) mdio_data.uart3_ctsn */ |
| 225 | AM33XX_PADCONF(AM335X_PIN_MDC, PIN_OUTPUT_PULLDOWN, MUX_MODE3) /* (M18) mdio_clk.uart3_rtsn */ |
| 226 | >; |
| 227 | }; |
| 228 | |
| 229 | wl18xx_pins: pinmux_wl18xx_pins { |
| 230 | pinctrl-single,pins = < |
| 231 | AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* (K18) gmii1_txclk.gpio3[9] - WL_EN */ |
| 232 | AM33XX_PADCONF(AM335X_PIN_MII1_TXD1, PIN_INPUT_PULLDOWN, MUX_MODE7) /* (K16) gmii1_txd1.gpio0[21] - WL_IRQ */ |
| 233 | AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_OUTPUT_PULLUP, MUX_MODE7) /* (L18) gmii1_rxclk.gpio3[10] - LS_BUF_EN */ |
| 234 | >; |
| 235 | }; |
| 236 | |
| 237 | /* DCAN */ |
| 238 | dcan1_pins: pinmux_dcan1_pins { |
| 239 | pinctrl-single,pins = < |
| 240 | AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_INPUT, MUX_MODE2) /* (E17) uart0_rtsn.dcan1_rx */ |
| 241 | AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_OUTPUT, MUX_MODE2) /* (E18) uart0_ctsn.dcan1_tx */ |
| 242 | AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_OUTPUT, MUX_MODE7) /* (M16) gmii1_rxd0.gpio2[21] */ |
| 243 | >; |
| 244 | }; |
| 245 | |
| 246 | /* E1 */ |
| 247 | eqep0_pins: pinmux_eqep0_pins { |
| 248 | pinctrl-single,pins = < |
| 249 | AM33XX_PADCONF(AM335X_PIN_MCASP0_AXR0, PIN_INPUT, MUX_MODE1) /* (B12) mcasp0_aclkr.eQEP0A_in */ |
| 250 | AM33XX_PADCONF(AM335X_PIN_MCASP0_FSR, PIN_INPUT, MUX_MODE1) /* (C13) mcasp0_fsr.eQEP0B_in */ |
| 251 | >; |
| 252 | }; |
| 253 | |
| 254 | /* E2 */ |
| 255 | eqep1_pins: pinmux_eqep1_pins { |
| 256 | pinctrl-single,pins = < |
| 257 | AM33XX_PADCONF(AM335X_PIN_LCD_DATA12, PIN_INPUT, MUX_MODE2) /* (V2) lcd_data12.eQEP1A_in */ |
| 258 | AM33XX_PADCONF(AM335X_PIN_LCD_DATA13, PIN_INPUT, MUX_MODE2) /* (V3) lcd_data13.eQEP1B_in */ |
| 259 | >; |
| 260 | }; |
| 261 | |
| 262 | /* E3 */ |
| 263 | eqep2_pins: pinmux_eqep2_pins { |
| 264 | pinctrl-single,pins = < |
| 265 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_INPUT, MUX_MODE4) /* (T12) gpmc_ad12.eQEP2A_in */ |
| 266 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_INPUT, MUX_MODE4) /* (R12) gpmc_ad13.eQEP2B_in */ |
| 267 | >; |
| 268 | }; |
| 269 | }; |
| 270 | |
| 271 | &uart0 { |
| 272 | pinctrl-names = "default"; |
| 273 | pinctrl-0 = <&uart0_pins>; |
| 274 | |
| 275 | status = "okay"; |
| 276 | }; |
| 277 | |
| 278 | &uart1 { |
| 279 | pinctrl-names = "default"; |
| 280 | pinctrl-0 = <&uart1_pins>; |
| 281 | |
| 282 | status = "okay"; |
| 283 | }; |
| 284 | |
| 285 | &uart2 { |
| 286 | pinctrl-names = "default"; |
| 287 | pinctrl-0 = <&uart2_pins>; |
| 288 | |
| 289 | status = "okay"; |
| 290 | }; |
| 291 | |
| 292 | &uart4 { |
| 293 | pinctrl-names = "default"; |
| 294 | pinctrl-0 = <&uart4_pins>; |
| 295 | |
| 296 | status = "okay"; |
| 297 | }; |
| 298 | |
| 299 | &uart5 { |
| 300 | pinctrl-names = "default"; |
| 301 | pinctrl-0 = <&uart5_pins>; |
| 302 | |
| 303 | status = "okay"; |
| 304 | }; |
| 305 | |
| 306 | &usb0 { |
| 307 | dr_mode = "peripheral"; |
| 308 | interrupts-extended = <&intc 18 &tps 0>; |
| 309 | interrupt-names = "mc", "vbus"; |
| 310 | }; |
| 311 | |
| 312 | &usb1 { |
| 313 | dr_mode = "host"; |
| 314 | }; |
| 315 | |
| 316 | &i2c0 { |
| 317 | baseboard_eeprom: baseboard_eeprom@50 { |
| 318 | compatible = "atmel,24c256"; |
| 319 | reg = <0x50>; |
| 320 | |
| 321 | #address-cells = <1>; |
| 322 | #size-cells = <1>; |
| 323 | baseboard_data: baseboard_data@0 { |
| 324 | reg = <0 0x100>; |
| 325 | }; |
| 326 | }; |
| 327 | }; |
| 328 | |
| 329 | &i2c2 { |
| 330 | pinctrl-names = "default"; |
| 331 | pinctrl-0 = <&i2c2_pins>; |
| 332 | |
| 333 | status = "okay"; |
| 334 | clock-frequency = <400000>; |
| 335 | |
| 336 | mpu9250@68 { |
| 337 | compatible = "invensense,mpu9250"; |
| 338 | reg = <0x68>; |
| 339 | interrupt-parent = <&gpio3>; |
| 340 | interrupts = <21 IRQ_TYPE_EDGE_RISING>; |
| 341 | i2c-gate { |
| 342 | #address-cells = <1>; |
| 343 | #size-cells = <0>; |
| 344 | ax8975@c { |
| 345 | compatible = "asahi-kasei,ak8975"; |
| 346 | reg = <0x0c>; |
| 347 | }; |
| 348 | }; |
| 349 | }; |
| 350 | |
| 351 | pressure@76 { |
| 352 | compatible = "bosch,bmp280"; |
| 353 | reg = <0x76>; |
| 354 | }; |
| 355 | }; |
| 356 | |
| 357 | /include/ "tps65217.dtsi" |
| 358 | |
| 359 | &tps { |
| 360 | /delete-property/ ti,pmic-shutdown-controller; |
| 361 | |
| 362 | charger { |
| 363 | interrupts = <0>, <1>; |
| 364 | interrupt-names = "USB", "AC"; |
| 365 | status = "okay"; |
| 366 | }; |
| 367 | }; |
| 368 | |
| 369 | &mmc1 { |
| 370 | status = "okay"; |
| 371 | vmmc-supply = <&vmmcsd_fixed>; |
| 372 | bus-width = <4>; |
| 373 | pinctrl-names = "default"; |
| 374 | pinctrl-0 = <&mmc1_pins>; |
| 375 | cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
| 376 | }; |
| 377 | |
| 378 | &mmc2 { |
| 379 | status = "okay"; |
| 380 | vmmc-supply = <&vmmcsd_fixed>; |
| 381 | bus-width = <8>; |
| 382 | pinctrl-names = "default"; |
| 383 | pinctrl-0 = <&mmc2_pins>; |
| 384 | }; |
| 385 | |
| 386 | &mmc3 { |
| 387 | dmas = <&edma_xbar 12 0 1 |
| 388 | &edma_xbar 13 0 2>; |
| 389 | dma-names = "tx", "rx"; |
| 390 | status = "okay"; |
| 391 | vmmc-supply = <&wlan_en_reg>; |
| 392 | bus-width = <4>; |
| 393 | non-removable; |
| 394 | cap-power-off-card; |
| 395 | keep-power-in-suspend; |
| 396 | pinctrl-names = "default"; |
| 397 | pinctrl-0 = <&mmc3_pins &wl18xx_pins>; |
| 398 | |
| 399 | #address-cells = <1>; |
| 400 | #size-cells = <0>; |
| 401 | wlcore: wlcore@2 { |
| 402 | compatible = "ti,wl1835"; |
| 403 | reg = <2>; |
| 404 | interrupt-parent = <&gpio0>; |
| 405 | interrupts = <21 IRQ_TYPE_EDGE_RISING>; |
| 406 | }; |
| 407 | }; |
| 408 | |
| 409 | &tscadc { |
| 410 | status = "okay"; |
| 411 | adc { |
| 412 | ti,adc-channels = <0 1 2 3 4 5 6 7>; |
| 413 | }; |
| 414 | }; |
| 415 | |
| 416 | &uart3 { |
| 417 | pinctrl-names = "default"; |
| 418 | pinctrl-0 = <&uart3_pins &bt_pins>; |
| 419 | status = "okay"; |
| 420 | |
| 421 | bluetooth { |
| 422 | compatible = "ti,wl1835-st"; |
| 423 | enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>; |
| 424 | }; |
| 425 | }; |
| 426 | |
| 427 | &rtc { |
| 428 | system-power-controller; |
| 429 | clocks = <&clk_32768_ck>, <&clk_24mhz_clkctrl AM3_CLK_24MHZ_CLKDIV32K_CLKCTRL 0>; |
| 430 | clock-names = "ext-clk", "int-clk"; |
| 431 | }; |
| 432 | |
| 433 | &dcan1 { |
| 434 | pinctrl-names = "default"; |
| 435 | pinctrl-0 = <&dcan1_pins>; |
| 436 | status = "okay"; |
| 437 | }; |
| 438 | |
| 439 | &gpio0 { |
| 440 | gpio-line-names = |
| 441 | "UART3_CTS", /* M17 */ |
| 442 | "UART3_RTS", /* M18 */ |
| 443 | "UART2_RX", /* A17 */ |
| 444 | "UART2_TX", /* B17 */ |
| 445 | "I2C1_SDA", /* B16 */ |
| 446 | "I2C1_SCL", /* A16 */ |
| 447 | "MMC0_CD", /* C15 */ |
| 448 | "SPI1_SS2", /* C18 */ |
| 449 | "EQEP_1A", /* V2 */ |
| 450 | "EQEP_1B", /* V3 */ |
| 451 | "MDIR_2B", /* V4 */ |
| 452 | "BATT_LED_2", /* T5 */ |
| 453 | "I2C2_SDA", /* D18 */ |
| 454 | "I2C2_SCL", /* D17 */ |
| 455 | "UART1_RX", /* D16 */ |
| 456 | "UART1_TX", /* D15 */ |
| 457 | "MMC2_DAT1", /* J18 */ |
| 458 | "MMC2_DAT2", /* K15 */ |
| 459 | "NC", /* F16 */ |
| 460 | "WIFI_LED", /* A15 */ |
| 461 | "MOT_STBY", /* D14 */ |
| 462 | "WLAN_IRQ", /* K16 */ |
| 463 | "PWM_2A", /* U10 */ |
| 464 | "PWM_2B", /* T10 */ |
| 465 | "", |
| 466 | "", |
| 467 | "BATT_LED_4", /* T11 */ |
| 468 | "BATT_LED_1", /* U12 */ |
| 469 | "BT_EN", /* K17 */ |
| 470 | "SPI1_SS1", /* H18 */ |
| 471 | "UART4_RX", /* T17 */ |
| 472 | "MDIR_1B"; /* U17 */ |
| 473 | }; |
| 474 | |
| 475 | &gpio1 { |
| 476 | gpio-line-names = |
| 477 | "MMC1_DAT0", /* U7 */ |
| 478 | "MMC1_DAT1", /* V7 */ |
| 479 | "MMC1_DAT2", /* R8 */ |
| 480 | "MMC1_DAT3", /* T8 */ |
| 481 | "MMC1_DAT4", /* U8 */ |
| 482 | "MMC1_DAT5", /* V8 */ |
| 483 | "MMC1_DAT6", /* R9 */ |
| 484 | "MMC1_DAT7", /* T9 */ |
| 485 | "DCAN1_TX", /* E18 */ |
| 486 | "DCAN1_RX", /* E17 */ |
| 487 | "UART0_RX", /* E15 */ |
| 488 | "UART0_TX", /* E16 */ |
| 489 | "EQEP_2A", /* T12 */ |
| 490 | "EQEP_2B", /* R12 */ |
| 491 | "PRU_E_A", /* V13 */ |
| 492 | "PRU_E_B", /* U13 */ |
| 493 | "MDIR_2A", /* R13 */ |
| 494 | "GPIO1_17", /* V14 */ |
| 495 | "PWM_1A", /* U14 */ |
| 496 | "PWM_1B", /* T14 */ |
| 497 | "EMMC_RST", /* R14 */ |
| 498 | "USR_LED_0", /* V15 */ |
| 499 | "USR_LED_1", /* U15 */ |
| 500 | "USR_LED_2", /* T15 */ |
| 501 | "USR_LED_3", /* V16 */ |
| 502 | "GPIO1_25", /* U16 */ |
| 503 | "MCASP0_AXR0", /* T16 */ |
| 504 | "MCASP0_AXR1", /* V17 */ |
| 505 | "MCASP0_ACLKR", /* U18 */ |
| 506 | "BATT_LED_3", /* V6 */ |
| 507 | "MMC1_CLK", /* U9 */ |
| 508 | "MMC1_CMD"; /* V9 */ |
| 509 | }; |
| 510 | |
| 511 | &gpio2 { |
| 512 | gpio-line-names = |
| 513 | "MDIR_1A", /* T13 */ |
| 514 | "MCASP0_FSR", /* V12 */ |
| 515 | "LED_RED", /* R7 */ |
| 516 | "LED_GREEN", /* T7 */ |
| 517 | "MODE_BTN", /* U6 */ |
| 518 | "PAUSE_BTN", /* T6 */ |
| 519 | "MDIR_4A", /* R1 */ |
| 520 | "MDIR_4B", /* R2 */ |
| 521 | "MDIR_3B", /* R3 */ |
| 522 | "MDIR_3A", /* R4 */ |
| 523 | "SVO7", /* T1 */ |
| 524 | "SVO8", /* T2 */ |
| 525 | "SVO5", /* T3 */ |
| 526 | "SVO6", /* T4 */ |
| 527 | "UART5_TX", /* U1 */ |
| 528 | "UART5_RX", /* U2 */ |
| 529 | "SERVO_EN", /* U3 */ |
| 530 | "NC", /* U4 */ |
| 531 | "UART3_RX", /* L17 */ |
| 532 | "UART3_TX", /* L16 */ |
| 533 | "MMC2_CLK", /* L15 */ |
| 534 | "DCAN1_SILENT", /* M16 */ |
| 535 | "SVO1", /* U5 */ |
| 536 | "SVO3", /* R5 */ |
| 537 | "SVO2", /* V5 */ |
| 538 | "SVO4", /* R6 */ |
| 539 | "MMC0_DAT3", /* F17 */ |
| 540 | "MMC0_DAT2", /* F18 */ |
| 541 | "MMC0_DAT1", /* G15 */ |
| 542 | "MMC0_DAT0", /* G16 */ |
| 543 | "MMC0_CLK", /* G17 */ |
| 544 | "MMC0_CMD"; /* G18 */ |
| 545 | }; |
| 546 | |
| 547 | &gpio3 { |
| 548 | gpio-line-names = |
| 549 | "MMC2_DAT3", /* H16 */ |
| 550 | "GPIO3_1", /* H17 */ |
| 551 | "GPIO3_2", /* J15 */ |
| 552 | "MMC2_CMD", /* J16 */ |
| 553 | "MMC2_DAT0", /* J17 */ |
| 554 | "I2C0_SDA", /* C17 */ |
| 555 | "I2C0_SCL", /* C16 */ |
| 556 | "EMU1", /* C14 */ |
| 557 | "EMU0", /* B14 */ |
| 558 | "WL_EN", /* K18 */ |
| 559 | "WL_BT_OE", /* L18 */ |
| 560 | "", |
| 561 | "", |
| 562 | "NC", /* F15 */ |
| 563 | "SPI1_SCK", /* A13 */ |
| 564 | "SPI1_MISO", /* B13 */ |
| 565 | "SPI1_MOSI", /* D12 */ |
| 566 | "GPIO3_17", /* C12 */ |
| 567 | "EQEP_0A", /* B12 */ |
| 568 | "EQEP_0B", /* C13 */ |
| 569 | "GPIO3_20", /* D13 */ |
| 570 | "IMU_INT", /* A14 */ |
| 571 | "", |
| 572 | "", |
| 573 | "", |
| 574 | "", |
| 575 | "", |
| 576 | "", |
| 577 | "", |
| 578 | "", |
| 579 | "", |
| 580 | ""; |
| 581 | |
| 582 | ls-buf-en-hog { |
| 583 | gpio-hog; |
| 584 | gpios = <10 GPIO_ACTIVE_HIGH>; |
| 585 | output-high; |
| 586 | }; |
| 587 | }; |
| 588 | |
| 589 | &epwmss0 { |
| 590 | status = "okay"; |
| 591 | }; |
| 592 | |
| 593 | &eqep0 { |
| 594 | pinctrl-names = "default"; |
| 595 | pinctrl-0 = <&eqep0_pins>; |
| 596 | status = "okay"; |
| 597 | }; |
| 598 | |
| 599 | &epwmss1 { |
| 600 | status = "okay"; |
| 601 | }; |
| 602 | |
| 603 | &eqep1 { |
| 604 | pinctrl-names = "default"; |
| 605 | pinctrl-0 = <&eqep1_pins>; |
| 606 | status = "okay"; |
| 607 | }; |
| 608 | |
| 609 | &epwmss2 { |
| 610 | status = "okay"; |
| 611 | }; |
| 612 | |
| 613 | &eqep2 { |
| 614 | pinctrl-names = "default"; |
| 615 | pinctrl-0 = <&eqep2_pins>; |
| 616 | status = "okay"; |
| 617 | }; |