omap3-lilly-a83x.dtsi 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright (C) 2014 Christoph Fritz <[email protected]>
  4. */
  5. #include "omap36xx.dtsi"
  6. / {
  7. model = "INCOstartec LILLY-A83X module (DM3730)";
  8. compatible = "incostartec,omap3-lilly-a83x", "ti,omap3630", "ti,omap36xx", "ti,omap3";
  9. chosen {
  10. bootargs = "console=ttyO0,115200n8 vt.global_cursor_default=0 consoleblank=0";
  11. };
  12. memory@80000000 {
  13. device_type = "memory";
  14. reg = <0x80000000 0x8000000>; /* 128 MB */
  15. };
  16. leds {
  17. compatible = "gpio-leds";
  18. led1 {
  19. label = "lilly-a83x::led1";
  20. gpios = <&gpio1 29 GPIO_ACTIVE_LOW>;
  21. linux,default-trigger = "default-on";
  22. };
  23. };
  24. sound {
  25. compatible = "ti,omap-twl4030";
  26. ti,model = "lilly-a83x";
  27. ti,mcbsp = <&mcbsp2>;
  28. };
  29. reg_vcc3: vcc3 {
  30. compatible = "regulator-fixed";
  31. regulator-name = "VCC3";
  32. regulator-min-microvolt = <3300000>;
  33. regulator-max-microvolt = <3300000>;
  34. regulator-always-on;
  35. };
  36. hsusb1_phy: hsusb1_phy {
  37. compatible = "usb-nop-xceiv";
  38. vcc-supply = <&reg_vcc3>;
  39. #phy-cells = <0>;
  40. };
  41. };
  42. &omap3_pmx_wkup {
  43. pinctrl-names = "default";
  44. lan9221_pins: pinmux_lan9221_pins {
  45. pinctrl-single,pins = <
  46. OMAP3_WKUP_IOPAD(0x2a5a, PIN_INPUT | MUX_MODE4) /* reserved.gpio_129 */
  47. >;
  48. };
  49. tsc2048_pins: pinmux_tsc2048_pins {
  50. pinctrl-single,pins = <
  51. OMAP3_WKUP_IOPAD(0x2a16, PIN_INPUT_PULLUP | MUX_MODE4) /* sys_boot6.gpio_8 */
  52. >;
  53. };
  54. mmc1cd_pins: pinmux_mmc1cd_pins {
  55. pinctrl-single,pins = <
  56. OMAP3_WKUP_IOPAD(0x2a56, PIN_INPUT | MUX_MODE4) /* reserved.gpio_126 */
  57. >;
  58. };
  59. };
  60. &omap3_pmx_core {
  61. pinctrl-names = "default";
  62. uart1_pins: pinmux_uart1_pins {
  63. pinctrl-single,pins = <
  64. OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_tx */
  65. OMAP3_CORE1_IOPAD(0x217e, PIN_OUTPUT | MUX_MODE0) /* uart1_rts.uart1_rts */
  66. OMAP3_CORE1_IOPAD(0x2180, PIN_INPUT | MUX_MODE0) /* uart1_cts.uart1_cts */
  67. OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | MUX_MODE0) /* uart1_rx.uart1_rx */
  68. >;
  69. };
  70. uart2_pins: pinmux_uart2_pins {
  71. pinctrl-single,pins = <
  72. OMAP3_CORE1_IOPAD(0x2170, PIN_OUTPUT | MUX_MODE1) /* mcbsp3_clkx.uart2_tx */
  73. OMAP3_CORE1_IOPAD(0x2172, PIN_INPUT | MUX_MODE1) /* mcbsp3_fsx.uart2_rx */
  74. >;
  75. };
  76. uart3_pins: pinmux_uart3_pins {
  77. pinctrl-single,pins = <
  78. OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
  79. OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
  80. >;
  81. };
  82. i2c1_pins: pinmux_i2c1_pins {
  83. pinctrl-single,pins = <
  84. OMAP3_CORE1_IOPAD(0x21ba ,PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl.i2c1_scl */
  85. OMAP3_CORE1_IOPAD(0x21bc ,PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda.i2c1_sda */
  86. >;
  87. };
  88. i2c2_pins: pinmux_i2c2_pins {
  89. pinctrl-single,pins = <
  90. OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT | MUX_MODE0) /* i2c2_scl.i2c2_scl */
  91. OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT | MUX_MODE0) /* i2c2_sda.i2c2_sda */
  92. >;
  93. };
  94. i2c3_pins: pinmux_i2c3_pins {
  95. pinctrl-single,pins = <
  96. OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0) /* i2c3_scl.i2c3_scl */
  97. OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0) /* i2c3_sda.i2c3_sda */
  98. >;
  99. };
  100. hsusb1_pins: pinmux_hsusb1_pins {
  101. pinctrl-single,pins = <
  102. /* GPIO 182 controls USB-Hub reset. But USB-Phy its
  103. * reset can't be controlled. So we clamp this GPIO to
  104. * high (PIN_OFF_OUTPUT_HIGH) to always enable USB-Hub.
  105. */
  106. OMAP3_CORE1_IOPAD(0x21de, PIN_OUTPUT_PULLUP | PIN_OFF_OUTPUT_HIGH | MUX_MODE4) /* mcspi2_cs1.gpio_182 */
  107. >;
  108. };
  109. hsusb_otg_pins: pinmux_hsusb_otg_pins {
  110. pinctrl-single,pins = <
  111. OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0) /* hsusb0_clk.hsusb0_clk */
  112. OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0) /* hsusb0_stp.hsusb0_stp */
  113. OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0) /* hsusb0_dir.hsusb0_dir */
  114. OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0) /* hsusb0_nxt.hsusb0_nxt */
  115. OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0) /* hsusb0_data0.hsusb0_data0 */
  116. OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0) /* hsusb0_data1.hsusb0_data1 */
  117. OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0) /* hsusb0_data2.hsusb0_data2 */
  118. OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0) /* hsusb0_data3.hsusb0_data3 */
  119. OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0) /* hsusb0_data4.hsusb0_data4 */
  120. OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0) /* hsusb0_data5.hsusb0_data5 */
  121. OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0) /* hsusb0_data6.hsusb0_data6 */
  122. OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0) /* hsusb0_data7.hsusb0_data7 */
  123. >;
  124. };
  125. mmc1_pins: pinmux_mmc1_pins {
  126. pinctrl-single,pins = <
  127. OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
  128. OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
  129. OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
  130. OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
  131. OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
  132. OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
  133. >;
  134. };
  135. spi2_pins: pinmux_spi2_pins {
  136. pinctrl-single,pins = <
  137. OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcspi2_clk.mcspi2_clk */
  138. OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcspi2_simo.mcspi2_simo */
  139. OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE0) /* mcspi2_somi.mcspi2_somi */
  140. OMAP3_CORE1_IOPAD(0x21dc, PIN_OUTPUT | MUX_MODE0) /* mcspi2_cs0.mcspi2_cs0 */
  141. >;
  142. };
  143. };
  144. &omap3_pmx_core2 {
  145. pinctrl-names = "default";
  146. hsusb1_2_pins: pinmux_hsusb1_2_pins {
  147. pinctrl-single,pins = <
  148. OMAP3630_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE3) /* etk_clk.hsusb1_stp */
  149. OMAP3630_CORE2_IOPAD(0x25da, PIN_INPUT | MUX_MODE3) /* etk_ctl.hsusb1_clk */
  150. OMAP3630_CORE2_IOPAD(0x25dc, PIN_INPUT | MUX_MODE3) /* etk_d0.hsusb1_data0 */
  151. OMAP3630_CORE2_IOPAD(0x25de, PIN_INPUT | MUX_MODE3) /* etk_d1.hsusb1_data1 */
  152. OMAP3630_CORE2_IOPAD(0x25e0, PIN_INPUT | MUX_MODE3) /* etk_d2.hsusb1_data2 */
  153. OMAP3630_CORE2_IOPAD(0x25e2, PIN_INPUT | MUX_MODE3) /* etk_d3.hsusb1_data7 */
  154. OMAP3630_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE3) /* etk_d4.hsusb1_data4 */
  155. OMAP3630_CORE2_IOPAD(0x25e6, PIN_INPUT | MUX_MODE3) /* etk_d5.hsusb1_data5 */
  156. OMAP3630_CORE2_IOPAD(0x25e8, PIN_INPUT | MUX_MODE3) /* etk_d6.hsusb1_data6 */
  157. OMAP3630_CORE2_IOPAD(0x25ea, PIN_INPUT | MUX_MODE3) /* etk_d7.hsusb1_data3 */
  158. OMAP3630_CORE2_IOPAD(0x25ec, PIN_INPUT | MUX_MODE3) /* etk_d8.hsusb1_dir */
  159. OMAP3630_CORE2_IOPAD(0x25ee, PIN_INPUT | MUX_MODE3) /* etk_d9.hsusb1_nxt */
  160. >;
  161. };
  162. gpio1_pins: pinmux_gpio1_pins {
  163. pinctrl-single,pins = <
  164. OMAP3630_CORE2_IOPAD(0x25fa, PIN_OUTPUT_PULLDOWN | MUX_MODE4) /* etk_d15.gpio_29 */
  165. >;
  166. };
  167. };
  168. &gpio1 {
  169. pinctrl-names = "default";
  170. pinctrl-0 = <&gpio1_pins>;
  171. };
  172. &gpio6 {
  173. pinctrl-names = "default";
  174. pinctrl-0 = <&hsusb1_pins>;
  175. };
  176. &i2c1 {
  177. clock-frequency = <2600000>;
  178. pinctrl-names = "default";
  179. pinctrl-0 = <&i2c1_pins>;
  180. twl: twl@48 {
  181. reg = <0x48>;
  182. interrupts = <7>; /* SYS_NIRQ cascaded to intc */
  183. interrupt-parent = <&intc>;
  184. twl_audio: audio {
  185. compatible = "ti,twl4030-audio";
  186. codec {
  187. };
  188. };
  189. };
  190. };
  191. #include "twl4030.dtsi"
  192. #include "twl4030_omap3.dtsi"
  193. &twl {
  194. vmmc1: regulator-vmmc1 {
  195. regulator-always-on;
  196. };
  197. vdd1: regulator-vdd1 {
  198. regulator-always-on;
  199. };
  200. vdd2: regulator-vdd2 {
  201. regulator-always-on;
  202. };
  203. };
  204. &i2c2 {
  205. clock-frequency = <2600000>;
  206. pinctrl-names = "default";
  207. pinctrl-0 = <&i2c2_pins>;
  208. };
  209. &i2c3 {
  210. clock-frequency = <2600000>;
  211. pinctrl-names = "default";
  212. pinctrl-0 = <&i2c3_pins>;
  213. gpiom1: gpio@20 {
  214. compatible = "microchip,mcp23017";
  215. gpio-controller;
  216. #gpio-cells = <2>;
  217. reg = <0x20>;
  218. };
  219. };
  220. &uart1 {
  221. pinctrl-names = "default";
  222. pinctrl-0 = <&uart1_pins>;
  223. };
  224. &uart2 {
  225. pinctrl-names = "default";
  226. pinctrl-0 = <&uart2_pins>;
  227. };
  228. &uart3 {
  229. pinctrl-names = "default";
  230. pinctrl-0 = <&uart3_pins>;
  231. };
  232. &uart4 {
  233. status = "disabled";
  234. };
  235. &mmc1 {
  236. cd-gpios = <&gpio4 30 GPIO_ACTIVE_LOW>;
  237. cd-inverted;
  238. vmmc-supply = <&vmmc1>;
  239. bus-width = <4>;
  240. pinctrl-names = "default";
  241. pinctrl-0 = <&mmc1_pins &mmc1cd_pins>;
  242. cap-sdio-irq;
  243. cap-sd-highspeed;
  244. cap-mmc-highspeed;
  245. };
  246. &mmc2 {
  247. status = "disabled";
  248. };
  249. &mmc3 {
  250. status = "disabled";
  251. };
  252. &mcspi2 {
  253. status = "okay";
  254. pinctrl-names = "default";
  255. pinctrl-0 = <&spi2_pins>;
  256. tsc2046@0 {
  257. reg = <0>; /* CS0 */
  258. compatible = "ti,tsc2046";
  259. interrupt-parent = <&gpio1>;
  260. interrupts = <8 0>; /* boot6 / gpio_8 */
  261. spi-max-frequency = <1000000>;
  262. pendown-gpio = <&gpio1 8 GPIO_ACTIVE_LOW>;
  263. vcc-supply = <&reg_vcc3>;
  264. pinctrl-names = "default";
  265. pinctrl-0 = <&tsc2048_pins>;
  266. ti,x-min = /bits/ 16 <300>;
  267. ti,x-max = /bits/ 16 <3000>;
  268. ti,y-min = /bits/ 16 <600>;
  269. ti,y-max = /bits/ 16 <3600>;
  270. ti,x-plate-ohms = /bits/ 16 <80>;
  271. ti,pressure-max = /bits/ 16 <255>;
  272. ti,swap-xy;
  273. wakeup-source;
  274. };
  275. };
  276. &usbhsehci {
  277. phys = <&hsusb1_phy>;
  278. };
  279. &usbhshost {
  280. pinctrl-names = "default";
  281. pinctrl-0 = <&hsusb1_2_pins>;
  282. num-ports = <2>;
  283. port1-mode = "ehci-phy";
  284. };
  285. &usb_otg_hs {
  286. pinctrl-names = "default";
  287. pinctrl-0 = <&hsusb_otg_pins>;
  288. interface-type = <0>;
  289. usb-phy = <&usb2_phy>;
  290. phys = <&usb2_phy>;
  291. phy-names = "usb2-phy";
  292. mode = <3>;
  293. power = <50>;
  294. };
  295. &mcbsp2 {
  296. status = "okay";
  297. };
  298. &gpmc {
  299. ranges = <0 0 0x30000000 0x1000000>,
  300. <7 0 0x15000000 0x01000000>;
  301. nand@0,0 {
  302. compatible = "ti,omap2-nand";
  303. reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
  304. interrupt-parent = <&gpmc>;
  305. interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
  306. <1 IRQ_TYPE_NONE>; /* termcount */
  307. nand-bus-width = <16>;
  308. ti,nand-ecc-opt = "bch8";
  309. /* no elm on omap3 */
  310. gpmc,mux-add-data = <0>;
  311. gpmc,device-width = <2>;
  312. gpmc,wait-pin = <0>;
  313. gpmc,wait-monitoring-ns = <0>;
  314. gpmc,burst-length = <4>;
  315. gpmc,cs-on-ns = <0>;
  316. gpmc,cs-rd-off-ns = <100>;
  317. gpmc,cs-wr-off-ns = <100>;
  318. gpmc,adv-on-ns = <0>;
  319. gpmc,adv-rd-off-ns = <100>;
  320. gpmc,adv-wr-off-ns = <100>;
  321. gpmc,oe-on-ns = <5>;
  322. gpmc,oe-off-ns = <75>;
  323. gpmc,we-on-ns = <5>;
  324. gpmc,we-off-ns = <75>;
  325. gpmc,rd-cycle-ns = <100>;
  326. gpmc,wr-cycle-ns = <100>;
  327. gpmc,access-ns = <60>;
  328. gpmc,page-burst-access-ns = <5>;
  329. gpmc,bus-turnaround-ns = <0>;
  330. gpmc,cycle2cycle-samecsen;
  331. gpmc,cycle2cycle-delay-ns = <50>;
  332. gpmc,wr-data-mux-bus-ns = <75>;
  333. gpmc,wr-access-ns = <155>;
  334. #address-cells = <1>;
  335. #size-cells = <1>;
  336. partition@0 {
  337. label = "MLO";
  338. reg = <0 0x80000>;
  339. };
  340. partition@80000 {
  341. label = "u-boot";
  342. reg = <0x80000 0x1e0000>;
  343. };
  344. partition@260000 {
  345. label = "u-boot-environment";
  346. reg = <0x260000 0x20000>;
  347. };
  348. partition@280000 {
  349. label = "kernel";
  350. reg = <0x280000 0x500000>;
  351. };
  352. partition@780000 {
  353. label = "filesystem";
  354. reg = <0x780000 0xf880000>;
  355. };
  356. };
  357. ethernet@7,0 {
  358. compatible = "smsc,lan9221", "smsc,lan9115";
  359. bank-width = <2>;
  360. gpmc,mux-add-data = <2>;
  361. gpmc,cs-on-ns = <10>;
  362. gpmc,cs-rd-off-ns = <60>;
  363. gpmc,cs-wr-off-ns = <60>;
  364. gpmc,adv-on-ns = <0>;
  365. gpmc,adv-rd-off-ns = <10>;
  366. gpmc,adv-wr-off-ns = <10>;
  367. gpmc,oe-on-ns = <10>;
  368. gpmc,oe-off-ns = <60>;
  369. gpmc,we-on-ns = <10>;
  370. gpmc,we-off-ns = <60>;
  371. gpmc,rd-cycle-ns = <100>;
  372. gpmc,wr-cycle-ns = <100>;
  373. gpmc,access-ns = <50>;
  374. gpmc,page-burst-access-ns = <5>;
  375. gpmc,bus-turnaround-ns = <0>;
  376. gpmc,cycle2cycle-delay-ns = <75>;
  377. gpmc,wr-data-mux-bus-ns = <15>;
  378. gpmc,wr-access-ns = <75>;
  379. gpmc,cycle2cycle-samecsen;
  380. gpmc,cycle2cycle-diffcsen;
  381. vddvario-supply = <&reg_vcc3>;
  382. vdd33a-supply = <&reg_vcc3>;
  383. reg-io-width = <4>;
  384. interrupt-parent = <&gpio5>;
  385. interrupts = <1 0x2>;
  386. reg = <7 0 0xff>;
  387. pinctrl-names = "default";
  388. pinctrl-0 = <&lan9221_pins>;
  389. phy-mode = "mii";
  390. };
  391. };