Andrew Davis | d30b2bf | 2023-04-11 13:24:54 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2015 Toby Churchill - http://www.toby-churchill.com/ |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 4 | */ |
| 5 | /dts-v1/; |
| 6 | |
| 7 | #include "am33xx.dtsi" |
| 8 | |
| 9 | / { |
| 10 | model = "Toby Churchill SL50 Series"; |
| 11 | compatible = "tcl,am335x-sl50", "ti,am33xx"; |
| 12 | |
| 13 | cpus { |
| 14 | cpu@0 { |
| 15 | cpu0-supply = <&dcdc2_reg>; |
| 16 | }; |
| 17 | }; |
| 18 | |
| 19 | memory@80000000 { |
| 20 | device_type = "memory"; |
| 21 | reg = <0x80000000 0x20000000>; /* 512 MB */ |
| 22 | }; |
| 23 | |
| 24 | chosen { |
| 25 | stdout-path = &uart0; |
| 26 | }; |
| 27 | |
| 28 | leds { |
| 29 | compatible = "gpio-leds"; |
| 30 | pinctrl-names = "default"; |
| 31 | pinctrl-0 = <&led_pins>; |
| 32 | |
| 33 | led0 { |
Andrew Davis | 211b3d7 | 2023-04-11 13:25:05 -0500 | [diff] [blame^] | 34 | label = "sl50:red:usr0"; |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 35 | gpios = <&gpio1 21 GPIO_ACTIVE_LOW>; |
| 36 | default-state = "off"; |
| 37 | }; |
| 38 | |
| 39 | led1 { |
Andrew Davis | 211b3d7 | 2023-04-11 13:25:05 -0500 | [diff] [blame^] | 40 | label = "sl50:green:usr1"; |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 41 | gpios = <&gpio1 22 GPIO_ACTIVE_LOW>; |
| 42 | default-state = "off"; |
| 43 | }; |
| 44 | |
| 45 | led2 { |
Andrew Davis | 211b3d7 | 2023-04-11 13:25:05 -0500 | [diff] [blame^] | 46 | label = "sl50:red:usr2"; |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 47 | gpios = <&gpio1 23 GPIO_ACTIVE_LOW>; |
| 48 | default-state = "off"; |
| 49 | }; |
| 50 | |
| 51 | led3 { |
Andrew Davis | 211b3d7 | 2023-04-11 13:25:05 -0500 | [diff] [blame^] | 52 | label = "sl50:green:usr3"; |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 53 | gpios = <&gpio1 24 GPIO_ACTIVE_LOW>; |
| 54 | default-state = "off"; |
| 55 | }; |
| 56 | }; |
| 57 | |
| 58 | backlight0: disp0 { |
| 59 | compatible = "pwm-backlight"; |
| 60 | pwms = <&ehrpwm1 0 500000 0>; |
| 61 | brightness-levels = <0 10 20 30 40 50 60 70 80 90 99>; |
| 62 | default-brightness-level = <6>; |
| 63 | }; |
| 64 | |
| 65 | backlight1: disp1 { |
| 66 | compatible = "pwm-backlight"; |
| 67 | pwms = <&ehrpwm1 1 500000 0>; |
| 68 | brightness-levels = <0 10 20 30 40 50 60 70 80 90 99>; |
| 69 | default-brightness-level = <6>; |
| 70 | }; |
| 71 | |
| 72 | clocks { |
| 73 | compatible = "simple-bus"; |
| 74 | #address-cells = <1>; |
| 75 | #size-cells = <0>; |
| 76 | |
| 77 | /* audio external oscillator */ |
Andrew Davis | 211b3d7 | 2023-04-11 13:25:05 -0500 | [diff] [blame^] | 78 | audio_mclk_fixed: oscillator@0 { |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 79 | compatible = "fixed-clock"; |
| 80 | #clock-cells = <0>; |
| 81 | clock-frequency = <24576000>; /* 24.576MHz */ |
| 82 | }; |
| 83 | }; |
| 84 | |
| 85 | sound { |
| 86 | compatible = "ti,da830-evm-audio"; |
| 87 | ti,model = "AM335x-SL50"; |
| 88 | ti,audio-codec = <&audio_codec>; |
| 89 | ti,mcasp-controller = <&mcasp0>; |
| 90 | |
Andrew Davis | 211b3d7 | 2023-04-11 13:25:05 -0500 | [diff] [blame^] | 91 | clocks = <&audio_mclk_fixed>; |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 92 | clock-names = "mclk"; |
| 93 | |
| 94 | ti,audio-routing = |
| 95 | "Headphone Jack", "HPLOUT", |
| 96 | "Headphone Jack", "HPROUT", |
| 97 | "LINE1R", "Line In", |
| 98 | "LINE1L", "Line In"; |
| 99 | }; |
| 100 | |
| 101 | emmc_pwrseq: pwrseq@0 { |
| 102 | compatible = "mmc-pwrseq-emmc"; |
| 103 | pinctrl-names = "default"; |
| 104 | pinctrl-0 = <&emmc_pwrseq_pins>; |
| 105 | reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>; |
| 106 | }; |
| 107 | |
| 108 | vmmcsd_fixed: fixedregulator0 { |
| 109 | compatible = "regulator-fixed"; |
| 110 | regulator-name = "vmmcsd_fixed"; |
| 111 | regulator-min-microvolt = <3300000>; |
| 112 | regulator-max-microvolt = <3300000>; |
| 113 | }; |
| 114 | }; |
| 115 | |
| 116 | &am33xx_pinmux { |
| 117 | pinctrl-names = "default"; |
| 118 | pinctrl-0 = <&lwb_pins>; |
| 119 | |
| 120 | led_pins: pinmux_led_pins { |
| 121 | pinctrl-single,pins = < |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 122 | AM33XX_PADCONF(AM335X_PIN_GPMC_A5, PIN_OUTPUT, MUX_MODE7) /* gpmc_a5.gpio1_21 */ |
| 123 | AM33XX_PADCONF(AM335X_PIN_GPMC_A6, PIN_OUTPUT, MUX_MODE7) /* gpmc_a6.gpio1_22 */ |
| 124 | AM33XX_PADCONF(AM335X_PIN_GPMC_A7, PIN_OUTPUT, MUX_MODE7) /* gpmc_a7.gpio1_23 */ |
| 125 | AM33XX_PADCONF(AM335X_PIN_GPMC_A8, PIN_OUTPUT, MUX_MODE7) /* gpmc_a8.gpio1_24 */ |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 126 | >; |
| 127 | }; |
| 128 | |
| 129 | uart0_pins: pinmux_uart0_pins { |
| 130 | pinctrl-single,pins = < |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 131 | AM33XX_PADCONF(AM335X_PIN_UART0_RXD, PIN_INPUT_PULLUP, MUX_MODE0) |
| 132 | AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0) |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 133 | >; |
| 134 | }; |
| 135 | |
| 136 | uart1_pins: pinmux_uart1_pins { |
| 137 | pinctrl-single,pins = < |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 138 | AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT_PULLUP, MUX_MODE0) |
| 139 | AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0) |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 140 | >; |
| 141 | }; |
| 142 | |
| 143 | uart4_pins: pinmux_uart4_pins { |
| 144 | pinctrl-single,pins = < |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 145 | AM33XX_PADCONF(AM335X_PIN_GPMC_WAIT0, PIN_INPUT_PULLUP, MUX_MODE6) /* gpmc_wait0.uart4_rxd */ |
| 146 | AM33XX_PADCONF(AM335X_PIN_GPMC_WPN, PIN_OUTPUT_PULLDOWN, MUX_MODE6) /* gpmc_wpn.uart4_txd */ |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 147 | >; |
| 148 | }; |
| 149 | |
| 150 | i2c0_pins: pinmux_i2c0_pins { |
| 151 | pinctrl-single,pins = < |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 152 | AM33XX_PADCONF(AM335X_PIN_I2C0_SDA, PIN_INPUT_PULLUP, MUX_MODE0) |
| 153 | AM33XX_PADCONF(AM335X_PIN_I2C0_SCL, PIN_INPUT_PULLUP, MUX_MODE0) |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 154 | >; |
| 155 | }; |
| 156 | |
| 157 | i2c2_pins: pinmux_i2c2_pins { |
| 158 | pinctrl-single,pins = < |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 159 | AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT_PULLUP, MUX_MODE3) /* uart1_ctsn.i2c2_sda */ |
| 160 | AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_INPUT_PULLUP, MUX_MODE3) /* uart1_rtsn.i2c2_scl */ |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 161 | >; |
| 162 | }; |
| 163 | |
| 164 | cpsw_default: cpsw_default { |
| 165 | pinctrl-single,pins = < |
| 166 | /* Slave 1 */ |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 167 | AM33XX_PADCONF(AM335X_PIN_MII1_RX_ER, PIN_INPUT_PULLUP, MUX_MODE0) |
| 168 | AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_OUTPUT_PULLDOWN, MUX_MODE0) |
| 169 | AM33XX_PADCONF(AM335X_PIN_MII1_RX_DV, PIN_INPUT_PULLUP, MUX_MODE0) |
| 170 | AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_OUTPUT_PULLDOWN, MUX_MODE0) |
| 171 | AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_OUTPUT_PULLDOWN, MUX_MODE0) |
| 172 | AM33XX_PADCONF(AM335X_PIN_MII1_TXD1, PIN_OUTPUT_PULLDOWN, MUX_MODE0) |
| 173 | AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLDOWN, MUX_MODE0) |
| 174 | AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_INPUT_PULLUP, MUX_MODE0) |
| 175 | AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_INPUT_PULLUP, MUX_MODE0) |
| 176 | AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLUP, MUX_MODE0) |
| 177 | AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_INPUT_PULLUP, MUX_MODE0) |
| 178 | AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLUP, MUX_MODE0) |
| 179 | AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_INPUT_PULLUP, MUX_MODE0) |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 180 | >; |
| 181 | }; |
| 182 | |
| 183 | cpsw_sleep: cpsw_sleep { |
| 184 | pinctrl-single,pins = < |
| 185 | /* Slave 1 reset value */ |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 186 | AM33XX_PADCONF(AM335X_PIN_MII1_RX_ER, PIN_INPUT_PULLDOWN, MUX_MODE7) |
| 187 | AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_INPUT_PULLDOWN, MUX_MODE7) |
| 188 | AM33XX_PADCONF(AM335X_PIN_MII1_RX_DV, PIN_INPUT_PULLDOWN, MUX_MODE7) |
| 189 | AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_INPUT_PULLDOWN, MUX_MODE7) |
| 190 | AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_INPUT_PULLDOWN, MUX_MODE7) |
| 191 | AM33XX_PADCONF(AM335X_PIN_MII1_TXD1, PIN_INPUT_PULLDOWN, MUX_MODE7) |
| 192 | AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_INPUT_PULLDOWN, MUX_MODE7) |
| 193 | AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_INPUT_PULLDOWN, MUX_MODE7) |
| 194 | AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_INPUT_PULLDOWN, MUX_MODE7) |
| 195 | AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLDOWN, MUX_MODE7) |
| 196 | AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_INPUT_PULLDOWN, MUX_MODE7) |
| 197 | AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLDOWN, MUX_MODE7) |
| 198 | AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_INPUT_PULLDOWN, MUX_MODE7) |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 199 | >; |
| 200 | }; |
| 201 | |
| 202 | davinci_mdio_default: davinci_mdio_default { |
| 203 | pinctrl-single,pins = < |
| 204 | /* MDIO */ |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 205 | AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT_PULLUP | SLEWCTRL_FAST, MUX_MODE0) |
| 206 | AM33XX_PADCONF(AM335X_PIN_MDC, PIN_OUTPUT_PULLUP, MUX_MODE0) |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 207 | >; |
| 208 | }; |
| 209 | |
| 210 | davinci_mdio_sleep: davinci_mdio_sleep { |
| 211 | pinctrl-single,pins = < |
| 212 | /* MDIO reset value */ |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 213 | AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT_PULLDOWN, MUX_MODE7) |
| 214 | AM33XX_PADCONF(AM335X_PIN_MDC, PIN_INPUT_PULLDOWN, MUX_MODE7) |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 215 | >; |
| 216 | }; |
| 217 | |
| 218 | mmc1_pins: pinmux_mmc1_pins { |
| 219 | pinctrl-single,pins = < |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 220 | AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_INPUT, MUX_MODE7) /* uart0_rtsn.gpio1_9 */ |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 221 | >; |
| 222 | }; |
| 223 | |
| 224 | emmc_pwrseq_pins: pinmux_emmc_pwrseq_pins { |
| 225 | pinctrl-single,pins = < |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 226 | AM33XX_PADCONF(AM335X_PIN_GPMC_A4, PIN_OUTPUT_PULLUP, MUX_MODE7) /* gpmc_a4.gpio1_20 */ |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 227 | >; |
| 228 | }; |
| 229 | |
| 230 | emmc_pins: pinmux_emmc_pins { |
| 231 | pinctrl-single,pins = < |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 232 | AM33XX_PADCONF(AM335X_PIN_GPMC_CSN1, PIN_INPUT_PULLUP, MUX_MODE2) /* gpmc_csn1.mmc1_clk */ |
| 233 | AM33XX_PADCONF(AM335X_PIN_GPMC_CSN2, PIN_INPUT_PULLUP, MUX_MODE2) /* gpmc_csn2.mmc1_cmd */ |
| 234 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD0, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */ |
| 235 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD1, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */ |
| 236 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD2, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */ |
| 237 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD3, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */ |
| 238 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD4, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */ |
| 239 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD5, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */ |
| 240 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD6, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */ |
| 241 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD7, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */ |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 242 | >; |
| 243 | }; |
| 244 | |
| 245 | audio_pins: pinmux_audio_pins { |
| 246 | pinctrl-single,pins = < |
| 247 | AM33XX_IOPAD(0x9ac, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_ahcklx.mcasp0_ahclkx */ |
| 248 | AM33XX_IOPAD(0x994, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_fsx.mcasp0_fsx */ |
| 249 | AM33XX_IOPAD(0x990, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_aclkx.mcasp0_aclkx */ |
| 250 | AM33XX_IOPAD(0x998, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcasp0_axr0.mcasp0_axr0 */ |
| 251 | AM33XX_IOPAD(0x99c, PIN_OUTPUT_PULLDOWN | MUX_MODE2) /* mcasp0_ahclkr.mcasp0_axr2 */ |
| 252 | >; |
| 253 | }; |
| 254 | |
| 255 | ehrpwm1_pins: pinmux_ehrpwm1a_pins { |
| 256 | pinctrl-single,pins = < |
| 257 | AM33XX_IOPAD(0x848, PIN_OUTPUT | MUX_MODE6) /* gpmc_a2.ehrpwm1a */ |
| 258 | AM33XX_IOPAD(0x84c, PIN_OUTPUT | MUX_MODE6) /* gpmc_a3.ehrpwm1b */ |
| 259 | >; |
| 260 | }; |
| 261 | |
| 262 | spi0_pins: pinmux_spi0_pins { |
| 263 | pinctrl-single,pins = < |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 264 | AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_INPUT_PULLUP, MUX_MODE0) /* SPI0_MOSI */ |
| 265 | AM33XX_PADCONF(AM335X_PIN_SPI0_D1, PIN_INPUT_PULLUP, MUX_MODE0) /* SPI0_MISO */ |
| 266 | AM33XX_PADCONF(AM335X_PIN_SPI0_SCLK, PIN_INPUT_PULLUP, MUX_MODE0) |
| 267 | AM33XX_PADCONF(AM335X_PIN_SPI0_CS0, PIN_INPUT_PULLUP, MUX_MODE0) /* SPI0_CS0 (NBATTSS) */ |
| 268 | AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT_PULLUP, MUX_MODE0) /* SPI0_CS1 (FPGA_FLASH_NCS) */ |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 269 | >; |
| 270 | }; |
| 271 | |
| 272 | lwb_pins: pinmux_lwb_pins { |
| 273 | pinctrl-single,pins = < |
| 274 | AM33XX_IOPAD(0x9a4, PIN_OUTPUT | MUX_MODE7) /* SoundPA_en - mcasp0_fsr.gpio3_19 */ |
| 275 | AM33XX_IOPAD(0x828, PIN_OUTPUT | MUX_MODE7) /* nKbdOnC - gpmc_ad10.gpio0_26 */ |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 276 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_INPUT_PULLUP, MUX_MODE7) /* nKbdInt - gpmc_ad12.gpio1_12 */ |
| 277 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_INPUT_PULLUP, MUX_MODE7) /* nKbdReset - gpmc_ad13.gpio1_13 */ |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 278 | AM33XX_IOPAD(0x838, PIN_INPUT_PULLUP | MUX_MODE7) /* nDispReset - gpmc_ad14.gpio1_14 */ |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 279 | AM33XX_PADCONF(AM335X_PIN_GPMC_A1, PIN_INPUT_PULLUP, MUX_MODE7) /* USB1_enPower - gpmc_a1.gpio1_17 */ |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 280 | /* PDI Bus - Battery system */ |
Andrew Davis | 2657c52 | 2023-04-11 13:25:03 -0500 | [diff] [blame] | 281 | AM33XX_PADCONF(AM335X_PIN_GPMC_A0, PIN_INPUT_PULLUP, MUX_MODE7) /* nBattReset gpmc_a0.gpio1_16 */ |
| 282 | AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_INPUT_PULLUP, MUX_MODE7) /* BattPDIData gpmc_ad15.gpio1_15 */ |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 283 | >; |
| 284 | }; |
| 285 | }; |
| 286 | |
| 287 | &i2c0 { |
| 288 | status = "okay"; |
| 289 | pinctrl-names = "default"; |
| 290 | pinctrl-0 = <&i2c0_pins>; |
| 291 | |
| 292 | clock-frequency = <400000>; |
| 293 | |
| 294 | tps: tps@24 { |
| 295 | reg = <0x24>; |
| 296 | }; |
| 297 | |
| 298 | bq32000: rtc@68 { |
| 299 | compatible = "ti,bq32000"; |
| 300 | trickle-resistor-ohms = <1120>; |
| 301 | reg = <0x68>; |
| 302 | }; |
| 303 | |
| 304 | eeprom: eeprom@50 { |
| 305 | compatible = "atmel,24c256"; |
| 306 | reg = <0x50>; |
| 307 | }; |
| 308 | |
| 309 | gpio_exp: mcp23017@20 { |
| 310 | compatible = "microchip,mcp23017"; |
| 311 | reg = <0x20>; |
| 312 | }; |
| 313 | |
| 314 | }; |
| 315 | |
| 316 | &i2c2 { |
| 317 | status = "okay"; |
| 318 | pinctrl-names = "default"; |
| 319 | pinctrl-0 = <&i2c2_pins>; |
| 320 | |
| 321 | clock-frequency = <400000>; |
| 322 | |
| 323 | audio_codec: tlv320aic3106@1b { |
| 324 | status = "okay"; |
| 325 | compatible = "ti,tlv320aic3106"; |
| 326 | reg = <0x1b>; |
| 327 | |
| 328 | AVDD-supply = <&ldo4_reg>; |
| 329 | IOVDD-supply = <&ldo4_reg>; |
| 330 | DRVDD-supply = <&ldo4_reg>; |
| 331 | DVDD-supply = <&ldo3_reg>; |
| 332 | }; |
| 333 | |
| 334 | /* Ambient Light Sensor */ |
| 335 | als: isl29023@44 { |
| 336 | compatible = "isil,isl29023"; |
| 337 | reg = <0x44>; |
| 338 | }; |
| 339 | }; |
| 340 | |
| 341 | &rtc { |
| 342 | status = "disabled"; |
| 343 | }; |
| 344 | |
| 345 | &usb { |
| 346 | status = "okay"; |
| 347 | }; |
| 348 | |
| 349 | &usb_ctrl_mod { |
| 350 | status = "okay"; |
| 351 | }; |
| 352 | |
| 353 | &usb0_phy { |
| 354 | status = "okay"; |
| 355 | }; |
| 356 | |
| 357 | &usb1_phy { |
| 358 | status = "okay"; |
| 359 | }; |
| 360 | |
| 361 | &usb0 { |
| 362 | status = "okay"; |
| 363 | dr_mode = "peripheral"; |
| 364 | }; |
| 365 | |
| 366 | &usb1 { |
| 367 | status = "okay"; |
| 368 | dr_mode = "host"; |
| 369 | }; |
| 370 | |
| 371 | &cppi41dma { |
| 372 | status = "okay"; |
| 373 | }; |
| 374 | |
| 375 | &mmc1 { |
| 376 | status = "okay"; |
| 377 | pinctrl-names = "default"; |
| 378 | pinctrl-0 = <&mmc1_pins>; |
| 379 | bus-width = <4>; |
| 380 | cd-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; |
| 381 | vmmc-supply = <&vmmcsd_fixed>; |
| 382 | }; |
| 383 | |
| 384 | &mmc2 { |
| 385 | status = "okay"; |
| 386 | pinctrl-names = "default"; |
| 387 | pinctrl-0 = <&emmc_pins>; |
| 388 | bus-width = <8>; |
| 389 | vmmc-supply = <&vmmcsd_fixed>; |
| 390 | mmc-pwrseq = <&emmc_pwrseq>; |
| 391 | }; |
| 392 | |
| 393 | &mcasp0 { |
| 394 | status = "okay"; |
| 395 | pinctrl-names = "default"; |
| 396 | pinctrl-0 = <&audio_pins>; |
| 397 | |
| 398 | op-mode = <0>; /* MCASP_ISS_MODE */ |
| 399 | tdm-slots = <2>; |
| 400 | serial-dir = < |
| 401 | 2 0 1 0 |
| 402 | 0 0 0 0 |
| 403 | 0 0 0 0 |
| 404 | 0 0 0 0 |
| 405 | >; |
| 406 | tx-num-evt = <1>; |
| 407 | rx-num-evt = <1>; |
| 408 | }; |
| 409 | |
| 410 | &uart0 { |
| 411 | status = "okay"; |
| 412 | pinctrl-names = "default"; |
| 413 | pinctrl-0 = <&uart0_pins>; |
| 414 | }; |
| 415 | |
| 416 | &uart1 { |
| 417 | status = "okay"; |
| 418 | pinctrl-names = "default"; |
| 419 | pinctrl-0 = <&uart1_pins>; |
| 420 | }; |
| 421 | |
| 422 | &uart4 { |
| 423 | status = "okay"; |
| 424 | pinctrl-names = "default"; |
| 425 | pinctrl-0 = <&uart4_pins>; |
| 426 | }; |
| 427 | |
| 428 | &spi0 { |
| 429 | status = "okay"; |
| 430 | pinctrl-names = "default"; |
| 431 | pinctrl-0 = <&spi0_pins>; |
| 432 | |
Andrew Davis | 211b3d7 | 2023-04-11 13:25:05 -0500 | [diff] [blame^] | 433 | flash: flash@1 { |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 434 | #address-cells = <1>; |
| 435 | #size-cells = <1>; |
| 436 | compatible = "micron,n25q032"; |
| 437 | reg = <1>; |
| 438 | spi-max-frequency = <5000000>; |
| 439 | }; |
| 440 | }; |
| 441 | |
| 442 | #include "tps65217.dtsi" |
| 443 | |
| 444 | &tps { |
| 445 | ti,pmic-shutdown-controller; |
| 446 | |
| 447 | interrupt-parent = <&intc>; |
| 448 | interrupts = <7>; /* NNMI */ |
| 449 | |
| 450 | regulators { |
| 451 | dcdc1_reg: regulator@0 { |
| 452 | /* VDDS_DDR */ |
| 453 | regulator-min-microvolt = <1500000>; |
| 454 | regulator-max-microvolt = <1500000>; |
| 455 | regulator-always-on; |
| 456 | }; |
| 457 | |
| 458 | dcdc2_reg: regulator@1 { |
| 459 | /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */ |
| 460 | regulator-name = "vdd_mpu"; |
| 461 | regulator-min-microvolt = <925000>; |
| 462 | regulator-max-microvolt = <1325000>; |
| 463 | regulator-boot-on; |
| 464 | regulator-always-on; |
| 465 | }; |
| 466 | |
| 467 | dcdc3_reg: regulator@2 { |
| 468 | /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */ |
| 469 | regulator-name = "vdd_core"; |
| 470 | regulator-min-microvolt = <925000>; |
| 471 | regulator-max-microvolt = <1150000>; |
| 472 | regulator-boot-on; |
| 473 | regulator-always-on; |
| 474 | }; |
| 475 | |
| 476 | ldo1_reg: regulator@3 { |
| 477 | /* VRTC / VIO / VDDS*/ |
| 478 | regulator-always-on; |
| 479 | regulator-min-microvolt = <1800000>; |
| 480 | regulator-max-microvolt = <1800000>; |
| 481 | }; |
| 482 | |
| 483 | ldo2_reg: regulator@4 { |
| 484 | /* VDD_3V3AUX */ |
| 485 | regulator-always-on; |
| 486 | regulator-min-microvolt = <3300000>; |
| 487 | regulator-max-microvolt = <3300000>; |
| 488 | }; |
| 489 | |
| 490 | ldo3_reg: regulator@5 { |
| 491 | /* VDD_1V8 */ |
| 492 | regulator-min-microvolt = <1800000>; |
| 493 | regulator-max-microvolt = <1800000>; |
| 494 | regulator-always-on; |
| 495 | }; |
| 496 | |
| 497 | ldo4_reg: regulator@6 { |
| 498 | /* VDD_3V3A */ |
| 499 | regulator-min-microvolt = <3300000>; |
| 500 | regulator-max-microvolt = <3300000>; |
| 501 | regulator-always-on; |
| 502 | }; |
| 503 | }; |
| 504 | }; |
| 505 | |
| 506 | &cpsw_emac0 { |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 507 | phy-mode = "mii"; |
Grygorii Strashko | 3b3e8a3 | 2019-08-31 10:30:34 +0300 | [diff] [blame] | 508 | phy-handle = <ðphy0>; |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 509 | }; |
| 510 | |
| 511 | &mac { |
| 512 | status = "okay"; |
| 513 | pinctrl-names = "default", "sleep"; |
| 514 | pinctrl-0 = <&cpsw_default>; |
| 515 | pinctrl-1 = <&cpsw_sleep>; |
| 516 | }; |
| 517 | |
| 518 | &davinci_mdio { |
| 519 | status = "okay"; |
| 520 | pinctrl-names = "default", "sleep"; |
| 521 | pinctrl-0 = <&davinci_mdio_default>; |
| 522 | pinctrl-1 = <&davinci_mdio_sleep>; |
Grygorii Strashko | 3b3e8a3 | 2019-08-31 10:30:34 +0300 | [diff] [blame] | 523 | reset-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; |
| 524 | reset-delay-us = <100>; /* PHY datasheet states 100us min */ |
| 525 | |
| 526 | ethphy0: ethernet-phy@0 { |
| 527 | reg = <0>; |
| 528 | }; |
Enric Balletbo i Serra | e5f0878 | 2018-12-27 17:34:11 +0100 | [diff] [blame] | 529 | }; |
| 530 | |
| 531 | &sham { |
| 532 | status = "okay"; |
| 533 | }; |
| 534 | |
| 535 | &aes { |
| 536 | status = "okay"; |
| 537 | }; |
| 538 | |
| 539 | &epwmss1 { |
| 540 | status = "okay"; |
| 541 | }; |
| 542 | |
| 543 | &ehrpwm1 { |
| 544 | status = "okay"; |
| 545 | pinctrl-names = "default"; |
| 546 | pinctrl-0 = <&ehrpwm1_pins>; |
| 547 | }; |