hi3660-hikey960.dts 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * dts file for Hisilicon HiKey960 Development Board
  4. *
  5. * Copyright (C) 2016, HiSilicon Ltd.
  6. *
  7. */
  8. /dts-v1/;
  9. #include "hi3660.dtsi"
  10. #include "hikey960-pinctrl.dtsi"
  11. #include <dt-bindings/gpio/gpio.h>
  12. #include <dt-bindings/input/input.h>
  13. #include <dt-bindings/interrupt-controller/irq.h>
  14. #include <dt-bindings/usb/pd.h>
  15. / {
  16. model = "HiKey960";
  17. compatible = "hisilicon,hi3660-hikey960", "hisilicon,hi3660";
  18. aliases {
  19. mshc1 = &dwmmc1;
  20. mshc2 = &dwmmc2;
  21. serial0 = &uart0;
  22. serial1 = &uart1;
  23. serial2 = &uart2;
  24. serial3 = &uart3;
  25. serial4 = &uart4;
  26. serial5 = &uart5;
  27. serial6 = &uart6;
  28. };
  29. chosen {
  30. stdout-path = "serial6:115200n8";
  31. };
  32. memory@0 {
  33. device_type = "memory";
  34. /* rewrite this at bootloader */
  35. reg = <0x0 0x0 0x0 0x0>;
  36. };
  37. reserved-memory {
  38. #address-cells = <2>;
  39. #size-cells = <2>;
  40. ranges;
  41. ramoops@32000000 {
  42. compatible = "ramoops";
  43. reg = <0x0 0x32000000 0x0 0x00100000>;
  44. record-size = <0x00020000>;
  45. console-size = <0x00020000>;
  46. ftrace-size = <0x00020000>;
  47. };
  48. };
  49. reboot-mode-syscon@32100000 {
  50. compatible = "syscon", "simple-mfd";
  51. reg = <0x0 0x32100000 0x0 0x00001000>;
  52. reboot-mode {
  53. compatible = "syscon-reboot-mode";
  54. offset = <0x0>;
  55. mode-normal = <0x77665501>;
  56. mode-bootloader = <0x77665500>;
  57. mode-recovery = <0x77665502>;
  58. };
  59. };
  60. keys {
  61. compatible = "gpio-keys";
  62. pinctrl-names = "default";
  63. pinctrl-0 = <&pwr_key_pmx_func &pwr_key_cfg_func>;
  64. key-power {
  65. wakeup-source;
  66. gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
  67. label = "GPIO Power";
  68. linux,code = <KEY_POWER>;
  69. };
  70. };
  71. leds {
  72. compatible = "gpio-leds";
  73. user_led1 {
  74. label = "green:user1";
  75. /* gpio_150_user_led1 */
  76. gpios = <&gpio18 6 0>;
  77. linux,default-trigger = "heartbeat";
  78. };
  79. user_led2 {
  80. label = "green:user2";
  81. /* gpio_151_user_led2 */
  82. gpios = <&gpio18 7 0>;
  83. linux,default-trigger = "none";
  84. };
  85. user_led3 {
  86. label = "green:user3";
  87. /* gpio_189_user_led3 */
  88. gpios = <&gpio23 5 0>;
  89. linux,default-trigger = "mmc0";
  90. };
  91. user_led4 {
  92. label = "green:user4";
  93. /* gpio_190_user_led4 */
  94. gpios = <&gpio23 6 0>;
  95. panic-indicator;
  96. linux,default-trigger = "none";
  97. };
  98. wlan_active_led {
  99. label = "yellow:wlan";
  100. /* gpio_205_wifi_active */
  101. gpios = <&gpio25 5 0>;
  102. linux,default-trigger = "phy0tx";
  103. default-state = "off";
  104. };
  105. bt_active_led {
  106. label = "blue:bt";
  107. gpios = <&gpio25 7 0>;
  108. /* gpio_207_user_led1 */
  109. linux,default-trigger = "hci0-power";
  110. default-state = "off";
  111. };
  112. };
  113. pmic: pmic@fff34000 {
  114. compatible = "hisilicon,hi6421v530-pmic";
  115. reg = <0x0 0xfff34000 0x0 0x1000>;
  116. interrupt-controller;
  117. #interrupt-cells = <2>;
  118. regulators {
  119. ldo3: LDO3 { /* HDMI */
  120. regulator-name = "VOUT3_1V85";
  121. regulator-min-microvolt = <1800000>;
  122. regulator-max-microvolt = <2200000>;
  123. regulator-enable-ramp-delay = <120>;
  124. };
  125. ldo9: LDO9 { /* SDCARD I/O */
  126. regulator-name = "VOUT9_1V8_2V95";
  127. regulator-min-microvolt = <1750000>;
  128. regulator-max-microvolt = <3300000>;
  129. regulator-enable-ramp-delay = <240>;
  130. };
  131. ldo11: LDO11 { /* Low Speed Connector */
  132. regulator-name = "VOUT11_1V8_2V95";
  133. regulator-min-microvolt = <1750000>;
  134. regulator-max-microvolt = <3300000>;
  135. regulator-enable-ramp-delay = <240>;
  136. };
  137. ldo15: LDO15 { /* UFS VCC */
  138. regulator-name = "VOUT15_3V0";
  139. regulator-min-microvolt = <1750000>;
  140. regulator-max-microvolt = <3000000>;
  141. regulator-boot-on;
  142. regulator-always-on;
  143. regulator-enable-ramp-delay = <120>;
  144. };
  145. ldo16: LDO16 { /* SD VDD */
  146. regulator-name = "VOUT16_2V95";
  147. regulator-min-microvolt = <1750000>;
  148. regulator-max-microvolt = <3000000>;
  149. regulator-enable-ramp-delay = <360>;
  150. };
  151. };
  152. };
  153. wlan_en: wlan-en-1-8v {
  154. compatible = "regulator-fixed";
  155. regulator-name = "wlan-en-regulator";
  156. regulator-min-microvolt = <1800000>;
  157. regulator-max-microvolt = <1800000>;
  158. /* GPIO_051_WIFI_EN */
  159. gpio = <&gpio6 3 0>;
  160. /* WLAN card specific delay */
  161. startup-delay-us = <70000>;
  162. enable-active-high;
  163. };
  164. firmware {
  165. optee {
  166. compatible = "linaro,optee-tz";
  167. method = "smc";
  168. };
  169. };
  170. };
  171. /*
  172. * Legend: proper name = the GPIO line is used as GPIO
  173. * NC = not connected (pin out but not routed from the chip to
  174. * anything the board)
  175. * "[PER]" = pin is muxed for [peripheral] (not GPIO)
  176. * "" = no idea, schematic doesn't say, could be
  177. * unrouted (not connected to any external pin)
  178. * LSEC = Low Speed External Connector
  179. * HSEC = High Speed External Connector
  180. *
  181. * Line names are taken from "HiKey 960 Board ver A" schematics
  182. * from Huawei. The 40 pin low speed expansion connector is named
  183. * J2002 63453-140LF.
  184. *
  185. * For the lines routed to the external connectors the
  186. * lines are named after the 96Boards CE Specification 1.0,
  187. * Appendix "Expansion Connector Signal Description".
  188. *
  189. * When the 96Board naming of a line and the schematic name of
  190. * the same line are in conflict, the 96Board specification
  191. * takes precedence, which means that the external UART on the
  192. * LSEC is named UART0 while the schematic and SoC names this
  193. * UART3. This is only for the informational lines i.e. "[FOO]",
  194. * the GPIO named lines "GPIO-A" thru "GPIO-L" are the only
  195. * ones actually used for GPIO.
  196. */
  197. &gpio0 {
  198. /* GPIO_000-GPIO_007 */
  199. gpio-line-names =
  200. "",
  201. "TP901", /* TEST_MODE connected to TP901 */
  202. "[PMU0_SSI]",
  203. "[PMU1_SSI]",
  204. "[PMU2_SSI]",
  205. "[PMU0_CLKOUT]",
  206. "[JTAG_TCK]",
  207. "[JTAG_TMS]";
  208. };
  209. &gpio1 {
  210. /* GPIO_008-GPIO_015 */
  211. gpio-line-names =
  212. "[JTAG_TRST_N]",
  213. "[JTAG_TDI]",
  214. "[JTAG_TDO]",
  215. "NC", "NC",
  216. "[I2C3_SCL]",
  217. "[I2C3_SDA]",
  218. "NC";
  219. };
  220. &gpio2 {
  221. /* GPIO_016-GPIO_023 */
  222. gpio-line-names =
  223. "NC", "NC", "NC",
  224. "GPIO-J", /* LSEC pin 32: GPIO_019 */
  225. "GPIO_020_HDMI_SEL",
  226. "GPIO-L", /* LSEC pin 34: GPIO_021 */
  227. "GPIO_022_UFSBUCK_INT_N",
  228. "GPIO-G"; /* LSEC pin 29: LCD_TE0 */
  229. };
  230. &gpio3 {
  231. /* GPIO_024-GPIO_031 */
  232. /* The rail from pin BK36 is named LCD_TE0, we assume to be muxed as GPIO for GPIO-G */
  233. gpio-line-names =
  234. "[CSI0_MCLK]", /* HSEC pin 15: ISP_CCLK0_MCAM */
  235. "[CSI1_MCLK]", /* HSEC pin 17: ISP_CCLK1_SCAM */
  236. "NC",
  237. "[I2C2_SCL]", /* HSEC pin 32: ISP_SCL0 */
  238. "[I2C2_SDA]", /* HSEC pin 34: ISP_SDA0 */
  239. "[I2C3_SCL]", /* HSEC pin 36: ISP_SCL1 */
  240. "[I2C3_SDA]", /* HSEC pin 38: ISP_SDA1 */
  241. "NC";
  242. };
  243. &gpio4 {
  244. /* GPIO_032-GPIO_039 */
  245. gpio-line-names =
  246. "NC", "NC",
  247. "PWR_BTN_N", /* LSEC pin 4: GPIO_034_PWRON_DET */
  248. "GPIO_035_PMU2_EN",
  249. "GPIO_036_USB_HUB_RESET",
  250. "NC", "NC", "NC";
  251. };
  252. &gpio5 {
  253. /* GPIO_040-GPIO_047 */
  254. gpio-line-names =
  255. "GPIO-H", /* LSEC pin 30: GPIO_040_LCD_RST_N */
  256. "GPIO_041_HDMI_PD",
  257. "TP904", /* Test point */
  258. "TP905", /* Test point */
  259. "NC", "NC",
  260. "GPIO_046_HUB_VDD33_EN",
  261. "GPIO_047_PMU1_EN";
  262. };
  263. &gpio6 {
  264. /* GPIO_048-GPIO_055 */
  265. gpio-line-names =
  266. "NC", "NC", "NC",
  267. "GPIO_051_WIFI_EN",
  268. "GPIO-I", /* LSEC pin 31: GPIO_052_CAM0_RST_N */
  269. /*
  270. * These two pins should be used for SD(IO) data according to the
  271. * 96boards specification but seems to be repurposed for a IRDA UART.
  272. * They are however named according to the spec.
  273. */
  274. "[SD_DAT1]", /* HSEC pin 3: UART0_IRDA_RXD */
  275. "[SD_DAT2]", /* HSEC pin 5: UART0_IRDA_TXD */
  276. "[UART1_RXD]"; /* LSEC pin 13: DEBUG_UART6_RXD */
  277. };
  278. &gpio7 {
  279. /* GPIO_056-GPIO_063 */
  280. gpio-line-names =
  281. "[UART1_TXD]", /* LSEC pin 11: DEBUG_UART6_TXD */
  282. "[UART0_CTS]", /* LSEC pin 3: UART3_CTS_N */
  283. "[UART0_RTS]", /* LSEC pin 9: UART3_RTS_N */
  284. "[UART0_RXD]", /* LSEC pin 7: UART3_RXD */
  285. "[UART0_TXD]", /* LSEC pin 5: UART3_TXD */
  286. "[SOC_BT_UART4_CTS_N]",
  287. "[SOC_BT_UART4_RTS_N]",
  288. "[SOC_BT_UART4_RXD]";
  289. };
  290. &gpio8 {
  291. /* GPIO_064-GPIO_071 */
  292. gpio-line-names =
  293. "[SOC_BT_UART4_TXD]",
  294. "NC",
  295. "[PMU_HKADC_SSI]",
  296. "NC",
  297. "GPIO_068_SEL",
  298. "NC", "NC", "NC";
  299. };
  300. &gpio9 {
  301. /* GPIO_072-GPIO_079 */
  302. gpio-line-names =
  303. "NC", "NC", "NC",
  304. "GPIO-K", /* LSEC pin 33: GPIO_075_CAM1_RST_N */
  305. "NC", "NC", "NC", "NC";
  306. };
  307. &gpio10 {
  308. /* GPIO_080-GPIO_087 */
  309. gpio-line-names = "NC", "NC", "NC", "NC", "NC", "NC", "NC", "NC";
  310. };
  311. &gpio11 {
  312. /* GPIO_088-GPIO_095 */
  313. gpio-line-names =
  314. "NC",
  315. "[PCIE_PERST_N]",
  316. "NC", "NC", "NC", "NC", "NC", "NC";
  317. };
  318. &gpio12 {
  319. /* GPIO_096-GPIO_103 */
  320. gpio-line-names = "NC", "NC", "NC", "", "", "", "", "NC";
  321. };
  322. &gpio13 {
  323. /* GPIO_104-GPIO_111 */
  324. gpio-line-names = "NC", "NC", "NC", "NC", "NC", "NC", "NC", "NC";
  325. };
  326. &gpio14 {
  327. /* GPIO_112-GPIO_119 */
  328. gpio-line-names = "NC", "NC", "NC", "NC", "NC", "NC", "NC", "NC";
  329. };
  330. &gpio15 {
  331. /* GPIO_120-GPIO_127 */
  332. gpio-line-names =
  333. "NC", "NC", "NC", "NC", "NC", "NC",
  334. "GPIO_126_BT_EN",
  335. "TP902"; /* GPIO_127_JTAG_SEL0 */
  336. };
  337. &gpio16 {
  338. /* GPIO_128-GPIO_135 */
  339. gpio-line-names = "", "", "", "", "", "", "", "";
  340. };
  341. &gpio17 {
  342. /* GPIO_136-GPIO_143 */
  343. gpio-line-names = "", "", "", "", "", "", "", "";
  344. };
  345. &gpio18 {
  346. /* GPIO_144-GPIO_151 */
  347. gpio-line-names =
  348. "[UFS_REF_CLK]",
  349. "[UFS_RST_N]",
  350. "[SPI1_SCLK]", /* HSEC pin 9: GPIO_146_SPI3_CLK */
  351. "[SPI1_DIN]", /* HSEC pin 11: GPIO_147_SPI3_DI */
  352. "[SPI1_DOUT]", /* HSEC pin 1: GPIO_148_SPI3_DO */
  353. "[SPI1_CS]", /* HSEC pin 7: GPIO_149_SPI3_CS0_N */
  354. "GPIO_150_USER_LED1",
  355. "GPIO_151_USER_LED2";
  356. };
  357. &gpio19 {
  358. /* GPIO_152-GPIO_159 */
  359. gpio-line-names = "NC", "NC", "NC", "NC", "", "", "", "";
  360. };
  361. &gpio20 {
  362. /* GPIO_160-GPIO_167 */
  363. gpio-line-names =
  364. "[SD_CLK]",
  365. "[SD_CMD]",
  366. "[SD_DATA0]",
  367. "[SD_DATA1]",
  368. "[SD_DATA2]",
  369. "[SD_DATA3]",
  370. "", "";
  371. };
  372. &gpio21 {
  373. /* GPIO_168-GPIO_175 */
  374. gpio-line-names =
  375. "[WL_SDIO_CLK]",
  376. "[WL_SDIO_CMD]",
  377. "[WL_SDIO_DATA0]",
  378. "[WL_SDIO_DATA1]",
  379. "[WL_SDIO_DATA2]",
  380. "[WL_SDIO_DATA3]",
  381. "", "";
  382. };
  383. &gpio22 {
  384. /* GPIO_176-GPIO_183 */
  385. gpio-line-names =
  386. "[GPIO_176_PMU_PWR_HOLD]",
  387. "NA",
  388. "[SYSCLK_EN]",
  389. "GPIO_179_WL_WAKEUP_AP",
  390. "GPIO_180_HDMI_INT",
  391. "NA",
  392. "GPIO-F", /* LSEC pin 28: LCD_BL_PWM */
  393. "[I2C0_SCL]"; /* LSEC pin 15 */
  394. };
  395. &gpio23 {
  396. /* GPIO_184-GPIO_191 */
  397. gpio-line-names =
  398. "[I2C0_SDA]", /* LSEC pin 17 */
  399. "[I2C1_SCL]", /* Actual SoC I2C1 */
  400. "[I2C1_SDA]", /* Actual SoC I2C1 */
  401. "[I2C1_SCL]", /* LSEC pin 19: I2C7_SCL */
  402. "[I2C1_SDA]", /* LSEC pin 21: I2C7_SDA */
  403. "GPIO_189_USER_LED3",
  404. "GPIO_190_USER_LED4",
  405. "";
  406. };
  407. &gpio24 {
  408. /* GPIO_192-GPIO_199 */
  409. gpio-line-names =
  410. "[PCM_DI]", /* LSEC pin 22: GPIO_192_I2S0_DI */
  411. "[PCM_DO]", /* LSEC pin 20: GPIO_193_I2S0_DO */
  412. "[PCM_CLK]", /* LSEC pin 18: GPIO_194_I2S0_XCLK */
  413. "[PCM_FS]", /* LSEC pin 16: GPIO_195_I2S0_XFS */
  414. "[GPIO_196_I2S2_DI]",
  415. "[GPIO_197_I2S2_DO]",
  416. "[GPIO_198_I2S2_XCLK]",
  417. "[GPIO_199_I2S2_XFS]";
  418. };
  419. &gpio25 {
  420. /* GPIO_200-GPIO_207 */
  421. gpio-line-names =
  422. "NC",
  423. "NC",
  424. "GPIO_202_VBUS_TYPEC",
  425. "GPIO_203_SD_DET",
  426. "GPIO_204_PMU12_IRQ_N",
  427. "GPIO_205_WIFI_ACTIVE",
  428. "GPIO_206_USBSW_SEL",
  429. "GPIO_207_BT_ACTIVE";
  430. };
  431. &gpio26 {
  432. /* GPIO_208-GPIO_215 */
  433. gpio-line-names =
  434. "GPIO-A", /* LSEC pin 23: GPIO_208 */
  435. "GPIO-B", /* LSEC pin 24: GPIO_209 */
  436. "GPIO-C", /* LSEC pin 25: GPIO_210 */
  437. "GPIO-D", /* LSEC pin 26: GPIO_211 */
  438. "GPIO-E", /* LSEC pin 27: GPIO_212 */
  439. "[PCIE_CLKREQ_N]",
  440. "[PCIE_WAKE_N]",
  441. "[SPI0_CLK]"; /* LSEC pin 8: SPI2_CLK */
  442. };
  443. &gpio27 {
  444. /* GPIO_216-GPIO_223 */
  445. gpio-line-names =
  446. "[SPI0_DIN]", /* LSEC pin 10: SPI2_DI */
  447. "[SPI0_DOUT]", /* LSEC pin 14: SPI2_DO */
  448. "[SPI0_CS]", /* LSEC pin 12: SPI2_CS0_N */
  449. "GPIO_219_CC_INT",
  450. "NC",
  451. "NC",
  452. "[PMU_INT]",
  453. "";
  454. };
  455. &gpio28 {
  456. /* GPIO_224-GPIO_231 */
  457. gpio-line-names =
  458. "", "", "", "", "", "", "", "";
  459. };
  460. &i2c0 {
  461. /* On Low speed expansion */
  462. label = "LS-I2C0";
  463. status = "okay";
  464. };
  465. &i2c1 {
  466. status = "okay";
  467. rt1711h: rt1711h@4e {
  468. compatible = "richtek,rt1711h";
  469. reg = <0x4e>;
  470. status = "okay";
  471. interrupt-parent = <&gpio27>;
  472. interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
  473. pinctrl-names = "default";
  474. pinctrl-0 = <&usb_cfg_func>;
  475. usb_con: connector {
  476. compatible = "usb-c-connector";
  477. label = "USB-C";
  478. data-role = "dual";
  479. power-role = "dual";
  480. try-power-role = "sink";
  481. source-pdos = <PDO_FIXED(5000, 500, PDO_FIXED_USB_COMM)>;
  482. sink-pdos = <PDO_FIXED(5000, 500, PDO_FIXED_USB_COMM)
  483. PDO_VAR(5000, 5000, 1000)>;
  484. op-sink-microwatt = <10000000>;
  485. ports {
  486. #address-cells = <1>;
  487. #size-cells = <0>;
  488. port@1 {
  489. reg = <1>;
  490. usb_con_ss: endpoint {
  491. remote-endpoint = <&dwc3_ss>;
  492. };
  493. };
  494. };
  495. };
  496. port {
  497. #address-cells = <1>;
  498. #size-cells = <0>;
  499. rt1711h_ep: endpoint@0 {
  500. reg = <0>;
  501. remote-endpoint = <&dwc3_role_switch>;
  502. };
  503. };
  504. };
  505. adv7533: adv7533@39 {
  506. status = "okay";
  507. compatible = "adi,adv7533";
  508. reg = <0x39>;
  509. adi,dsi-lanes = <4>;
  510. ports {
  511. #address-cells = <1>;
  512. #size-cells = <0>;
  513. port@0 {
  514. reg = <0>;
  515. };
  516. port@1 {
  517. reg = <1>;
  518. };
  519. };
  520. };
  521. };
  522. &i2c7 {
  523. /* On Low speed expansion */
  524. label = "LS-I2C1";
  525. status = "okay";
  526. };
  527. &uart3 {
  528. /* On Low speed expansion */
  529. label = "LS-UART0";
  530. status = "okay";
  531. };
  532. &uart4 {
  533. status = "okay";
  534. bluetooth {
  535. compatible = "ti,wl1837-st";
  536. enable-gpios = <&gpio15 6 GPIO_ACTIVE_HIGH>;
  537. max-speed = <3000000>;
  538. };
  539. };
  540. &uart6 {
  541. /* On Low speed expansion */
  542. label = "LS-UART1";
  543. status = "okay";
  544. };
  545. &spi2 {
  546. /* On Low speed expansion */
  547. label = "LS-SPI0";
  548. status = "okay";
  549. };
  550. &spi3 {
  551. /* On High speed expansion */
  552. label = "HS-SPI1";
  553. status = "okay";
  554. };
  555. &dwmmc1 {
  556. bus-width = <0x4>;
  557. cap-sd-highspeed;
  558. sd-uhs-sdr12;
  559. sd-uhs-sdr25;
  560. sd-uhs-sdr50;
  561. sd-uhs-sdr104;
  562. disable-wp;
  563. cd-gpios = <&gpio25 3 GPIO_ACTIVE_LOW>;
  564. pinctrl-names = "default";
  565. pinctrl-0 = <&sd_pmx_func
  566. &sd_clk_cfg_func
  567. &sd_cfg_func>;
  568. vmmc-supply = <&ldo16>;
  569. vqmmc-supply = <&ldo9>;
  570. status = "okay";
  571. };
  572. &dwmmc2 { /* WIFI */
  573. bus-width = <0x4>;
  574. non-removable;
  575. broken-cd;
  576. cap-power-off-card;
  577. pinctrl-names = "default";
  578. pinctrl-0 = <&sdio_pmx_func
  579. &sdio_clk_cfg_func
  580. &sdio_cfg_func>;
  581. /* WL_EN */
  582. vmmc-supply = <&wlan_en>;
  583. status = "okay";
  584. wlcore: wlcore@2 {
  585. compatible = "ti,wl1837";
  586. reg = <2>; /* sdio func num */
  587. /* WL_IRQ, GPIO_179_WL_WAKEUP_AP */
  588. interrupt-parent = <&gpio22>;
  589. interrupts = <3 IRQ_TYPE_EDGE_RISING>;
  590. };
  591. };
  592. &dwc3 { /* USB */
  593. dr_mode = "otg";
  594. maximum-speed = "super-speed";
  595. phy_type = "utmi";
  596. snps,dis-del-phy-power-chg-quirk;
  597. snps,lfps_filter_quirk;
  598. snps,dis_u2_susphy_quirk;
  599. snps,dis_u3_susphy_quirk;
  600. snps,tx_de_emphasis_quirk;
  601. snps,tx_de_emphasis = <1>;
  602. snps,dis_enblslpm_quirk;
  603. snps,gctl-reset-quirk;
  604. usb-role-switch;
  605. role-switch-default-mode = "host";
  606. port {
  607. #address-cells = <1>;
  608. #size-cells = <0>;
  609. dwc3_role_switch: endpoint@0 {
  610. reg = <0>;
  611. remote-endpoint = <&rt1711h_ep>;
  612. };
  613. dwc3_ss: endpoint@1 {
  614. reg = <1>;
  615. remote-endpoint = <&usb_con_ss>;
  616. };
  617. };
  618. };