omap3-beagle.dts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
  4. */
  5. /dts-v1/;
  6. #include "omap34xx.dtsi"
  7. / {
  8. model = "TI OMAP3 BeagleBoard";
  9. compatible = "ti,omap3-beagle", "ti,omap3430", "ti,omap3";
  10. cpus {
  11. cpu@0 {
  12. cpu0-supply = <&vcc>;
  13. };
  14. };
  15. memory@80000000 {
  16. device_type = "memory";
  17. reg = <0x80000000 0x10000000>; /* 256 MB */
  18. };
  19. aliases {
  20. display0 = &dvi0;
  21. display1 = &tv0;
  22. };
  23. leds {
  24. compatible = "gpio-leds";
  25. pmu_stat {
  26. label = "beagleboard::pmu_stat";
  27. gpios = <&twl_gpio 19 GPIO_ACTIVE_HIGH>; /* LEDB */
  28. };
  29. heartbeat {
  30. label = "beagleboard::usr0";
  31. gpios = <&gpio5 22 GPIO_ACTIVE_HIGH>; /* 150 -> D6 LED */
  32. linux,default-trigger = "heartbeat";
  33. };
  34. mmc {
  35. label = "beagleboard::usr1";
  36. gpios = <&gpio5 21 GPIO_ACTIVE_HIGH>; /* 149 -> D7 LED */
  37. linux,default-trigger = "mmc0";
  38. };
  39. };
  40. /* HS USB Port 2 Power */
  41. hsusb2_power: hsusb2_power_reg {
  42. compatible = "regulator-fixed";
  43. regulator-name = "hsusb2_vbus";
  44. regulator-min-microvolt = <3300000>;
  45. regulator-max-microvolt = <3300000>;
  46. gpio = <&twl_gpio 18 GPIO_ACTIVE_HIGH>; /* GPIO LEDA */
  47. startup-delay-us = <70000>;
  48. };
  49. /* HS USB Host PHY on PORT 2 */
  50. hsusb2_phy: hsusb2_phy {
  51. compatible = "usb-nop-xceiv";
  52. reset-gpios = <&gpio5 19 GPIO_ACTIVE_LOW>; /* gpio_147 */
  53. vcc-supply = <&hsusb2_power>;
  54. #phy-cells = <0>;
  55. };
  56. sound {
  57. compatible = "ti,omap-twl4030";
  58. ti,model = "omap3beagle";
  59. ti,mcbsp = <&mcbsp2>;
  60. };
  61. gpio_keys {
  62. compatible = "gpio-keys";
  63. user {
  64. label = "user";
  65. gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
  66. linux,code = <0x114>;
  67. wakeup-source;
  68. };
  69. };
  70. tfp410: encoder0 {
  71. compatible = "ti,tfp410";
  72. powerdown-gpios = <&gpio6 10 GPIO_ACTIVE_LOW>; /* gpio_170 */
  73. pinctrl-names = "default";
  74. pinctrl-0 = <&tfp410_pins>;
  75. ports {
  76. #address-cells = <1>;
  77. #size-cells = <0>;
  78. port@0 {
  79. reg = <0>;
  80. tfp410_in: endpoint {
  81. remote-endpoint = <&dpi_out>;
  82. };
  83. };
  84. port@1 {
  85. reg = <1>;
  86. tfp410_out: endpoint {
  87. remote-endpoint = <&dvi_connector_in>;
  88. };
  89. };
  90. };
  91. };
  92. dvi0: connector0 {
  93. compatible = "dvi-connector";
  94. label = "dvi";
  95. digital;
  96. ddc-i2c-bus = <&i2c3>;
  97. port {
  98. dvi_connector_in: endpoint {
  99. remote-endpoint = <&tfp410_out>;
  100. };
  101. };
  102. };
  103. tv0: connector1 {
  104. compatible = "svideo-connector";
  105. label = "tv";
  106. port {
  107. tv_connector_in: endpoint {
  108. remote-endpoint = <&venc_out>;
  109. };
  110. };
  111. };
  112. etb@540000000 {
  113. compatible = "arm,coresight-etb10", "arm,primecell";
  114. reg = <0x5401b000 0x1000>;
  115. clocks = <&emu_src_ck>;
  116. clock-names = "apb_pclk";
  117. in-ports {
  118. port {
  119. etb_in: endpoint {
  120. remote-endpoint = <&etm_out>;
  121. };
  122. };
  123. };
  124. };
  125. etm@54010000 {
  126. compatible = "arm,coresight-etm3x", "arm,primecell";
  127. reg = <0x54010000 0x1000>;
  128. clocks = <&emu_src_ck>;
  129. clock-names = "apb_pclk";
  130. out-ports {
  131. port {
  132. etm_out: endpoint {
  133. remote-endpoint = <&etb_in>;
  134. };
  135. };
  136. };
  137. };
  138. };
  139. &omap3_pmx_wkup {
  140. gpio1_pins: pinmux_gpio1_pins {
  141. pinctrl-single,pins = <
  142. OMAP3_WKUP_IOPAD(0x2a14, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE4) /* sys_boot5.gpio_7 */
  143. >;
  144. };
  145. };
  146. &omap3_pmx_core {
  147. pinctrl-names = "default";
  148. pinctrl-0 = <
  149. &hsusb2_pins
  150. >;
  151. hsusb2_pins: pinmux_hsusb2_pins {
  152. pinctrl-single,pins = <
  153. OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
  154. OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
  155. OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
  156. OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
  157. OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
  158. OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
  159. >;
  160. };
  161. uart3_pins: pinmux_uart3_pins {
  162. pinctrl-single,pins = <
  163. OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
  164. OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
  165. >;
  166. };
  167. tfp410_pins: pinmux_tfp410_pins {
  168. pinctrl-single,pins = <
  169. OMAP3_CORE1_IOPAD(0x21c6, PIN_OUTPUT | MUX_MODE4) /* hdq_sio.gpio_170 */
  170. >;
  171. };
  172. dss_dpi_pins: pinmux_dss_dpi_pins {
  173. pinctrl-single,pins = <
  174. OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
  175. OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
  176. OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
  177. OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
  178. OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
  179. OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
  180. OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
  181. OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
  182. OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
  183. OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
  184. OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
  185. OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
  186. OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
  187. OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
  188. OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
  189. OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
  190. OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
  191. OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
  192. OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
  193. OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
  194. OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */
  195. OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */
  196. OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */
  197. OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */
  198. OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */
  199. OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */
  200. OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */
  201. OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */
  202. >;
  203. };
  204. };
  205. &omap3_pmx_core2 {
  206. pinctrl-names = "default";
  207. pinctrl-0 = <
  208. &hsusb2_2_pins
  209. >;
  210. hsusb2_2_pins: pinmux_hsusb2_2_pins {
  211. pinctrl-single,pins = <
  212. OMAP3430_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */
  213. OMAP3430_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */
  214. OMAP3430_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */
  215. OMAP3430_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */
  216. OMAP3430_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */
  217. OMAP3430_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */
  218. >;
  219. };
  220. };
  221. &i2c1 {
  222. clock-frequency = <2600000>;
  223. twl: twl@48 {
  224. reg = <0x48>;
  225. interrupts = <7>; /* SYS_NIRQ cascaded to intc */
  226. interrupt-parent = <&intc>;
  227. twl_audio: audio {
  228. compatible = "ti,twl4030-audio";
  229. codec {
  230. };
  231. };
  232. };
  233. };
  234. #include "twl4030.dtsi"
  235. #include "twl4030_omap3.dtsi"
  236. &i2c3 {
  237. clock-frequency = <100000>;
  238. };
  239. &mmc1 {
  240. vmmc-supply = <&vmmc1>;
  241. vqmmc-supply = <&vsim>;
  242. bus-width = <8>;
  243. };
  244. &mmc2 {
  245. status = "disabled";
  246. };
  247. &mmc3 {
  248. status = "disabled";
  249. };
  250. &usbhshost {
  251. port2-mode = "ehci-phy";
  252. };
  253. &usbhsehci {
  254. phys = <0 &hsusb2_phy>;
  255. };
  256. &twl_gpio {
  257. ti,use-leds;
  258. /* pullups: BIT(1) */
  259. ti,pullups = <0x000002>;
  260. /*
  261. * pulldowns:
  262. * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13)
  263. * BIT(15), BIT(16), BIT(17)
  264. */
  265. ti,pulldowns = <0x03a1c4>;
  266. };
  267. &uart3 {
  268. pinctrl-names = "default";
  269. pinctrl-0 = <&uart3_pins>;
  270. interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
  271. };
  272. &gpio1 {
  273. pinctrl-names = "default";
  274. pinctrl-0 = <&gpio1_pins>;
  275. };
  276. &usb_otg_hs {
  277. interface-type = <0>;
  278. usb-phy = <&usb2_phy>;
  279. phys = <&usb2_phy>;
  280. phy-names = "usb2-phy";
  281. mode = <3>;
  282. power = <50>;
  283. };
  284. &vaux2 {
  285. regulator-name = "vdd_ehci";
  286. regulator-min-microvolt = <1800000>;
  287. regulator-max-microvolt = <1800000>;
  288. regulator-always-on;
  289. };
  290. &mcbsp2 {
  291. status = "okay";
  292. };
  293. /* Needed to power the DPI pins */
  294. &vpll2 {
  295. regulator-always-on;
  296. };
  297. &dss {
  298. status = "okay";
  299. pinctrl-names = "default";
  300. pinctrl-0 = <&dss_dpi_pins>;
  301. port {
  302. dpi_out: endpoint {
  303. remote-endpoint = <&tfp410_in>;
  304. data-lines = <24>;
  305. };
  306. };
  307. };
  308. &venc {
  309. status = "okay";
  310. vdda-supply = <&vdac>;
  311. port {
  312. venc_out: endpoint {
  313. remote-endpoint = <&tv_connector_in>;
  314. ti,channels = <2>;
  315. };
  316. };
  317. };
  318. &gpmc {
  319. status = "okay";
  320. ranges = <0 0 0x30000000 0x1000000>; /* CS0 space, 16MB */
  321. /* Chip select 0 */
  322. nand@0,0 {
  323. compatible = "ti,omap2-nand";
  324. reg = <0 0 4>; /* NAND I/O window, 4 bytes */
  325. interrupt-parent = <&gpmc>;
  326. interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
  327. <1 IRQ_TYPE_NONE>; /* termcount */
  328. ti,nand-ecc-opt = "ham1";
  329. rb-gpios = <&gpmc 0 GPIO_ACTIVE_HIGH>; /* gpmc_wait0 */
  330. nand-bus-width = <16>;
  331. #address-cells = <1>;
  332. #size-cells = <1>;
  333. gpmc,device-width = <2>;
  334. gpmc,cs-on-ns = <0>;
  335. gpmc,cs-rd-off-ns = <36>;
  336. gpmc,cs-wr-off-ns = <36>;
  337. gpmc,adv-on-ns = <6>;
  338. gpmc,adv-rd-off-ns = <24>;
  339. gpmc,adv-wr-off-ns = <36>;
  340. gpmc,oe-on-ns = <6>;
  341. gpmc,oe-off-ns = <48>;
  342. gpmc,we-on-ns = <6>;
  343. gpmc,we-off-ns = <30>;
  344. gpmc,rd-cycle-ns = <72>;
  345. gpmc,wr-cycle-ns = <72>;
  346. gpmc,access-ns = <54>;
  347. gpmc,wr-access-ns = <30>;
  348. partition@0 {
  349. label = "X-Loader";
  350. reg = <0 0x80000>;
  351. };
  352. partition@80000 {
  353. label = "U-Boot";
  354. reg = <0x80000 0x1e0000>;
  355. };
  356. partition@1c0000 {
  357. label = "U-Boot Env";
  358. reg = <0x260000 0x20000>;
  359. };
  360. partition@280000 {
  361. label = "Kernel";
  362. reg = <0x280000 0x400000>;
  363. };
  364. partition@780000 {
  365. label = "Filesystem";
  366. reg = <0x680000 0xf980000>;
  367. };
  368. };
  369. };