Andrew Davis | ebc98d9 | 2023-04-11 13:24:54 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Lokesh Vutla | 5a954ba | 2016-05-16 11:24:28 +0530 | [diff] [blame] | 2 | /* |
Andrew Davis | ebc98d9 | 2023-04-11 13:24:54 -0500 | [diff] [blame] | 3 | * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ |
Lokesh Vutla | 5a954ba | 2016-05-16 11:24:28 +0530 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /* |
| 7 | * AM335x Starter Kit |
| 8 | * http://www.ti.com/tool/tmdssk3358 |
| 9 | */ |
| 10 | |
| 11 | /dts-v1/; |
| 12 | |
| 13 | #include "am33xx.dtsi" |
| 14 | #include <dt-bindings/pwm/pwm.h> |
| 15 | #include <dt-bindings/interrupt-controller/irq.h> |
| 16 | |
| 17 | / { |
| 18 | model = "TI AM335x EVM-SK"; |
| 19 | compatible = "ti,am335x-evmsk", "ti,am33xx"; |
| 20 | |
| 21 | chosen { |
| 22 | stdout-path = &uart0; |
| 23 | tick-timer = &timer2; |
| 24 | }; |
| 25 | |
| 26 | cpus { |
| 27 | cpu@0 { |
| 28 | cpu0-supply = <&vdd1_reg>; |
| 29 | }; |
| 30 | }; |
| 31 | |
| 32 | memory { |
| 33 | device_type = "memory"; |
| 34 | reg = <0x80000000 0x10000000>; /* 256 MB */ |
| 35 | }; |
| 36 | |
| 37 | vbat: fixedregulator@0 { |
| 38 | compatible = "regulator-fixed"; |
| 39 | regulator-name = "vbat"; |
| 40 | regulator-min-microvolt = <5000000>; |
| 41 | regulator-max-microvolt = <5000000>; |
| 42 | regulator-boot-on; |
| 43 | }; |
| 44 | |
| 45 | lis3_reg: fixedregulator@1 { |
| 46 | compatible = "regulator-fixed"; |
| 47 | regulator-name = "lis3_reg"; |
| 48 | regulator-boot-on; |
| 49 | }; |
| 50 | |
| 51 | wl12xx_vmmc: fixedregulator@2 { |
| 52 | pinctrl-names = "default"; |
| 53 | pinctrl-0 = <&wl12xx_gpio>; |
| 54 | compatible = "regulator-fixed"; |
| 55 | regulator-name = "vwl1271"; |
| 56 | regulator-min-microvolt = <1800000>; |
| 57 | regulator-max-microvolt = <1800000>; |
| 58 | gpio = <&gpio1 29 0>; |
| 59 | startup-delay-us = <70000>; |
| 60 | enable-active-high; |
| 61 | }; |
| 62 | |
| 63 | vtt_fixed: fixedregulator@3 { |
| 64 | compatible = "regulator-fixed"; |
| 65 | regulator-name = "vtt"; |
| 66 | regulator-min-microvolt = <1500000>; |
| 67 | regulator-max-microvolt = <1500000>; |
| 68 | gpio = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
| 69 | regulator-always-on; |
| 70 | regulator-boot-on; |
| 71 | enable-active-high; |
| 72 | }; |
| 73 | |
| 74 | leds { |
| 75 | pinctrl-names = "default"; |
| 76 | pinctrl-0 = <&user_leds_s0>; |
| 77 | |
| 78 | compatible = "gpio-leds"; |
| 79 | |
| 80 | led@1 { |
| 81 | label = "evmsk:green:usr0"; |
| 82 | gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; |
| 83 | default-state = "off"; |
| 84 | }; |
| 85 | |
| 86 | led@2 { |
| 87 | label = "evmsk:green:usr1"; |
| 88 | gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>; |
| 89 | default-state = "off"; |
| 90 | }; |
| 91 | |
| 92 | led@3 { |
| 93 | label = "evmsk:green:mmc0"; |
| 94 | gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>; |
| 95 | linux,default-trigger = "mmc0"; |
| 96 | default-state = "off"; |
| 97 | }; |
| 98 | |
| 99 | led@4 { |
| 100 | label = "evmsk:green:heartbeat"; |
| 101 | gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>; |
| 102 | linux,default-trigger = "heartbeat"; |
| 103 | default-state = "off"; |
| 104 | }; |
| 105 | }; |
| 106 | |
| 107 | gpio_buttons: gpio_buttons@0 { |
| 108 | compatible = "gpio-keys"; |
Lokesh Vutla | 5a954ba | 2016-05-16 11:24:28 +0530 | [diff] [blame] | 109 | |
| 110 | switch@1 { |
| 111 | label = "button0"; |
| 112 | linux,code = <0x100>; |
| 113 | gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; |
| 114 | }; |
| 115 | |
| 116 | switch@2 { |
| 117 | label = "button1"; |
| 118 | linux,code = <0x101>; |
| 119 | gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; |
| 120 | }; |
| 121 | |
| 122 | switch@3 { |
| 123 | label = "button2"; |
| 124 | linux,code = <0x102>; |
| 125 | gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>; |
| 126 | wakeup-source; |
| 127 | }; |
| 128 | |
| 129 | switch@4 { |
| 130 | label = "button3"; |
| 131 | linux,code = <0x103>; |
| 132 | gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; |
| 133 | }; |
| 134 | }; |
| 135 | |
| 136 | backlight { |
| 137 | compatible = "pwm-backlight"; |
| 138 | pwms = <&ecap2 0 50000 PWM_POLARITY_INVERTED>; |
| 139 | brightness-levels = <0 58 61 66 75 90 125 170 255>; |
| 140 | default-brightness-level = <8>; |
| 141 | }; |
| 142 | |
| 143 | sound { |
| 144 | compatible = "simple-audio-card"; |
| 145 | simple-audio-card,name = "AM335x-EVMSK"; |
| 146 | simple-audio-card,widgets = |
| 147 | "Headphone", "Headphone Jack"; |
| 148 | simple-audio-card,routing = |
| 149 | "Headphone Jack", "HPLOUT", |
| 150 | "Headphone Jack", "HPROUT"; |
| 151 | simple-audio-card,format = "dsp_b"; |
| 152 | simple-audio-card,bitclock-master = <&sound_master>; |
| 153 | simple-audio-card,frame-master = <&sound_master>; |
| 154 | simple-audio-card,bitclock-inversion; |
| 155 | |
| 156 | simple-audio-card,cpu { |
| 157 | sound-dai = <&mcasp1>; |
| 158 | }; |
| 159 | |
| 160 | sound_master: simple-audio-card,codec { |
| 161 | sound-dai = <&tlv320aic3106>; |
| 162 | system-clock-frequency = <24000000>; |
| 163 | }; |
| 164 | }; |
| 165 | |
| 166 | panel { |
| 167 | compatible = "ti,tilcdc,panel"; |
| 168 | pinctrl-names = "default", "sleep"; |
| 169 | pinctrl-0 = <&lcd_pins_default>; |
| 170 | pinctrl-1 = <&lcd_pins_sleep>; |
| 171 | status = "okay"; |
| 172 | panel-info { |
| 173 | ac-bias = <255>; |
| 174 | ac-bias-intrpt = <0>; |
| 175 | dma-burst-sz = <16>; |
| 176 | bpp = <32>; |
| 177 | fdd = <0x80>; |
| 178 | sync-edge = <0>; |
| 179 | sync-ctrl = <1>; |
| 180 | raster-order = <0>; |
| 181 | fifo-th = <0>; |
| 182 | }; |
| 183 | display-timings { |
| 184 | 480x272 { |
| 185 | hactive = <480>; |
| 186 | vactive = <272>; |
| 187 | hback-porch = <43>; |
| 188 | hfront-porch = <8>; |
| 189 | hsync-len = <4>; |
| 190 | vback-porch = <12>; |
| 191 | vfront-porch = <4>; |
| 192 | vsync-len = <10>; |
| 193 | clock-frequency = <9000000>; |
| 194 | hsync-active = <0>; |
| 195 | vsync-active = <0>; |
| 196 | }; |
| 197 | }; |
| 198 | }; |
| 199 | }; |
| 200 | |
| 201 | &am33xx_pinmux { |
| 202 | pinctrl-names = "default"; |
| 203 | pinctrl-0 = <&gpio_keys_s0 &clkout2_pin>; |
| 204 | |
| 205 | lcd_pins_default: lcd_pins_default { |
| 206 | pinctrl-single,pins = < |
| 207 | AM33XX_IOPAD(0x820, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad8.lcd_data23 */ |
| 208 | AM33XX_IOPAD(0x824, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad9.lcd_data22 */ |
| 209 | AM33XX_IOPAD(0x828, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad10.lcd_data21 */ |
| 210 | AM33XX_IOPAD(0x82c, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad11.lcd_data20 */ |
| 211 | AM33XX_IOPAD(0x830, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad12.lcd_data19 */ |
| 212 | AM33XX_IOPAD(0x834, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad13.lcd_data18 */ |
| 213 | AM33XX_IOPAD(0x838, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad14.lcd_data17 */ |
| 214 | AM33XX_IOPAD(0x83c, PIN_OUTPUT | MUX_MODE1) /* gpmc_ad15.lcd_data16 */ |
| 215 | AM33XX_IOPAD(0x8a0, PIN_OUTPUT | MUX_MODE0) /* lcd_data0.lcd_data0 */ |
| 216 | AM33XX_IOPAD(0x8a4, PIN_OUTPUT | MUX_MODE0) /* lcd_data1.lcd_data1 */ |
| 217 | AM33XX_IOPAD(0x8a8, PIN_OUTPUT | MUX_MODE0) /* lcd_data2.lcd_data2 */ |
| 218 | AM33XX_IOPAD(0x8ac, PIN_OUTPUT | MUX_MODE0) /* lcd_data3.lcd_data3 */ |
| 219 | AM33XX_IOPAD(0x8b0, PIN_OUTPUT | MUX_MODE0) /* lcd_data4.lcd_data4 */ |
| 220 | AM33XX_IOPAD(0x8b4, PIN_OUTPUT | MUX_MODE0) /* lcd_data5.lcd_data5 */ |
| 221 | AM33XX_IOPAD(0x8b8, PIN_OUTPUT | MUX_MODE0) /* lcd_data6.lcd_data6 */ |
| 222 | AM33XX_IOPAD(0x8bc, PIN_OUTPUT | MUX_MODE0) /* lcd_data7.lcd_data7 */ |
| 223 | AM33XX_IOPAD(0x8c0, PIN_OUTPUT | MUX_MODE0) /* lcd_data8.lcd_data8 */ |
| 224 | AM33XX_IOPAD(0x8c4, PIN_OUTPUT | MUX_MODE0) /* lcd_data9.lcd_data9 */ |
| 225 | AM33XX_IOPAD(0x8c8, PIN_OUTPUT | MUX_MODE0) /* lcd_data10.lcd_data10 */ |
| 226 | AM33XX_IOPAD(0x8cc, PIN_OUTPUT | MUX_MODE0) /* lcd_data11.lcd_data11 */ |
| 227 | AM33XX_IOPAD(0x8d0, PIN_OUTPUT | MUX_MODE0) /* lcd_data12.lcd_data12 */ |
| 228 | AM33XX_IOPAD(0x8d4, PIN_OUTPUT | MUX_MODE0) /* lcd_data13.lcd_data13 */ |
| 229 | AM33XX_IOPAD(0x8d8, PIN_OUTPUT | MUX_MODE0) /* lcd_data14.lcd_data14 */ |
| 230 | AM33XX_IOPAD(0x8dc, PIN_OUTPUT | MUX_MODE0) /* lcd_data15.lcd_data15 */ |
| 231 | AM33XX_IOPAD(0x8e0, PIN_OUTPUT | MUX_MODE0) /* lcd_vsync.lcd_vsync */ |
| 232 | AM33XX_IOPAD(0x8e4, PIN_OUTPUT | MUX_MODE0) /* lcd_hsync.lcd_hsync */ |
| 233 | AM33XX_IOPAD(0x8e8, PIN_OUTPUT | MUX_MODE0) /* lcd_pclk.lcd_pclk */ |
| 234 | AM33XX_IOPAD(0x8ec, PIN_OUTPUT | MUX_MODE0) /* lcd_ac_bias_en.lcd_ac_bias_en */ |
| 235 | >; |
| 236 | }; |
| 237 | |
| 238 | lcd_pins_sleep: lcd_pins_sleep { |
| 239 | pinctrl-single,pins = < |
| 240 | AM33XX_IOPAD(0x820, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad8.lcd_data23 */ |
| 241 | AM33XX_IOPAD(0x824, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad9.lcd_data22 */ |
| 242 | AM33XX_IOPAD(0x828, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad10.lcd_data21 */ |
| 243 | AM33XX_IOPAD(0x82c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad11.lcd_data20 */ |
| 244 | AM33XX_IOPAD(0x830, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad12.lcd_data19 */ |
| 245 | AM33XX_IOPAD(0x834, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad13.lcd_data18 */ |
| 246 | AM33XX_IOPAD(0x838, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad14.lcd_data17 */ |
| 247 | AM33XX_IOPAD(0x83c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad15.lcd_data16 */ |
| 248 | AM33XX_IOPAD(0x8a0, PULL_DISABLE | MUX_MODE7) /* lcd_data0.lcd_data0 */ |
| 249 | AM33XX_IOPAD(0x8a4, PULL_DISABLE | MUX_MODE7) /* lcd_data1.lcd_data1 */ |
| 250 | AM33XX_IOPAD(0x8a8, PULL_DISABLE | MUX_MODE7) /* lcd_data2.lcd_data2 */ |
| 251 | AM33XX_IOPAD(0x8ac, PULL_DISABLE | MUX_MODE7) /* lcd_data3.lcd_data3 */ |
| 252 | AM33XX_IOPAD(0x8b0, PULL_DISABLE | MUX_MODE7) /* lcd_data4.lcd_data4 */ |
| 253 | AM33XX_IOPAD(0x8b4, PULL_DISABLE | MUX_MODE7) /* lcd_data5.lcd_data5 */ |
| 254 | AM33XX_IOPAD(0x8b8, PULL_DISABLE | MUX_MODE7) /* lcd_data6.lcd_data6 */ |
| 255 | AM33XX_IOPAD(0x8bc, PULL_DISABLE | MUX_MODE7) /* lcd_data7.lcd_data7 */ |
| 256 | AM33XX_IOPAD(0x8c0, PULL_DISABLE | MUX_MODE7) /* lcd_data8.lcd_data8 */ |
| 257 | AM33XX_IOPAD(0x8c4, PULL_DISABLE | MUX_MODE7) /* lcd_data9.lcd_data9 */ |
| 258 | AM33XX_IOPAD(0x8c8, PULL_DISABLE | MUX_MODE7) /* lcd_data10.lcd_data10 */ |
| 259 | AM33XX_IOPAD(0x8cc, PULL_DISABLE | MUX_MODE7) /* lcd_data11.lcd_data11 */ |
| 260 | AM33XX_IOPAD(0x8d0, PULL_DISABLE | MUX_MODE7) /* lcd_data12.lcd_data12 */ |
| 261 | AM33XX_IOPAD(0x8d4, PULL_DISABLE | MUX_MODE7) /* lcd_data13.lcd_data13 */ |
| 262 | AM33XX_IOPAD(0x8d8, PULL_DISABLE | MUX_MODE7) /* lcd_data14.lcd_data14 */ |
| 263 | AM33XX_IOPAD(0x8dc, PULL_DISABLE | MUX_MODE7) /* lcd_data15.lcd_data15 */ |
| 264 | AM33XX_IOPAD(0x8e0, PIN_INPUT_PULLDOWN | MUX_MODE7) /* lcd_vsync.lcd_vsync */ |
| 265 | AM33XX_IOPAD(0x8e4, PIN_INPUT_PULLDOWN | MUX_MODE7) /* lcd_hsync.lcd_hsync */ |
| 266 | AM33XX_IOPAD(0x8e8, PIN_INPUT_PULLDOWN | MUX_MODE7) /* lcd_pclk.lcd_pclk */ |
| 267 | AM33XX_IOPAD(0x8ec, PIN_INPUT_PULLDOWN | MUX_MODE7) /* lcd_ac_bias_en.lcd_ac_bias_en */ |
| 268 | >; |
| 269 | }; |
| 270 | |
| 271 | |
| 272 | user_leds_s0: user_leds_s0 { |
| 273 | pinctrl-single,pins = < |
| 274 | AM33XX_IOPAD(0x810, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad4.gpio1_4 */ |
| 275 | AM33XX_IOPAD(0x814, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad5.gpio1_5 */ |
| 276 | AM33XX_IOPAD(0x818, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad6.gpio1_6 */ |
| 277 | AM33XX_IOPAD(0x81c, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad7.gpio1_7 */ |
| 278 | >; |
| 279 | }; |
| 280 | |
| 281 | gpio_keys_s0: gpio_keys_s0 { |
| 282 | pinctrl-single,pins = < |
| 283 | AM33XX_IOPAD(0x894, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_oen_ren.gpio2_3 */ |
| 284 | AM33XX_IOPAD(0x890, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_advn_ale.gpio2_2 */ |
| 285 | AM33XX_IOPAD(0x870, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_wait0.gpio0_30 */ |
| 286 | AM33XX_IOPAD(0x89c, PIN_INPUT_PULLDOWN | MUX_MODE7) /* gpmc_ben0_cle.gpio2_5 */ |
| 287 | >; |
| 288 | }; |
| 289 | |
| 290 | i2c0_pins: pinmux_i2c0_pins { |
| 291 | pinctrl-single,pins = < |
| 292 | AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */ |
| 293 | AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */ |
| 294 | >; |
| 295 | }; |
| 296 | |
| 297 | uart0_pins: pinmux_uart0_pins { |
| 298 | pinctrl-single,pins = < |
| 299 | AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */ |
| 300 | AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */ |
| 301 | >; |
| 302 | }; |
| 303 | |
| 304 | clkout2_pin: pinmux_clkout2_pin { |
| 305 | pinctrl-single,pins = < |
| 306 | AM33XX_IOPAD(0x9b4, PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */ |
| 307 | >; |
| 308 | }; |
| 309 | |
| 310 | ecap2_pins: backlight_pins { |
| 311 | pinctrl-single,pins = < |
| 312 | AM33XX_IOPAD(0x99c, MUX_MODE4) /* mcasp0_ahclkr.ecap2_in_pwm2_out */ |
| 313 | >; |
| 314 | }; |
| 315 | |
| 316 | cpsw_default: cpsw_default { |
| 317 | pinctrl-single,pins = < |
| 318 | /* Slave 1 */ |
| 319 | AM33XX_IOPAD(0x914, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txen.rgmii1_tctl */ |
| 320 | AM33XX_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxdv.rgmii1_rctl */ |
| 321 | AM33XX_IOPAD(0x91c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd3.rgmii1_td3 */ |
| 322 | AM33XX_IOPAD(0x920, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd2.rgmii1_td2 */ |
| 323 | AM33XX_IOPAD(0x924, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd1.rgmii1_td1 */ |
| 324 | AM33XX_IOPAD(0x928, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txd0.rgmii1_td0 */ |
| 325 | AM33XX_IOPAD(0x92c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mii1_txclk.rgmii1_tclk */ |
| 326 | AM33XX_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxclk.rgmii1_rclk */ |
| 327 | AM33XX_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd3.rgmii1_rd3 */ |
| 328 | AM33XX_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd2.rgmii1_rd2 */ |
| 329 | AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd1.rgmii1_rd1 */ |
| 330 | AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE2) /* mii1_rxd0.rgmii1_rd0 */ |
| 331 | |
| 332 | /* Slave 2 */ |
| 333 | AM33XX_IOPAD(0x840, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a0.rgmii2_tctl */ |
| 334 | AM33XX_IOPAD(0x844, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a1.rgmii2_rctl */ |
| 335 | AM33XX_IOPAD(0x848, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a2.rgmii2_td3 */ |
| 336 | AM33XX_IOPAD(0x84c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a3.rgmii2_td2 */ |
| 337 | AM33XX_IOPAD(0x850, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a4.rgmii2_td1 */ |
| 338 | AM33XX_IOPAD(0x854, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a5.rgmii2_td0 */ |
| 339 | AM33XX_IOPAD(0x858, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* gpmc_a6.rgmii2_tclk */ |
| 340 | AM33XX_IOPAD(0x85c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a7.rgmii2_rclk */ |
| 341 | AM33XX_IOPAD(0x860, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a8.rgmii2_rd3 */ |
| 342 | AM33XX_IOPAD(0x864, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a9.rgmii2_rd2 */ |
| 343 | AM33XX_IOPAD(0x868, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a10.rgmii2_rd1 */ |
| 344 | AM33XX_IOPAD(0x86c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* gpmc_a11.rgmii2_rd0 */ |
| 345 | >; |
| 346 | }; |
| 347 | |
| 348 | cpsw_sleep: cpsw_sleep { |
| 349 | pinctrl-single,pins = < |
| 350 | /* Slave 1 reset value */ |
| 351 | AM33XX_IOPAD(0x914, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 352 | AM33XX_IOPAD(0x918, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 353 | AM33XX_IOPAD(0x91c, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 354 | AM33XX_IOPAD(0x920, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 355 | AM33XX_IOPAD(0x924, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 356 | AM33XX_IOPAD(0x928, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 357 | AM33XX_IOPAD(0x92c, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 358 | AM33XX_IOPAD(0x930, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 359 | AM33XX_IOPAD(0x934, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 360 | AM33XX_IOPAD(0x938, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 361 | AM33XX_IOPAD(0x93c, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 362 | AM33XX_IOPAD(0x940, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 363 | |
| 364 | /* Slave 2 reset value*/ |
| 365 | AM33XX_IOPAD(0x840, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 366 | AM33XX_IOPAD(0x844, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 367 | AM33XX_IOPAD(0x848, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 368 | AM33XX_IOPAD(0x84c, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 369 | AM33XX_IOPAD(0x850, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 370 | AM33XX_IOPAD(0x854, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 371 | AM33XX_IOPAD(0x858, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 372 | AM33XX_IOPAD(0x85c, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 373 | AM33XX_IOPAD(0x860, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 374 | AM33XX_IOPAD(0x864, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 375 | AM33XX_IOPAD(0x868, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 376 | AM33XX_IOPAD(0x86c, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 377 | >; |
| 378 | }; |
| 379 | |
| 380 | davinci_mdio_default: davinci_mdio_default { |
| 381 | pinctrl-single,pins = < |
| 382 | /* MDIO */ |
| 383 | AM33XX_IOPAD(0x948, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */ |
| 384 | AM33XX_IOPAD(0x94c, PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */ |
| 385 | >; |
| 386 | }; |
| 387 | |
| 388 | davinci_mdio_sleep: davinci_mdio_sleep { |
| 389 | pinctrl-single,pins = < |
| 390 | /* MDIO reset value */ |
| 391 | AM33XX_IOPAD(0x948, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 392 | AM33XX_IOPAD(0x94c, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 393 | >; |
| 394 | }; |
| 395 | |
| 396 | mmc1_pins: pinmux_mmc1_pins { |
| 397 | pinctrl-single,pins = < |
| 398 | AM33XX_IOPAD(0x960, PIN_INPUT | MUX_MODE7) /* spi0_cs1.gpio0_6 */ |
| 399 | >; |
| 400 | }; |
| 401 | |
| 402 | mcasp1_pins: mcasp1_pins { |
| 403 | pinctrl-single,pins = < |
| 404 | AM33XX_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_crs.mcasp1_aclkx */ |
| 405 | AM33XX_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE4) /* mii1_rxerr.mcasp1_fsx */ |
| 406 | AM33XX_IOPAD(0x908, PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* mii1_col.mcasp1_axr2 */ |
| 407 | AM33XX_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE4) /* rmii1_ref_clk.mcasp1_axr3 */ |
| 408 | >; |
| 409 | }; |
| 410 | |
| 411 | mcasp1_pins_sleep: mcasp1_pins_sleep { |
| 412 | pinctrl-single,pins = < |
| 413 | AM33XX_IOPAD(0x90c, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 414 | AM33XX_IOPAD(0x910, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 415 | AM33XX_IOPAD(0x908, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 416 | AM33XX_IOPAD(0x944, PIN_INPUT_PULLDOWN | MUX_MODE7) |
| 417 | >; |
| 418 | }; |
| 419 | |
| 420 | mmc2_pins: pinmux_mmc2_pins { |
| 421 | pinctrl-single,pins = < |
| 422 | AM33XX_IOPAD(0x874, PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_31 */ |
| 423 | AM33XX_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */ |
| 424 | AM33XX_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */ |
| 425 | AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */ |
| 426 | AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */ |
| 427 | AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */ |
| 428 | AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */ |
| 429 | >; |
| 430 | }; |
| 431 | |
| 432 | wl12xx_gpio: pinmux_wl12xx_gpio { |
| 433 | pinctrl-single,pins = < |
| 434 | AM33XX_IOPAD(0x87c, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_csn0.gpio1_29 */ |
| 435 | >; |
| 436 | }; |
| 437 | }; |
| 438 | |
| 439 | &uart0 { |
| 440 | pinctrl-names = "default"; |
| 441 | pinctrl-0 = <&uart0_pins>; |
| 442 | |
| 443 | status = "okay"; |
| 444 | }; |
| 445 | |
| 446 | &i2c0 { |
| 447 | pinctrl-names = "default"; |
| 448 | pinctrl-0 = <&i2c0_pins>; |
| 449 | |
| 450 | status = "okay"; |
| 451 | clock-frequency = <400000>; |
| 452 | |
| 453 | tps: tps@2d { |
| 454 | reg = <0x2d>; |
| 455 | }; |
| 456 | |
| 457 | lis331dlh: lis331dlh@18 { |
| 458 | compatible = "st,lis331dlh", "st,lis3lv02d"; |
| 459 | reg = <0x18>; |
| 460 | Vdd-supply = <&lis3_reg>; |
| 461 | Vdd_IO-supply = <&lis3_reg>; |
| 462 | |
| 463 | st,click-single-x; |
| 464 | st,click-single-y; |
| 465 | st,click-single-z; |
| 466 | st,click-thresh-x = <10>; |
| 467 | st,click-thresh-y = <10>; |
| 468 | st,click-thresh-z = <10>; |
| 469 | st,irq1-click; |
| 470 | st,irq2-click; |
| 471 | st,wakeup-x-lo; |
| 472 | st,wakeup-x-hi; |
| 473 | st,wakeup-y-lo; |
| 474 | st,wakeup-y-hi; |
| 475 | st,wakeup-z-lo; |
| 476 | st,wakeup-z-hi; |
| 477 | st,min-limit-x = <120>; |
| 478 | st,min-limit-y = <120>; |
| 479 | st,min-limit-z = <140>; |
| 480 | st,max-limit-x = <550>; |
| 481 | st,max-limit-y = <550>; |
| 482 | st,max-limit-z = <750>; |
| 483 | }; |
| 484 | |
| 485 | tlv320aic3106: tlv320aic3106@1b { |
| 486 | #sound-dai-cells = <0>; |
| 487 | compatible = "ti,tlv320aic3106"; |
| 488 | reg = <0x1b>; |
| 489 | status = "okay"; |
| 490 | |
| 491 | /* Regulators */ |
| 492 | AVDD-supply = <&vaux2_reg>; |
| 493 | IOVDD-supply = <&vaux2_reg>; |
| 494 | DRVDD-supply = <&vaux2_reg>; |
| 495 | DVDD-supply = <&vbat>; |
| 496 | }; |
| 497 | }; |
| 498 | |
| 499 | &usb { |
| 500 | status = "okay"; |
| 501 | }; |
| 502 | |
| 503 | &usb_ctrl_mod { |
| 504 | status = "okay"; |
| 505 | }; |
| 506 | |
| 507 | &usb0_phy { |
| 508 | status = "okay"; |
| 509 | }; |
| 510 | |
| 511 | &usb1_phy { |
| 512 | status = "okay"; |
| 513 | }; |
| 514 | |
| 515 | &usb0 { |
| 516 | status = "okay"; |
| 517 | }; |
| 518 | |
| 519 | &usb1 { |
| 520 | status = "okay"; |
| 521 | dr_mode = "host"; |
| 522 | }; |
| 523 | |
| 524 | &cppi41dma { |
| 525 | status = "okay"; |
| 526 | }; |
| 527 | |
| 528 | &epwmss2 { |
| 529 | status = "okay"; |
| 530 | |
Dario Binacchi | 96d04d7 | 2020-12-30 00:06:30 +0100 | [diff] [blame] | 531 | ecap2: ecap@100 { |
Lokesh Vutla | 5a954ba | 2016-05-16 11:24:28 +0530 | [diff] [blame] | 532 | status = "okay"; |
| 533 | pinctrl-names = "default"; |
| 534 | pinctrl-0 = <&ecap2_pins>; |
| 535 | }; |
| 536 | }; |
| 537 | |
| 538 | #include "tps65910.dtsi" |
| 539 | |
| 540 | &tps { |
| 541 | vcc1-supply = <&vbat>; |
| 542 | vcc2-supply = <&vbat>; |
| 543 | vcc3-supply = <&vbat>; |
| 544 | vcc4-supply = <&vbat>; |
| 545 | vcc5-supply = <&vbat>; |
| 546 | vcc6-supply = <&vbat>; |
| 547 | vcc7-supply = <&vbat>; |
| 548 | vccio-supply = <&vbat>; |
| 549 | |
| 550 | regulators { |
| 551 | vrtc_reg: regulator@0 { |
| 552 | regulator-always-on; |
| 553 | }; |
| 554 | |
| 555 | vio_reg: regulator@1 { |
| 556 | regulator-always-on; |
| 557 | }; |
| 558 | |
| 559 | vdd1_reg: regulator@2 { |
| 560 | /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */ |
| 561 | regulator-name = "vdd_mpu"; |
| 562 | regulator-min-microvolt = <912500>; |
| 563 | regulator-max-microvolt = <1312500>; |
| 564 | regulator-boot-on; |
| 565 | regulator-always-on; |
| 566 | }; |
| 567 | |
| 568 | vdd2_reg: regulator@3 { |
| 569 | /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */ |
| 570 | regulator-name = "vdd_core"; |
| 571 | regulator-min-microvolt = <912500>; |
| 572 | regulator-max-microvolt = <1150000>; |
| 573 | regulator-boot-on; |
| 574 | regulator-always-on; |
| 575 | }; |
| 576 | |
| 577 | vdd3_reg: regulator@4 { |
| 578 | regulator-always-on; |
| 579 | }; |
| 580 | |
| 581 | vdig1_reg: regulator@5 { |
| 582 | regulator-always-on; |
| 583 | }; |
| 584 | |
| 585 | vdig2_reg: regulator@6 { |
| 586 | regulator-always-on; |
| 587 | }; |
| 588 | |
| 589 | vpll_reg: regulator@7 { |
| 590 | regulator-always-on; |
| 591 | }; |
| 592 | |
| 593 | vdac_reg: regulator@8 { |
| 594 | regulator-always-on; |
| 595 | }; |
| 596 | |
| 597 | vaux1_reg: regulator@9 { |
| 598 | regulator-always-on; |
| 599 | }; |
| 600 | |
| 601 | vaux2_reg: regulator@10 { |
| 602 | regulator-always-on; |
| 603 | }; |
| 604 | |
| 605 | vaux33_reg: regulator@11 { |
| 606 | regulator-always-on; |
| 607 | }; |
| 608 | |
| 609 | vmmc_reg: regulator@12 { |
| 610 | regulator-min-microvolt = <1800000>; |
| 611 | regulator-max-microvolt = <3300000>; |
| 612 | regulator-always-on; |
| 613 | }; |
| 614 | }; |
| 615 | }; |
| 616 | |
| 617 | &mac { |
| 618 | pinctrl-names = "default", "sleep"; |
| 619 | pinctrl-0 = <&cpsw_default>; |
| 620 | pinctrl-1 = <&cpsw_sleep>; |
| 621 | dual_emac = <1>; |
| 622 | status = "okay"; |
| 623 | }; |
| 624 | |
| 625 | &davinci_mdio { |
| 626 | pinctrl-names = "default", "sleep"; |
| 627 | pinctrl-0 = <&davinci_mdio_default>; |
| 628 | pinctrl-1 = <&davinci_mdio_sleep>; |
| 629 | status = "okay"; |
Grygorii Strashko | a6f37dc | 2019-08-31 10:30:34 +0300 | [diff] [blame] | 630 | |
| 631 | ethphy0: ethernet-phy@0 { |
| 632 | reg = <0>; |
| 633 | }; |
| 634 | |
| 635 | ethphy1: ethernet-phy@1 { |
| 636 | reg = <1>; |
| 637 | }; |
Lokesh Vutla | 5a954ba | 2016-05-16 11:24:28 +0530 | [diff] [blame] | 638 | }; |
| 639 | |
| 640 | &cpsw_emac0 { |
Grygorii Strashko | a6f37dc | 2019-08-31 10:30:34 +0300 | [diff] [blame] | 641 | phy-handle = <ðphy0>; |
| 642 | phy-mode = "rgmii-id"; |
Lokesh Vutla | 5a954ba | 2016-05-16 11:24:28 +0530 | [diff] [blame] | 643 | dual_emac_res_vlan = <1>; |
| 644 | }; |
| 645 | |
| 646 | &cpsw_emac1 { |
Grygorii Strashko | a6f37dc | 2019-08-31 10:30:34 +0300 | [diff] [blame] | 647 | phy-handle = <ðphy1>; |
| 648 | phy-mode = "rgmii-id"; |
Lokesh Vutla | 5a954ba | 2016-05-16 11:24:28 +0530 | [diff] [blame] | 649 | dual_emac_res_vlan = <2>; |
| 650 | }; |
| 651 | |
| 652 | &mmc1 { |
| 653 | status = "okay"; |
| 654 | vmmc-supply = <&vmmc_reg>; |
| 655 | bus-width = <4>; |
| 656 | pinctrl-names = "default"; |
| 657 | pinctrl-0 = <&mmc1_pins>; |
| 658 | cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; |
| 659 | }; |
| 660 | |
| 661 | &sham { |
| 662 | status = "okay"; |
| 663 | }; |
| 664 | |
| 665 | &aes { |
| 666 | status = "okay"; |
| 667 | }; |
| 668 | |
| 669 | &gpio0 { |
| 670 | ti,no-reset-on-init; |
| 671 | }; |
| 672 | |
| 673 | &mmc2 { |
| 674 | status = "okay"; |
| 675 | vmmc-supply = <&wl12xx_vmmc>; |
| 676 | ti,non-removable; |
| 677 | bus-width = <4>; |
| 678 | cap-power-off-card; |
| 679 | pinctrl-names = "default"; |
| 680 | pinctrl-0 = <&mmc2_pins>; |
| 681 | |
| 682 | #address-cells = <1>; |
| 683 | #size-cells = <0>; |
| 684 | wlcore: wlcore@2 { |
| 685 | compatible = "ti,wl1271"; |
| 686 | reg = <2>; |
| 687 | interrupt-parent = <&gpio0>; |
| 688 | interrupts = <31 IRQ_TYPE_LEVEL_HIGH>; /* gpio 31 */ |
| 689 | ref-clock-frequency = <38400000>; |
| 690 | }; |
| 691 | }; |
| 692 | |
| 693 | &mcasp1 { |
| 694 | #sound-dai-cells = <0>; |
| 695 | pinctrl-names = "default", "sleep"; |
| 696 | pinctrl-0 = <&mcasp1_pins>; |
| 697 | pinctrl-1 = <&mcasp1_pins_sleep>; |
| 698 | |
| 699 | status = "okay"; |
| 700 | |
| 701 | op-mode = <0>; /* MCASP_IIS_MODE */ |
| 702 | tdm-slots = <2>; |
| 703 | /* 4 serializers */ |
| 704 | serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */ |
| 705 | 0 0 1 2 |
| 706 | >; |
| 707 | tx-num-evt = <32>; |
| 708 | rx-num-evt = <32>; |
| 709 | }; |
| 710 | |
| 711 | &tscadc { |
| 712 | status = "okay"; |
| 713 | tsc { |
| 714 | ti,wires = <4>; |
| 715 | ti,x-plate-resistance = <200>; |
| 716 | ti,coordinate-readouts = <5>; |
| 717 | ti,wire-config = <0x00 0x11 0x22 0x33>; |
| 718 | }; |
| 719 | }; |
| 720 | |
| 721 | &lcdc { |
| 722 | status = "okay"; |
| 723 | }; |
Dario Binacchi | 9565795 | 2021-06-02 22:38:03 +0200 | [diff] [blame] | 724 | |
| 725 | &rtc { |
| 726 | clocks = <&clk_32768_ck>, <&clk_24mhz_clkctrl AM3_CLK_24MHZ_CLKDIV32K_CLKCTRL 0>; |
| 727 | clock-names = "ext-clk", "int-clk"; |
| 728 | }; |