Andrew Davis | 0561899 | 2023-04-11 13:24:58 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 2 | /* |
Andrew Davis | 0561899 | 2023-04-11 13:24:58 -0500 | [diff] [blame] | 3 | * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/ |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 4 | */ |
| 5 | /dts-v1/; |
| 6 | |
| 7 | #include "dra74x.dtsi" |
Lokesh Vutla | cfa23a4 | 2017-08-21 12:50:59 +0530 | [diff] [blame] | 8 | #include "dra7-evm-common.dtsi" |
| 9 | #include "dra74x-mmc-iodelay.dtsi" |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 10 | |
| 11 | / { |
| 12 | model = "TI DRA742"; |
| 13 | compatible = "ti,dra7-evm", "ti,dra742", "ti,dra74", "ti,dra7"; |
| 14 | |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 15 | memory@0 { |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 16 | device_type = "memory"; |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 17 | reg = <0x0 0x80000000 0x0 0x60000000>; /* 1536 MB */ |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 18 | }; |
| 19 | |
Lokesh Vutla | cfa23a4 | 2017-08-21 12:50:59 +0530 | [diff] [blame] | 20 | evm_1v8_sw: fixedregulator-evm_1v8 { |
| 21 | compatible = "regulator-fixed"; |
| 22 | regulator-name = "evm_1v8"; |
| 23 | vin-supply = <&smps9_reg>; |
| 24 | regulator-min-microvolt = <1800000>; |
| 25 | regulator-max-microvolt = <1800000>; |
| 26 | }; |
| 27 | |
Vignesh R | 5e1f11e | 2016-08-10 15:17:20 +0530 | [diff] [blame] | 28 | evm_3v3_sd: fixedregulator-sd { |
| 29 | compatible = "regulator-fixed"; |
| 30 | regulator-name = "evm_3v3_sd"; |
| 31 | regulator-min-microvolt = <3300000>; |
| 32 | regulator-max-microvolt = <3300000>; |
| 33 | enable-active-high; |
| 34 | gpio = <&pcf_gpio_21 5 GPIO_ACTIVE_HIGH>; |
| 35 | }; |
| 36 | |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 37 | evm_3v3_sw: fixedregulator-evm_3v3_sw { |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 38 | compatible = "regulator-fixed"; |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 39 | regulator-name = "evm_3v3_sw"; |
| 40 | vin-supply = <&sysen1>; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 41 | regulator-min-microvolt = <3300000>; |
| 42 | regulator-max-microvolt = <3300000>; |
| 43 | }; |
| 44 | |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 45 | aic_dvdd: fixedregulator-aic_dvdd { |
| 46 | /* TPS77018DBVT */ |
| 47 | compatible = "regulator-fixed"; |
| 48 | regulator-name = "aic_dvdd"; |
| 49 | vin-supply = <&evm_3v3_sw>; |
| 50 | regulator-min-microvolt = <1800000>; |
| 51 | regulator-max-microvolt = <1800000>; |
| 52 | }; |
| 53 | |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 54 | extcon_usb2: extcon_usb2 { |
| 55 | compatible = "linux,extcon-usb-gpio"; |
| 56 | id-gpio = <&pcf_gpio_21 2 GPIO_ACTIVE_HIGH>; |
| 57 | }; |
| 58 | |
| 59 | vtt_fixed: fixedregulator-vtt { |
| 60 | compatible = "regulator-fixed"; |
| 61 | regulator-name = "vtt_fixed"; |
| 62 | regulator-min-microvolt = <1350000>; |
| 63 | regulator-max-microvolt = <1350000>; |
| 64 | regulator-always-on; |
| 65 | regulator-boot-on; |
| 66 | enable-active-high; |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 67 | vin-supply = <&sysen2>; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 68 | gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>; |
| 69 | }; |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 70 | |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 71 | }; |
| 72 | |
| 73 | &dra7_pmx_core { |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 74 | dcan1_pins_default: dcan1_pins_default { |
| 75 | pinctrl-single,pins = < |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 76 | DRA7XX_CORE_IOPAD(0x37d0, PIN_OUTPUT_PULLUP | MUX_MODE0) /* dcan1_tx */ |
| 77 | DRA7XX_CORE_IOPAD(0x3818, PULL_UP | MUX_MODE1) /* wakeup0.dcan1_rx */ |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 78 | >; |
| 79 | }; |
| 80 | |
| 81 | dcan1_pins_sleep: dcan1_pins_sleep { |
| 82 | pinctrl-single,pins = < |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 83 | DRA7XX_CORE_IOPAD(0x37d0, MUX_MODE15 | PULL_UP) /* dcan1_tx.off */ |
| 84 | DRA7XX_CORE_IOPAD(0x3818, MUX_MODE15 | PULL_UP) /* wakeup0.off */ |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 85 | >; |
| 86 | }; |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 87 | |
Lokesh Vutla | cfa23a4 | 2017-08-21 12:50:59 +0530 | [diff] [blame] | 88 | mmc1_pins_default: mmc1_pins_default { |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 89 | pinctrl-single,pins = < |
Lokesh Vutla | cfa23a4 | 2017-08-21 12:50:59 +0530 | [diff] [blame] | 90 | DRA7XX_CORE_IOPAD(0x376c, PIN_INPUT | MUX_MODE14) /* mmc1sdcd.gpio219 */ |
| 91 | DRA7XX_CORE_IOPAD(0x3754, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.clk */ |
| 92 | DRA7XX_CORE_IOPAD(0x3758, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.cmd */ |
| 93 | DRA7XX_CORE_IOPAD(0x375c, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.dat0 */ |
| 94 | DRA7XX_CORE_IOPAD(0x3760, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.dat1 */ |
| 95 | DRA7XX_CORE_IOPAD(0x3764, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.dat2 */ |
| 96 | DRA7XX_CORE_IOPAD(0x3768, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.dat3 */ |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 97 | >; |
| 98 | }; |
| 99 | |
Lokesh Vutla | cfa23a4 | 2017-08-21 12:50:59 +0530 | [diff] [blame] | 100 | mmc2_pins_default: mmc2_pins_default { |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 101 | pinctrl-single,pins = < |
Lokesh Vutla | cfa23a4 | 2017-08-21 12:50:59 +0530 | [diff] [blame] | 102 | DRA7XX_CORE_IOPAD(0x349c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a23.mmc2_clk */ |
| 103 | DRA7XX_CORE_IOPAD(0x34b0, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_cs1.mmc2_cmd */ |
| 104 | DRA7XX_CORE_IOPAD(0x34a0, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a24.mmc2_dat0 */ |
| 105 | DRA7XX_CORE_IOPAD(0x34a4, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a25.mmc2_dat1 */ |
| 106 | DRA7XX_CORE_IOPAD(0x34a8, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a26.mmc2_dat2 */ |
| 107 | DRA7XX_CORE_IOPAD(0x34ac, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a27.mmc2_dat3 */ |
| 108 | DRA7XX_CORE_IOPAD(0x348c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a19.mmc2_dat4 */ |
| 109 | DRA7XX_CORE_IOPAD(0x3490, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a20.mmc2_dat5 */ |
| 110 | DRA7XX_CORE_IOPAD(0x3494, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a21.mmc2_dat6 */ |
| 111 | DRA7XX_CORE_IOPAD(0x3498, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_a22.mmc2_dat7 */ |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 112 | >; |
| 113 | }; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 114 | }; |
| 115 | |
| 116 | &i2c1 { |
| 117 | status = "okay"; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 118 | clock-frequency = <400000>; |
| 119 | |
| 120 | tps659038: tps659038@58 { |
| 121 | compatible = "ti,tps659038"; |
| 122 | reg = <0x58>; |
Lokesh Vutla | cfa23a4 | 2017-08-21 12:50:59 +0530 | [diff] [blame] | 123 | ti,palmas-override-powerhold; |
| 124 | ti,system-power-controller; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 125 | |
| 126 | tps659038_pmic { |
| 127 | compatible = "ti,tps659038-pmic"; |
| 128 | |
| 129 | regulators { |
| 130 | smps123_reg: smps123 { |
| 131 | /* VDD_MPU */ |
| 132 | regulator-name = "smps123"; |
| 133 | regulator-min-microvolt = < 850000>; |
| 134 | regulator-max-microvolt = <1250000>; |
| 135 | regulator-always-on; |
| 136 | regulator-boot-on; |
| 137 | }; |
| 138 | |
| 139 | smps45_reg: smps45 { |
| 140 | /* VDD_DSPEVE */ |
| 141 | regulator-name = "smps45"; |
| 142 | regulator-min-microvolt = < 850000>; |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 143 | regulator-max-microvolt = <1250000>; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 144 | regulator-always-on; |
| 145 | regulator-boot-on; |
| 146 | }; |
| 147 | |
| 148 | smps6_reg: smps6 { |
| 149 | /* VDD_GPU - over VDD_SMPS6 */ |
| 150 | regulator-name = "smps6"; |
| 151 | regulator-min-microvolt = <850000>; |
| 152 | regulator-max-microvolt = <1250000>; |
| 153 | regulator-always-on; |
| 154 | regulator-boot-on; |
| 155 | }; |
| 156 | |
| 157 | smps7_reg: smps7 { |
| 158 | /* CORE_VDD */ |
| 159 | regulator-name = "smps7"; |
| 160 | regulator-min-microvolt = <850000>; |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 161 | regulator-max-microvolt = <1150000>; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 162 | regulator-always-on; |
| 163 | regulator-boot-on; |
| 164 | }; |
| 165 | |
| 166 | smps8_reg: smps8 { |
| 167 | /* VDD_IVAHD */ |
| 168 | regulator-name = "smps8"; |
| 169 | regulator-min-microvolt = < 850000>; |
| 170 | regulator-max-microvolt = <1250000>; |
| 171 | regulator-always-on; |
| 172 | regulator-boot-on; |
| 173 | }; |
| 174 | |
| 175 | smps9_reg: smps9 { |
| 176 | /* VDDS1V8 */ |
| 177 | regulator-name = "smps9"; |
| 178 | regulator-min-microvolt = <1800000>; |
| 179 | regulator-max-microvolt = <1800000>; |
| 180 | regulator-always-on; |
| 181 | regulator-boot-on; |
| 182 | }; |
| 183 | |
| 184 | ldo1_reg: ldo1 { |
| 185 | /* LDO1_OUT --> SDIO */ |
| 186 | regulator-name = "ldo1"; |
| 187 | regulator-min-microvolt = <1800000>; |
| 188 | regulator-max-microvolt = <3300000>; |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 189 | regulator-always-on; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 190 | regulator-boot-on; |
| 191 | }; |
| 192 | |
| 193 | ldo2_reg: ldo2 { |
| 194 | /* VDD_RTCIO */ |
| 195 | /* LDO2 -> VDDSHV5, LDO2 also goes to CAN_PHY_3V3 */ |
| 196 | regulator-name = "ldo2"; |
| 197 | regulator-min-microvolt = <3300000>; |
| 198 | regulator-max-microvolt = <3300000>; |
| 199 | regulator-always-on; |
| 200 | regulator-boot-on; |
| 201 | }; |
| 202 | |
| 203 | ldo3_reg: ldo3 { |
| 204 | /* VDDA_1V8_PHY */ |
| 205 | regulator-name = "ldo3"; |
| 206 | regulator-min-microvolt = <1800000>; |
| 207 | regulator-max-microvolt = <1800000>; |
| 208 | regulator-always-on; |
| 209 | regulator-boot-on; |
| 210 | }; |
| 211 | |
| 212 | ldo9_reg: ldo9 { |
| 213 | /* VDD_RTC */ |
| 214 | regulator-name = "ldo9"; |
| 215 | regulator-min-microvolt = <1050000>; |
| 216 | regulator-max-microvolt = <1050000>; |
| 217 | regulator-always-on; |
| 218 | regulator-boot-on; |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 219 | regulator-allow-bypass; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 220 | }; |
| 221 | |
| 222 | ldoln_reg: ldoln { |
| 223 | /* VDDA_1V8_PLL */ |
| 224 | regulator-name = "ldoln"; |
| 225 | regulator-min-microvolt = <1800000>; |
| 226 | regulator-max-microvolt = <1800000>; |
| 227 | regulator-always-on; |
| 228 | regulator-boot-on; |
| 229 | }; |
| 230 | |
| 231 | ldousb_reg: ldousb { |
| 232 | /* VDDA_3V_USB: VDDA_USBHS33 */ |
| 233 | regulator-name = "ldousb"; |
| 234 | regulator-min-microvolt = <3300000>; |
| 235 | regulator-max-microvolt = <3300000>; |
| 236 | regulator-boot-on; |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 237 | }; |
| 238 | |
| 239 | /* REGEN1 is unused */ |
| 240 | |
| 241 | regen2: regen2 { |
| 242 | /* Needed for PMIC internal resources */ |
| 243 | regulator-name = "regen2"; |
| 244 | regulator-boot-on; |
| 245 | regulator-always-on; |
| 246 | }; |
| 247 | |
| 248 | /* REGEN3 is unused */ |
| 249 | |
| 250 | sysen1: sysen1 { |
| 251 | /* PMIC_REGEN_3V3 */ |
| 252 | regulator-name = "sysen1"; |
| 253 | regulator-boot-on; |
| 254 | regulator-always-on; |
| 255 | }; |
| 256 | |
| 257 | sysen2: sysen2 { |
| 258 | /* PMIC_REGEN_DDR */ |
| 259 | regulator-name = "sysen2"; |
| 260 | regulator-boot-on; |
| 261 | regulator-always-on; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 262 | }; |
| 263 | }; |
| 264 | }; |
| 265 | }; |
| 266 | |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 267 | pcf_lcd: gpio@20 { |
| 268 | compatible = "ti,pcf8575", "nxp,pcf8575"; |
| 269 | reg = <0x20>; |
| 270 | gpio-controller; |
| 271 | #gpio-cells = <2>; |
| 272 | interrupt-parent = <&gpio6>; |
| 273 | interrupts = <11 IRQ_TYPE_EDGE_FALLING>; |
| 274 | interrupt-controller; |
| 275 | #interrupt-cells = <2>; |
| 276 | }; |
| 277 | |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 278 | pcf_gpio_21: gpio@21 { |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 279 | compatible = "ti,pcf8575", "nxp,pcf8575"; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 280 | reg = <0x21>; |
| 281 | lines-initial-states = <0x1408>; |
| 282 | gpio-controller; |
| 283 | #gpio-cells = <2>; |
| 284 | interrupt-parent = <&gpio6>; |
| 285 | interrupts = <11 IRQ_TYPE_EDGE_FALLING>; |
| 286 | interrupt-controller; |
| 287 | #interrupt-cells = <2>; |
| 288 | }; |
| 289 | |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 290 | tlv320aic3106: tlv320aic3106@19 { |
| 291 | #sound-dai-cells = <0>; |
| 292 | compatible = "ti,tlv320aic3106"; |
| 293 | reg = <0x19>; |
| 294 | adc-settle-ms = <40>; |
| 295 | ai3x-micbias-vg = <1>; /* 2.0V */ |
| 296 | status = "okay"; |
| 297 | |
| 298 | /* Regulators */ |
| 299 | AVDD-supply = <&evm_3v3_sw>; |
| 300 | IOVDD-supply = <&evm_3v3_sw>; |
| 301 | DRVDD-supply = <&evm_3v3_sw>; |
| 302 | DVDD-supply = <&aic_dvdd>; |
| 303 | }; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 304 | }; |
| 305 | |
| 306 | &i2c2 { |
| 307 | status = "okay"; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 308 | clock-frequency = <400000>; |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 309 | |
| 310 | pcf_hdmi: gpio@26 { |
| 311 | compatible = "ti,pcf8575", "nxp,pcf8575"; |
| 312 | reg = <0x26>; |
| 313 | gpio-controller; |
| 314 | #gpio-cells = <2>; |
Andrew Davis | 0429d3f | 2023-04-11 13:25:06 -0500 | [diff] [blame] | 315 | hdmi-audio-hog { |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 316 | /* vin6_sel_s0: high: VIN6, low: audio */ |
| 317 | gpio-hog; |
| 318 | gpios = <1 GPIO_ACTIVE_HIGH>; |
| 319 | output-low; |
| 320 | line-name = "vin6_sel_s0"; |
| 321 | }; |
| 322 | }; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 323 | }; |
| 324 | |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 325 | &mmc1 { |
| 326 | status = "okay"; |
Vignesh R | 5e1f11e | 2016-08-10 15:17:20 +0530 | [diff] [blame] | 327 | vmmc-supply = <&evm_3v3_sd>; |
Lokesh Vutla | cfa23a4 | 2017-08-21 12:50:59 +0530 | [diff] [blame] | 328 | vqmmc-supply = <&ldo1_reg>; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 329 | bus-width = <4>; |
Mugunthan V N | c08efbe | 2016-04-04 17:28:03 +0530 | [diff] [blame] | 330 | /* |
| 331 | * SDCD signal is not being used here - using the fact that GPIO mode |
| 332 | * is always hardwired. |
| 333 | */ |
| 334 | cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; |
Lokesh Vutla | cfa23a4 | 2017-08-21 12:50:59 +0530 | [diff] [blame] | 335 | pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50", "ddr50-rev11", "sdr104-rev11", "ddr50", "sdr104"; |
| 336 | pinctrl-0 = <&mmc1_pins_default>; |
| 337 | pinctrl-1 = <&mmc1_pins_hs>; |
| 338 | pinctrl-2 = <&mmc1_pins_sdr12>; |
| 339 | pinctrl-3 = <&mmc1_pins_sdr25>; |
| 340 | pinctrl-4 = <&mmc1_pins_sdr50>; |
| 341 | pinctrl-5 = <&mmc1_pins_ddr50 &mmc1_iodelay_ddr_rev11_conf>; |
| 342 | pinctrl-6 = <&mmc1_pins_sdr104 &mmc1_iodelay_sdr104_rev11_conf>; |
| 343 | pinctrl-7 = <&mmc1_pins_ddr50 &mmc1_iodelay_ddr_rev20_conf>; |
| 344 | pinctrl-8 = <&mmc1_pins_sdr104 &mmc1_iodelay_sdr104_rev20_conf>; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 345 | }; |
| 346 | |
| 347 | &mmc2 { |
| 348 | status = "okay"; |
Lokesh Vutla | cfa23a4 | 2017-08-21 12:50:59 +0530 | [diff] [blame] | 349 | vmmc-supply = <&evm_1v8_sw>; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 350 | bus-width = <8>; |
Lokesh Vutla | cfa23a4 | 2017-08-21 12:50:59 +0530 | [diff] [blame] | 351 | pinctrl-names = "default", "hs", "ddr_1_8v-rev11", "ddr_1_8v", "hs200_1_8v-rev11", "hs200_1_8v"; |
| 352 | pinctrl-0 = <&mmc2_pins_default>; |
| 353 | pinctrl-1 = <&mmc2_pins_hs>; |
| 354 | pinctrl-2 = <&mmc2_pins_ddr_1_8v_rev11 &mmc2_iodelay_ddr_1_8v_rev11_conf>; |
| 355 | pinctrl-3 = <&mmc2_pins_ddr_rev20>; |
| 356 | pinctrl-4 = <&mmc2_pins_hs200 &mmc2_iodelay_hs200_rev11_conf>; |
| 357 | pinctrl-5 = <&mmc2_pins_hs200 &mmc2_iodelay_hs200_rev20_conf>; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 358 | }; |
| 359 | |
| 360 | &cpu0 { |
| 361 | cpu0-supply = <&smps123_reg>; |
| 362 | }; |
| 363 | |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 364 | &omap_dwc3_2 { |
| 365 | extcon = <&extcon_usb2>; |
| 366 | }; |
| 367 | |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 368 | &elm { |
| 369 | status = "okay"; |
| 370 | }; |
| 371 | |
| 372 | &gpmc { |
Lokesh Vutla | cfa23a4 | 2017-08-21 12:50:59 +0530 | [diff] [blame] | 373 | /* |
| 374 | * For the existing IOdelay configuration via U-Boot we don't |
| 375 | * support NAND on dra7-evm. Keep it disabled. Enabling it |
| 376 | * requires a different configuration by U-Boot. |
| 377 | */ |
| 378 | status = "disabled"; |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 379 | ranges = <0 0 0x08000000 0x01000000>; /* minimum GPMC partition = 16MB */ |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 380 | nand@0,0 { |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 381 | compatible = "ti,omap2-nand"; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 382 | reg = <0 0 4>; /* device IO registers */ |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 383 | interrupt-parent = <&gpmc>; |
| 384 | interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */ |
| 385 | <1 IRQ_TYPE_NONE>; /* termcount */ |
| 386 | rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 pin */ |
Lokesh Vutla | cfa23a4 | 2017-08-21 12:50:59 +0530 | [diff] [blame] | 387 | ti,nand-xfer-type = "prefetch-dma"; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 388 | ti,nand-ecc-opt = "bch8"; |
| 389 | ti,elm-id = <&elm>; |
| 390 | nand-bus-width = <16>; |
| 391 | gpmc,device-width = <2>; |
| 392 | gpmc,sync-clk-ps = <0>; |
| 393 | gpmc,cs-on-ns = <0>; |
| 394 | gpmc,cs-rd-off-ns = <80>; |
| 395 | gpmc,cs-wr-off-ns = <80>; |
| 396 | gpmc,adv-on-ns = <0>; |
| 397 | gpmc,adv-rd-off-ns = <60>; |
| 398 | gpmc,adv-wr-off-ns = <60>; |
| 399 | gpmc,we-on-ns = <10>; |
| 400 | gpmc,we-off-ns = <50>; |
| 401 | gpmc,oe-on-ns = <4>; |
| 402 | gpmc,oe-off-ns = <40>; |
| 403 | gpmc,access-ns = <40>; |
| 404 | gpmc,wr-access-ns = <80>; |
| 405 | gpmc,rd-cycle-ns = <80>; |
| 406 | gpmc,wr-cycle-ns = <80>; |
| 407 | gpmc,bus-turnaround-ns = <0>; |
| 408 | gpmc,cycle2cycle-delay-ns = <0>; |
| 409 | gpmc,clk-activation-ns = <0>; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 410 | gpmc,wr-data-mux-bus-ns = <0>; |
| 411 | /* MTD partition table */ |
| 412 | /* All SPL-* partitions are sized to minimal length |
| 413 | * which can be independently programmable. For |
| 414 | * NAND flash this is equal to size of erase-block */ |
| 415 | #address-cells = <1>; |
| 416 | #size-cells = <1>; |
| 417 | partition@0 { |
| 418 | label = "NAND.SPL"; |
Andrew Davis | 0429d3f | 2023-04-11 13:25:06 -0500 | [diff] [blame] | 419 | reg = <0x00000000 0x00020000>; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 420 | }; |
| 421 | partition@1 { |
| 422 | label = "NAND.SPL.backup1"; |
| 423 | reg = <0x00020000 0x00020000>; |
| 424 | }; |
| 425 | partition@2 { |
| 426 | label = "NAND.SPL.backup2"; |
| 427 | reg = <0x00040000 0x00020000>; |
| 428 | }; |
| 429 | partition@3 { |
| 430 | label = "NAND.SPL.backup3"; |
| 431 | reg = <0x00060000 0x00020000>; |
| 432 | }; |
| 433 | partition@4 { |
| 434 | label = "NAND.u-boot-spl-os"; |
| 435 | reg = <0x00080000 0x00040000>; |
| 436 | }; |
| 437 | partition@5 { |
| 438 | label = "NAND.u-boot"; |
| 439 | reg = <0x000c0000 0x00100000>; |
| 440 | }; |
| 441 | partition@6 { |
| 442 | label = "NAND.u-boot-env"; |
| 443 | reg = <0x001c0000 0x00020000>; |
| 444 | }; |
| 445 | partition@7 { |
| 446 | label = "NAND.u-boot-env.backup1"; |
| 447 | reg = <0x001e0000 0x00020000>; |
| 448 | }; |
| 449 | partition@8 { |
| 450 | label = "NAND.kernel"; |
| 451 | reg = <0x00200000 0x00800000>; |
| 452 | }; |
| 453 | partition@9 { |
| 454 | label = "NAND.file-system"; |
| 455 | reg = <0x00a00000 0x0f600000>; |
| 456 | }; |
| 457 | }; |
| 458 | }; |
| 459 | |
| 460 | &usb2_phy1 { |
| 461 | phy-supply = <&ldousb_reg>; |
| 462 | }; |
| 463 | |
| 464 | &usb2_phy2 { |
| 465 | phy-supply = <&ldousb_reg>; |
| 466 | }; |
| 467 | |
| 468 | &gpio7 { |
| 469 | ti,no-reset-on-init; |
| 470 | ti,no-idle-on-init; |
| 471 | }; |
| 472 | |
| 473 | &mac { |
| 474 | status = "okay"; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 475 | dual_emac; |
| 476 | }; |
| 477 | |
| 478 | &cpsw_emac0 { |
Grygorii Strashko | cd8cbcb | 2019-08-31 10:30:32 +0300 | [diff] [blame] | 479 | phy-handle = <ðphy0>; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 480 | phy-mode = "rgmii"; |
| 481 | dual_emac_res_vlan = <1>; |
| 482 | }; |
| 483 | |
| 484 | &cpsw_emac1 { |
Grygorii Strashko | cd8cbcb | 2019-08-31 10:30:32 +0300 | [diff] [blame] | 485 | phy-handle = <ðphy1>; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 486 | phy-mode = "rgmii"; |
| 487 | dual_emac_res_vlan = <2>; |
| 488 | }; |
| 489 | |
Grygorii Strashko | cd8cbcb | 2019-08-31 10:30:32 +0300 | [diff] [blame] | 490 | &davinci_mdio { |
| 491 | ethphy0: ethernet-phy@2 { |
| 492 | reg = <2>; |
| 493 | }; |
| 494 | |
| 495 | ethphy1: ethernet-phy@3 { |
| 496 | reg = <3>; |
| 497 | }; |
| 498 | }; |
| 499 | |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 500 | &dcan1 { |
Roger Quadros | 0ffbc74 | 2021-08-24 14:07:27 +0300 | [diff] [blame] | 501 | status = "okay"; |
Mugunthan V N | 0f14831 | 2015-09-22 18:45:12 +0530 | [diff] [blame] | 502 | pinctrl-names = "default", "sleep", "active"; |
| 503 | pinctrl-0 = <&dcan1_pins_sleep>; |
| 504 | pinctrl-1 = <&dcan1_pins_sleep>; |
| 505 | pinctrl-2 = <&dcan1_pins_default>; |
| 506 | }; |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 507 | |
Lokesh Vutla | cfa23a4 | 2017-08-21 12:50:59 +0530 | [diff] [blame] | 508 | &pcie1_rc { |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 509 | status = "okay"; |
Lokesh Vutla | da04742 | 2016-11-23 13:25:29 +0530 | [diff] [blame] | 510 | }; |