0009-USB-Armory-MkII-support.patch 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560
  1. From d174311bd7469ddf9c292ab41f2bca0a21b12ab2 Mon Sep 17 00:00:00 2001
  2. From: Kevin Mihelich <kevin@archlinuxarm.org>
  3. Date: Sun, 11 Aug 2019 12:34:17 -0600
  4. Subject: [PATCH 9/9] USB Armory MkII support
  5. ---
  6. arch/arm/boot/dts/Makefile | 2 +
  7. arch/arm/boot/dts/imx6ul-usbarmory.dts | 256 +++++++++++++++++++++++
  8. arch/arm/boot/dts/imx6ull-usbarmory.dts | 257 ++++++++++++++++++++++++
  9. 3 files changed, 515 insertions(+)
  10. create mode 100644 arch/arm/boot/dts/imx6ul-usbarmory.dts
  11. create mode 100644 arch/arm/boot/dts/imx6ull-usbarmory.dts
  12. diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
  13. index 8f4062d549e2..9af811420ae6 100644
  14. --- a/arch/arm/boot/dts/Makefile
  15. +++ b/arch/arm/boot/dts/Makefile
  16. @@ -626,11 +626,13 @@ dtb-$(CONFIG_SOC_IMX6UL) += \
  17. imx6ul-tx6ul-0010.dtb \
  18. imx6ul-tx6ul-0011.dtb \
  19. imx6ul-tx6ul-mainboard.dtb \
  20. + imx6ul-usbarmory.dtb \
  21. imx6ull-14x14-evk.dtb \
  22. imx6ull-colibri-eval-v3.dtb \
  23. imx6ull-colibri-wifi-eval-v3.dtb \
  24. imx6ull-myir-mys-6ulx-eval.dtb \
  25. imx6ull-opos6uldev.dtb \
  26. + imx6ull-usbarmory.dtb \
  27. imx6ull-phytec-segin-ff-rdk-nand.dtb \
  28. imx6ull-phytec-segin-ff-rdk-emmc.dtb \
  29. imx6ull-phytec-segin-lc-rdk-nand.dtb \
  30. diff --git a/arch/arm/boot/dts/imx6ul-usbarmory.dts b/arch/arm/boot/dts/imx6ul-usbarmory.dts
  31. new file mode 100644
  32. index 000000000000..1fdcd6f611d5
  33. --- /dev/null
  34. +++ b/arch/arm/boot/dts/imx6ul-usbarmory.dts
  35. @@ -0,0 +1,256 @@
  36. +/*
  37. + * USB armory Mk II device tree file
  38. + * https://github.com/inversepath/usbarmory
  39. + *
  40. + * Copyright (C) 2019, F-Secure Corporation
  41. + * Andrej Rosano <andrej.rosano@f-secure.com>
  42. + *
  43. + * This file is dual-licensed: you can use it either under the terms
  44. + * of the GPL or the X11 license, at your option. Note that this dual
  45. + * licensing only applies to this file, and not this project as a
  46. + * whole.
  47. + *
  48. + * a) This file is free software; you can redistribute it and/or
  49. + * modify it under the terms of the GNU General Public License as
  50. + * published by the Free Software Foundation; either version 2 of the
  51. + * License, or (at your option) any later version.
  52. + *
  53. + * This file is distributed in the hope that it will be useful,
  54. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  55. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  56. + * GNU General Public License for more details.
  57. + *
  58. + * Or, alternatively,
  59. + *
  60. + * b) Permission is hereby granted, free of charge, to any person
  61. + * obtaining a copy of this software and associated documentation
  62. + * files (the "Software"), to deal in the Software without
  63. + * restriction, including without limitation the rights to use,
  64. + * copy, modify, merge, publish, distribute, sublicense, and/or
  65. + * sell copies of the Software, and to permit persons to whom the
  66. + * Software is furnished to do so, subject to the following
  67. + * conditions:
  68. + *
  69. + * The above copyright notice and this permission notice shall be
  70. + * included in all copies or substantial portions of the Software.
  71. + *
  72. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  73. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  74. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  75. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  76. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  77. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  78. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  79. + * OTHER DEALINGS IN THE SOFTWARE.
  80. + */
  81. +
  82. +/dts-v1/;
  83. +
  84. +#include "imx6ul.dtsi"
  85. +
  86. +/ {
  87. + model = "F-Secure USB armory Mk II";
  88. + compatible = "inversepath,imx6ul-usbarmory-mkII", "fsl,imx6ul";
  89. +
  90. + chosen {
  91. + stdout-path = &uart2;
  92. + };
  93. +
  94. + memory {
  95. + device_type = "memory";
  96. + reg = <0x80000000 0x20000000>;
  97. + };
  98. +
  99. + leds {
  100. + compatible = "gpio-leds";
  101. + pinctrl-names = "default";
  102. + pinctrl-0 = <&pinctrl_led>;
  103. +
  104. + led-white {
  105. + label = "LED_WHITE";
  106. + gpios = <&gpio4 21 GPIO_ACTIVE_LOW>;
  107. + linux,default-trigger = "heartbeat";
  108. + };
  109. +
  110. + led-blue {
  111. + label = "LED_BLUE";
  112. + gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
  113. + };
  114. + };
  115. +
  116. + regulators {
  117. + compatible = "simple-bus";
  118. + #address-cells = <1>;
  119. + #size-cells = <0>;
  120. +
  121. + reg_sd1_vmmc: sd1_regulator {
  122. + compatible = "regulator-fixed";
  123. + regulator-name = "VSD_3V3";
  124. + regulator-min-microvolt = <3300000>;
  125. + regulator-max-microvolt = <3300000>;
  126. + };
  127. + };
  128. +};
  129. +
  130. +&uart1 {
  131. + pinctrl-names = "default";
  132. + pinctrl-0 = <&pinctrl_bluetooth>;
  133. + uart-has-rtscts;
  134. + status = "okay";
  135. +};
  136. +
  137. +&uart2 {
  138. + pinctrl-names = "default";
  139. + pinctrl-0 = <&pinctrl_uart2>;
  140. + status = "okay";
  141. +};
  142. +
  143. +&usdhc1 {
  144. + pinctrl-names = "default";
  145. + pinctrl-0 = <&pinctrl_usdhc1>;
  146. + no-1-8-v;
  147. + keep-power-in-suspend;
  148. + wakeup-source;
  149. + status = "okay";
  150. +};
  151. +
  152. +&usdhc2 {
  153. + pinctrl-names = "default";
  154. + pinctrl-0 = <&pinctrl_usdhc2>;
  155. + non-removable;
  156. + status = "okay";
  157. +};
  158. +
  159. +&i2c1 {
  160. + pinctrl-0 = <&pinctrl_i2c1>;
  161. + status = "okay";
  162. +};
  163. +
  164. +&iomuxc {
  165. + pinctrl_uart2: uart2grp {
  166. + fsl,pins = <
  167. + MX6UL_PAD_UART2_TX_DATA__UART2_DCE_TX 0x1b0b1
  168. + MX6UL_PAD_UART2_RX_DATA__UART2_DCE_RX 0x1b0b1
  169. + >;
  170. + };
  171. +
  172. + pinctrl_bluetooth: uart1grp {
  173. + fsl,pins = <
  174. + MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b0 /* BT_UART_TX */
  175. + MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b0 /* BT_UART_RX */
  176. + MX6UL_PAD_UART1_CTS_B__UART1_DCE_CTS 0x1b0b0 /* BT_UART_CTS */
  177. + MX6UL_PAD_GPIO1_IO07__UART1_DCE_RTS 0x130b0 /* BT_UART_RTS */
  178. + MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24 0x1f020 /* BT_UART_DSR */
  179. + MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0x10020 /* BT_UART_DTR */
  180. + MX6UL_PAD_GPIO1_IO04__GPIO1_IO04 0x1f020 /* BT_SWDCLK */
  181. + MX6UL_PAD_GPIO1_IO05__GPIO1_IO05 0x1f020 /* BT_SWDIO */
  182. + MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x1f020 /* BT_RESET */
  183. + MX6UL_PAD_UART3_RTS_B__GPIO1_IO27 0x1f020 /* BT_SWITCH_1 */
  184. + MX6UL_PAD_UART3_CTS_B__GPIO1_IO26 0x1f020 /* BT_SWITCH_2 */
  185. + >;
  186. + };
  187. +
  188. + pinctrl_i2c1: i2c1grp {
  189. + fsl,pins = <
  190. + MX6UL_PAD_GPIO1_IO02__I2C1_SCL 0x4001b8b0
  191. + MX6UL_PAD_GPIO1_IO03__I2C1_SDA 0x4001b8b0
  192. + >;
  193. + };
  194. +
  195. + pinctrl_led: ledgrp {
  196. + fsl,pins = <
  197. + MX6UL_PAD_CSI_DATA06__GPIO4_IO27 0x1f020
  198. + MX6UL_PAD_CSI_DATA07__GPIO4_IO28 0x1f020
  199. + >;
  200. + };
  201. +
  202. + pinctrl_usdhc1: usdhc1grp {
  203. + fsl,pins = <
  204. + MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x1f019
  205. + MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x1f019
  206. + MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x1f019
  207. + MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x1f019
  208. + MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x1f019
  209. + MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x1f019
  210. + >;
  211. + };
  212. +
  213. + pinctrl_usdhc2: usdhc2grp {
  214. + fsl,pins = <
  215. + MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x10071
  216. + MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x17059
  217. + MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x17059
  218. + MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x17059
  219. + MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x17059
  220. + MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x17059
  221. + MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x17059
  222. + MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x17059
  223. + MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x17059
  224. + MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x17059
  225. + >;
  226. + };
  227. +};
  228. +
  229. +&aips2 {
  230. + crypto: crypto@2140000 {
  231. + compatible = "fsl,imx6ul-caam", "fsl,sec-v4.0";
  232. + #address-cells = <1>;
  233. + #size-cells = <1>;
  234. + reg = <0x2140000 0x3c000>;
  235. + ranges = <0 0x2140000 0x3c000>;
  236. + interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
  237. + clocks = <&clks IMX6UL_CLK_CAAM_IPG>, <&clks IMX6UL_CLK_CAAM_ACLK>,
  238. + <&clks IMX6UL_CLK_CAAM_MEM>;
  239. + clock-names = "ipg", "aclk", "mem";
  240. +
  241. + sec_jr0: jr@1000 {
  242. + compatible = "fsl,sec-v4.0-job-ring";
  243. + reg = <0x1000 0x1000>;
  244. + interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
  245. + };
  246. +
  247. + sec_jr1: jr@2000 {
  248. + compatible = "fsl,sec-v4.0-job-ring";
  249. + reg = <0x2000 0x1000>;
  250. + interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
  251. + };
  252. + sec_jr2: jr@3000 {
  253. + compatible = "fsl,sec-v4.0-job-ring";
  254. + reg = <0x3000 0x1000>;
  255. + interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
  256. + };
  257. + };
  258. +};
  259. +
  260. +/ {
  261. + soc {
  262. + caam_sm: caam-sm@00100000 {
  263. + compatible = "fsl,imx7d-caam-sm", "fsl,imx6q-caam-sm";
  264. + reg = <0x00100000 0x3fff>;
  265. + };
  266. +
  267. + irq_sec_vio: caam_secvio {
  268. + compatible = "fsl,imx7d-caam-secvio", "fsl,imx6q-caam-secvio";
  269. + interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
  270. + };
  271. + };
  272. +
  273. + caam_keyblob: caam-keyblob {
  274. + compatible = "fsl,sec-v4.0-keyblob";
  275. + status = "okay";
  276. + };
  277. +};
  278. +
  279. +&usbotg1 {
  280. + dr_mode = "peripheral";
  281. + disable-over-current;
  282. + tpl-support;
  283. + status = "okay";
  284. +};
  285. +
  286. +&usbotg2 {
  287. + dr_mode = "host";
  288. + disable-over-current;
  289. + tpl-support;
  290. + status = "okay";
  291. +};
  292. diff --git a/arch/arm/boot/dts/imx6ull-usbarmory.dts b/arch/arm/boot/dts/imx6ull-usbarmory.dts
  293. new file mode 100644
  294. index 000000000000..f74d0296d5f6
  295. --- /dev/null
  296. +++ b/arch/arm/boot/dts/imx6ull-usbarmory.dts
  297. @@ -0,0 +1,257 @@
  298. +/*
  299. + * USB armory Mk II device tree file
  300. + * https://github.com/inversepath/usbarmory
  301. + *
  302. + * Copyright (C) 2019, F-Secure Corporation
  303. + * Andrej Rosano <andrej.rosano@f-secure.com>
  304. + *
  305. + * This file is dual-licensed: you can use it either under the terms
  306. + * of the GPL or the X11 license, at your option. Note that this dual
  307. + * licensing only applies to this file, and not this project as a
  308. + * whole.
  309. + *
  310. + * a) This file is free software; you can redistribute it and/or
  311. + * modify it under the terms of the GNU General Public License as
  312. + * published by the Free Software Foundation; either version 2 of the
  313. + * License, or (at your option) any later version.
  314. + *
  315. + * This file is distributed in the hope that it will be useful,
  316. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  317. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  318. + * GNU General Public License for more details.
  319. + *
  320. + * Or, alternatively,
  321. + *
  322. + * b) Permission is hereby granted, free of charge, to any person
  323. + * obtaining a copy of this software and associated documentation
  324. + * files (the "Software"), to deal in the Software without
  325. + * restriction, including without limitation the rights to use,
  326. + * copy, modify, merge, publish, distribute, sublicense, and/or
  327. + * sell copies of the Software, and to permit persons to whom the
  328. + * Software is furnished to do so, subject to the following
  329. + * conditions:
  330. + *
  331. + * The above copyright notice and this permission notice shall be
  332. + * included in all copies or substantial portions of the Software.
  333. + *
  334. + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  335. + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  336. + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  337. + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  338. + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  339. + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  340. + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  341. + * OTHER DEALINGS IN THE SOFTWARE.
  342. + */
  343. +
  344. +/dts-v1/;
  345. +
  346. +#include "imx6ul.dtsi"
  347. +
  348. +/ {
  349. + model = "F-Secure USB armory Mk II";
  350. + compatible = "inversepath,imx6ull-usbarmory-mkII", "fsl,imx6ull";
  351. +
  352. + chosen {
  353. + stdout-path = &uart2;
  354. + };
  355. +
  356. + memory {
  357. + device_type = "memory";
  358. + reg = <0x80000000 0x20000000>;
  359. + };
  360. +
  361. + leds {
  362. + compatible = "gpio-leds";
  363. + pinctrl-names = "default";
  364. + pinctrl-0 = <&pinctrl_led>;
  365. +
  366. + led-white {
  367. + label = "LED_WHITE";
  368. + gpios = <&gpio4 21 GPIO_ACTIVE_LOW>;
  369. + linux,default-trigger = "heartbeat";
  370. + };
  371. +
  372. + led-blue {
  373. + label = "LED_BLUE";
  374. + gpios = <&gpio4 22 GPIO_ACTIVE_LOW>;
  375. + };
  376. + };
  377. +
  378. + regulators {
  379. + compatible = "simple-bus";
  380. + #address-cells = <1>;
  381. + #size-cells = <0>;
  382. +
  383. + reg_sd1_vmmc: sd1_regulator {
  384. + compatible = "regulator-fixed";
  385. + regulator-name = "VSD_3V3";
  386. + regulator-min-microvolt = <3300000>;
  387. + regulator-max-microvolt = <3300000>;
  388. + };
  389. + };
  390. +};
  391. +
  392. +/* Delete CAAM node in AIPS-2 (i.MX6UL specific) */
  393. +/delete-node/ &crypto;
  394. +
  395. +&cpu0 {
  396. + operating-points = <
  397. + /* kHz uV */
  398. + 900000 1275000
  399. + 792000 1225000
  400. + 528000 1175000
  401. + 396000 1025000
  402. + 198000 950000
  403. + >;
  404. + fsl,soc-operating-points = <
  405. + /* KHz uV */
  406. + 900000 1250000
  407. + 792000 1175000
  408. + 528000 1175000
  409. + 396000 1175000
  410. + 198000 1175000
  411. + >;
  412. +};
  413. +
  414. +&uart1 {
  415. + pinctrl-names = "default";
  416. + pinctrl-0 = <&pinctrl_bluetooth>;
  417. + uart-has-rtscts;
  418. + status = "okay";
  419. +};
  420. +
  421. +&uart2 {
  422. + pinctrl-names = "default";
  423. + pinctrl-0 = <&pinctrl_uart2>;
  424. + status = "okay";
  425. +};
  426. +
  427. +&usdhc1 {
  428. + pinctrl-names = "default";
  429. + pinctrl-0 = <&pinctrl_usdhc1>;
  430. + no-1-8-v;
  431. + keep-power-in-suspend;
  432. + wakeup-source;
  433. + status = "okay";
  434. +};
  435. +
  436. +&usdhc2 {
  437. + pinctrl-names = "default";
  438. + pinctrl-0 = <&pinctrl_usdhc2>;
  439. + non-removable;
  440. + status = "okay";
  441. +};
  442. +
  443. +&i2c1 {
  444. + pinctrl-0 = <&pinctrl_i2c1>;
  445. + status = "okay";
  446. +};
  447. +
  448. +&iomuxc {
  449. + pinctrl_uart2: uart2grp {
  450. + fsl,pins = <
  451. + MX6UL_PAD_UART2_TX_DATA__UART2_DCE_TX 0x1b0b1
  452. + MX6UL_PAD_UART2_RX_DATA__UART2_DCE_RX 0x1b0b1
  453. + >;
  454. + };
  455. +
  456. + pinctrl_bluetooth: uart1grp {
  457. + fsl,pins = <
  458. + MX6UL_PAD_UART1_TX_DATA__UART1_DCE_TX 0x1b0b0 /* BT_UART_TX */
  459. + MX6UL_PAD_UART1_RX_DATA__UART1_DCE_RX 0x1b0b0 /* BT_UART_RX */
  460. + MX6UL_PAD_UART1_CTS_B__UART1_DCE_CTS 0x1b0b0 /* BT_UART_CTS */
  461. + MX6UL_PAD_GPIO1_IO07__UART1_DCE_RTS 0x130b0 /* BT_UART_RTS */
  462. + MX6UL_PAD_UART3_TX_DATA__GPIO1_IO24 0x1f020 /* BT_UART_DSR */
  463. + MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25 0x10020 /* BT_UART_DTR */
  464. + MX6UL_PAD_GPIO1_IO04__GPIO1_IO04 0x1f020 /* BT_SWDCLK */
  465. + MX6UL_PAD_GPIO1_IO05__GPIO1_IO05 0x1f020 /* BT_SWDIO */
  466. + MX6UL_PAD_GPIO1_IO09__GPIO1_IO09 0x1f020 /* BT_RESET */
  467. + MX6UL_PAD_UART3_RTS_B__GPIO1_IO27 0x1f020 /* BT_SWITCH_1 */
  468. + MX6UL_PAD_UART3_CTS_B__GPIO1_IO26 0x1f020 /* BT_SWITCH_2 */
  469. + >;
  470. + };
  471. +
  472. + pinctrl_i2c1: i2c1grp {
  473. + fsl,pins = <
  474. + MX6UL_PAD_GPIO1_IO02__I2C1_SCL 0x4001b8b0
  475. + MX6UL_PAD_GPIO1_IO03__I2C1_SDA 0x4001b8b0
  476. + >;
  477. + };
  478. +
  479. + pinctrl_led: ledgrp {
  480. + fsl,pins = <
  481. + MX6UL_PAD_CSI_DATA06__GPIO4_IO27 0x1f020
  482. + MX6UL_PAD_CSI_DATA07__GPIO4_IO28 0x1f020
  483. + >;
  484. + };
  485. +
  486. + pinctrl_usdhc1: usdhc1grp {
  487. + fsl,pins = <
  488. + MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x1f019
  489. + MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x1f019
  490. + MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x1f019
  491. + MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x1f019
  492. + MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x1f019
  493. + MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x1f019
  494. + >;
  495. + };
  496. +
  497. + pinctrl_usdhc2: usdhc2grp {
  498. + fsl,pins = <
  499. + MX6UL_PAD_NAND_RE_B__USDHC2_CLK 0x10071
  500. + MX6UL_PAD_NAND_WE_B__USDHC2_CMD 0x17059
  501. + MX6UL_PAD_NAND_DATA00__USDHC2_DATA0 0x17059
  502. + MX6UL_PAD_NAND_DATA01__USDHC2_DATA1 0x17059
  503. + MX6UL_PAD_NAND_DATA02__USDHC2_DATA2 0x17059
  504. + MX6UL_PAD_NAND_DATA03__USDHC2_DATA3 0x17059
  505. + MX6UL_PAD_NAND_DATA04__USDHC2_DATA4 0x17059
  506. + MX6UL_PAD_NAND_DATA05__USDHC2_DATA5 0x17059
  507. + MX6UL_PAD_NAND_DATA06__USDHC2_DATA6 0x17059
  508. + MX6UL_PAD_NAND_DATA07__USDHC2_DATA7 0x17059
  509. + >;
  510. + };
  511. +};
  512. +
  513. +/ {
  514. + soc {
  515. + aips3: aips-bus@02200000 {
  516. + compatible = "fsl,aips-bus", "simple-bus";
  517. + #address-cells = <1>;
  518. + #size-cells = <1>;
  519. + reg = <0x02200000 0x100000>;
  520. + ranges;
  521. +
  522. + dcp: dcp@02280000 {
  523. + compatible = "fsl,imx6ull-dcp", "fsl,imx6sl-dcp", "fsl,imx28-dcp";
  524. + reg = <0x02280000 0x4000>;
  525. + interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>,
  526. + <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>,
  527. + <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
  528. + clocks = <&clks IMX6ULL_CLK_DCP_CLK>;
  529. + clock-names = "dcp";
  530. + };
  531. +
  532. + rngb: rngb@02284000 {
  533. + compatible = "fsl,imx6sl-rng", "fsl,imx25-rngb", "fsl,imx-rng", "imx-rng";
  534. + reg = <0x02284000 0x4000>;
  535. + interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
  536. + clocks = <&clks IMX6UL_CLK_DUMMY>;
  537. + };
  538. + };
  539. + };
  540. +};
  541. +
  542. +&usbotg1 {
  543. + dr_mode = "peripheral";
  544. + disable-over-current;
  545. + tpl-support;
  546. + status = "okay";
  547. +};
  548. +
  549. +&usbotg2 {
  550. + dr_mode = "host";
  551. + disable-over-current;
  552. + tpl-support;
  553. + status = "okay";
  554. +};
  555. --
  556. 2.30.0