da850-lcdk.dts 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2016 BayLibre, Inc.
  4. */
  5. /dts-v1/;
  6. #include "da850.dtsi"
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/input/input.h>
  9. / {
  10. model = "DA850/AM1808/OMAP-L138 LCDK";
  11. compatible = "ti,da850-lcdk", "ti,da850";
  12. aliases {
  13. serial2 = &serial2;
  14. ethernet0 = &eth0;
  15. };
  16. chosen {
  17. stdout-path = "serial2:115200n8";
  18. };
  19. memory@c0000000 {
  20. /* 128 MB DDR2 SDRAM @ 0xc0000000 */
  21. reg = <0xc0000000 0x08000000>;
  22. };
  23. reserved-memory {
  24. #address-cells = <1>;
  25. #size-cells = <1>;
  26. ranges;
  27. dsp_memory_region: dsp-memory@c3000000 {
  28. compatible = "shared-dma-pool";
  29. reg = <0xc3000000 0x1000000>;
  30. reusable;
  31. status = "okay";
  32. };
  33. };
  34. vcc_5vd: fixedregulator-vcc_5vd {
  35. compatible = "regulator-fixed";
  36. regulator-name = "vcc_5vd";
  37. regulator-min-microvolt = <5000000>;
  38. regulator-max-microvolt = <5000000>;
  39. regulator-boot-on;
  40. };
  41. vcc_3v3d: fixedregulator-vcc_3v3d {
  42. /* TPS650250 - VDCDC1 */
  43. compatible = "regulator-fixed";
  44. regulator-name = "vcc_3v3d";
  45. regulator-min-microvolt = <3300000>;
  46. regulator-max-microvolt = <3300000>;
  47. vin-supply = <&vcc_5vd>;
  48. regulator-always-on;
  49. regulator-boot-on;
  50. };
  51. vcc_1v8d: fixedregulator-vcc_1v8d {
  52. /* TPS650250 - VDCDC2 */
  53. compatible = "regulator-fixed";
  54. regulator-name = "vcc_1v8d";
  55. regulator-min-microvolt = <1800000>;
  56. regulator-max-microvolt = <1800000>;
  57. vin-supply = <&vcc_5vd>;
  58. regulator-always-on;
  59. regulator-boot-on;
  60. };
  61. sound {
  62. compatible = "simple-audio-card";
  63. simple-audio-card,name = "DA850-OMAPL138 LCDK";
  64. simple-audio-card,widgets =
  65. "Line", "Line In",
  66. "Line", "Line Out",
  67. "Microphone", "Mic Jack";
  68. simple-audio-card,routing =
  69. "LINE1L", "Line In",
  70. "LINE1R", "Line In",
  71. "Line Out", "LLOUT",
  72. "Line Out", "RLOUT",
  73. "MIC3L", "Mic Jack",
  74. "MIC3R", "Mic Jack",
  75. "Mic Jack", "Mic Bias";
  76. simple-audio-card,format = "dsp_b";
  77. simple-audio-card,bitclock-master = <&link0_codec>;
  78. simple-audio-card,frame-master = <&link0_codec>;
  79. simple-audio-card,bitclock-inversion;
  80. simple-audio-card,cpu {
  81. sound-dai = <&mcasp0>;
  82. system-clock-frequency = <24576000>;
  83. };
  84. link0_codec: simple-audio-card,codec {
  85. sound-dai = <&tlv320aic3106>;
  86. system-clock-frequency = <24576000>;
  87. };
  88. };
  89. gpio-keys {
  90. compatible = "gpio-keys";
  91. autorepeat;
  92. user1 {
  93. label = "GPIO Key USER1";
  94. linux,code = <BTN_0>;
  95. gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
  96. };
  97. user2 {
  98. label = "GPIO Key USER2";
  99. linux,code = <BTN_1>;
  100. gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
  101. };
  102. };
  103. vga-bridge {
  104. compatible = "ti,ths8135";
  105. #address-cells = <1>;
  106. #size-cells = <0>;
  107. ports {
  108. #address-cells = <1>;
  109. #size-cells = <0>;
  110. port@0 {
  111. reg = <0>;
  112. vga_bridge_in: endpoint {
  113. remote-endpoint = <&lcdc_out_vga>;
  114. };
  115. };
  116. port@1 {
  117. reg = <1>;
  118. vga_bridge_out: endpoint {
  119. remote-endpoint = <&vga_con_in>;
  120. };
  121. };
  122. };
  123. };
  124. vga {
  125. compatible = "vga-connector";
  126. ddc-i2c-bus = <&i2c0>;
  127. port {
  128. vga_con_in: endpoint {
  129. remote-endpoint = <&vga_bridge_out>;
  130. };
  131. };
  132. };
  133. cvdd: regulator0 {
  134. compatible = "regulator-fixed";
  135. regulator-name = "cvdd";
  136. regulator-min-microvolt = <1300000>;
  137. regulator-max-microvolt = <1300000>;
  138. regulator-always-on;
  139. regulator-boot-on;
  140. };
  141. };
  142. &ref_clk {
  143. clock-frequency = <24000000>;
  144. };
  145. &cpu {
  146. cpu-supply = <&cvdd>;
  147. };
  148. /*
  149. * LCDK has a fixed CVDD of 1.3V, so only operating points >= 300MHz are
  150. * valid. Unfortunately due to a problem with the DA8XX OHCI controller, we
  151. * can't enable more than one OPP by default, since the controller sometimes
  152. * becomes unresponsive after a transition. Fix the frequency at 456 MHz.
  153. */
  154. &opp_100 {
  155. status = "disabled";
  156. };
  157. &opp_200 {
  158. status = "disabled";
  159. };
  160. &opp_300 {
  161. status = "disabled";
  162. };
  163. &opp_456 {
  164. status = "okay";
  165. };
  166. &pmx_core {
  167. status = "okay";
  168. mcasp0_pins: pinmux_mcasp0_pins {
  169. pinctrl-single,bits = <
  170. /* AHCLKX AFSX ACLKX */
  171. 0x00 0x00101010 0x00f0f0f0
  172. /* ARX13 ARX14 */
  173. 0x04 0x00000110 0x00000ff0
  174. >;
  175. };
  176. nand_pins: nand_pins {
  177. pinctrl-single,bits = <
  178. /* EMA_WAIT[0], EMA_OE, EMA_WE, EMA_CS[3] */
  179. 0x1c 0x10110010 0xf0ff00f0
  180. /*
  181. * EMA_D[0], EMA_D[1], EMA_D[2],
  182. * EMA_D[3], EMA_D[4], EMA_D[5],
  183. * EMA_D[6], EMA_D[7]
  184. */
  185. 0x24 0x11111111 0xffffffff
  186. /*
  187. * EMA_D[8], EMA_D[9], EMA_D[10],
  188. * EMA_D[11], EMA_D[12], EMA_D[13],
  189. * EMA_D[14], EMA_D[15]
  190. */
  191. 0x20 0x11111111 0xffffffff
  192. /* EMA_A[1], EMA_A[2] */
  193. 0x30 0x01100000 0x0ff00000
  194. >;
  195. };
  196. };
  197. &serial2 {
  198. pinctrl-names = "default";
  199. pinctrl-0 = <&serial2_rxtx_pins>;
  200. status = "okay";
  201. };
  202. &wdt {
  203. status = "okay";
  204. };
  205. &rtc0 {
  206. status = "okay";
  207. };
  208. &gpio {
  209. status = "okay";
  210. };
  211. &sata_refclk {
  212. status = "okay";
  213. clock-frequency = <100000000>;
  214. };
  215. &sata {
  216. status = "okay";
  217. };
  218. &mdio {
  219. pinctrl-names = "default";
  220. pinctrl-0 = <&mdio_pins>;
  221. bus_freq = <2200000>;
  222. status = "okay";
  223. };
  224. &eth0 {
  225. pinctrl-names = "default";
  226. pinctrl-0 = <&mii_pins>;
  227. status = "okay";
  228. };
  229. &mmc0 {
  230. max-frequency = <50000000>;
  231. bus-width = <4>;
  232. pinctrl-names = "default";
  233. pinctrl-0 = <&mmc0_pins>;
  234. cd-gpios = <&gpio 64 GPIO_ACTIVE_LOW>;
  235. status = "okay";
  236. };
  237. &i2c0 {
  238. pinctrl-names = "default";
  239. pinctrl-0 = <&i2c0_pins>;
  240. clock-frequency = <100000>;
  241. status = "okay";
  242. tlv320aic3106: tlv320aic3106@18 {
  243. #sound-dai-cells = <0>;
  244. compatible = "ti,tlv320aic3106";
  245. reg = <0x18>;
  246. adc-settle-ms = <40>;
  247. ai3x-micbias-vg = <1>; /* 2.0V */
  248. status = "okay";
  249. /* Regulators */
  250. IOVDD-supply = <&vcc_3v3d>;
  251. AVDD-supply = <&vcc_3v3d>;
  252. DRVDD-supply = <&vcc_3v3d>;
  253. DVDD-supply = <&vcc_1v8d>;
  254. };
  255. };
  256. &mcasp0 {
  257. #sound-dai-cells = <0>;
  258. pinctrl-names = "default";
  259. pinctrl-0 = <&mcasp0_pins>;
  260. status = "okay";
  261. op-mode = <0>; /* DAVINCI_MCASP_IIS_MODE */
  262. tdm-slots = <2>;
  263. serial-dir = < /* 0: INACTIVE, 1: TX, 2: RX */
  264. 0 0 0 0
  265. 0 0 0 0
  266. 0 0 0 0
  267. 0 1 2 0
  268. >;
  269. tx-num-evt = <32>;
  270. rx-num-evt = <32>;
  271. };
  272. &usb_phy {
  273. status = "okay";
  274. };
  275. &usb0 {
  276. status = "okay";
  277. };
  278. &usb1 {
  279. status = "okay";
  280. };
  281. &aemif {
  282. pinctrl-names = "default";
  283. pinctrl-0 = <&nand_pins>;
  284. status = "okay";
  285. cs3 {
  286. #address-cells = <2>;
  287. #size-cells = <1>;
  288. clock-ranges;
  289. ranges;
  290. ti,cs-chipselect = <3>;
  291. nand@2000000,0 {
  292. compatible = "ti,davinci-nand";
  293. #address-cells = <1>;
  294. #size-cells = <1>;
  295. reg = <0 0x02000000 0x02000000
  296. 1 0x00000000 0x00008000>;
  297. ti,davinci-chipselect = <1>;
  298. ti,davinci-mask-ale = <0>;
  299. ti,davinci-mask-cle = <0>;
  300. ti,davinci-mask-chipsel = <0>;
  301. ti,davinci-nand-buswidth = <16>;
  302. ti,davinci-ecc-mode = "hw";
  303. ti,davinci-ecc-bits = <4>;
  304. ti,davinci-nand-use-bbt;
  305. /*
  306. * The OMAP-L132/L138 Bootloader doc SPRAB41E reads:
  307. * "To boot from NAND Flash, the AIS should be written
  308. * to NAND block 1 (NAND block 0 is not used by default)".
  309. * The same doc mentions that for ROM "Silicon Revision 2.1",
  310. * "Updated NAND boot mode to offer boot from block 0 or block 1".
  311. * However the limitaion is left here by default for compatibility
  312. * with older silicon and because it needs new boot pin settings
  313. * not possible in stock LCDK.
  314. */
  315. partitions {
  316. compatible = "fixed-partitions";
  317. #address-cells = <1>;
  318. #size-cells = <1>;
  319. partition@0 {
  320. label = "u-boot env";
  321. reg = <0 0x020000>;
  322. };
  323. partition@20000 {
  324. /* The LCDK defaults to booting from this partition */
  325. label = "u-boot";
  326. reg = <0x020000 0x080000>;
  327. };
  328. partition@a0000 {
  329. label = "free space";
  330. reg = <0x0a0000 0>;
  331. };
  332. };
  333. };
  334. };
  335. };
  336. &prictrl {
  337. status = "okay";
  338. };
  339. &memctrl {
  340. status = "okay";
  341. };
  342. &lcdc {
  343. status = "okay";
  344. pinctrl-names = "default";
  345. pinctrl-0 = <&lcd_pins>;
  346. port {
  347. lcdc_out_vga: endpoint {
  348. remote-endpoint = <&vga_bridge_in>;
  349. };
  350. };
  351. };
  352. &vpif {
  353. pinctrl-names = "default";
  354. pinctrl-0 = <&vpif_capture_pins>;
  355. status = "okay";
  356. };
  357. &dsp {
  358. memory-region = <&dsp_memory_region>;
  359. status = "okay";
  360. };