2
1

0001-udoo_neo_support.patch 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. From 76e691fc7653b85d390e58710e5c7db73ca49367 Mon Sep 17 00:00:00 2001
  2. From: Andreas Färber <afaerber@suse.de>
  3. Date: Sun, 16 Oct 2016 16:44:23 +0200
  4. Subject: ARM: dts: imx6sx: Add UDOO Neo support
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Add initial device trees for UDOO Neo Basic, Extended and Full boards:
  9. * Serial console is enabled, other serial ports are prepared.
  10. * I2C based PMIC is enabled.
  11. * Ethernet is enabled for Basic and Full.
  12. * SDHC is enabled, with the SDIO_PWR GPIO modeled as a regulator.
  13. * Both user LEDs are enabled, with the orange one reserved for the M4
  14. and with the SD card as default trigger for the red LED.
  15. The decision on a board compatible string is deferred to later.
  16. Cc: Ettore Chimenti <ettore.chimenti@udoo.org>
  17. Signed-off-by: Andreas Färber <afaerber@suse.de>
  18. Signed-off-by: Shawn Guo <shawnguo@kernel.org>
  19. ---
  20. arch/arm/boot/dts/Makefile | 5 +-
  21. arch/arm/boot/dts/imx6sx-udoo-neo-basic.dts | 69 ++++++
  22. arch/arm/boot/dts/imx6sx-udoo-neo-extended.dts | 54 +++++
  23. arch/arm/boot/dts/imx6sx-udoo-neo-full.dts | 69 ++++++
  24. arch/arm/boot/dts/imx6sx-udoo-neo.dtsi | 293 +++++++++++++++++++++++++
  25. 5 files changed, 489 insertions(+), 1 deletion(-)
  26. create mode 100644 arch/arm/boot/dts/imx6sx-udoo-neo-basic.dts
  27. create mode 100644 arch/arm/boot/dts/imx6sx-udoo-neo-extended.dts
  28. create mode 100644 arch/arm/boot/dts/imx6sx-udoo-neo-full.dts
  29. create mode 100644 arch/arm/boot/dts/imx6sx-udoo-neo.dtsi
  30. diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
  31. index 019976b..da0197d 100644
  32. --- a/arch/arm/boot/dts/Makefile
  33. +++ b/arch/arm/boot/dts/Makefile
  34. @@ -417,7 +417,10 @@ dtb-$(CONFIG_SOC_IMX6SX) += \
  35. imx6sx-sabreauto.dtb \
  36. imx6sx-sdb-reva.dtb \
  37. imx6sx-sdb-sai.dtb \
  38. - imx6sx-sdb.dtb
  39. + imx6sx-sdb.dtb \
  40. + imx6sx-udoo-neo-basic.dtb \
  41. + imx6sx-udoo-neo-extended.dtb \
  42. + imx6sx-udoo-neo-full.dtb
  43. dtb-$(CONFIG_SOC_IMX6UL) += \
  44. imx6ul-14x14-evk.dtb \
  45. imx6ul-geam-kit.dtb \
  46. diff --git a/arch/arm/boot/dts/imx6sx-udoo-neo-basic.dts b/arch/arm/boot/dts/imx6sx-udoo-neo-basic.dts
  47. new file mode 100644
  48. index 0000000..0b88878
  49. --- /dev/null
  50. +++ b/arch/arm/boot/dts/imx6sx-udoo-neo-basic.dts
  51. @@ -0,0 +1,69 @@
  52. +/*
  53. + * Copyright (c) 2016 Andreas Färber
  54. + *
  55. + * This file is dual-licensed: you can use it either under the terms
  56. + * of the GPL or the X11 license, at your option. Note that this dual
  57. + * licensing only applies to this file, and not this project as a
  58. + * whole.
  59. + *
  60. + * a) This library is free software; you can redistribute it and/or
  61. + * modify it under the terms of the GNU General Public License as
  62. + * published by the Free Software Foundation; either version 2 of the
  63. + * License, or (at your option) any later version.
  64. + *
  65. + * This library is distributed in the hope that it will be useful,
  66. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  67. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  68. + * GNU General Public License for more details.
  69. + *
  70. + * Or, alternatively,
  71. + *
  72. + * b) Permission is hereby granted, free of charge, to any person
  73. + * obtaining a copy of this software and associated documentation
  74. + * files (the "Software"), to deal in the Software without
  75. + * restriction, including without limitation the rights to use,
  76. + * copy, modify, merge, publish, distribute, sublicense, and/or
  77. + * sell copies of the Software, and to permit persons to whom the
  78. + * Software is furnished to do so, subject to the following
  79. + * conditions:
  80. + *
  81. + * The above copyright notice and this permission notice shall be
  82. + * included in all copies or substantial portions of the Software.
  83. + *
  84. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  85. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  86. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  87. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  88. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  89. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  90. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  91. + * OTHER DEALINGS IN THE SOFTWARE.
  92. + */
  93. +
  94. +/dts-v1/;
  95. +
  96. +#include "imx6sx-udoo-neo.dtsi"
  97. +
  98. +/ {
  99. + model = "UDOO Neo Basic";
  100. + compatible = "fsl,imx6sx";
  101. +
  102. + memory {
  103. + reg = <0x80000000 0x20000000>;
  104. + };
  105. +};
  106. +
  107. +&fec1 {
  108. + phy-handle = <&ethphy1>;
  109. + status = "okay";
  110. +
  111. + mdio {
  112. + #address-cells = <1>;
  113. + #size-cells = <0>;
  114. +
  115. + ethphy1: ethernet-phy@0 {
  116. + compatible = "ethernet-phy-ieee802.3-c22";
  117. + reg = <0>;
  118. + };
  119. + };
  120. +};
  121. diff --git a/arch/arm/boot/dts/imx6sx-udoo-neo-extended.dts b/arch/arm/boot/dts/imx6sx-udoo-neo-extended.dts
  122. new file mode 100644
  123. index 0000000..d6fdd17
  124. --- /dev/null
  125. +++ b/arch/arm/boot/dts/imx6sx-udoo-neo-extended.dts
  126. @@ -0,0 +1,54 @@
  127. +/*
  128. + * Copyright (c) 2016 Andreas Färber
  129. + *
  130. + * This file is dual-licensed: you can use it either under the terms
  131. + * of the GPL or the X11 license, at your option. Note that this dual
  132. + * licensing only applies to this file, and not this project as a
  133. + * whole.
  134. + *
  135. + * a) This library is free software; you can redistribute it and/or
  136. + * modify it under the terms of the GNU General Public License as
  137. + * published by the Free Software Foundation; either version 2 of the
  138. + * License, or (at your option) any later version.
  139. + *
  140. + * This library is distributed in the hope that it will be useful,
  141. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  142. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  143. + * GNU General Public License for more details.
  144. + *
  145. + * Or, alternatively,
  146. + *
  147. + * b) Permission is hereby granted, free of charge, to any person
  148. + * obtaining a copy of this software and associated documentation
  149. + * files (the "Software"), to deal in the Software without
  150. + * restriction, including without limitation the rights to use,
  151. + * copy, modify, merge, publish, distribute, sublicense, and/or
  152. + * sell copies of the Software, and to permit persons to whom the
  153. + * Software is furnished to do so, subject to the following
  154. + * conditions:
  155. + *
  156. + * The above copyright notice and this permission notice shall be
  157. + * included in all copies or substantial portions of the Software.
  158. + *
  159. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  160. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  161. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  162. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  163. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  164. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  165. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  166. + * OTHER DEALINGS IN THE SOFTWARE.
  167. + */
  168. +
  169. +/dts-v1/;
  170. +
  171. +#include "imx6sx-udoo-neo.dtsi"
  172. +
  173. +/ {
  174. + model = "UDOO Neo Extended";
  175. + compatible = "fsl,imx6sx";
  176. +
  177. + memory {
  178. + reg = <0x80000000 0x40000000>;
  179. + };
  180. +};
  181. diff --git a/arch/arm/boot/dts/imx6sx-udoo-neo-full.dts b/arch/arm/boot/dts/imx6sx-udoo-neo-full.dts
  182. new file mode 100644
  183. index 0000000..d8c3577
  184. --- /dev/null
  185. +++ b/arch/arm/boot/dts/imx6sx-udoo-neo-full.dts
  186. @@ -0,0 +1,69 @@
  187. +/*
  188. + * Copyright (c) 2016 Andreas Färber
  189. + *
  190. + * This file is dual-licensed: you can use it either under the terms
  191. + * of the GPL or the X11 license, at your option. Note that this dual
  192. + * licensing only applies to this file, and not this project as a
  193. + * whole.
  194. + *
  195. + * a) This library is free software; you can redistribute it and/or
  196. + * modify it under the terms of the GNU General Public License as
  197. + * published by the Free Software Foundation; either version 2 of the
  198. + * License, or (at your option) any later version.
  199. + *
  200. + * This library is distributed in the hope that it will be useful,
  201. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  202. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  203. + * GNU General Public License for more details.
  204. + *
  205. + * Or, alternatively,
  206. + *
  207. + * b) Permission is hereby granted, free of charge, to any person
  208. + * obtaining a copy of this software and associated documentation
  209. + * files (the "Software"), to deal in the Software without
  210. + * restriction, including without limitation the rights to use,
  211. + * copy, modify, merge, publish, distribute, sublicense, and/or
  212. + * sell copies of the Software, and to permit persons to whom the
  213. + * Software is furnished to do so, subject to the following
  214. + * conditions:
  215. + *
  216. + * The above copyright notice and this permission notice shall be
  217. + * included in all copies or substantial portions of the Software.
  218. + *
  219. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  220. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  221. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  222. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  223. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  224. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  225. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  226. + * OTHER DEALINGS IN THE SOFTWARE.
  227. + */
  228. +
  229. +/dts-v1/;
  230. +
  231. +#include "imx6sx-udoo-neo.dtsi"
  232. +
  233. +/ {
  234. + model = "UDOO Neo Full";
  235. + compatible = "fsl,imx6sx";
  236. +
  237. + memory {
  238. + reg = <0x80000000 0x40000000>;
  239. + };
  240. +};
  241. +
  242. +&fec1 {
  243. + phy-handle = <&ethphy1>;
  244. + status = "okay";
  245. +
  246. + mdio {
  247. + #address-cells = <1>;
  248. + #size-cells = <0>;
  249. +
  250. + ethphy1: ethernet-phy@0 {
  251. + compatible = "ethernet-phy-ieee802.3-c22";
  252. + reg = <0>;
  253. + };
  254. + };
  255. +};
  256. diff --git a/arch/arm/boot/dts/imx6sx-udoo-neo.dtsi b/arch/arm/boot/dts/imx6sx-udoo-neo.dtsi
  257. new file mode 100644
  258. index 0000000..2b65d26
  259. --- /dev/null
  260. +++ b/arch/arm/boot/dts/imx6sx-udoo-neo.dtsi
  261. @@ -0,0 +1,293 @@
  262. +/*
  263. + * Copyright (c) 2016 Andreas Färber
  264. + *
  265. + * This file is dual-licensed: you can use it either under the terms
  266. + * of the GPL or the X11 license, at your option. Note that this dual
  267. + * licensing only applies to this file, and not this project as a
  268. + * whole.
  269. + *
  270. + * a) This library is free software; you can redistribute it and/or
  271. + * modify it under the terms of the GNU General Public License as
  272. + * published by the Free Software Foundation; either version 2 of the
  273. + * License, or (at your option) any later version.
  274. + *
  275. + * This library is distributed in the hope that it will be useful,
  276. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  277. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  278. + * GNU General Public License for more details.
  279. + *
  280. + * Or, alternatively,
  281. + *
  282. + * b) Permission is hereby granted, free of charge, to any person
  283. + * obtaining a copy of this software and associated documentation
  284. + * files (the "Software"), to deal in the Software without
  285. + * restriction, including without limitation the rights to use,
  286. + * copy, modify, merge, publish, distribute, sublicense, and/or
  287. + * sell copies of the Software, and to permit persons to whom the
  288. + * Software is furnished to do so, subject to the following
  289. + * conditions:
  290. + *
  291. + * The above copyright notice and this permission notice shall be
  292. + * included in all copies or substantial portions of the Software.
  293. + *
  294. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  295. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  296. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  297. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  298. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  299. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  300. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  301. + * OTHER DEALINGS IN THE SOFTWARE.
  302. + */
  303. +
  304. +#include "imx6sx.dtsi"
  305. +
  306. +/ {
  307. + compatible = "fsl,imx6sx";
  308. +
  309. + chosen {
  310. + stdout-path = "serial0:115200n8";
  311. + };
  312. +
  313. + leds {
  314. + compatible = "gpio-leds";
  315. +
  316. + red {
  317. + label = "udoo-neo:red:mmc";
  318. + gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>;
  319. + default-state = "off";
  320. + linux,default-trigger = "mmc0";
  321. + };
  322. +
  323. + orange {
  324. + label = "udoo-neo:orange:user";
  325. + gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>;
  326. + default-state = "keep";
  327. + };
  328. + };
  329. +
  330. + reg_sdio_pwr: regulator-sdio-pwr {
  331. + compatible = "regulator-fixed";
  332. + gpio = <&gpio6 1 GPIO_ACTIVE_HIGH>;
  333. + enable-active-high;
  334. + regulator-name = "SDIO_PWR";
  335. + regulator-min-microvolt = <3300000>;
  336. + regulator-max-microvolt = <3300000>;
  337. + regulator-boot-on;
  338. + };
  339. +};
  340. +
  341. +&cpu0 {
  342. + arm-supply = <&sw1a_reg>;
  343. + soc-supply = <&sw1c_reg>;
  344. +};
  345. +
  346. +&fec1 {
  347. + pinctrl-names = "default";
  348. + pinctrl-0 = <&pinctrl_enet1>;
  349. + phy-mode = "rmii";
  350. + phy-reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
  351. +};
  352. +
  353. +&i2c1 {
  354. + pinctrl-names = "default";
  355. + pinctrl-0 = <&pinctrl_i2c1>;
  356. + clock-frequency = <100000>;
  357. + status = "okay";
  358. +
  359. + pmic: pmic@08 {
  360. + compatible = "fsl,pfuze3000";
  361. + reg = <0x08>;
  362. +
  363. + regulators {
  364. + sw1a_reg: sw1a {
  365. + regulator-min-microvolt = <700000>;
  366. + regulator-max-microvolt = <1475000>;
  367. + regulator-boot-on;
  368. + regulator-always-on;
  369. + regulator-ramp-delay = <6250>;
  370. + };
  371. +
  372. + sw1c_reg: sw1b {
  373. + regulator-min-microvolt = <700000>;
  374. + regulator-max-microvolt = <1475000>;
  375. + regulator-boot-on;
  376. + regulator-always-on;
  377. + regulator-ramp-delay = <6250>;
  378. + };
  379. +
  380. + sw2_reg: sw2 {
  381. + regulator-min-microvolt = <1500000>;
  382. + regulator-max-microvolt = <1850000>;
  383. + regulator-boot-on;
  384. + regulator-always-on;
  385. + };
  386. +
  387. + sw3a_reg: sw3 {
  388. + regulator-min-microvolt = <900000>;
  389. + regulator-max-microvolt = <1650000>;
  390. + regulator-boot-on;
  391. + regulator-always-on;
  392. + };
  393. +
  394. + swbst_reg: swbst {
  395. + regulator-min-microvolt = <5000000>;
  396. + regulator-max-microvolt = <5150000>;
  397. + };
  398. +
  399. + snvs_reg: vsnvs {
  400. + regulator-min-microvolt = <1000000>;
  401. + regulator-max-microvolt = <3000000>;
  402. + regulator-boot-on;
  403. + regulator-always-on;
  404. + };
  405. +
  406. + vref_reg: vrefddr {
  407. + regulator-boot-on;
  408. + regulator-always-on;
  409. + };
  410. +
  411. + vgen1_reg: vldo1 {
  412. + regulator-min-microvolt = <1800000>;
  413. + regulator-max-microvolt = <3300000>;
  414. + regulator-always-on;
  415. + };
  416. +
  417. + vgen2_reg: vldo2 {
  418. + regulator-min-microvolt = <800000>;
  419. + regulator-max-microvolt = <1550000>;
  420. + };
  421. +
  422. + vgen3_reg: vccsd {
  423. + regulator-min-microvolt = <2850000>;
  424. + regulator-max-microvolt = <3300000>;
  425. + regulator-always-on;
  426. + };
  427. +
  428. + vgen4_reg: v33 {
  429. + regulator-min-microvolt = <2850000>;
  430. + regulator-max-microvolt = <3300000>;
  431. + regulator-always-on;
  432. + };
  433. +
  434. + vgen5_reg: vldo3 {
  435. + regulator-min-microvolt = <1800000>;
  436. + regulator-max-microvolt = <3300000>;
  437. + regulator-always-on;
  438. + };
  439. +
  440. + vgen6_reg: vldo4 {
  441. + regulator-min-microvolt = <1800000>;
  442. + regulator-max-microvolt = <3300000>;
  443. + regulator-always-on;
  444. + };
  445. + };
  446. + };
  447. +};
  448. +
  449. +&iomuxc {
  450. + pinctrl_enet1: enet1grp {
  451. + fsl,pins =
  452. + <MX6SX_PAD_ENET1_CRS__GPIO2_IO_1 0xa0b1>,
  453. + <MX6SX_PAD_ENET1_MDC__ENET1_MDC 0xa0b1>,
  454. + <MX6SX_PAD_ENET1_MDIO__ENET1_MDIO 0xa0b1>,
  455. + <MX6SX_PAD_RGMII1_TD0__ENET1_TX_DATA_0 0xa0b1>,
  456. + <MX6SX_PAD_RGMII1_TD1__ENET1_TX_DATA_1 0xa0b1>,
  457. + <MX6SX_PAD_RGMII1_TX_CTL__ENET1_TX_EN 0xa0b1>,
  458. +
  459. + <MX6SX_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x3081>,
  460. + <MX6SX_PAD_ENET2_TX_CLK__GPIO2_IO_9 0x3081>,
  461. + <MX6SX_PAD_RGMII1_RD0__ENET1_RX_DATA_0 0x3081>,
  462. + <MX6SX_PAD_RGMII1_RD1__ENET1_RX_DATA_1 0x3081>,
  463. + <MX6SX_PAD_RGMII1_RX_CTL__ENET1_RX_EN 0x3081>,
  464. + <MX6SX_PAD_RGMII1_RXC__ENET1_RX_ER 0x3081>,
  465. +
  466. + <MX6SX_PAD_ENET2_RX_CLK__ENET2_REF_CLK_25M 0x91>;
  467. + };
  468. +
  469. + pinctrl_i2c1: i2c1grp {
  470. + fsl,pins =
  471. + <MX6SX_PAD_GPIO1_IO00__I2C1_SCL 0x4001b8b1>,
  472. + <MX6SX_PAD_GPIO1_IO01__I2C1_SDA 0x4001b8b1>;
  473. + };
  474. +
  475. + pinctrl_uart1: uart1grp {
  476. + fsl,pins =
  477. + <MX6SX_PAD_GPIO1_IO04__UART1_TX 0x1b0b1>,
  478. + <MX6SX_PAD_GPIO1_IO05__UART1_RX 0x1b0b1>;
  479. + };
  480. +
  481. + pinctrl_uart2: uart2grp {
  482. + fsl,pins =
  483. + <MX6SX_PAD_GPIO1_IO06__UART2_TX 0x1b0b1>,
  484. + <MX6SX_PAD_GPIO1_IO07__UART2_RX 0x1b0b1>;
  485. + };
  486. +
  487. + pinctrl_uart5: uart5grp {
  488. + fsl,pins =
  489. + <MX6SX_PAD_SD4_DATA4__UART5_RX 0x1b0b1>,
  490. + <MX6SX_PAD_SD4_DATA5__UART5_TX 0x1b0b1>;
  491. + };
  492. +
  493. + pinctrl_uart6: uart6grp {
  494. + fsl,pins =
  495. + <MX6SX_PAD_CSI_DATA00__UART6_RI_B 0x1b0b1>,
  496. + <MX6SX_PAD_CSI_DATA01__UART6_DSR_B 0x1b0b1>,
  497. + <MX6SX_PAD_CSI_DATA02__UART6_DTR_B 0x1b0b1>,
  498. + <MX6SX_PAD_CSI_DATA03__UART6_DCD_B 0x1b0b1>,
  499. + <MX6SX_PAD_CSI_DATA04__UART6_RX 0x1b0b1>,
  500. + <MX6SX_PAD_CSI_DATA05__UART6_TX 0x1b0b1>,
  501. + <MX6SX_PAD_CSI_DATA06__UART6_RTS_B 0x1b0b1>,
  502. + <MX6SX_PAD_CSI_DATA07__UART6_CTS_B 0x1b0b1>;
  503. + };
  504. +
  505. + pinctrl_usdhc2: usdhc2grp {
  506. + fsl,pins =
  507. + <MX6SX_PAD_SD2_CMD__USDHC2_CMD 0x17059>,
  508. + <MX6SX_PAD_SD2_CLK__USDHC2_CLK 0x10059>,
  509. + <MX6SX_PAD_SD2_DATA0__USDHC2_DATA0 0x17059>,
  510. + <MX6SX_PAD_SD2_DATA1__USDHC2_DATA1 0x17059>,
  511. + <MX6SX_PAD_SD2_DATA2__USDHC2_DATA2 0x17059>,
  512. + <MX6SX_PAD_SD2_DATA3__USDHC2_DATA3 0x17059>,
  513. + <MX6SX_PAD_SD1_DATA0__GPIO6_IO_2 0x17059>; /* CD */
  514. + };
  515. +};
  516. +
  517. +&uart1 {
  518. + pinctrl-names = "default";
  519. + pinctrl-0 = <&pinctrl_uart1>;
  520. + status = "okay";
  521. +};
  522. +
  523. +/* Cortex-M4 serial */
  524. +&uart2 {
  525. + pinctrl-names = "default";
  526. + pinctrl-0 = <&pinctrl_uart2>;
  527. + status = "disabled";
  528. +};
  529. +
  530. +/* Arduino serial */
  531. +&uart5 {
  532. + pinctrl-names = "default";
  533. + pinctrl-0 = <&pinctrl_uart5>;
  534. + status = "disabled";
  535. +};
  536. +
  537. +&uart6 {
  538. + pinctrl-names = "default";
  539. + pinctrl-0 = <&pinctrl_uart6>;
  540. + uart-has-rtscts;
  541. + status = "disabled";
  542. +};
  543. +
  544. +&usdhc2 {
  545. + pinctrl-names = "default";
  546. + pinctrl-0 = <&pinctrl_usdhc2>;
  547. + vmmc-supply = <&reg_sdio_pwr>;
  548. + bus-width = <4>;
  549. + cd-gpios = <&gpio6 2 GPIO_ACTIVE_LOW>;
  550. + no-1-8-v;
  551. + keep-power-in-suspend;
  552. + wakeup-source;
  553. + status = "okay";
  554. +};
  555. --
  556. cgit v0.12