k3-j721e-common-proc-board.dts 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com/
  4. */
  5. /dts-v1/;
  6. #include "k3-j721e-som-p0.dtsi"
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/input/input.h>
  9. #include <dt-bindings/net/ti-dp83867.h>
  10. #include <dt-bindings/phy/phy-cadence.h>
  11. / {
  12. compatible = "ti,j721e-evm", "ti,j721e";
  13. model = "Texas Instruments J721e EVM";
  14. chosen {
  15. stdout-path = "serial2:115200n8";
  16. bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
  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. sw10: switch-10 {
  24. label = "GPIO Key USER1";
  25. linux,code = <BTN_0>;
  26. gpios = <&main_gpio0 0 GPIO_ACTIVE_LOW>;
  27. };
  28. sw11: switch-11 {
  29. label = "GPIO Key USER2";
  30. linux,code = <BTN_1>;
  31. gpios = <&wkup_gpio0 7 GPIO_ACTIVE_LOW>;
  32. };
  33. };
  34. evm_12v0: fixedregulator-evm12v0 {
  35. /* main supply */
  36. compatible = "regulator-fixed";
  37. regulator-name = "evm_12v0";
  38. regulator-min-microvolt = <12000000>;
  39. regulator-max-microvolt = <12000000>;
  40. regulator-always-on;
  41. regulator-boot-on;
  42. };
  43. vsys_3v3: fixedregulator-vsys3v3 {
  44. /* Output of LMS140 */
  45. compatible = "regulator-fixed";
  46. regulator-name = "vsys_3v3";
  47. regulator-min-microvolt = <3300000>;
  48. regulator-max-microvolt = <3300000>;
  49. vin-supply = <&evm_12v0>;
  50. regulator-always-on;
  51. regulator-boot-on;
  52. };
  53. vsys_5v0: fixedregulator-vsys5v0 {
  54. /* Output of LM5140 */
  55. compatible = "regulator-fixed";
  56. regulator-name = "vsys_5v0";
  57. regulator-min-microvolt = <5000000>;
  58. regulator-max-microvolt = <5000000>;
  59. vin-supply = <&evm_12v0>;
  60. regulator-always-on;
  61. regulator-boot-on;
  62. };
  63. vdd_mmc1: fixedregulator-sd {
  64. compatible = "regulator-fixed";
  65. regulator-name = "vdd_mmc1";
  66. regulator-min-microvolt = <3300000>;
  67. regulator-max-microvolt = <3300000>;
  68. regulator-boot-on;
  69. enable-active-high;
  70. vin-supply = <&vsys_3v3>;
  71. gpio = <&exp2 2 GPIO_ACTIVE_HIGH>;
  72. };
  73. vdd_sd_dv_alt: gpio-regulator-TLV71033 {
  74. compatible = "regulator-gpio";
  75. pinctrl-names = "default";
  76. pinctrl-0 = <&vdd_sd_dv_alt_pins_default>;
  77. regulator-name = "tlv71033";
  78. regulator-min-microvolt = <1800000>;
  79. regulator-max-microvolt = <3300000>;
  80. regulator-boot-on;
  81. vin-supply = <&vsys_5v0>;
  82. gpios = <&main_gpio0 117 GPIO_ACTIVE_HIGH>;
  83. states = <1800000 0x0>,
  84. <3300000 0x1>;
  85. };
  86. sound0: sound@0 {
  87. compatible = "ti,j721e-cpb-audio";
  88. model = "j721e-cpb";
  89. ti,cpb-mcasp = <&mcasp10>;
  90. ti,cpb-codec = <&pcm3168a_1>;
  91. clocks = <&k3_clks 184 1>,
  92. <&k3_clks 184 2>, <&k3_clks 184 4>,
  93. <&k3_clks 157 371>,
  94. <&k3_clks 157 400>, <&k3_clks 157 401>;
  95. clock-names = "cpb-mcasp-auxclk",
  96. "cpb-mcasp-auxclk-48000", "cpb-mcasp-auxclk-44100",
  97. "cpb-codec-scki",
  98. "cpb-codec-scki-48000", "cpb-codec-scki-44100";
  99. };
  100. transceiver1: can-phy0 {
  101. compatible = "ti,tcan1043";
  102. #phy-cells = <0>;
  103. max-bitrate = <5000000>;
  104. pinctrl-names = "default";
  105. pinctrl-0 = <&mcu_mcan0_gpio_pins_default>;
  106. standby-gpios = <&wkup_gpio0 54 GPIO_ACTIVE_LOW>;
  107. enable-gpios = <&wkup_gpio0 0 GPIO_ACTIVE_HIGH>;
  108. };
  109. transceiver2: can-phy1 {
  110. compatible = "ti,tcan1042";
  111. #phy-cells = <0>;
  112. max-bitrate = <5000000>;
  113. pinctrl-names = "default";
  114. pinctrl-0 = <&mcu_mcan1_gpio_pins_default>;
  115. standby-gpios = <&wkup_gpio0 2 GPIO_ACTIVE_HIGH>;
  116. };
  117. transceiver3: can-phy2 {
  118. compatible = "ti,tcan1043";
  119. #phy-cells = <0>;
  120. max-bitrate = <5000000>;
  121. standby-gpios = <&exp2 7 GPIO_ACTIVE_LOW>;
  122. enable-gpios = <&exp2 6 GPIO_ACTIVE_HIGH>;
  123. };
  124. transceiver4: can-phy3 {
  125. compatible = "ti,tcan1042";
  126. #phy-cells = <0>;
  127. max-bitrate = <5000000>;
  128. pinctrl-names = "default";
  129. pinctrl-0 = <&main_mcan2_gpio_pins_default>;
  130. standby-gpios = <&main_gpio0 127 GPIO_ACTIVE_HIGH>;
  131. };
  132. dp_pwr_3v3: regulator-dp-pwr {
  133. compatible = "regulator-fixed";
  134. regulator-name = "dp-pwr";
  135. regulator-min-microvolt = <3300000>;
  136. regulator-max-microvolt = <3300000>;
  137. gpio = <&exp4 0 GPIO_ACTIVE_HIGH>; /* P0 - DP0_PWR_SW_EN */
  138. enable-active-high;
  139. };
  140. dp0: connector {
  141. compatible = "dp-connector";
  142. label = "DP0";
  143. type = "full-size";
  144. dp-pwr-supply = <&dp_pwr_3v3>;
  145. port {
  146. dp_connector_in: endpoint {
  147. remote-endpoint = <&dp0_out>;
  148. };
  149. };
  150. };
  151. };
  152. &main_pmx0 {
  153. sw10_button_pins_default: sw10-button-pins-default {
  154. pinctrl-single,pins = <
  155. J721E_IOPAD(0x0, PIN_INPUT, 7) /* (AC18) EXTINTn.GPIO0_0 */
  156. >;
  157. };
  158. main_mmc1_pins_default: main-mmc1-pins-default {
  159. pinctrl-single,pins = <
  160. J721E_IOPAD(0x254, PIN_INPUT, 0) /* (R29) MMC1_CMD */
  161. J721E_IOPAD(0x250, PIN_INPUT, 0) /* (P25) MMC1_CLK */
  162. J721E_IOPAD(0x2ac, PIN_INPUT, 0) /* (P25) MMC1_CLKLB */
  163. J721E_IOPAD(0x24c, PIN_INPUT, 0) /* (R24) MMC1_DAT0 */
  164. J721E_IOPAD(0x248, PIN_INPUT, 0) /* (P24) MMC1_DAT1 */
  165. J721E_IOPAD(0x244, PIN_INPUT, 0) /* (R25) MMC1_DAT2 */
  166. J721E_IOPAD(0x240, PIN_INPUT, 0) /* (R26) MMC1_DAT3 */
  167. J721E_IOPAD(0x258, PIN_INPUT, 0) /* (P23) MMC1_SDCD */
  168. J721E_IOPAD(0x25c, PIN_INPUT, 0) /* (R28) MMC1_SDWP */
  169. >;
  170. };
  171. vdd_sd_dv_alt_pins_default: vdd-sd-dv-alt-pins-default {
  172. pinctrl-single,pins = <
  173. J721E_IOPAD(0x1d8, PIN_INPUT, 7) /* (W4) SPI1_CS1.GPIO0_117 */
  174. >;
  175. };
  176. main_usbss0_pins_default: main-usbss0-pins-default {
  177. pinctrl-single,pins = <
  178. J721E_IOPAD(0x290, PIN_OUTPUT, 0) /* (U6) USB0_DRVVBUS */
  179. J721E_IOPAD(0x210, PIN_INPUT, 7) /* (W3) MCAN1_RX.GPIO1_3 */
  180. >;
  181. };
  182. main_usbss1_pins_default: main-usbss1-pins-default {
  183. pinctrl-single,pins = <
  184. J721E_IOPAD(0x214, PIN_OUTPUT, 4) /* (V4) MCAN1_TX.USB1_DRVVBUS */
  185. >;
  186. };
  187. dp0_pins_default: dp0-pins-default {
  188. pinctrl-single,pins = <
  189. J721E_IOPAD(0x1c4, PIN_INPUT, 5) /* SPI0_CS1.DP0_HPD */
  190. >;
  191. };
  192. main_i2c1_exp4_pins_default: main-i2c1-exp4-pins-default {
  193. pinctrl-single,pins = <
  194. J721E_IOPAD(0x230, PIN_INPUT, 7) /* (U2) ECAP0_IN_APWM_OUT.GPIO1_11 */
  195. >;
  196. };
  197. main_i2c0_pins_default: main-i2c0-pins-default {
  198. pinctrl-single,pins = <
  199. J721E_IOPAD(0x220, PIN_INPUT_PULLUP, 0) /* (AC5) I2C0_SCL */
  200. J721E_IOPAD(0x224, PIN_INPUT_PULLUP, 0) /* (AA5) I2C0_SDA */
  201. >;
  202. };
  203. main_i2c1_pins_default: main-i2c1-pins-default {
  204. pinctrl-single,pins = <
  205. J721E_IOPAD(0x228, PIN_INPUT_PULLUP, 0) /* (Y6) I2C1_SCL */
  206. J721E_IOPAD(0x22c, PIN_INPUT_PULLUP, 0) /* (AA6) I2C1_SDA */
  207. >;
  208. };
  209. main_i2c3_pins_default: main-i2c3-pins-default {
  210. pinctrl-single,pins = <
  211. J721E_IOPAD(0x270, PIN_INPUT_PULLUP, 4) /* (T26) MMC2_CLK.I2C3_SCL */
  212. J721E_IOPAD(0x274, PIN_INPUT_PULLUP, 4) /* (T25) MMC2_CMD.I2C3_SDA */
  213. >;
  214. };
  215. main_i2c6_pins_default: main-i2c6-pins-default {
  216. pinctrl-single,pins = <
  217. J721E_IOPAD(0x1d0, PIN_INPUT_PULLUP, 2) /* (AA3) SPI0_D1.I2C6_SCL */
  218. J721E_IOPAD(0x1e4, PIN_INPUT_PULLUP, 2) /* (Y2) SPI1_D1.I2C6_SDA */
  219. >;
  220. };
  221. mcasp10_pins_default: mcasp10-pins-default {
  222. pinctrl-single,pins = <
  223. J721E_IOPAD(0x158, PIN_OUTPUT_PULLDOWN, 12) /* (U23) RGMII5_TX_CTL.MCASP10_ACLKX */
  224. J721E_IOPAD(0x15c, PIN_OUTPUT_PULLDOWN, 12) /* (U26) RGMII5_RX_CTL.MCASP10_AFSX */
  225. J721E_IOPAD(0x160, PIN_OUTPUT_PULLDOWN, 12) /* (V28) RGMII5_TD3.MCASP10_AXR0 */
  226. J721E_IOPAD(0x164, PIN_OUTPUT_PULLDOWN, 12) /* (V29) RGMII5_TD2.MCASP10_AXR1 */
  227. J721E_IOPAD(0x170, PIN_OUTPUT_PULLDOWN, 12) /* (U29) RGMII5_TXC.MCASP10_AXR2 */
  228. J721E_IOPAD(0x174, PIN_OUTPUT_PULLDOWN, 12) /* (U25) RGMII5_RXC.MCASP10_AXR3 */
  229. J721E_IOPAD(0x198, PIN_INPUT_PULLDOWN, 12) /* (V25) RGMII6_TD1.MCASP10_AXR4 */
  230. J721E_IOPAD(0x19c, PIN_INPUT_PULLDOWN, 12) /* (W27) RGMII6_TD0.MCASP10_AXR5 */
  231. J721E_IOPAD(0x1a0, PIN_INPUT_PULLDOWN, 12) /* (W29) RGMII6_TXC.MCASP10_AXR6 */
  232. >;
  233. };
  234. audi_ext_refclk2_pins_default: audi-ext-refclk2-pins-default {
  235. pinctrl-single,pins = <
  236. J721E_IOPAD(0x1a4, PIN_OUTPUT, 3) /* (W26) RGMII6_RXC.AUDIO_EXT_REFCLK2 */
  237. >;
  238. };
  239. main_mcan0_pins_default: main-mcan0-pins-default {
  240. pinctrl-single,pins = <
  241. J721E_IOPAD(0x208, PIN_INPUT, 0) /* (W5) MCAN0_RX */
  242. J721E_IOPAD(0x20c, PIN_OUTPUT, 0) /* (W6) MCAN0_TX */
  243. >;
  244. };
  245. main_mcan2_pins_default: main-mcan2-pins-default {
  246. pinctrl-single,pins = <
  247. J721E_IOPAD(0x01f0, PIN_INPUT, 3) /* (AC2) MCAN2_RX.GPIO0_123 */
  248. J721E_IOPAD(0x01f4, PIN_OUTPUT, 3) /* (AB1) MCAN2_TX.GPIO0_124 */
  249. >;
  250. };
  251. main_mcan2_gpio_pins_default: main-mcan2-gpio-pins-default {
  252. pinctrl-single,pins = <
  253. J721E_IOPAD(0x200, PIN_INPUT, 7) /* (AC4) UART1_CTSn.GPIO0_127 */
  254. >;
  255. };
  256. };
  257. &wkup_pmx0 {
  258. sw11_button_pins_default: sw11-button-pins-default {
  259. pinctrl-single,pins = <
  260. J721E_WKUP_IOPAD(0xcc, PIN_INPUT, 7) /* (G28) WKUP_GPIO0_7 */
  261. >;
  262. };
  263. mcu_fss0_ospi1_pins_default: mcu-fss0-ospi1-pins-default {
  264. pinctrl-single,pins = <
  265. J721E_WKUP_IOPAD(0x34, PIN_OUTPUT, 0) /* (F22) MCU_OSPI1_CLK */
  266. J721E_WKUP_IOPAD(0x50, PIN_OUTPUT, 0) /* (C22) MCU_OSPI1_CSn0 */
  267. J721E_WKUP_IOPAD(0x40, PIN_INPUT, 0) /* (D22) MCU_OSPI1_D0 */
  268. J721E_WKUP_IOPAD(0x44, PIN_INPUT, 0) /* (G22) MCU_OSPI1_D1 */
  269. J721E_WKUP_IOPAD(0x48, PIN_INPUT, 0) /* (D23) MCU_OSPI1_D2 */
  270. J721E_WKUP_IOPAD(0x4c, PIN_INPUT, 0) /* (C23) MCU_OSPI1_D3 */
  271. J721E_WKUP_IOPAD(0x3c, PIN_INPUT, 0) /* (B23) MCU_OSPI1_DQS */
  272. J721E_WKUP_IOPAD(0x38, PIN_INPUT, 0) /* (A23) MCU_OSPI1_LBCLKO */
  273. >;
  274. };
  275. mcu_cpsw_pins_default: mcu-cpsw-pins-default {
  276. pinctrl-single,pins = <
  277. J721E_WKUP_IOPAD(0x0058, PIN_OUTPUT, 0) /* MCU_RGMII1_TX_CTL */
  278. J721E_WKUP_IOPAD(0x005c, PIN_INPUT, 0) /* MCU_RGMII1_RX_CTL */
  279. J721E_WKUP_IOPAD(0x0060, PIN_OUTPUT, 0) /* MCU_RGMII1_TD3 */
  280. J721E_WKUP_IOPAD(0x0064, PIN_OUTPUT, 0) /* MCU_RGMII1_TD2 */
  281. J721E_WKUP_IOPAD(0x0068, PIN_OUTPUT, 0) /* MCU_RGMII1_TD1 */
  282. J721E_WKUP_IOPAD(0x006c, PIN_OUTPUT, 0) /* MCU_RGMII1_TD0 */
  283. J721E_WKUP_IOPAD(0x0078, PIN_INPUT, 0) /* MCU_RGMII1_RD3 */
  284. J721E_WKUP_IOPAD(0x007c, PIN_INPUT, 0) /* MCU_RGMII1_RD2 */
  285. J721E_WKUP_IOPAD(0x0080, PIN_INPUT, 0) /* MCU_RGMII1_RD1 */
  286. J721E_WKUP_IOPAD(0x0084, PIN_INPUT, 0) /* MCU_RGMII1_RD0 */
  287. J721E_WKUP_IOPAD(0x0070, PIN_OUTPUT, 0) /* MCU_RGMII1_TXC */
  288. J721E_WKUP_IOPAD(0x0074, PIN_INPUT, 0) /* MCU_RGMII1_RXC */
  289. >;
  290. };
  291. mcu_mdio_pins_default: mcu-mdio1-pins-default {
  292. pinctrl-single,pins = <
  293. J721E_WKUP_IOPAD(0x008c, PIN_OUTPUT, 0) /* MCU_MDIO0_MDC */
  294. J721E_WKUP_IOPAD(0x0088, PIN_INPUT, 0) /* MCU_MDIO0_MDIO */
  295. >;
  296. };
  297. mcu_mcan0_pins_default: mcu-mcan0-pins-default {
  298. pinctrl-single,pins = <
  299. J721E_WKUP_IOPAD(0xac, PIN_INPUT, 0) /* (C29) MCU_MCAN0_RX */
  300. J721E_WKUP_IOPAD(0xa8, PIN_OUTPUT, 0) /* (D29) MCU_MCAN0_TX */
  301. >;
  302. };
  303. mcu_mcan0_gpio_pins_default: mcu-mcan0-gpio-pins-default {
  304. pinctrl-single,pins = <
  305. J721E_WKUP_IOPAD(0xb0, PIN_INPUT, 7) /* (F26) WKUP_GPIO0_0 */
  306. J721E_WKUP_IOPAD(0x98, PIN_INPUT, 7) /* (E28) MCU_SPI0_D1.WKUP_GPIO0_54 */
  307. >;
  308. };
  309. mcu_mcan1_pins_default: mcu-mcan1-pins-default {
  310. pinctrl-single,pins = <
  311. J721E_WKUP_IOPAD(0xc4, PIN_INPUT, 0) /* (G24) WKUP_GPIO0_5.MCU_MCAN1_RX */
  312. J721E_WKUP_IOPAD(0xc0, PIN_OUTPUT, 0) /* (G25) WKUP_GPIO0_4.MCU_MCAN1_TX */
  313. >;
  314. };
  315. mcu_mcan1_gpio_pins_default: mcu-mcan1-gpio-pins-default {
  316. pinctrl-single,pins = <
  317. J721E_WKUP_IOPAD(0xb8, PIN_INPUT, 7) /* (F28) WKUP_GPIO0_2 */
  318. >;
  319. };
  320. };
  321. &wkup_uart0 {
  322. /* Wakeup UART is used by System firmware */
  323. status = "reserved";
  324. };
  325. &main_uart0 {
  326. power-domains = <&k3_pds 146 TI_SCI_PD_SHARED>;
  327. };
  328. &main_uart3 {
  329. /* UART not brought out */
  330. status = "disabled";
  331. };
  332. &main_uart5 {
  333. /* UART not brought out */
  334. status = "disabled";
  335. };
  336. &main_uart6 {
  337. /* UART not brought out */
  338. status = "disabled";
  339. };
  340. &main_uart7 {
  341. /* UART not brought out */
  342. status = "disabled";
  343. };
  344. &main_uart8 {
  345. /* UART not brought out */
  346. status = "disabled";
  347. };
  348. &main_uart9 {
  349. /* UART not brought out */
  350. status = "disabled";
  351. };
  352. &main_gpio2 {
  353. status = "disabled";
  354. };
  355. &main_gpio3 {
  356. status = "disabled";
  357. };
  358. &main_gpio4 {
  359. status = "disabled";
  360. };
  361. &main_gpio5 {
  362. status = "disabled";
  363. };
  364. &main_gpio6 {
  365. status = "disabled";
  366. };
  367. &main_gpio7 {
  368. status = "disabled";
  369. };
  370. &wkup_gpio1 {
  371. status = "disabled";
  372. };
  373. &main_sdhci0 {
  374. /* eMMC */
  375. non-removable;
  376. ti,driver-strength-ohm = <50>;
  377. disable-wp;
  378. };
  379. &main_sdhci1 {
  380. /* SD/MMC */
  381. vmmc-supply = <&vdd_mmc1>;
  382. vqmmc-supply = <&vdd_sd_dv_alt>;
  383. pinctrl-names = "default";
  384. pinctrl-0 = <&main_mmc1_pins_default>;
  385. ti,driver-strength-ohm = <50>;
  386. disable-wp;
  387. };
  388. &main_sdhci2 {
  389. /* Unused */
  390. status = "disabled";
  391. };
  392. &usb_serdes_mux {
  393. idle-states = <1>, <0>; /* USB0 to SERDES3, USB1 to SERDES1 */
  394. };
  395. &serdes_ln_ctrl {
  396. idle-states = <J721E_SERDES0_LANE0_PCIE0_LANE0>, <J721E_SERDES0_LANE1_PCIE0_LANE1>,
  397. <J721E_SERDES1_LANE0_PCIE1_LANE0>, <J721E_SERDES1_LANE1_PCIE1_LANE1>,
  398. <J721E_SERDES2_LANE0_PCIE2_LANE0>, <J721E_SERDES2_LANE1_PCIE2_LANE1>,
  399. <J721E_SERDES3_LANE0_USB3_0_SWAP>, <J721E_SERDES3_LANE1_USB3_0>,
  400. <J721E_SERDES4_LANE0_EDP_LANE0>, <J721E_SERDES4_LANE1_EDP_LANE1>,
  401. <J721E_SERDES4_LANE2_EDP_LANE2>, <J721E_SERDES4_LANE3_EDP_LANE3>;
  402. };
  403. &serdes_wiz3 {
  404. typec-dir-gpios = <&main_gpio1 3 GPIO_ACTIVE_HIGH>;
  405. typec-dir-debounce-ms = <700>; /* TUSB321, tCCB_DEFAULT 133 ms */
  406. };
  407. &serdes3 {
  408. serdes3_usb_link: phy@0 {
  409. reg = <0>;
  410. cdns,num-lanes = <2>;
  411. #phy-cells = <0>;
  412. cdns,phy-type = <PHY_TYPE_USB3>;
  413. resets = <&serdes_wiz3 1>, <&serdes_wiz3 2>;
  414. };
  415. };
  416. &usbss0 {
  417. pinctrl-names = "default";
  418. pinctrl-0 = <&main_usbss0_pins_default>;
  419. ti,vbus-divider;
  420. };
  421. &usb0 {
  422. dr_mode = "otg";
  423. maximum-speed = "super-speed";
  424. phys = <&serdes3_usb_link>;
  425. phy-names = "cdns3,usb3-phy";
  426. };
  427. &usbss1 {
  428. pinctrl-names = "default";
  429. pinctrl-0 = <&main_usbss1_pins_default>;
  430. ti,usb2-only;
  431. };
  432. &usb1 {
  433. dr_mode = "host";
  434. maximum-speed = "high-speed";
  435. };
  436. &ospi1 {
  437. pinctrl-names = "default";
  438. pinctrl-0 = <&mcu_fss0_ospi1_pins_default>;
  439. flash@0 {
  440. compatible = "jedec,spi-nor";
  441. reg = <0x0>;
  442. spi-tx-bus-width = <1>;
  443. spi-rx-bus-width = <4>;
  444. spi-max-frequency = <40000000>;
  445. cdns,tshsl-ns = <60>;
  446. cdns,tsd2d-ns = <60>;
  447. cdns,tchsh-ns = <60>;
  448. cdns,tslch-ns = <60>;
  449. cdns,read-delay = <2>;
  450. };
  451. };
  452. &tscadc0 {
  453. adc {
  454. ti,adc-channels = <0 1 2 3 4 5 6 7>;
  455. };
  456. };
  457. &tscadc1 {
  458. adc {
  459. ti,adc-channels = <0 1 2 3 4 5 6 7>;
  460. };
  461. };
  462. &main_i2c0 {
  463. pinctrl-names = "default";
  464. pinctrl-0 = <&main_i2c0_pins_default>;
  465. clock-frequency = <400000>;
  466. exp1: gpio@20 {
  467. compatible = "ti,tca6416";
  468. reg = <0x20>;
  469. gpio-controller;
  470. #gpio-cells = <2>;
  471. };
  472. exp2: gpio@22 {
  473. compatible = "ti,tca6424";
  474. reg = <0x22>;
  475. gpio-controller;
  476. #gpio-cells = <2>;
  477. p09-hog {
  478. /* P11 - MCASP/TRACE_MUX_S0 */
  479. gpio-hog;
  480. gpios = <9 GPIO_ACTIVE_HIGH>;
  481. output-low;
  482. line-name = "MCASP/TRACE_MUX_S0";
  483. };
  484. p10-hog {
  485. /* P12 - MCASP/TRACE_MUX_S1 */
  486. gpio-hog;
  487. gpios = <10 GPIO_ACTIVE_HIGH>;
  488. output-high;
  489. line-name = "MCASP/TRACE_MUX_S1";
  490. };
  491. };
  492. };
  493. &main_i2c1 {
  494. pinctrl-names = "default";
  495. pinctrl-0 = <&main_i2c1_pins_default>;
  496. clock-frequency = <400000>;
  497. exp4: gpio@20 {
  498. compatible = "ti,tca6408";
  499. reg = <0x20>;
  500. gpio-controller;
  501. #gpio-cells = <2>;
  502. pinctrl-names = "default";
  503. pinctrl-0 = <&main_i2c1_exp4_pins_default>;
  504. interrupt-parent = <&main_gpio1>;
  505. interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
  506. interrupt-controller;
  507. #interrupt-cells = <2>;
  508. };
  509. };
  510. &k3_clks {
  511. /* Confiure AUDIO_EXT_REFCLK2 pin as output */
  512. pinctrl-names = "default";
  513. pinctrl-0 = <&audi_ext_refclk2_pins_default>;
  514. };
  515. &main_i2c3 {
  516. pinctrl-names = "default";
  517. pinctrl-0 = <&main_i2c3_pins_default>;
  518. clock-frequency = <400000>;
  519. exp3: gpio@20 {
  520. compatible = "ti,tca6408";
  521. reg = <0x20>;
  522. gpio-controller;
  523. #gpio-cells = <2>;
  524. };
  525. pcm3168a_1: audio-codec@44 {
  526. compatible = "ti,pcm3168a";
  527. reg = <0x44>;
  528. #sound-dai-cells = <1>;
  529. reset-gpios = <&exp3 0 GPIO_ACTIVE_LOW>;
  530. /* C_AUDIO_REFCLK2 -> RGMII6_RXC (W26) */
  531. clocks = <&k3_clks 157 371>;
  532. clock-names = "scki";
  533. /* HSDIV3_16FFT_MAIN_4_HSDIVOUT2_CLK -> REFCLK2 */
  534. assigned-clocks = <&k3_clks 157 371>;
  535. assigned-clock-parents = <&k3_clks 157 400>;
  536. assigned-clock-rates = <24576000>; /* for 48KHz */
  537. VDD1-supply = <&vsys_3v3>;
  538. VDD2-supply = <&vsys_3v3>;
  539. VCCAD1-supply = <&vsys_5v0>;
  540. VCCAD2-supply = <&vsys_5v0>;
  541. VCCDA1-supply = <&vsys_5v0>;
  542. VCCDA2-supply = <&vsys_5v0>;
  543. };
  544. };
  545. &main_i2c6 {
  546. pinctrl-names = "default";
  547. pinctrl-0 = <&main_i2c6_pins_default>;
  548. clock-frequency = <400000>;
  549. exp5: gpio@20 {
  550. compatible = "ti,tca6408";
  551. reg = <0x20>;
  552. gpio-controller;
  553. #gpio-cells = <2>;
  554. };
  555. };
  556. &mcu_cpsw {
  557. pinctrl-names = "default";
  558. pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;
  559. };
  560. &davinci_mdio {
  561. phy0: ethernet-phy@0 {
  562. reg = <0>;
  563. ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
  564. ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
  565. };
  566. };
  567. &cpsw_port1 {
  568. phy-mode = "rgmii-rxid";
  569. phy-handle = <&phy0>;
  570. };
  571. &dss {
  572. /*
  573. * These clock assignments are chosen to enable the following outputs:
  574. *
  575. * VP0 - DisplayPort SST
  576. * VP1 - DPI0
  577. * VP2 - DSI
  578. * VP3 - DPI1
  579. */
  580. assigned-clocks = <&k3_clks 152 1>,
  581. <&k3_clks 152 4>,
  582. <&k3_clks 152 9>,
  583. <&k3_clks 152 13>;
  584. assigned-clock-parents = <&k3_clks 152 2>, /* PLL16_HSDIV0 */
  585. <&k3_clks 152 6>, /* PLL19_HSDIV0 */
  586. <&k3_clks 152 11>, /* PLL18_HSDIV0 */
  587. <&k3_clks 152 18>; /* PLL23_HSDIV0 */
  588. };
  589. &dss_ports {
  590. port {
  591. dpi0_out: endpoint {
  592. remote-endpoint = <&dp0_in>;
  593. };
  594. };
  595. };
  596. &dp0_ports {
  597. #address-cells = <1>;
  598. #size-cells = <0>;
  599. port@0 {
  600. reg = <0>;
  601. dp0_in: endpoint {
  602. remote-endpoint = <&dpi0_out>;
  603. };
  604. };
  605. port@4 {
  606. reg = <4>;
  607. dp0_out: endpoint {
  608. remote-endpoint = <&dp_connector_in>;
  609. };
  610. };
  611. };
  612. &mcasp0 {
  613. status = "disabled";
  614. };
  615. &mcasp1 {
  616. status = "disabled";
  617. };
  618. &mcasp2 {
  619. status = "disabled";
  620. };
  621. &mcasp3 {
  622. status = "disabled";
  623. };
  624. &mcasp4 {
  625. status = "disabled";
  626. };
  627. &mcasp5 {
  628. status = "disabled";
  629. };
  630. &mcasp6 {
  631. status = "disabled";
  632. };
  633. &mcasp7 {
  634. status = "disabled";
  635. };
  636. &mcasp8 {
  637. status = "disabled";
  638. };
  639. &mcasp9 {
  640. status = "disabled";
  641. };
  642. &mcasp10 {
  643. #sound-dai-cells = <0>;
  644. pinctrl-names = "default";
  645. pinctrl-0 = <&mcasp10_pins_default>;
  646. op-mode = <0>; /* MCASP_IIS_MODE */
  647. tdm-slots = <2>;
  648. auxclk-fs-ratio = <256>;
  649. serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
  650. 1 1 1 1
  651. 2 2 2 0
  652. >;
  653. tx-num-evt = <0>;
  654. rx-num-evt = <0>;
  655. };
  656. &mcasp11 {
  657. status = "disabled";
  658. };
  659. &cmn_refclk1 {
  660. clock-frequency = <100000000>;
  661. };
  662. &wiz0_pll1_refclk {
  663. assigned-clocks = <&wiz0_pll1_refclk>;
  664. assigned-clock-parents = <&cmn_refclk1>;
  665. };
  666. &wiz0_refclk_dig {
  667. assigned-clocks = <&wiz0_refclk_dig>;
  668. assigned-clock-parents = <&cmn_refclk1>;
  669. };
  670. &wiz1_pll1_refclk {
  671. assigned-clocks = <&wiz1_pll1_refclk>;
  672. assigned-clock-parents = <&cmn_refclk1>;
  673. };
  674. &wiz1_refclk_dig {
  675. assigned-clocks = <&wiz1_refclk_dig>;
  676. assigned-clock-parents = <&cmn_refclk1>;
  677. };
  678. &wiz2_pll1_refclk {
  679. assigned-clocks = <&wiz2_pll1_refclk>;
  680. assigned-clock-parents = <&cmn_refclk1>;
  681. };
  682. &wiz2_refclk_dig {
  683. assigned-clocks = <&wiz2_refclk_dig>;
  684. assigned-clock-parents = <&cmn_refclk1>;
  685. };
  686. &serdes0 {
  687. assigned-clocks = <&serdes0 CDNS_SIERRA_PLL_CMNLC>;
  688. assigned-clock-parents = <&wiz0_pll1_refclk>;
  689. serdes0_pcie_link: phy@0 {
  690. reg = <0>;
  691. cdns,num-lanes = <1>;
  692. #phy-cells = <0>;
  693. cdns,phy-type = <PHY_TYPE_PCIE>;
  694. resets = <&serdes_wiz0 1>;
  695. };
  696. };
  697. &serdes1 {
  698. assigned-clocks = <&serdes1 CDNS_SIERRA_PLL_CMNLC>;
  699. assigned-clock-parents = <&wiz1_pll1_refclk>;
  700. serdes1_pcie_link: phy@0 {
  701. reg = <0>;
  702. cdns,num-lanes = <2>;
  703. #phy-cells = <0>;
  704. cdns,phy-type = <PHY_TYPE_PCIE>;
  705. resets = <&serdes_wiz1 1>, <&serdes_wiz1 2>;
  706. };
  707. };
  708. &serdes2 {
  709. assigned-clocks = <&serdes2 CDNS_SIERRA_PLL_CMNLC>;
  710. assigned-clock-parents = <&wiz2_pll1_refclk>;
  711. serdes2_pcie_link: phy@0 {
  712. reg = <0>;
  713. cdns,num-lanes = <2>;
  714. #phy-cells = <0>;
  715. cdns,phy-type = <PHY_TYPE_PCIE>;
  716. resets = <&serdes_wiz2 1>, <&serdes_wiz2 2>;
  717. };
  718. };
  719. &serdes4 {
  720. torrent_phy_dp: phy@0 {
  721. reg = <0>;
  722. resets = <&serdes_wiz4 1>;
  723. cdns,phy-type = <PHY_TYPE_DP>;
  724. cdns,num-lanes = <4>;
  725. cdns,max-bit-rate = <5400>;
  726. #phy-cells = <0>;
  727. };
  728. };
  729. &mhdp {
  730. phys = <&torrent_phy_dp>;
  731. phy-names = "dpphy";
  732. pinctrl-names = "default";
  733. pinctrl-0 = <&dp0_pins_default>;
  734. };
  735. &pcie0_rc {
  736. reset-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>;
  737. phys = <&serdes0_pcie_link>;
  738. phy-names = "pcie-phy";
  739. num-lanes = <1>;
  740. };
  741. &pcie1_rc {
  742. reset-gpios = <&exp1 2 GPIO_ACTIVE_HIGH>;
  743. phys = <&serdes1_pcie_link>;
  744. phy-names = "pcie-phy";
  745. num-lanes = <2>;
  746. };
  747. &pcie2_rc {
  748. reset-gpios = <&exp2 20 GPIO_ACTIVE_HIGH>;
  749. phys = <&serdes2_pcie_link>;
  750. phy-names = "pcie-phy";
  751. num-lanes = <2>;
  752. };
  753. &pcie0_ep {
  754. phys = <&serdes0_pcie_link>;
  755. phy-names = "pcie-phy";
  756. num-lanes = <1>;
  757. status = "disabled";
  758. };
  759. &pcie1_ep {
  760. phys = <&serdes1_pcie_link>;
  761. phy-names = "pcie-phy";
  762. num-lanes = <2>;
  763. status = "disabled";
  764. };
  765. &pcie2_ep {
  766. phys = <&serdes2_pcie_link>;
  767. phy-names = "pcie-phy";
  768. num-lanes = <2>;
  769. status = "disabled";
  770. };
  771. &pcie3_rc {
  772. status = "disabled";
  773. };
  774. &pcie3_ep {
  775. status = "disabled";
  776. };
  777. &icssg0_mdio {
  778. status = "disabled";
  779. };
  780. &icssg1_mdio {
  781. status = "disabled";
  782. };
  783. &mcu_mcan0 {
  784. pinctrl-names = "default";
  785. pinctrl-0 = <&mcu_mcan0_pins_default>;
  786. phys = <&transceiver1>;
  787. };
  788. &mcu_mcan1 {
  789. pinctrl-names = "default";
  790. pinctrl-0 = <&mcu_mcan1_pins_default>;
  791. phys = <&transceiver2>;
  792. };
  793. &main_mcan0 {
  794. pinctrl-names = "default";
  795. pinctrl-0 = <&main_mcan0_pins_default>;
  796. phys = <&transceiver3>;
  797. };
  798. &main_mcan1 {
  799. status = "disabled";
  800. };
  801. &main_mcan2 {
  802. pinctrl-names = "default";
  803. pinctrl-0 = <&main_mcan2_pins_default>;
  804. phys = <&transceiver4>;
  805. };
  806. &main_mcan3 {
  807. status = "disabled";
  808. };
  809. &main_mcan4 {
  810. status = "disabled";
  811. };
  812. &main_mcan5 {
  813. status = "disabled";
  814. };
  815. &main_mcan6 {
  816. status = "disabled";
  817. };
  818. &main_mcan7 {
  819. status = "disabled";
  820. };
  821. &main_mcan8 {
  822. status = "disabled";
  823. };
  824. &main_mcan9 {
  825. status = "disabled";
  826. };
  827. &main_mcan10 {
  828. status = "disabled";
  829. };
  830. &main_mcan11 {
  831. status = "disabled";
  832. };
  833. &main_mcan12 {
  834. status = "disabled";
  835. };
  836. &main_mcan13 {
  837. status = "disabled";
  838. };