imx8mn-venice-gw7902.dts 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright 2021 Gateworks Corporation
  4. */
  5. /dts-v1/;
  6. #include <dt-bindings/gpio/gpio.h>
  7. #include <dt-bindings/input/linux-event-codes.h>
  8. #include <dt-bindings/leds/common.h>
  9. #include <dt-bindings/net/ti-dp83867.h>
  10. #include "imx8mn.dtsi"
  11. / {
  12. model = "Gateworks Venice GW7902 i.MX8MN board";
  13. compatible = "gw,imx8mn-gw7902", "fsl,imx8mn";
  14. aliases {
  15. usb0 = &usbotg1;
  16. };
  17. chosen {
  18. stdout-path = &uart2;
  19. };
  20. memory@40000000 {
  21. device_type = "memory";
  22. reg = <0x0 0x40000000 0 0x80000000>;
  23. };
  24. can20m: can20m {
  25. compatible = "fixed-clock";
  26. #clock-cells = <0>;
  27. clock-frequency = <20000000>;
  28. clock-output-names = "can20m";
  29. };
  30. gpio-keys {
  31. compatible = "gpio-keys";
  32. key-user-pb {
  33. label = "user_pb";
  34. gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
  35. linux,code = <BTN_0>;
  36. };
  37. key-user-pb1x {
  38. label = "user_pb1x";
  39. linux,code = <BTN_1>;
  40. interrupt-parent = <&gsc>;
  41. interrupts = <0>;
  42. };
  43. key-erased {
  44. label = "key_erased";
  45. linux,code = <BTN_2>;
  46. interrupt-parent = <&gsc>;
  47. interrupts = <1>;
  48. };
  49. key-eeprom-wp {
  50. label = "eeprom_wp";
  51. linux,code = <BTN_3>;
  52. interrupt-parent = <&gsc>;
  53. interrupts = <2>;
  54. };
  55. key-tamper {
  56. label = "tamper";
  57. linux,code = <BTN_4>;
  58. interrupt-parent = <&gsc>;
  59. interrupts = <5>;
  60. };
  61. switch-hold {
  62. label = "switch_hold";
  63. linux,code = <BTN_5>;
  64. interrupt-parent = <&gsc>;
  65. interrupts = <7>;
  66. };
  67. };
  68. led-controller {
  69. compatible = "gpio-leds";
  70. pinctrl-names = "default";
  71. pinctrl-0 = <&pinctrl_gpio_leds>;
  72. led-0 {
  73. function = LED_FUNCTION_STATUS;
  74. color = <LED_COLOR_ID_GREEN>;
  75. label = "panel1";
  76. gpios = <&gpio3 21 GPIO_ACTIVE_LOW>;
  77. default-state = "off";
  78. };
  79. led-1 {
  80. function = LED_FUNCTION_STATUS;
  81. color = <LED_COLOR_ID_GREEN>;
  82. label = "panel2";
  83. gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
  84. default-state = "off";
  85. };
  86. led-2 {
  87. function = LED_FUNCTION_STATUS;
  88. color = <LED_COLOR_ID_GREEN>;
  89. label = "panel3";
  90. gpios = <&gpio3 22 GPIO_ACTIVE_LOW>;
  91. default-state = "off";
  92. };
  93. led-3 {
  94. function = LED_FUNCTION_STATUS;
  95. color = <LED_COLOR_ID_GREEN>;
  96. label = "panel4";
  97. gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
  98. default-state = "off";
  99. };
  100. led-4 {
  101. function = LED_FUNCTION_STATUS;
  102. color = <LED_COLOR_ID_GREEN>;
  103. label = "panel5";
  104. gpios = <&gpio3 25 GPIO_ACTIVE_LOW>;
  105. default-state = "off";
  106. };
  107. };
  108. pps {
  109. compatible = "pps-gpio";
  110. pinctrl-names = "default";
  111. pinctrl-0 = <&pinctrl_pps>;
  112. gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>;
  113. status = "okay";
  114. };
  115. reg_3p3v: regulator-3p3v {
  116. compatible = "regulator-fixed";
  117. regulator-name = "3P3V";
  118. regulator-min-microvolt = <3300000>;
  119. regulator-max-microvolt = <3300000>;
  120. regulator-always-on;
  121. };
  122. reg_usb1_vbus: regulator-usb1 {
  123. compatible = "regulator-fixed";
  124. pinctrl-names = "default";
  125. pinctrl-0 = <&pinctrl_reg_usb1>;
  126. regulator-name = "usb_usb1_vbus";
  127. gpio = <&gpio2 7 GPIO_ACTIVE_HIGH>;
  128. enable-active-high;
  129. regulator-min-microvolt = <5000000>;
  130. regulator-max-microvolt = <5000000>;
  131. };
  132. reg_wifi: regulator-wifi {
  133. compatible = "regulator-fixed";
  134. pinctrl-names = "default";
  135. pinctrl-0 = <&pinctrl_reg_wl>;
  136. regulator-name = "wifi";
  137. gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>;
  138. enable-active-high;
  139. startup-delay-us = <100>;
  140. regulator-min-microvolt = <3300000>;
  141. regulator-max-microvolt = <3300000>;
  142. };
  143. };
  144. &A53_0 {
  145. cpu-supply = <&buck2>;
  146. };
  147. &A53_1 {
  148. cpu-supply = <&buck2>;
  149. };
  150. &A53_2 {
  151. cpu-supply = <&buck2>;
  152. };
  153. &A53_3 {
  154. cpu-supply = <&buck2>;
  155. };
  156. &ddrc {
  157. operating-points-v2 = <&ddrc_opp_table>;
  158. ddrc_opp_table: opp-table {
  159. compatible = "operating-points-v2";
  160. opp-25M {
  161. opp-hz = /bits/ 64 <25000000>;
  162. };
  163. opp-100M {
  164. opp-hz = /bits/ 64 <100000000>;
  165. };
  166. opp-750M {
  167. opp-hz = /bits/ 64 <750000000>;
  168. };
  169. };
  170. };
  171. &ecspi1 {
  172. pinctrl-names = "default";
  173. pinctrl-0 = <&pinctrl_spi1>;
  174. cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
  175. status = "okay";
  176. can@0 {
  177. compatible = "microchip,mcp2515";
  178. reg = <0>;
  179. clocks = <&can20m>;
  180. interrupt-parent = <&gpio2>;
  181. interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
  182. spi-max-frequency = <10000000>;
  183. };
  184. };
  185. &disp_blk_ctrl {
  186. status = "disabled";
  187. };
  188. /* off-board header */
  189. &ecspi2 {
  190. pinctrl-names = "default";
  191. pinctrl-0 = <&pinctrl_spi2>;
  192. cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>;
  193. status = "okay";
  194. };
  195. &fec1 {
  196. pinctrl-names = "default";
  197. pinctrl-0 = <&pinctrl_fec1>;
  198. phy-mode = "rgmii-id";
  199. phy-handle = <&ethphy0>;
  200. local-mac-address = [00 00 00 00 00 00];
  201. status = "okay";
  202. mdio {
  203. #address-cells = <1>;
  204. #size-cells = <0>;
  205. ethphy0: ethernet-phy@0 {
  206. compatible = "ethernet-phy-ieee802.3-c22";
  207. reg = <0>;
  208. ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
  209. ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
  210. tx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
  211. rx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
  212. };
  213. };
  214. };
  215. &gpio1 {
  216. gpio-line-names = "", "", "", "", "", "", "", "",
  217. "", "", "", "", "", "m2_reset", "", "m2_wdis#",
  218. "", "", "", "", "", "", "", "",
  219. "", "", "", "", "", "", "", "";
  220. };
  221. &gpio2 {
  222. gpio-line-names = "", "", "", "", "", "", "", "",
  223. "uart2_en#", "", "", "", "", "", "", "",
  224. "", "", "", "", "", "", "", "",
  225. "", "", "", "", "", "", "", "";
  226. };
  227. &gpio3 {
  228. gpio-line-names = "", "m2_gdis#", "", "", "", "", "", "m2_off#",
  229. "", "", "", "", "", "", "", "",
  230. "", "", "", "", "", "", "", "",
  231. "", "", "", "", "", "", "", "";
  232. };
  233. &gpio4 {
  234. gpio-line-names = "", "", "", "", "", "", "", "",
  235. "", "", "", "", "", "", "", "",
  236. "", "", "", "", "", "app_gpio1", "", "uart1_rs485",
  237. "", "uart1_term", "uart1_half", "app_gpio2",
  238. "mipi_gpio1", "", "", "";
  239. };
  240. &gpio5 {
  241. gpio-line-names = "", "", "", "mipi_gpio4",
  242. "mipi_gpio3", "mipi_gpio2", "", "",
  243. "", "", "", "", "", "", "", "",
  244. "", "", "", "", "", "", "", "",
  245. "", "", "", "", "", "", "", "";
  246. };
  247. &gpu {
  248. status = "disabled";
  249. };
  250. &i2c1 {
  251. clock-frequency = <100000>;
  252. pinctrl-names = "default";
  253. pinctrl-0 = <&pinctrl_i2c1>;
  254. status = "okay";
  255. gsc: gsc@20 {
  256. compatible = "gw,gsc";
  257. reg = <0x20>;
  258. pinctrl-0 = <&pinctrl_gsc>;
  259. interrupt-parent = <&gpio2>;
  260. interrupts = <6 IRQ_TYPE_EDGE_FALLING>;
  261. interrupt-controller;
  262. #interrupt-cells = <1>;
  263. adc {
  264. compatible = "gw,gsc-adc";
  265. #address-cells = <1>;
  266. #size-cells = <0>;
  267. channel@6 {
  268. gw,mode = <0>;
  269. reg = <0x06>;
  270. label = "temp";
  271. };
  272. channel@8 {
  273. gw,mode = <1>;
  274. reg = <0x08>;
  275. label = "vdd_bat";
  276. };
  277. channel@82 {
  278. gw,mode = <2>;
  279. reg = <0x82>;
  280. label = "vin";
  281. gw,voltage-divider-ohms = <22100 1000>;
  282. gw,voltage-offset-microvolt = <700000>;
  283. };
  284. channel@84 {
  285. gw,mode = <2>;
  286. reg = <0x84>;
  287. label = "vin_4p0";
  288. gw,voltage-divider-ohms = <10000 10000>;
  289. };
  290. channel@86 {
  291. gw,mode = <2>;
  292. reg = <0x86>;
  293. label = "vdd_3p3";
  294. gw,voltage-divider-ohms = <10000 10000>;
  295. };
  296. channel@88 {
  297. gw,mode = <2>;
  298. reg = <0x88>;
  299. label = "vdd_0p9";
  300. };
  301. channel@8c {
  302. gw,mode = <2>;
  303. reg = <0x8c>;
  304. label = "vdd_soc";
  305. };
  306. channel@8e {
  307. gw,mode = <2>;
  308. reg = <0x8e>;
  309. label = "vdd_arm";
  310. };
  311. channel@90 {
  312. gw,mode = <2>;
  313. reg = <0x90>;
  314. label = "vdd_1p8";
  315. };
  316. channel@92 {
  317. gw,mode = <2>;
  318. reg = <0x92>;
  319. label = "vdd_dram";
  320. };
  321. channel@98 {
  322. gw,mode = <2>;
  323. reg = <0x98>;
  324. label = "vdd_1p0";
  325. };
  326. channel@9a {
  327. gw,mode = <2>;
  328. reg = <0x9a>;
  329. label = "vdd_2p5";
  330. gw,voltage-divider-ohms = <10000 10000>;
  331. };
  332. channel@9c {
  333. gw,mode = <2>;
  334. reg = <0x9c>;
  335. label = "vdd_5p0";
  336. gw,voltage-divider-ohms = <10000 10000>;
  337. };
  338. channel@a2 {
  339. gw,mode = <2>;
  340. reg = <0xa2>;
  341. label = "vdd_gsc";
  342. gw,voltage-divider-ohms = <10000 10000>;
  343. };
  344. };
  345. };
  346. gpio: gpio@23 {
  347. compatible = "nxp,pca9555";
  348. reg = <0x23>;
  349. gpio-controller;
  350. #gpio-cells = <2>;
  351. interrupt-parent = <&gsc>;
  352. interrupts = <4>;
  353. };
  354. pmic@4b {
  355. compatible = "rohm,bd71847";
  356. reg = <0x4b>;
  357. pinctrl-names = "default";
  358. pinctrl-0 = <&pinctrl_pmic>;
  359. interrupt-parent = <&gpio3>;
  360. interrupts = <8 IRQ_TYPE_LEVEL_LOW>;
  361. rohm,reset-snvs-powered;
  362. #clock-cells = <0>;
  363. clocks = <&osc_32k 0>;
  364. clock-output-names = "clk-32k-out";
  365. regulators {
  366. /* vdd_soc: 0.805-0.900V (typ=0.8V) */
  367. BUCK1 {
  368. regulator-name = "buck1";
  369. regulator-min-microvolt = <700000>;
  370. regulator-max-microvolt = <1300000>;
  371. regulator-boot-on;
  372. regulator-always-on;
  373. regulator-ramp-delay = <1250>;
  374. };
  375. /* vdd_arm: 0.805-1.0V (typ=0.9V) */
  376. buck2: BUCK2 {
  377. regulator-name = "buck2";
  378. regulator-min-microvolt = <700000>;
  379. regulator-max-microvolt = <1300000>;
  380. regulator-boot-on;
  381. regulator-always-on;
  382. regulator-ramp-delay = <1250>;
  383. rohm,dvs-run-voltage = <1000000>;
  384. rohm,dvs-idle-voltage = <900000>;
  385. };
  386. /* vdd_0p9: 0.805-1.0V (typ=0.9V) */
  387. BUCK3 {
  388. regulator-name = "buck3";
  389. regulator-min-microvolt = <700000>;
  390. regulator-max-microvolt = <1350000>;
  391. regulator-boot-on;
  392. regulator-always-on;
  393. };
  394. /* vdd_3p3 */
  395. BUCK4 {
  396. regulator-name = "buck4";
  397. regulator-min-microvolt = <3000000>;
  398. regulator-max-microvolt = <3300000>;
  399. regulator-boot-on;
  400. regulator-always-on;
  401. };
  402. /* vdd_1p8 */
  403. BUCK5 {
  404. regulator-name = "buck5";
  405. regulator-min-microvolt = <1605000>;
  406. regulator-max-microvolt = <1995000>;
  407. regulator-boot-on;
  408. regulator-always-on;
  409. };
  410. /* vdd_dram */
  411. BUCK6 {
  412. regulator-name = "buck6";
  413. regulator-min-microvolt = <800000>;
  414. regulator-max-microvolt = <1400000>;
  415. regulator-boot-on;
  416. regulator-always-on;
  417. };
  418. /* nvcc_snvs_1p8 */
  419. LDO1 {
  420. regulator-name = "ldo1";
  421. regulator-min-microvolt = <1600000>;
  422. regulator-max-microvolt = <1900000>;
  423. regulator-boot-on;
  424. regulator-always-on;
  425. };
  426. /* vdd_snvs_0p8 */
  427. LDO2 {
  428. regulator-name = "ldo2";
  429. regulator-min-microvolt = <800000>;
  430. regulator-max-microvolt = <900000>;
  431. regulator-boot-on;
  432. regulator-always-on;
  433. };
  434. /* vdda_1p8 */
  435. LDO3 {
  436. regulator-name = "ldo3";
  437. regulator-min-microvolt = <1800000>;
  438. regulator-max-microvolt = <3300000>;
  439. regulator-boot-on;
  440. regulator-always-on;
  441. };
  442. LDO4 {
  443. regulator-name = "ldo4";
  444. regulator-min-microvolt = <900000>;
  445. regulator-max-microvolt = <1800000>;
  446. regulator-boot-on;
  447. regulator-always-on;
  448. };
  449. LDO6 {
  450. regulator-name = "ldo6";
  451. regulator-min-microvolt = <900000>;
  452. regulator-max-microvolt = <1800000>;
  453. regulator-boot-on;
  454. regulator-always-on;
  455. };
  456. };
  457. };
  458. eeprom@50 {
  459. compatible = "atmel,24c02";
  460. reg = <0x50>;
  461. pagesize = <16>;
  462. };
  463. eeprom@51 {
  464. compatible = "atmel,24c02";
  465. reg = <0x51>;
  466. pagesize = <16>;
  467. };
  468. eeprom@52 {
  469. compatible = "atmel,24c02";
  470. reg = <0x52>;
  471. pagesize = <16>;
  472. };
  473. eeprom@53 {
  474. compatible = "atmel,24c02";
  475. reg = <0x53>;
  476. pagesize = <16>;
  477. };
  478. rtc@68 {
  479. compatible = "dallas,ds1672";
  480. reg = <0x68>;
  481. };
  482. };
  483. &i2c2 {
  484. clock-frequency = <400000>;
  485. pinctrl-names = "default";
  486. pinctrl-0 = <&pinctrl_i2c2>;
  487. status = "okay";
  488. accelerometer@19 {
  489. compatible = "st,lis2de12";
  490. pinctrl-names = "default";
  491. pinctrl-0 = <&pinctrl_accel>;
  492. reg = <0x19>;
  493. st,drdy-int-pin = <1>;
  494. interrupt-parent = <&gpio1>;
  495. interrupts = <12 IRQ_TYPE_LEVEL_LOW>;
  496. interrupt-names = "INT1";
  497. };
  498. };
  499. /* off-board header */
  500. &i2c3 {
  501. clock-frequency = <400000>;
  502. pinctrl-names = "default";
  503. pinctrl-0 = <&pinctrl_i2c3>;
  504. status = "okay";
  505. };
  506. /* off-board header */
  507. &i2c4 {
  508. clock-frequency = <400000>;
  509. pinctrl-names = "default";
  510. pinctrl-0 = <&pinctrl_i2c4>;
  511. status = "okay";
  512. };
  513. &pgc_gpumix {
  514. status = "disabled";
  515. };
  516. /* off-board header */
  517. &sai3 {
  518. pinctrl-names = "default";
  519. pinctrl-0 = <&pinctrl_sai3>;
  520. assigned-clocks = <&clk IMX8MN_CLK_SAI3>;
  521. assigned-clock-parents = <&clk IMX8MN_AUDIO_PLL1_OUT>;
  522. assigned-clock-rates = <24576000>;
  523. status = "okay";
  524. };
  525. /* RS232/RS485/RS422 selectable */
  526. &uart1 {
  527. pinctrl-names = "default";
  528. pinctrl-0 = <&pinctrl_uart1>, <&pinctrl_uart1_gpio>;
  529. status = "okay";
  530. };
  531. /* RS232 console */
  532. &uart2 {
  533. pinctrl-names = "default";
  534. pinctrl-0 = <&pinctrl_uart2>;
  535. status = "okay";
  536. };
  537. /* bluetooth HCI */
  538. &uart3 {
  539. pinctrl-names = "default";
  540. pinctrl-0 = <&pinctrl_uart3>, <&pinctrl_uart3_gpio>;
  541. rts-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
  542. cts-gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
  543. status = "okay";
  544. bluetooth {
  545. compatible = "brcm,bcm4330-bt";
  546. shutdown-gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
  547. };
  548. };
  549. /* LTE Cat M1/NB1/EGPRS modem or GPS (loading option) */
  550. &uart4 {
  551. pinctrl-names = "default";
  552. pinctrl-0 = <&pinctrl_uart4>;
  553. status = "okay";
  554. };
  555. &usbotg1 {
  556. dr_mode = "host";
  557. vbus-supply = <&reg_usb1_vbus>;
  558. disable-over-current;
  559. status = "okay";
  560. };
  561. /* SDIO WiFi */
  562. &usdhc2 {
  563. pinctrl-names = "default";
  564. pinctrl-0 = <&pinctrl_usdhc2>;
  565. bus-width = <4>;
  566. non-removable;
  567. vmmc-supply = <&reg_wifi>;
  568. status = "okay";
  569. };
  570. /* eMMC */
  571. &usdhc3 {
  572. pinctrl-names = "default", "state_100mhz", "state_200mhz";
  573. pinctrl-0 = <&pinctrl_usdhc3>;
  574. pinctrl-1 = <&pinctrl_usdhc3_100mhz>;
  575. pinctrl-2 = <&pinctrl_usdhc3_200mhz>;
  576. bus-width = <8>;
  577. non-removable;
  578. status = "okay";
  579. };
  580. &wdog1 {
  581. pinctrl-names = "default";
  582. pinctrl-0 = <&pinctrl_wdog>;
  583. fsl,ext-reset-output;
  584. status = "okay";
  585. };
  586. &iomuxc {
  587. pinctrl-names = "default";
  588. pinctrl-0 = <&pinctrl_hog>;
  589. pinctrl_hog: hoggrp {
  590. fsl,pins = <
  591. MX8MN_IOMUXC_NAND_CE0_B_GPIO3_IO1 0x40000159 /* M2_GDIS# */
  592. MX8MN_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x40000041 /* M2_RESET */
  593. MX8MN_IOMUXC_NAND_DATA01_GPIO3_IO7 0x40000119 /* M2_OFF# */
  594. MX8MN_IOMUXC_GPIO1_IO15_GPIO1_IO15 0x40000159 /* M2_WDIS# */
  595. MX8MN_IOMUXC_SAI2_RXFS_GPIO4_IO21 0x40000041 /* APP GPIO1 */
  596. MX8MN_IOMUXC_SAI2_MCLK_GPIO4_IO27 0x40000041 /* APP GPIO2 */
  597. MX8MN_IOMUXC_SD1_DATA6_GPIO2_IO8 0x40000041 /* UART2_EN# */
  598. MX8MN_IOMUXC_SAI3_RXFS_GPIO4_IO28 0x40000041 /* MIPI_GPIO1 */
  599. MX8MN_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5 0x40000041 /* MIPI_GPIO2 */
  600. MX8MN_IOMUXC_SPDIF_RX_GPIO5_IO4 0x40000041 /* MIPI_GPIO3/PWM2 */
  601. MX8MN_IOMUXC_SPDIF_TX_GPIO5_IO3 0x40000041 /* MIPI_GPIO4/PWM3 */
  602. >;
  603. };
  604. pinctrl_accel: accelgrp {
  605. fsl,pins = <
  606. MX8MN_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x159
  607. >;
  608. };
  609. pinctrl_fec1: fec1grp {
  610. fsl,pins = <
  611. MX8MN_IOMUXC_ENET_MDC_ENET1_MDC 0x3
  612. MX8MN_IOMUXC_ENET_MDIO_ENET1_MDIO 0x3
  613. MX8MN_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x1f
  614. MX8MN_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x1f
  615. MX8MN_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x1f
  616. MX8MN_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x1f
  617. MX8MN_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x91
  618. MX8MN_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x91
  619. MX8MN_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x91
  620. MX8MN_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x91
  621. MX8MN_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x1f
  622. MX8MN_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x91
  623. MX8MN_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91
  624. MX8MN_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f
  625. MX8MN_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x19 /* RST# */
  626. MX8MN_IOMUXC_GPIO1_IO11_GPIO1_IO11 0x19 /* IRQ# */
  627. MX8MN_IOMUXC_GPIO1_IO08_ENET1_1588_EVENT0_IN 0x141
  628. MX8MN_IOMUXC_GPIO1_IO09_ENET1_1588_EVENT0_OUT 0x141
  629. >;
  630. };
  631. pinctrl_gsc: gscgrp {
  632. fsl,pins = <
  633. MX8MN_IOMUXC_SD1_DATA4_GPIO2_IO6 0x40
  634. >;
  635. };
  636. pinctrl_i2c1: i2c1grp {
  637. fsl,pins = <
  638. MX8MN_IOMUXC_I2C1_SCL_I2C1_SCL 0x400001c3
  639. MX8MN_IOMUXC_I2C1_SDA_I2C1_SDA 0x400001c3
  640. >;
  641. };
  642. pinctrl_i2c2: i2c2grp {
  643. fsl,pins = <
  644. MX8MN_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c3
  645. MX8MN_IOMUXC_I2C2_SDA_I2C2_SDA 0x400001c3
  646. >;
  647. };
  648. pinctrl_i2c3: i2c3grp {
  649. fsl,pins = <
  650. MX8MN_IOMUXC_I2C3_SCL_I2C3_SCL 0x400001c3
  651. MX8MN_IOMUXC_I2C3_SDA_I2C3_SDA 0x400001c3
  652. >;
  653. };
  654. pinctrl_i2c4: i2c4grp {
  655. fsl,pins = <
  656. MX8MN_IOMUXC_I2C4_SCL_I2C4_SCL 0x400001c3
  657. MX8MN_IOMUXC_I2C4_SDA_I2C4_SDA 0x400001c3
  658. >;
  659. };
  660. pinctrl_gpio_leds: gpioledgrp {
  661. fsl,pins = <
  662. MX8MN_IOMUXC_SAI5_RXD0_GPIO3_IO21 0x19
  663. MX8MN_IOMUXC_SAI5_RXD2_GPIO3_IO23 0x19
  664. MX8MN_IOMUXC_SAI5_RXD1_GPIO3_IO22 0x19
  665. MX8MN_IOMUXC_SAI5_RXC_GPIO3_IO20 0x19
  666. MX8MN_IOMUXC_SAI5_MCLK_GPIO3_IO25 0x19
  667. >;
  668. };
  669. pinctrl_pmic: pmicgrp {
  670. fsl,pins = <
  671. MX8MN_IOMUXC_NAND_DATA02_GPIO3_IO8 0x41
  672. >;
  673. };
  674. pinctrl_pps: ppsgrp {
  675. fsl,pins = <
  676. MX8MN_IOMUXC_SAI5_RXD3_GPIO3_IO24 0x141 /* PPS */
  677. >;
  678. };
  679. pinctrl_reg_wl: regwlgrp {
  680. fsl,pins = <
  681. MX8MN_IOMUXC_SD2_RESET_B_GPIO2_IO19 0x41 /* WLAN_WLON */
  682. >;
  683. };
  684. pinctrl_reg_usb1: regusb1grp {
  685. fsl,pins = <
  686. MX8MN_IOMUXC_SD1_DATA5_GPIO2_IO7 0x41
  687. >;
  688. };
  689. pinctrl_sai3: sai3grp {
  690. fsl,pins = <
  691. MX8MN_IOMUXC_SAI3_MCLK_SAI3_MCLK 0xd6
  692. MX8MN_IOMUXC_SAI3_RXD_SAI3_RX_DATA0 0xd6
  693. MX8MN_IOMUXC_SAI3_TXC_SAI3_TX_BCLK 0xd6
  694. MX8MN_IOMUXC_SAI3_TXD_SAI3_TX_DATA0 0xd6
  695. MX8MN_IOMUXC_SAI3_TXFS_SAI3_TX_SYNC 0xd6
  696. >;
  697. };
  698. pinctrl_spi1: spi1grp {
  699. fsl,pins = <
  700. MX8MN_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK 0x82
  701. MX8MN_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI 0x82
  702. MX8MN_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x82
  703. MX8MN_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x40
  704. MX8MN_IOMUXC_SD1_DATA1_GPIO2_IO3 0x140 /* CAN_IRQ# */
  705. >;
  706. };
  707. pinctrl_spi2: spi2grp {
  708. fsl,pins = <
  709. MX8MN_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x82
  710. MX8MN_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x82
  711. MX8MN_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x82
  712. MX8MN_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x40 /* SS0 */
  713. >;
  714. };
  715. pinctrl_uart1: uart1grp {
  716. fsl,pins = <
  717. MX8MN_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140
  718. MX8MN_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140
  719. >;
  720. };
  721. pinctrl_uart1_gpio: uart1gpiogrp {
  722. fsl,pins = <
  723. MX8MN_IOMUXC_SAI2_TXD0_GPIO4_IO26 0x40000110 /* HALF */
  724. MX8MN_IOMUXC_SAI2_TXC_GPIO4_IO25 0x40000110 /* TERM */
  725. MX8MN_IOMUXC_SAI2_RXD0_GPIO4_IO23 0x40000110 /* RS485 */
  726. >;
  727. };
  728. pinctrl_uart2: uart2grp {
  729. fsl,pins = <
  730. MX8MN_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140
  731. MX8MN_IOMUXC_UART2_TXD_UART2_DCE_TX 0x140
  732. >;
  733. };
  734. pinctrl_uart3_gpio: uart3_gpiogrp {
  735. fsl,pins = <
  736. MX8MN_IOMUXC_SD2_CD_B_GPIO2_IO12 0x41 /* BT_EN# */
  737. >;
  738. };
  739. pinctrl_uart3: uart3grp {
  740. fsl,pins = <
  741. MX8MN_IOMUXC_UART3_RXD_UART3_DCE_RX 0x140
  742. MX8MN_IOMUXC_UART3_TXD_UART3_DCE_TX 0x140
  743. MX8MN_IOMUXC_SD1_CLK_GPIO2_IO0 0x140 /* CTS */
  744. MX8MN_IOMUXC_SD1_CMD_GPIO2_IO1 0x140 /* RTS */
  745. >;
  746. };
  747. pinctrl_uart4: uart4grp {
  748. fsl,pins = <
  749. MX8MN_IOMUXC_UART4_RXD_UART4_DCE_RX 0x140
  750. MX8MN_IOMUXC_UART4_TXD_UART4_DCE_TX 0x140
  751. MX8MN_IOMUXC_GPIO1_IO06_GPIO1_IO6 0x141 /* GNSS_GASP */
  752. >;
  753. };
  754. pinctrl_usdhc2: usdhc2grp {
  755. fsl,pins = <
  756. MX8MN_IOMUXC_SD2_CLK_USDHC2_CLK 0x190
  757. MX8MN_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d0
  758. MX8MN_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d0
  759. MX8MN_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d0
  760. MX8MN_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d0
  761. MX8MN_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0
  762. >;
  763. };
  764. pinctrl_usdhc3: usdhc3grp {
  765. fsl,pins = <
  766. MX8MN_IOMUXC_NAND_WE_B_USDHC3_CLK 0x190
  767. MX8MN_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d0
  768. MX8MN_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d0
  769. MX8MN_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d0
  770. MX8MN_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d0
  771. MX8MN_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d0
  772. MX8MN_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d0
  773. MX8MN_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d0
  774. MX8MN_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d0
  775. MX8MN_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d0
  776. MX8MN_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x190
  777. >;
  778. };
  779. pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp {
  780. fsl,pins = <
  781. MX8MN_IOMUXC_NAND_WE_B_USDHC3_CLK 0x194
  782. MX8MN_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d4
  783. MX8MN_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d4
  784. MX8MN_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d4
  785. MX8MN_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d4
  786. MX8MN_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d4
  787. MX8MN_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d4
  788. MX8MN_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d4
  789. MX8MN_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d4
  790. MX8MN_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d4
  791. MX8MN_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x194
  792. >;
  793. };
  794. pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp {
  795. fsl,pins = <
  796. MX8MN_IOMUXC_NAND_WE_B_USDHC3_CLK 0x196
  797. MX8MN_IOMUXC_NAND_WP_B_USDHC3_CMD 0x1d6
  798. MX8MN_IOMUXC_NAND_DATA04_USDHC3_DATA0 0x1d6
  799. MX8MN_IOMUXC_NAND_DATA05_USDHC3_DATA1 0x1d6
  800. MX8MN_IOMUXC_NAND_DATA06_USDHC3_DATA2 0x1d6
  801. MX8MN_IOMUXC_NAND_DATA07_USDHC3_DATA3 0x1d6
  802. MX8MN_IOMUXC_NAND_RE_B_USDHC3_DATA4 0x1d6
  803. MX8MN_IOMUXC_NAND_CE2_B_USDHC3_DATA5 0x1d6
  804. MX8MN_IOMUXC_NAND_CE3_B_USDHC3_DATA6 0x1d6
  805. MX8MN_IOMUXC_NAND_CLE_USDHC3_DATA7 0x1d6
  806. MX8MN_IOMUXC_NAND_CE1_B_USDHC3_STROBE 0x196
  807. >;
  808. };
  809. pinctrl_wdog: wdoggrp {
  810. fsl,pins = <
  811. MX8MN_IOMUXC_GPIO1_IO02_WDOG1_WDOG_B 0xc6
  812. >;
  813. };
  814. };