Lokesh Vutla | b2c99a2 | 2019-06-13 10:29:54 +0530 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include "k3-j721e-som-p0.dtsi" |
Faiz Abbas | 3af3150 | 2021-02-04 15:10:58 +0530 | [diff] [blame^] | 9 | #include <dt-bindings/gpio/gpio.h> |
Lokesh Vutla | b2c99a2 | 2019-06-13 10:29:54 +0530 | [diff] [blame] | 10 | |
| 11 | / { |
| 12 | chosen { |
| 13 | stdout-path = "serial2:115200n8"; |
| 14 | bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000"; |
| 15 | }; |
Lokesh Vutla | 1a12804 | 2019-09-04 16:01:37 +0530 | [diff] [blame] | 16 | |
| 17 | aliases { |
| 18 | remoteproc0 = &mcu_r5fss0_core0; |
| 19 | remoteproc1 = &mcu_r5fss0_core1; |
Lokesh Vutla | 28b9765 | 2019-09-04 16:01:38 +0530 | [diff] [blame] | 20 | remoteproc2 = &main_r5fss0_core0; |
| 21 | remoteproc3 = &main_r5fss0_core1; |
| 22 | remoteproc4 = &main_r5fss1_core0; |
| 23 | remoteproc5 = &main_r5fss1_core1; |
Lokesh Vutla | 4dbd7ed | 2019-09-04 16:01:39 +0530 | [diff] [blame] | 24 | remoteproc6 = &c66_0; |
| 25 | remoteproc7 = &c66_1; |
Lokesh Vutla | c9d636d | 2019-09-04 16:01:40 +0530 | [diff] [blame] | 26 | remoteproc8 = &c71_0; |
Lokesh Vutla | 1a12804 | 2019-09-04 16:01:37 +0530 | [diff] [blame] | 27 | }; |
Faiz Abbas | 3af3150 | 2021-02-04 15:10:58 +0530 | [diff] [blame^] | 28 | |
| 29 | vdd_mmc1: fixedregulator-sd { |
| 30 | compatible = "regulator-fixed"; |
| 31 | regulator-name = "vdd_mmc1"; |
| 32 | regulator-min-microvolt = <3300000>; |
| 33 | regulator-max-microvolt = <3300000>; |
| 34 | regulator-boot-on; |
| 35 | enable-active-high; |
| 36 | gpio = <&exp2 2 GPIO_ACTIVE_HIGH>; |
| 37 | }; |
| 38 | |
| 39 | vdd_sd_dv_alt: gpio-regulator-TLV71033 { |
| 40 | compatible = "regulator-gpio"; |
| 41 | pinctrl-names = "default"; |
| 42 | pinctrl-0 = <&vdd_sd_dv_alt_pins_default>; |
| 43 | regulator-name = "tlv71033"; |
| 44 | regulator-min-microvolt = <1800000>; |
| 45 | regulator-max-microvolt = <3300000>; |
| 46 | regulator-boot-on; |
| 47 | gpios = <&main_gpio0 117 GPIO_ACTIVE_HIGH>; |
| 48 | states = <1800000 0x0 |
| 49 | 3300000 0x1>; |
| 50 | }; |
Lokesh Vutla | b2c99a2 | 2019-06-13 10:29:54 +0530 | [diff] [blame] | 51 | }; |
| 52 | |
| 53 | &wkup_uart0 { |
| 54 | /* Wakeup UART is used by System firmware */ |
| 55 | status = "disabled"; |
| 56 | }; |
| 57 | |
Lokesh Vutla | 190ff64 | 2019-09-29 17:37:58 +0530 | [diff] [blame] | 58 | &main_uart0 { |
| 59 | power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>; |
| 60 | }; |
| 61 | |
Lokesh Vutla | b2c99a2 | 2019-06-13 10:29:54 +0530 | [diff] [blame] | 62 | &main_uart3 { |
| 63 | /* UART not brought out */ |
| 64 | status = "disabled"; |
| 65 | }; |
| 66 | |
| 67 | &main_uart5 { |
| 68 | /* UART not brought out */ |
| 69 | status = "disabled"; |
| 70 | }; |
| 71 | |
| 72 | &main_uart6 { |
| 73 | /* UART not brought out */ |
| 74 | status = "disabled"; |
| 75 | }; |
| 76 | |
| 77 | &main_uart7 { |
| 78 | /* UART not brought out */ |
| 79 | status = "disabled"; |
| 80 | }; |
| 81 | |
| 82 | &main_uart8 { |
| 83 | /* UART not brought out */ |
| 84 | status = "disabled"; |
| 85 | }; |
| 86 | |
| 87 | &main_uart9 { |
| 88 | /* UART not brought out */ |
| 89 | status = "disabled"; |
| 90 | }; |
| 91 | |
Faiz Abbas | c67d389 | 2020-01-16 19:42:21 +0530 | [diff] [blame] | 92 | &main_pmx0 { |
| 93 | main_mmc1_pins_default: main_mmc1_pins_default { |
| 94 | pinctrl-single,pins = < |
| 95 | J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */ |
| 96 | J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */ |
| 97 | J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */ |
| 98 | J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */ |
| 99 | J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */ |
| 100 | J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */ |
| 101 | J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */ |
| 102 | J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */ |
| 103 | J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */ |
| 104 | >; |
| 105 | }; |
Faiz Abbas | 3af3150 | 2021-02-04 15:10:58 +0530 | [diff] [blame^] | 106 | |
| 107 | vdd_sd_dv_alt_pins_default: vdd_sd_dv_alt_pins_default { |
| 108 | pinctrl-single,pins = < |
| 109 | J721E_IOPAD(0x1d8, PIN_OUTPUT, 7) /* (W4) SPI1_CS1.GPIO0_117 */ |
| 110 | >; |
| 111 | }; |
Faiz Abbas | c67d389 | 2020-01-16 19:42:21 +0530 | [diff] [blame] | 112 | }; |
| 113 | |
Lokesh Vutla | b2c99a2 | 2019-06-13 10:29:54 +0530 | [diff] [blame] | 114 | &main_sdhci0 { |
| 115 | /* eMMC */ |
Lokesh Vutla | b2c99a2 | 2019-06-13 10:29:54 +0530 | [diff] [blame] | 116 | non-removable; |
| 117 | ti,driver-strength-ohm = <50>; |
| 118 | }; |
| 119 | |
| 120 | &main_sdhci1 { |
Faiz Abbas | c67d389 | 2020-01-16 19:42:21 +0530 | [diff] [blame] | 121 | /* SD card */ |
| 122 | pinctrl-names = "default"; |
| 123 | pinctrl-0 = <&main_mmc1_pins_default>; |
Lokesh Vutla | b2c99a2 | 2019-06-13 10:29:54 +0530 | [diff] [blame] | 124 | ti,driver-strength-ohm = <50>; |
Faiz Abbas | 3af3150 | 2021-02-04 15:10:58 +0530 | [diff] [blame^] | 125 | vmmc-supply = <&vdd_mmc1>; |
| 126 | vqmmc-supply = <&vdd_sd_dv_alt>; |
Lokesh Vutla | b2c99a2 | 2019-06-13 10:29:54 +0530 | [diff] [blame] | 127 | }; |
Vignesh Raghavendra | 04ed493 | 2019-11-18 19:16:35 +0530 | [diff] [blame] | 128 | |
| 129 | &main_pmx0 { |
| 130 | main_usbss0_pins_default: main_usbss0_pins_default { |
| 131 | pinctrl-single,pins = < |
| 132 | J721E_IOPAD(0x290, PIN_OUTPUT, 0) /* (U6) USB0_DRVVBUS */ |
| 133 | J721E_IOPAD(0x210, PIN_INPUT, 7) /* (W3) MCAN1_RX.GPIO1_3 */ |
| 134 | >; |
| 135 | }; |
| 136 | |
| 137 | main_usbss1_pins_default: main_usbss1_pins_default { |
| 138 | pinctrl-single,pins = < |
| 139 | J721E_IOPAD(0x214, PIN_OUTPUT, 4) /* (V4) MCAN1_TX.USB1_DRVVBUS */ |
| 140 | >; |
| 141 | }; |
Vignesh Raghavendra | 1c5aa32 | 2020-01-27 23:22:14 +0530 | [diff] [blame] | 142 | |
| 143 | main_i2c0_pins_default: main-i2c0-pins-default { |
| 144 | pinctrl-single,pins = < |
| 145 | J721E_IOPAD(0x220, PIN_INPUT_PULLUP, 0) /* (AC5) I2C0_SCL */ |
| 146 | J721E_IOPAD(0x224, PIN_INPUT_PULLUP, 0) /* (AA5) I2C0_SDA */ |
| 147 | >; |
| 148 | }; |
Vignesh Raghavendra | 04ed493 | 2019-11-18 19:16:35 +0530 | [diff] [blame] | 149 | }; |
| 150 | |
Andreas Dannenberg | 0fe40e9 | 2020-01-07 13:15:56 +0530 | [diff] [blame] | 151 | &wkup_pmx0 { |
| 152 | wkup_i2c0_pins_default: wkup-i2c0-pins-default { |
| 153 | pinctrl-single,pins = < |
| 154 | J721E_WKUP_IOPAD(0xf8, PIN_INPUT_PULLUP, 0) /* (J25) WKUP_I2C0_SCL */ |
| 155 | J721E_WKUP_IOPAD(0xfc, PIN_INPUT_PULLUP, 0) /* (H24) WKUP_I2C0_SDA */ |
| 156 | >; |
| 157 | }; |
Vignesh Raghavendra | da67437 | 2020-02-04 11:09:52 +0530 | [diff] [blame] | 158 | |
| 159 | mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-pins-default { |
| 160 | pinctrl-single,pins = < |
| 161 | J721E_WKUP_IOPAD(0x34, PIN_OUTPUT, 0) /* (F22) MCU_OSPI1_CLK */ |
| 162 | J721E_WKUP_IOPAD(0x50, PIN_OUTPUT, 0) /* (C22) MCU_OSPI1_CSn0 */ |
| 163 | J721E_WKUP_IOPAD(0x40, PIN_INPUT, 0) /* (D22) MCU_OSPI1_D0 */ |
| 164 | J721E_WKUP_IOPAD(0x44, PIN_INPUT, 0) /* (G22) MCU_OSPI1_D1 */ |
| 165 | J721E_WKUP_IOPAD(0x48, PIN_INPUT, 0) /* (D23) MCU_OSPI1_D2 */ |
| 166 | J721E_WKUP_IOPAD(0x4c, PIN_INPUT, 0) /* (C23) MCU_OSPI1_D3 */ |
| 167 | J721E_WKUP_IOPAD(0x3c, PIN_INPUT, 0) /* (B23) MCU_OSPI1_DQS */ |
| 168 | J721E_WKUP_IOPAD(0x38, PIN_INPUT, 0) /* (A23) MCU_OSPI1_LBCLKO */ |
| 169 | >; |
| 170 | }; |
Andreas Dannenberg | 0fe40e9 | 2020-01-07 13:15:56 +0530 | [diff] [blame] | 171 | }; |
| 172 | |
Vignesh Raghavendra | 04ed493 | 2019-11-18 19:16:35 +0530 | [diff] [blame] | 173 | &usbss0 { |
| 174 | pinctrl-names = "default"; |
| 175 | pinctrl-0 = <&main_usbss0_pins_default>; |
| 176 | ti,vbus-divider; |
| 177 | }; |
| 178 | |
| 179 | &usb0 { |
| 180 | dr_mode = "otg"; |
| 181 | maximum-speed = "super-speed"; |
| 182 | }; |
| 183 | |
| 184 | &usbss1 { |
| 185 | pinctrl-names = "default"; |
| 186 | pinctrl-0 = <&main_usbss1_pins_default>; |
| 187 | ti,usb2-only; |
| 188 | }; |
| 189 | |
| 190 | &usb1 { |
| 191 | dr_mode = "host"; |
| 192 | maximum-speed = "high-speed"; |
| 193 | }; |
Andreas Dannenberg | 0fe40e9 | 2020-01-07 13:15:56 +0530 | [diff] [blame] | 194 | |
| 195 | &wkup_i2c0 { |
| 196 | pinctrl-names = "default"; |
| 197 | pinctrl-0 = <&wkup_i2c0_pins_default>; |
| 198 | clock-frequency = <400000>; |
Vignesh Raghavendra | 1c5aa32 | 2020-01-27 23:22:14 +0530 | [diff] [blame] | 199 | }; |
| 200 | |
| 201 | &main_i2c0 { |
| 202 | pinctrl-names = "default"; |
| 203 | pinctrl-0 = <&main_i2c0_pins_default>; |
| 204 | clock-frequency = <400000>; |
| 205 | |
| 206 | exp1: gpio@20 { |
| 207 | compatible = "ti,tca6416"; |
| 208 | reg = <0x20>; |
| 209 | gpio-controller; |
| 210 | #gpio-cells = <2>; |
| 211 | }; |
| 212 | |
| 213 | exp2: gpio@22 { |
| 214 | compatible = "ti,tca6424"; |
| 215 | reg = <0x22>; |
| 216 | gpio-controller; |
| 217 | #gpio-cells = <2>; |
| 218 | }; |
Andreas Dannenberg | 0fe40e9 | 2020-01-07 13:15:56 +0530 | [diff] [blame] | 219 | }; |
Vignesh Raghavendra | da67437 | 2020-02-04 11:09:52 +0530 | [diff] [blame] | 220 | |
| 221 | &ospi1 { |
| 222 | pinctrl-names = "default"; |
| 223 | pinctrl-0 = <&mcu_fss0_ospi1_pins_default>; |
| 224 | |
| 225 | flash@0{ |
| 226 | compatible = "jedec,spi-nor"; |
| 227 | reg = <0x0>; |
| 228 | spi-tx-bus-width = <1>; |
| 229 | spi-rx-bus-width = <4>; |
| 230 | spi-max-frequency = <40000000>; |
| 231 | cdns,tshsl-ns = <60>; |
| 232 | cdns,tsd2d-ns = <60>; |
| 233 | cdns,tchsh-ns = <60>; |
| 234 | cdns,tslch-ns = <60>; |
| 235 | cdns,read-delay = <2>; |
| 236 | #address-cells = <1>; |
| 237 | #size-cells = <1>; |
| 238 | }; |
| 239 | }; |