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" 9#include <dt-bindings/gpio/gpio.h> 10#include <dt-bindings/input/input.h> 11 12/ { 13 chosen { 14 stdout-path = "serial2:115200n8"; 15 bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000"; 16 }; 17 18 gpio_keys: gpio-keys { 19 compatible = "gpio-keys"; 20 autorepeat; 21 pinctrl-names = "default"; 22 pinctrl-0 = <&sw10_button_pins_default &sw11_button_pins_default>; 23 24 sw10: sw10 { 25 label = "GPIO Key USER1"; 26 linux,code = <BTN_0>; 27 gpios = <&main_gpio0 0 GPIO_ACTIVE_LOW>; 28 }; 29 30 sw11: sw11 { 31 label = "GPIO Key USER2"; 32 linux,code = <BTN_1>; 33 gpios = <&wkup_gpio0 7 GPIO_ACTIVE_LOW>; 34 }; 35 }; 36}; 37 38&main_pmx0 { 39 sw10_button_pins_default: sw10_button_pins_default { 40 pinctrl-single,pins = < 41 J721E_IOPAD(0x0, PIN_INPUT, 7) /* (AC18) EXTINTn.GPIO0_0 */ 42 >; 43 }; 44 45 main_mmc1_pins_default: main_mmc1_pins_default { 46 pinctrl-single,pins = < 47 J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */ 48 J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */ 49 J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */ 50 J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */ 51 J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */ 52 J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */ 53 J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */ 54 J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */ 55 J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */ 56 >; 57 }; 58 59 main_usbss0_pins_default: main_usbss0_pins_default { 60 pinctrl-single,pins = < 61 J721E_IOPAD(0x290, PIN_OUTPUT, 0) /* (U6) USB0_DRVVBUS */ 62 >; 63 }; 64 65 main_usbss1_pins_default: main_usbss1_pins_default { 66 pinctrl-single,pins = < 67 J721E_IOPAD(0x214, PIN_OUTPUT, 4) /* (V4) MCAN1_TX.USB1_DRVVBUS */ 68 >; 69 }; 70}; 71 72&wkup_pmx0 { 73 sw11_button_pins_default: sw11_button_pins_default { 74 pinctrl-single,pins = < 75 J721E_WKUP_IOPAD(0xcc, PIN_INPUT, 7) /* (G28) WKUP_GPIO0_7 */ 76 >; 77 }; 78}; 79 80&wkup_uart0 { 81 /* Wakeup UART is used by System firmware */ 82 status = "disabled"; 83}; 84 85&main_uart0 { 86 power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>; 87}; 88 89&main_uart3 { 90 /* UART not brought out */ 91 status = "disabled"; 92}; 93 94&main_uart5 { 95 /* UART not brought out */ 96 status = "disabled"; 97}; 98 99&main_uart6 { 100 /* UART not brought out */ 101 status = "disabled"; 102}; 103 104&main_uart7 { 105 /* UART not brought out */ 106 status = "disabled"; 107}; 108 109&main_uart8 { 110 /* UART not brought out */ 111 status = "disabled"; 112}; 113 114&main_uart9 { 115 /* UART not brought out */ 116 status = "disabled"; 117}; 118 119&main_gpio2 { 120 status = "disabled"; 121}; 122 123&main_gpio3 { 124 status = "disabled"; 125}; 126 127&main_gpio4 { 128 status = "disabled"; 129}; 130 131&main_gpio5 { 132 status = "disabled"; 133}; 134 135&main_gpio6 { 136 status = "disabled"; 137}; 138 139&main_gpio7 { 140 status = "disabled"; 141}; 142 143&wkup_gpio1 { 144 status = "disabled"; 145}; 146 147&mailbox0_cluster0 { 148 interrupts = <214 0>; 149 150 mbox_mcu_r5fss0_core0: mbox-mcu-r5fss0-core0 { 151 ti,mbox-rx = <0 0 0>; 152 ti,mbox-tx = <1 0 0>; 153 }; 154 155 mbox_mcu_r5fss0_core1: mbox-mcu-r5fss0-core1 { 156 ti,mbox-rx = <2 0 0>; 157 ti,mbox-tx = <3 0 0>; 158 }; 159}; 160 161&mailbox0_cluster1 { 162 interrupts = <215 0>; 163 164 mbox_main_r5fss0_core0: mbox-main-r5fss0-core0 { 165 ti,mbox-rx = <0 0 0>; 166 ti,mbox-tx = <1 0 0>; 167 }; 168 169 mbox_main_r5fss0_core1: mbox-main-r5fss0-core1 { 170 ti,mbox-rx = <2 0 0>; 171 ti,mbox-tx = <3 0 0>; 172 }; 173}; 174 175&mailbox0_cluster2 { 176 interrupts = <216 0>; 177 178 mbox_main_r5fss1_core0: mbox-main-r5fss1-core0 { 179 ti,mbox-rx = <0 0 0>; 180 ti,mbox-tx = <1 0 0>; 181 }; 182 183 mbox_main_r5fss1_core1: mbox-main-r5fss1-core1 { 184 ti,mbox-rx = <2 0 0>; 185 ti,mbox-tx = <3 0 0>; 186 }; 187}; 188 189&mailbox0_cluster3 { 190 interrupts = <217 0>; 191 192 mbox_c66_0: mbox-c66-0 { 193 ti,mbox-rx = <0 0 0>; 194 ti,mbox-tx = <1 0 0>; 195 }; 196 197 mbox_c66_1: mbox-c66-1 { 198 ti,mbox-rx = <2 0 0>; 199 ti,mbox-tx = <3 0 0>; 200 }; 201}; 202 203&mailbox0_cluster4 { 204 interrupts = <218 0>; 205 206 mbox_c71_0: mbox-c71-0 { 207 ti,mbox-rx = <0 0 0>; 208 ti,mbox-tx = <1 0 0>; 209 }; 210}; 211 212&mailbox0_cluster5 { 213 status = "disabled"; 214}; 215 216&mailbox0_cluster6 { 217 status = "disabled"; 218}; 219 220&mailbox0_cluster7 { 221 status = "disabled"; 222}; 223 224&mailbox0_cluster8 { 225 status = "disabled"; 226}; 227 228&mailbox0_cluster9 { 229 status = "disabled"; 230}; 231 232&mailbox0_cluster10 { 233 status = "disabled"; 234}; 235 236&mailbox0_cluster11 { 237 status = "disabled"; 238}; 239 240&main_sdhci0 { 241 /* eMMC */ 242 non-removable; 243 ti,driver-strength-ohm = <50>; 244 disable-wp; 245}; 246 247&main_sdhci1 { 248 /* SD/MMC */ 249 pinctrl-names = "default"; 250 pinctrl-0 = <&main_mmc1_pins_default>; 251 ti,driver-strength-ohm = <50>; 252 disable-wp; 253}; 254 255&main_sdhci2 { 256 /* Unused */ 257 status = "disabled"; 258}; 259 260&usbss0 { 261 pinctrl-names = "default"; 262 pinctrl-0 = <&main_usbss0_pins_default>; 263 ti,usb2-only; 264 ti,vbus-divider; 265}; 266 267&usb0 { 268 dr_mode = "otg"; 269 maximum-speed = "high-speed"; 270}; 271 272&usbss1 { 273 pinctrl-names = "default"; 274 pinctrl-0 = <&main_usbss1_pins_default>; 275 ti,usb2-only; 276}; 277 278&usb1 { 279 dr_mode = "host"; 280 maximum-speed = "high-speed"; 281}; 282