imx6q-gw5400-a.dts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright 2013 Gateworks Corporation
  4. */
  5. /dts-v1/;
  6. #include <dt-bindings/gpio/gpio.h>
  7. #include "imx6q.dtsi"
  8. / {
  9. model = "Gateworks Ventana GW5400-A";
  10. compatible = "gw,imx6q-gw5400-a", "gw,ventana", "fsl,imx6q";
  11. /* these are used by bootloader for disabling nodes */
  12. aliases {
  13. i2c0 = &i2c1;
  14. i2c1 = &i2c2;
  15. i2c2 = &i2c3;
  16. led0 = &led0;
  17. led1 = &led1;
  18. led2 = &led2;
  19. ssi0 = &ssi1;
  20. spi0 = &ecspi1;
  21. usb0 = &usbh1;
  22. usb1 = &usbotg;
  23. };
  24. chosen {
  25. bootargs = "console=ttymxc1,115200";
  26. };
  27. leds {
  28. compatible = "gpio-leds";
  29. pinctrl-names = "default";
  30. pinctrl-0 = <&pinctrl_gpio_leds>;
  31. led0: led-user1 {
  32. label = "user1";
  33. gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>; /* 102 -> MX6_PANLEDG */
  34. default-state = "on";
  35. linux,default-trigger = "heartbeat";
  36. };
  37. led1: led-user2 {
  38. label = "user2";
  39. gpios = <&gpio4 10 GPIO_ACTIVE_HIGH>; /* 106 -> MX6_PANLEDR */
  40. default-state = "off";
  41. };
  42. led2: led-user3 {
  43. label = "user3";
  44. gpios = <&gpio4 15 GPIO_ACTIVE_LOW>; /* 111 -> MX6_LOCLED# */
  45. default-state = "off";
  46. };
  47. };
  48. memory@10000000 {
  49. device_type = "memory";
  50. reg = <0x10000000 0x40000000>;
  51. };
  52. pps {
  53. compatible = "pps-gpio";
  54. pinctrl-names = "default";
  55. pinctrl-0 = <&pinctrl_gpio_leds>;
  56. gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
  57. status = "okay";
  58. };
  59. regulators {
  60. compatible = "simple-bus";
  61. #address-cells = <1>;
  62. #size-cells = <0>;
  63. reg_1p0v: regulator@0 {
  64. compatible = "regulator-fixed";
  65. reg = <0>;
  66. regulator-name = "1P0V";
  67. regulator-min-microvolt = <1000000>;
  68. regulator-max-microvolt = <1000000>;
  69. regulator-always-on;
  70. };
  71. reg_3p3v: regulator@1 {
  72. compatible = "regulator-fixed";
  73. reg = <1>;
  74. regulator-name = "3P3V";
  75. regulator-min-microvolt = <3300000>;
  76. regulator-max-microvolt = <3300000>;
  77. regulator-always-on;
  78. };
  79. reg_usb_h1_vbus: regulator@2 {
  80. compatible = "regulator-fixed";
  81. reg = <2>;
  82. regulator-name = "usb_h1_vbus";
  83. regulator-min-microvolt = <5000000>;
  84. regulator-max-microvolt = <5000000>;
  85. regulator-always-on;
  86. };
  87. reg_usb_otg_vbus: regulator@3 {
  88. compatible = "regulator-fixed";
  89. reg = <3>;
  90. regulator-name = "usb_otg_vbus";
  91. regulator-min-microvolt = <5000000>;
  92. regulator-max-microvolt = <5000000>;
  93. gpio = <&gpio3 22 GPIO_ACTIVE_HIGH>;
  94. enable-active-high;
  95. };
  96. };
  97. sound {
  98. compatible = "fsl,imx6q-ventana-sgtl5000",
  99. "fsl,imx-audio-sgtl5000";
  100. model = "sgtl5000-audio";
  101. ssi-controller = <&ssi1>;
  102. audio-codec = <&codec>;
  103. audio-routing =
  104. "MIC_IN", "Mic Jack",
  105. "Mic Jack", "Mic Bias",
  106. "Headphone Jack", "HP_OUT";
  107. mux-int-port = <1>;
  108. mux-ext-port = <4>;
  109. };
  110. };
  111. &audmux {
  112. pinctrl-names = "default";
  113. pinctrl-0 = <&pinctrl_audmux>;
  114. status = "okay";
  115. };
  116. &ecspi1 {
  117. cs-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
  118. pinctrl-names = "default";
  119. pinctrl-0 = <&pinctrl_ecspi1>;
  120. status = "okay";
  121. flash: flash@0 {
  122. compatible = "sst,w25q256", "jedec,spi-nor";
  123. spi-max-frequency = <30000000>;
  124. reg = <0>;
  125. };
  126. };
  127. &fec {
  128. pinctrl-names = "default";
  129. pinctrl-0 = <&pinctrl_enet>;
  130. phy-mode = "rgmii-id";
  131. phy-reset-gpios = <&gpio1 30 GPIO_ACTIVE_LOW>;
  132. status = "okay";
  133. };
  134. &hdmi {
  135. ddc-i2c-bus = <&i2c3>;
  136. status = "okay";
  137. };
  138. &i2c1 {
  139. clock-frequency = <100000>;
  140. pinctrl-names = "default";
  141. pinctrl-0 = <&pinctrl_i2c1>;
  142. status = "okay";
  143. eeprom1: eeprom@50 {
  144. compatible = "atmel,24c02";
  145. reg = <0x50>;
  146. pagesize = <16>;
  147. };
  148. eeprom2: eeprom@51 {
  149. compatible = "atmel,24c02";
  150. reg = <0x51>;
  151. pagesize = <16>;
  152. };
  153. eeprom3: eeprom@52 {
  154. compatible = "atmel,24c02";
  155. reg = <0x52>;
  156. pagesize = <16>;
  157. };
  158. eeprom4: eeprom@53 {
  159. compatible = "atmel,24c02";
  160. reg = <0x53>;
  161. pagesize = <16>;
  162. };
  163. gpio: pca9555@23 {
  164. compatible = "nxp,pca9555";
  165. reg = <0x23>;
  166. gpio-controller;
  167. #gpio-cells = <2>;
  168. };
  169. rtc: ds1672@68 {
  170. compatible = "dallas,ds1672";
  171. reg = <0x68>;
  172. };
  173. };
  174. &i2c2 {
  175. clock-frequency = <100000>;
  176. pinctrl-names = "default";
  177. pinctrl-0 = <&pinctrl_i2c2>;
  178. status = "okay";
  179. pmic: pfuze100@8 {
  180. compatible = "fsl,pfuze100";
  181. reg = <0x08>;
  182. regulators {
  183. sw1a_reg: sw1ab {
  184. regulator-min-microvolt = <300000>;
  185. regulator-max-microvolt = <1875000>;
  186. regulator-boot-on;
  187. regulator-always-on;
  188. regulator-ramp-delay = <6250>;
  189. };
  190. sw1c_reg: sw1c {
  191. regulator-min-microvolt = <300000>;
  192. regulator-max-microvolt = <1875000>;
  193. regulator-boot-on;
  194. regulator-always-on;
  195. regulator-ramp-delay = <6250>;
  196. };
  197. sw2_reg: sw2 {
  198. regulator-min-microvolt = <800000>;
  199. regulator-max-microvolt = <3950000>;
  200. regulator-boot-on;
  201. regulator-always-on;
  202. };
  203. sw3a_reg: sw3a {
  204. regulator-min-microvolt = <400000>;
  205. regulator-max-microvolt = <1975000>;
  206. regulator-boot-on;
  207. regulator-always-on;
  208. };
  209. sw3b_reg: sw3b {
  210. regulator-min-microvolt = <400000>;
  211. regulator-max-microvolt = <1975000>;
  212. regulator-boot-on;
  213. regulator-always-on;
  214. };
  215. sw4_reg: sw4 {
  216. regulator-min-microvolt = <800000>;
  217. regulator-max-microvolt = <3300000>;
  218. };
  219. swbst_reg: swbst {
  220. regulator-min-microvolt = <5000000>;
  221. regulator-max-microvolt = <5150000>;
  222. };
  223. snvs_reg: vsnvs {
  224. regulator-min-microvolt = <1000000>;
  225. regulator-max-microvolt = <3000000>;
  226. regulator-boot-on;
  227. regulator-always-on;
  228. };
  229. vref_reg: vrefddr {
  230. regulator-boot-on;
  231. regulator-always-on;
  232. };
  233. vgen1_reg: vgen1 {
  234. regulator-min-microvolt = <800000>;
  235. regulator-max-microvolt = <1550000>;
  236. };
  237. vgen2_reg: vgen2 {
  238. regulator-min-microvolt = <800000>;
  239. regulator-max-microvolt = <1550000>;
  240. };
  241. vgen3_reg: vgen3 {
  242. regulator-min-microvolt = <1800000>;
  243. regulator-max-microvolt = <3300000>;
  244. };
  245. vgen4_reg: vgen4 {
  246. regulator-min-microvolt = <1800000>;
  247. regulator-max-microvolt = <3300000>;
  248. regulator-always-on;
  249. };
  250. vgen5_reg: vgen5 {
  251. regulator-min-microvolt = <1800000>;
  252. regulator-max-microvolt = <3300000>;
  253. regulator-always-on;
  254. };
  255. vgen6_reg: vgen6 {
  256. regulator-min-microvolt = <1800000>;
  257. regulator-max-microvolt = <3300000>;
  258. regulator-always-on;
  259. };
  260. };
  261. };
  262. };
  263. &i2c3 {
  264. clock-frequency = <100000>;
  265. pinctrl-names = "default";
  266. pinctrl-0 = <&pinctrl_i2c3>;
  267. status = "okay";
  268. accelerometer: mma8450@1c {
  269. compatible = "fsl,mma8450";
  270. reg = <0x1c>;
  271. };
  272. codec: sgtl5000@a {
  273. compatible = "fsl,sgtl5000";
  274. reg = <0x0a>;
  275. clocks = <&clks IMX6QDL_CLK_CKO>;
  276. VDDA-supply = <&sw4_reg>;
  277. VDDIO-supply = <&reg_3p3v>;
  278. };
  279. touchscreen: egalax_ts@4 {
  280. compatible = "eeti,egalax_ts";
  281. reg = <0x04>;
  282. interrupt-parent = <&gpio7>;
  283. interrupts = <12 2>;
  284. wakeup-gpios = <&gpio7 12 GPIO_ACTIVE_LOW>;
  285. };
  286. };
  287. &ldb {
  288. status = "okay";
  289. };
  290. &pcie {
  291. reset-gpio = <&gpio1 29 GPIO_ACTIVE_LOW>;
  292. status = "okay";
  293. };
  294. &ssi1 {
  295. status = "okay";
  296. };
  297. &uart1 {
  298. pinctrl-names = "default";
  299. pinctrl-0 = <&pinctrl_uart1>;
  300. status = "okay";
  301. };
  302. &uart2 {
  303. pinctrl-names = "default";
  304. pinctrl-0 = <&pinctrl_uart2>;
  305. status = "okay";
  306. };
  307. &uart5 {
  308. pinctrl-names = "default";
  309. pinctrl-0 = <&pinctrl_uart5>;
  310. status = "okay";
  311. };
  312. &usbotg {
  313. vbus-supply = <&reg_usb_otg_vbus>;
  314. pinctrl-names = "default";
  315. pinctrl-0 = <&pinctrl_usbotg>;
  316. disable-over-current;
  317. status = "okay";
  318. };
  319. &usbh1 {
  320. vbus-supply = <&reg_usb_h1_vbus>;
  321. status = "okay";
  322. };
  323. &usdhc3 {
  324. pinctrl-names = "default";
  325. pinctrl-0 = <&pinctrl_usdhc3>;
  326. cd-gpios = <&gpio7 0 GPIO_ACTIVE_LOW>;
  327. vmmc-supply = <&reg_3p3v>;
  328. status = "okay";
  329. };
  330. &iomuxc {
  331. pinctrl_audmux: audmuxgrp {
  332. fsl,pins = <
  333. MX6QDL_PAD_SD2_DAT0__AUD4_RXD 0x130b0
  334. MX6QDL_PAD_SD2_DAT3__AUD4_TXC 0x130b0
  335. MX6QDL_PAD_SD2_DAT2__AUD4_TXD 0x110b0
  336. MX6QDL_PAD_SD2_DAT1__AUD4_TXFS 0x130b0
  337. MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 /* AUD4_MCK */
  338. >;
  339. };
  340. pinctrl_ecspi1: ecspi1grp {
  341. fsl,pins = <
  342. MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x100b1
  343. MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x100b1
  344. MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x100b1
  345. MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x1b0b0 /* SPINOR_CS0# */
  346. >;
  347. };
  348. pinctrl_enet: enetgrp {
  349. fsl,pins = <
  350. MX6QDL_PAD_RGMII_RXC__RGMII_RXC 0x1b030
  351. MX6QDL_PAD_RGMII_RD0__RGMII_RD0 0x1b030
  352. MX6QDL_PAD_RGMII_RD1__RGMII_RD1 0x1b030
  353. MX6QDL_PAD_RGMII_RD2__RGMII_RD2 0x1b030
  354. MX6QDL_PAD_RGMII_RD3__RGMII_RD3 0x1b030
  355. MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b030
  356. MX6QDL_PAD_RGMII_TXC__RGMII_TXC 0x1b030
  357. MX6QDL_PAD_RGMII_TD0__RGMII_TD0 0x1b030
  358. MX6QDL_PAD_RGMII_TD1__RGMII_TD1 0x1b030
  359. MX6QDL_PAD_RGMII_TD2__RGMII_TD2 0x1b030
  360. MX6QDL_PAD_RGMII_TD3__RGMII_TD3 0x1b030
  361. MX6QDL_PAD_RGMII_TX_CTL__RGMII_TX_CTL 0x1b030
  362. MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0
  363. MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0
  364. MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0
  365. MX6QDL_PAD_GPIO_16__ENET_REF_CLK 0x4001b0a8
  366. >;
  367. };
  368. pinctrl_gpio_leds: gpioledsgrp {
  369. fsl,pins = <
  370. MX6QDL_PAD_KEY_COL0__GPIO4_IO06 0x1b0b0 /* user1 led */
  371. MX6QDL_PAD_KEY_COL2__GPIO4_IO10 0x1b0b0 /* user2 led */
  372. MX6QDL_PAD_KEY_ROW4__GPIO4_IO15 0x1b0b0 /* user3 led */
  373. >;
  374. };
  375. pinctrl_i2c1: i2c1grp {
  376. fsl,pins = <
  377. MX6QDL_PAD_EIM_D21__I2C1_SCL 0x4001b8b1
  378. MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
  379. >;
  380. };
  381. pinctrl_i2c2: i2c2grp {
  382. fsl,pins = <
  383. MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
  384. MX6QDL_PAD_KEY_ROW3__I2C2_SDA 0x4001b8b1
  385. >;
  386. };
  387. pinctrl_i2c3: i2c3grp {
  388. fsl,pins = <
  389. MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1
  390. MX6QDL_PAD_GPIO_6__I2C3_SDA 0x4001b8b1
  391. >;
  392. };
  393. pinctrl_pcie: pciegrp {
  394. fsl,pins = <
  395. MX6QDL_PAD_ENET_TX_EN__GPIO1_IO28 0x1b0b0 /* PCIE IRQ */
  396. MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x1b0b0 /* PCIE RST */
  397. >;
  398. };
  399. pinctrl_pps: ppsgrp {
  400. fsl,pins = <
  401. MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x1b0b0 /* GPS_PPS */
  402. >;
  403. };
  404. pinctrl_uart1: uart1grp {
  405. fsl,pins = <
  406. MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA 0x1b0b1
  407. MX6QDL_PAD_SD3_DAT6__UART1_RX_DATA 0x1b0b1
  408. >;
  409. };
  410. pinctrl_uart2: uart2grp {
  411. fsl,pins = <
  412. MX6QDL_PAD_SD4_DAT7__UART2_TX_DATA 0x1b0b1
  413. MX6QDL_PAD_SD4_DAT4__UART2_RX_DATA 0x1b0b1
  414. >;
  415. };
  416. pinctrl_uart5: uart5grp {
  417. fsl,pins = <
  418. MX6QDL_PAD_KEY_COL1__UART5_TX_DATA 0x1b0b1
  419. MX6QDL_PAD_KEY_ROW1__UART5_RX_DATA 0x1b0b1
  420. >;
  421. };
  422. pinctrl_usbotg: usbotggrp {
  423. fsl,pins = <
  424. MX6QDL_PAD_GPIO_1__USB_OTG_ID 0x17059
  425. MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b0 /* OTG_PWR_EN */
  426. >;
  427. };
  428. pinctrl_usdhc3: usdhc3grp {
  429. fsl,pins = <
  430. MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
  431. MX6QDL_PAD_SD3_CLK__SD3_CLK 0x10059
  432. MX6QDL_PAD_SD3_DAT0__SD3_DATA0 0x17059
  433. MX6QDL_PAD_SD3_DAT1__SD3_DATA1 0x17059
  434. MX6QDL_PAD_SD3_DAT2__SD3_DATA2 0x17059
  435. MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059
  436. >;
  437. };
  438. };