am57xx-beagle-x15-common.dtsi 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2014-2016 Texas Instruments Incorporated - https://www.ti.com/
  4. */
  5. /dts-v1/;
  6. #include "am5728.dtsi"
  7. #include "am57xx-commercial-grade.dtsi"
  8. #include "dra74x-mmc-iodelay.dtsi"
  9. #include "dra74-ipu-dsp-common.dtsi"
  10. #include <dt-bindings/gpio/gpio.h>
  11. #include <dt-bindings/interrupt-controller/irq.h>
  12. / {
  13. compatible = "ti,am572x-beagle-x15", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7";
  14. aliases {
  15. rtc0 = &mcp_rtc;
  16. rtc1 = &tps659038_rtc;
  17. rtc2 = &rtc;
  18. display0 = &hdmi0;
  19. };
  20. chosen {
  21. stdout-path = &uart3;
  22. };
  23. memory@0 {
  24. device_type = "memory";
  25. reg = <0x0 0x80000000 0x0 0x80000000>;
  26. };
  27. main_12v0: fixedregulator-main_12v0 {
  28. /* main supply */
  29. compatible = "regulator-fixed";
  30. regulator-name = "main_12v0";
  31. regulator-min-microvolt = <12000000>;
  32. regulator-max-microvolt = <12000000>;
  33. regulator-always-on;
  34. regulator-boot-on;
  35. };
  36. evm_5v0: fixedregulator-evm_5v0 {
  37. /* Output of TPS54531D */
  38. compatible = "regulator-fixed";
  39. regulator-name = "evm_5v0";
  40. regulator-min-microvolt = <5000000>;
  41. regulator-max-microvolt = <5000000>;
  42. vin-supply = <&main_12v0>;
  43. regulator-always-on;
  44. regulator-boot-on;
  45. };
  46. reserved-memory {
  47. #address-cells = <2>;
  48. #size-cells = <2>;
  49. ranges;
  50. ipu2_memory_region: ipu2-memory@95800000 {
  51. compatible = "shared-dma-pool";
  52. reg = <0x0 0x95800000 0x0 0x3800000>;
  53. reusable;
  54. status = "okay";
  55. };
  56. dsp1_memory_region: dsp1-memory@99000000 {
  57. compatible = "shared-dma-pool";
  58. reg = <0x0 0x99000000 0x0 0x4000000>;
  59. reusable;
  60. status = "okay";
  61. };
  62. ipu1_memory_region: ipu1-memory@9d000000 {
  63. compatible = "shared-dma-pool";
  64. reg = <0x0 0x9d000000 0x0 0x2000000>;
  65. reusable;
  66. status = "okay";
  67. };
  68. dsp2_memory_region: dsp2-memory@9f000000 {
  69. compatible = "shared-dma-pool";
  70. reg = <0x0 0x9f000000 0x0 0x800000>;
  71. reusable;
  72. status = "okay";
  73. };
  74. };
  75. vdd_3v3: fixedregulator-vdd_3v3 {
  76. compatible = "regulator-fixed";
  77. regulator-name = "vdd_3v3";
  78. vin-supply = <&regen1>;
  79. regulator-min-microvolt = <3300000>;
  80. regulator-max-microvolt = <3300000>;
  81. };
  82. aic_dvdd: fixedregulator-aic_dvdd {
  83. compatible = "regulator-fixed";
  84. regulator-name = "aic_dvdd_fixed";
  85. vin-supply = <&vdd_3v3>;
  86. regulator-min-microvolt = <1800000>;
  87. regulator-max-microvolt = <1800000>;
  88. };
  89. vtt_fixed: fixedregulator-vtt {
  90. /* TPS51200 */
  91. compatible = "regulator-fixed";
  92. regulator-name = "vtt_fixed";
  93. vin-supply = <&smps3_reg>;
  94. regulator-min-microvolt = <3300000>;
  95. regulator-max-microvolt = <3300000>;
  96. regulator-always-on;
  97. regulator-boot-on;
  98. enable-active-high;
  99. gpio = <&gpio7 11 GPIO_ACTIVE_HIGH>;
  100. };
  101. leds {
  102. compatible = "gpio-leds";
  103. led0 {
  104. label = "beagle-x15:usr0";
  105. gpios = <&gpio7 9 GPIO_ACTIVE_HIGH>;
  106. linux,default-trigger = "heartbeat";
  107. default-state = "off";
  108. };
  109. led1 {
  110. label = "beagle-x15:usr1";
  111. gpios = <&gpio7 8 GPIO_ACTIVE_HIGH>;
  112. linux,default-trigger = "cpu0";
  113. default-state = "off";
  114. };
  115. led2 {
  116. label = "beagle-x15:usr2";
  117. gpios = <&gpio7 14 GPIO_ACTIVE_HIGH>;
  118. linux,default-trigger = "mmc0";
  119. default-state = "off";
  120. };
  121. led3 {
  122. label = "beagle-x15:usr3";
  123. gpios = <&gpio7 15 GPIO_ACTIVE_HIGH>;
  124. linux,default-trigger = "disk-activity";
  125. default-state = "off";
  126. };
  127. };
  128. gpio_fan: gpio_fan {
  129. /* Based on 5v 500mA AFB02505HHB */
  130. compatible = "gpio-fan";
  131. gpios = <&tps659038_gpio 2 GPIO_ACTIVE_HIGH>;
  132. gpio-fan,speed-map = <0 0>,
  133. <13000 1>;
  134. #cooling-cells = <2>;
  135. };
  136. hdmi0: connector {
  137. compatible = "hdmi-connector";
  138. label = "hdmi";
  139. type = "a";
  140. port {
  141. hdmi_connector_in: endpoint {
  142. remote-endpoint = <&tpd12s015_out>;
  143. };
  144. };
  145. };
  146. tpd12s015: encoder {
  147. compatible = "ti,tpd12s015";
  148. ports {
  149. #address-cells = <1>;
  150. #size-cells = <0>;
  151. port@0 {
  152. reg = <0>;
  153. tpd12s015_in: endpoint {
  154. remote-endpoint = <&hdmi_out>;
  155. };
  156. };
  157. port@1 {
  158. reg = <1>;
  159. tpd12s015_out: endpoint {
  160. remote-endpoint = <&hdmi_connector_in>;
  161. };
  162. };
  163. };
  164. };
  165. sound0: sound0 {
  166. compatible = "simple-audio-card";
  167. simple-audio-card,name = "BeagleBoard-X15";
  168. simple-audio-card,widgets =
  169. "Line", "Line Out",
  170. "Line", "Line In";
  171. simple-audio-card,routing =
  172. "Line Out", "LLOUT",
  173. "Line Out", "RLOUT",
  174. "MIC2L", "Line In",
  175. "MIC2R", "Line In";
  176. simple-audio-card,format = "dsp_b";
  177. simple-audio-card,bitclock-master = <&sound0_master>;
  178. simple-audio-card,frame-master = <&sound0_master>;
  179. simple-audio-card,bitclock-inversion;
  180. simple-audio-card,cpu {
  181. sound-dai = <&mcasp3>;
  182. };
  183. sound0_master: simple-audio-card,codec {
  184. sound-dai = <&tlv320aic3104>;
  185. clocks = <&clkout2_clk>;
  186. };
  187. };
  188. };
  189. &i2c1 {
  190. status = "okay";
  191. clock-frequency = <400000>;
  192. tps659038: tps659038@58 {
  193. compatible = "ti,tps659038";
  194. reg = <0x58>;
  195. interrupt-parent = <&gpio1>;
  196. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  197. #interrupt-cells = <2>;
  198. interrupt-controller;
  199. ti,system-power-controller;
  200. ti,palmas-override-powerhold;
  201. tps659038_pmic {
  202. compatible = "ti,tps659038-pmic";
  203. regulators {
  204. smps12_reg: smps12 {
  205. /* VDD_MPU */
  206. regulator-name = "smps12";
  207. regulator-min-microvolt = < 850000>;
  208. regulator-max-microvolt = <1250000>;
  209. regulator-always-on;
  210. regulator-boot-on;
  211. };
  212. smps3_reg: smps3 {
  213. /* VDD_DDR */
  214. regulator-name = "smps3";
  215. regulator-min-microvolt = <1350000>;
  216. regulator-max-microvolt = <1350000>;
  217. regulator-always-on;
  218. regulator-boot-on;
  219. };
  220. smps45_reg: smps45 {
  221. /* VDD_DSPEVE, VDD_IVA, VDD_GPU */
  222. regulator-name = "smps45";
  223. regulator-min-microvolt = < 850000>;
  224. regulator-max-microvolt = <1250000>;
  225. regulator-always-on;
  226. regulator-boot-on;
  227. };
  228. smps6_reg: smps6 {
  229. /* VDD_CORE */
  230. regulator-name = "smps6";
  231. regulator-min-microvolt = <850000>;
  232. regulator-max-microvolt = <1150000>;
  233. regulator-always-on;
  234. regulator-boot-on;
  235. };
  236. /* SMPS7 unused */
  237. smps8_reg: smps8 {
  238. /* VDD_1V8 */
  239. regulator-name = "smps8";
  240. regulator-min-microvolt = <1800000>;
  241. regulator-max-microvolt = <1800000>;
  242. regulator-always-on;
  243. regulator-boot-on;
  244. };
  245. /* SMPS9 unused */
  246. ldo1_reg: ldo1 {
  247. /* VDD_SD / VDDSHV8 */
  248. regulator-name = "ldo1";
  249. regulator-min-microvolt = <1800000>;
  250. regulator-max-microvolt = <3300000>;
  251. regulator-boot-on;
  252. regulator-always-on;
  253. };
  254. ldo2_reg: ldo2 {
  255. /* VDD_SHV5 */
  256. regulator-name = "ldo2";
  257. regulator-min-microvolt = <3300000>;
  258. regulator-max-microvolt = <3300000>;
  259. regulator-always-on;
  260. regulator-boot-on;
  261. };
  262. ldo3_reg: ldo3 {
  263. /* VDDA_1V8_PHYA */
  264. regulator-name = "ldo3";
  265. regulator-min-microvolt = <1800000>;
  266. regulator-max-microvolt = <1800000>;
  267. regulator-always-on;
  268. regulator-boot-on;
  269. };
  270. ldo4_reg: ldo4 {
  271. /* VDDA_1V8_PHYB */
  272. regulator-name = "ldo4";
  273. regulator-min-microvolt = <1800000>;
  274. regulator-max-microvolt = <1800000>;
  275. regulator-always-on;
  276. regulator-boot-on;
  277. };
  278. ldo9_reg: ldo9 {
  279. /* VDD_RTC */
  280. regulator-name = "ldo9";
  281. regulator-min-microvolt = <1050000>;
  282. regulator-max-microvolt = <1050000>;
  283. regulator-always-on;
  284. regulator-boot-on;
  285. };
  286. ldoln_reg: ldoln {
  287. /* VDDA_1V8_PLL */
  288. regulator-name = "ldoln";
  289. regulator-min-microvolt = <1800000>;
  290. regulator-max-microvolt = <1800000>;
  291. regulator-always-on;
  292. regulator-boot-on;
  293. };
  294. ldousb_reg: ldousb {
  295. /* VDDA_3V_USB: VDDA_USBHS33 */
  296. regulator-name = "ldousb";
  297. regulator-min-microvolt = <3300000>;
  298. regulator-max-microvolt = <3300000>;
  299. regulator-boot-on;
  300. };
  301. regen1: regen1 {
  302. /* VDD_3V3_ON */
  303. regulator-name = "regen1";
  304. regulator-boot-on;
  305. regulator-always-on;
  306. };
  307. };
  308. };
  309. tps659038_rtc: tps659038_rtc {
  310. compatible = "ti,palmas-rtc";
  311. interrupt-parent = <&tps659038>;
  312. interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
  313. wakeup-source;
  314. };
  315. tps659038_pwr_button: tps659038_pwr_button {
  316. compatible = "ti,palmas-pwrbutton";
  317. interrupt-parent = <&tps659038>;
  318. interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
  319. wakeup-source;
  320. ti,palmas-long-press-seconds = <12>;
  321. };
  322. tps659038_gpio: tps659038_gpio {
  323. compatible = "ti,palmas-gpio";
  324. gpio-controller;
  325. #gpio-cells = <2>;
  326. };
  327. extcon_usb2: tps659038_usb {
  328. compatible = "ti,palmas-usb-vid";
  329. ti,enable-vbus-detection;
  330. vbus-gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>;
  331. };
  332. };
  333. tmp102: tmp102@48 {
  334. compatible = "ti,tmp102";
  335. reg = <0x48>;
  336. interrupt-parent = <&gpio7>;
  337. interrupts = <16 IRQ_TYPE_LEVEL_LOW>;
  338. #thermal-sensor-cells = <1>;
  339. };
  340. tlv320aic3104: tlv320aic3104@18 {
  341. #sound-dai-cells = <0>;
  342. compatible = "ti,tlv320aic3104";
  343. reg = <0x18>;
  344. assigned-clocks = <&clkoutmux2_clk_mux>;
  345. assigned-clock-parents = <&sys_clk2_dclk_div>;
  346. status = "okay";
  347. adc-settle-ms = <40>;
  348. AVDD-supply = <&vdd_3v3>;
  349. IOVDD-supply = <&vdd_3v3>;
  350. DRVDD-supply = <&vdd_3v3>;
  351. DVDD-supply = <&aic_dvdd>;
  352. };
  353. eeprom: eeprom@50 {
  354. compatible = "atmel,24c32";
  355. reg = <0x50>;
  356. };
  357. };
  358. &i2c3 {
  359. status = "okay";
  360. clock-frequency = <400000>;
  361. mcp_rtc: rtc@6f {
  362. compatible = "microchip,mcp7941x";
  363. reg = <0x6f>;
  364. interrupts-extended = <&crossbar_mpu GIC_SPI 2 IRQ_TYPE_EDGE_RISING>,
  365. <&dra7_pmx_core 0x424>;
  366. interrupt-names = "irq", "wakeup";
  367. vcc-supply = <&vdd_3v3>;
  368. wakeup-source;
  369. };
  370. };
  371. &gpio7_target {
  372. ti,no-reset-on-init;
  373. ti,no-idle-on-init;
  374. };
  375. &cpu0 {
  376. vdd-supply = <&smps12_reg>;
  377. voltage-tolerance = <1>;
  378. };
  379. &uart3 {
  380. status = "okay";
  381. interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
  382. <&dra7_pmx_core 0x3f8>;
  383. };
  384. &davinci_mdio_sw {
  385. phy0: ethernet-phy@1 {
  386. reg = <1>;
  387. };
  388. phy1: ethernet-phy@2 {
  389. reg = <2>;
  390. };
  391. };
  392. &mac_sw {
  393. status = "okay";
  394. };
  395. &cpsw_port1 {
  396. phy-handle = <&phy0>;
  397. phy-mode = "rgmii-rxid";
  398. ti,dual-emac-pvid = <1>;
  399. };
  400. &cpsw_port2 {
  401. phy-handle = <&phy1>;
  402. phy-mode = "rgmii-rxid";
  403. ti,dual-emac-pvid = <2>;
  404. };
  405. &mmc1 {
  406. status = "okay";
  407. pinctrl-names = "default";
  408. pinctrl-0 = <&mmc1_pins_default>;
  409. bus-width = <4>;
  410. cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
  411. no-1-8-v;
  412. };
  413. &mmc2 {
  414. status = "okay";
  415. pinctrl-names = "default";
  416. pinctrl-0 = <&mmc2_pins_default>;
  417. vmmc-supply = <&vdd_3v3>;
  418. vqmmc-supply = <&vdd_3v3>;
  419. bus-width = <8>;
  420. non-removable;
  421. no-1-8-v;
  422. };
  423. &sata {
  424. status = "okay";
  425. };
  426. &usb2_phy1 {
  427. phy-supply = <&ldousb_reg>;
  428. };
  429. &usb2_phy2 {
  430. phy-supply = <&ldousb_reg>;
  431. };
  432. &usb1 {
  433. dr_mode = "host";
  434. };
  435. &omap_dwc3_2 {
  436. extcon = <&extcon_usb2>;
  437. };
  438. &usb2 {
  439. /*
  440. * Stand alone usage is peripheral only.
  441. * However, with some resistor modifications
  442. * this port can be used via expansion connectors
  443. * as "host" or "dual-role". If so, provide
  444. * the necessary dr_mode override in the expansion
  445. * board's DT.
  446. */
  447. dr_mode = "peripheral";
  448. };
  449. &cpu_trips {
  450. cpu_alert1: cpu_alert1 {
  451. temperature = <50000>; /* millicelsius */
  452. hysteresis = <2000>; /* millicelsius */
  453. type = "active";
  454. };
  455. };
  456. &cpu_cooling_maps {
  457. map1 {
  458. trip = <&cpu_alert1>;
  459. cooling-device = <&gpio_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  460. };
  461. };
  462. &thermal_zones {
  463. board_thermal: board_thermal {
  464. polling-delay-passive = <1250>; /* milliseconds */
  465. polling-delay = <1500>; /* milliseconds */
  466. /* sensor ID */
  467. thermal-sensors = <&tmp102 0>;
  468. board_trips: trips {
  469. board_alert0: board_alert {
  470. temperature = <40000>; /* millicelsius */
  471. hysteresis = <2000>; /* millicelsius */
  472. type = "active";
  473. };
  474. board_crit: board_crit {
  475. temperature = <105000>; /* millicelsius */
  476. hysteresis = <0>; /* millicelsius */
  477. type = "critical";
  478. };
  479. };
  480. board_cooling_maps: cooling-maps {
  481. map0 {
  482. trip = <&board_alert0>;
  483. cooling-device =
  484. <&gpio_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
  485. };
  486. };
  487. };
  488. };
  489. &dss {
  490. status = "okay";
  491. vdda_video-supply = <&ldoln_reg>;
  492. };
  493. &hdmi {
  494. status = "okay";
  495. vdda-supply = <&ldo4_reg>;
  496. port {
  497. hdmi_out: endpoint {
  498. remote-endpoint = <&tpd12s015_in>;
  499. };
  500. };
  501. };
  502. &pcie1_rc {
  503. status = "okay";
  504. gpios = <&gpio2 8 GPIO_ACTIVE_LOW>;
  505. };
  506. &mcasp3 {
  507. #sound-dai-cells = <0>;
  508. assigned-clocks = <&l4per2_clkctrl DRA7_L4PER2_MCASP3_CLKCTRL 24>;
  509. assigned-clock-parents = <&sys_clkin2>;
  510. status = "okay";
  511. op-mode = <0>; /* MCASP_IIS_MODE */
  512. tdm-slots = <2>;
  513. /* 4 serializers */
  514. serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
  515. 1 2 0 0
  516. >;
  517. tx-num-evt = <32>;
  518. rx-num-evt = <32>;
  519. };
  520. &ipu2 {
  521. status = "okay";
  522. memory-region = <&ipu2_memory_region>;
  523. };
  524. &ipu1 {
  525. status = "okay";
  526. memory-region = <&ipu1_memory_region>;
  527. };
  528. &dsp1 {
  529. status = "okay";
  530. memory-region = <&dsp1_memory_region>;
  531. };
  532. &dsp2 {
  533. status = "okay";
  534. memory-region = <&dsp2_memory_region>;
  535. };
  536. &pruss1_mdio {
  537. status = "disabled";
  538. };
  539. &pruss2_mdio {
  540. status = "disabled";
  541. };