rk3399-khadas-edge.dtsi 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2019 Shenzhen Wesion Technology Co., Ltd.
  4. * (https://www.khadas.com)
  5. */
  6. /dts-v1/;
  7. #include <dt-bindings/input/linux-event-codes.h>
  8. #include <dt-bindings/interrupt-controller/irq.h>
  9. #include <dt-bindings/pwm/pwm.h>
  10. #include "rk3399.dtsi"
  11. #include "rk3399-opp.dtsi"
  12. / {
  13. aliases {
  14. mmc0 = &sdio0;
  15. mmc1 = &sdmmc;
  16. mmc2 = &sdhci;
  17. };
  18. chosen {
  19. stdout-path = "serial2:1500000n8";
  20. };
  21. clkin_gmac: external-gmac-clock {
  22. compatible = "fixed-clock";
  23. clock-frequency = <125000000>;
  24. clock-output-names = "clkin_gmac";
  25. #clock-cells = <0>;
  26. };
  27. sdio_pwrseq: sdio-pwrseq {
  28. compatible = "mmc-pwrseq-simple";
  29. clocks = <&rk808 1>;
  30. clock-names = "ext_clock";
  31. pinctrl-names = "default";
  32. pinctrl-0 = <&wifi_enable_h>;
  33. /*
  34. * On the module itself this is one of these (depending
  35. * on the actual card populated):
  36. * - SDIO_RESET_L_WL_REG_ON
  37. * - PDN (power down when low)
  38. */
  39. reset-gpios = <&gpio2 RK_PD4 GPIO_ACTIVE_LOW>;
  40. };
  41. /* switched by pmic_sleep */
  42. vcc1v8_s3: vcca1v8_s3: vcc1v8-s3 {
  43. compatible = "regulator-fixed";
  44. regulator-name = "vcc1v8_s3";
  45. regulator-always-on;
  46. regulator-boot-on;
  47. regulator-min-microvolt = <1800000>;
  48. regulator-max-microvolt = <1800000>;
  49. vin-supply = <&vcc_1v8>;
  50. };
  51. vcc3v3_pcie: vcc3v3-pcie-regulator {
  52. compatible = "regulator-fixed";
  53. regulator-name = "vcc3v3_pcie";
  54. regulator-always-on;
  55. regulator-boot-on;
  56. regulator-min-microvolt = <3300000>;
  57. regulator-max-microvolt = <3300000>;
  58. vin-supply = <&vsys_3v3>;
  59. };
  60. /* Actually 3 regulators (host0, 1, 2) controlled by the same gpio */
  61. vcc5v0_host: vcc5v0-host-regulator {
  62. compatible = "regulator-fixed";
  63. enable-active-high;
  64. gpio = <&gpio4 RK_PD1 GPIO_ACTIVE_HIGH>;
  65. pinctrl-names = "default";
  66. pinctrl-0 = <&vcc5v0_host_en>;
  67. regulator-name = "vcc5v0_host";
  68. regulator-always-on;
  69. vin-supply = <&vsys_5v0>;
  70. };
  71. vdd_log: vdd-log {
  72. compatible = "pwm-regulator";
  73. pwms = <&pwm2 0 25000 1>;
  74. pwm-supply = <&vsys_3v3>;
  75. regulator-name = "vdd_log";
  76. regulator-always-on;
  77. regulator-boot-on;
  78. regulator-min-microvolt = <800000>;
  79. regulator-max-microvolt = <1400000>;
  80. };
  81. vsys: vsys {
  82. compatible = "regulator-fixed";
  83. regulator-name = "vsys";
  84. regulator-always-on;
  85. regulator-boot-on;
  86. };
  87. vsys_3v3: vsys-3v3 {
  88. compatible = "regulator-fixed";
  89. regulator-name = "vsys_3v3";
  90. regulator-always-on;
  91. regulator-boot-on;
  92. regulator-min-microvolt = <3300000>;
  93. regulator-max-microvolt = <3300000>;
  94. vin-supply = <&vsys>;
  95. };
  96. vsys_5v0: vsys-5v0 {
  97. compatible = "regulator-fixed";
  98. regulator-name = "vsys_5v0";
  99. regulator-always-on;
  100. regulator-boot-on;
  101. regulator-min-microvolt = <5000000>;
  102. regulator-max-microvolt = <5000000>;
  103. vin-supply = <&vsys>;
  104. };
  105. adc-keys {
  106. compatible = "adc-keys";
  107. io-channels = <&saradc 1>;
  108. io-channel-names = "buttons";
  109. keyup-threshold-microvolt = <1800000>;
  110. poll-interval = <100>;
  111. button-recovery {
  112. label = "Recovery";
  113. linux,code = <KEY_VENDOR>;
  114. press-threshold-microvolt = <18000>;
  115. };
  116. };
  117. gpio-keys {
  118. compatible = "gpio-keys";
  119. autorepeat;
  120. pinctrl-names = "default";
  121. pinctrl-0 = <&pwrbtn>;
  122. key-power {
  123. debounce-interval = <100>;
  124. gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>;
  125. label = "GPIO Key Power";
  126. linux,code = <KEY_POWER>;
  127. wakeup-source;
  128. };
  129. };
  130. ir-receiver {
  131. compatible = "gpio-ir-receiver";
  132. gpios = <&gpio1 RK_PB6 GPIO_ACTIVE_LOW>;
  133. linux,rc-map-name = "rc-khadas";
  134. pinctrl-names = "default";
  135. pinctrl-0 = <&ir_rx>;
  136. };
  137. leds {
  138. compatible = "gpio-leds";
  139. pinctrl-names = "default";
  140. pinctrl-0 = <&sys_led_pin>, <&user_led_pin>;
  141. sys_led: led-0 {
  142. label = "sys_led";
  143. linux,default-trigger = "heartbeat";
  144. gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
  145. };
  146. user_led: led-1 {
  147. label = "user_led";
  148. default-state = "off";
  149. gpios = <&gpio4 RK_PD0 GPIO_ACTIVE_HIGH>;
  150. };
  151. };
  152. fan: pwm-fan {
  153. compatible = "pwm-fan";
  154. cooling-levels = <0 150 200 255>;
  155. #cooling-cells = <2>;
  156. fan-supply = <&vsys_5v0>;
  157. pwms = <&pwm0 0 40000 0>;
  158. };
  159. };
  160. &cpu_l0 {
  161. cpu-supply = <&vdd_cpu_l>;
  162. };
  163. &cpu_l1 {
  164. cpu-supply = <&vdd_cpu_l>;
  165. };
  166. &cpu_l2 {
  167. cpu-supply = <&vdd_cpu_l>;
  168. };
  169. &cpu_l3 {
  170. cpu-supply = <&vdd_cpu_l>;
  171. };
  172. &cpu_b0 {
  173. cpu-supply = <&vdd_cpu_b>;
  174. };
  175. &cpu_b1 {
  176. cpu-supply = <&vdd_cpu_b>;
  177. };
  178. &cpu_thermal {
  179. trips {
  180. cpu_warm: cpu_warm {
  181. temperature = <55000>;
  182. hysteresis = <2000>;
  183. type = "active";
  184. };
  185. cpu_hot: cpu_hot {
  186. temperature = <65000>;
  187. hysteresis = <2000>;
  188. type = "active";
  189. };
  190. };
  191. cooling-maps {
  192. map2 {
  193. trip = <&cpu_warm>;
  194. cooling-device = <&fan THERMAL_NO_LIMIT 1>;
  195. };
  196. map3 {
  197. trip = <&cpu_hot>;
  198. cooling-device = <&fan 2 THERMAL_NO_LIMIT>;
  199. };
  200. };
  201. };
  202. &emmc_phy {
  203. status = "okay";
  204. };
  205. &gmac {
  206. assigned-clocks = <&cru SCLK_RMII_SRC>;
  207. assigned-clock-parents = <&clkin_gmac>;
  208. clock_in_out = "input";
  209. phy-supply = <&vcc_lan>;
  210. phy-mode = "rgmii";
  211. pinctrl-names = "default";
  212. pinctrl-0 = <&rgmii_pins>;
  213. snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
  214. snps,reset-active-low;
  215. snps,reset-delays-us = <0 10000 50000>;
  216. tx_delay = <0x28>;
  217. rx_delay = <0x11>;
  218. };
  219. &gpu {
  220. mali-supply = <&vdd_gpu>;
  221. status = "okay";
  222. };
  223. &gpu_thermal {
  224. trips {
  225. gpu_warm: gpu_warm {
  226. temperature = <55000>;
  227. hysteresis = <2000>;
  228. type = "active";
  229. };
  230. gpu_hot: gpu_hot {
  231. temperature = <65000>;
  232. hysteresis = <2000>;
  233. type = "active";
  234. };
  235. };
  236. cooling-maps {
  237. map1 {
  238. trip = <&gpu_warm>;
  239. cooling-device = <&fan THERMAL_NO_LIMIT 1>;
  240. };
  241. map2 {
  242. trip = <&gpu_hot>;
  243. cooling-device = <&fan 2 THERMAL_NO_LIMIT>;
  244. };
  245. };
  246. };
  247. &hdmi {
  248. ddc-i2c-bus = <&i2c3>;
  249. pinctrl-names = "default";
  250. pinctrl-0 = <&hdmi_cec>;
  251. status = "okay";
  252. };
  253. &hdmi_sound {
  254. status = "okay";
  255. };
  256. &i2c3 {
  257. i2c-scl-rising-time-ns = <450>;
  258. i2c-scl-falling-time-ns = <15>;
  259. status = "okay";
  260. };
  261. &i2c4 {
  262. clock-frequency = <400000>;
  263. i2c-scl-rising-time-ns = <168>;
  264. i2c-scl-falling-time-ns = <4>;
  265. status = "okay";
  266. rk808: pmic@1b {
  267. compatible = "rockchip,rk808";
  268. reg = <0x1b>;
  269. interrupt-parent = <&gpio1>;
  270. interrupts = <RK_PC6 IRQ_TYPE_LEVEL_LOW>;
  271. #clock-cells = <1>;
  272. clock-output-names = "xin32k", "rk808-clkout2";
  273. pinctrl-names = "default";
  274. pinctrl-0 = <&pmic_int_l>;
  275. rockchip,system-power-controller;
  276. wakeup-source;
  277. vcc1-supply = <&vsys_3v3>;
  278. vcc2-supply = <&vsys_3v3>;
  279. vcc3-supply = <&vsys_3v3>;
  280. vcc4-supply = <&vsys_3v3>;
  281. vcc6-supply = <&vsys_3v3>;
  282. vcc7-supply = <&vsys_3v3>;
  283. vcc8-supply = <&vsys_3v3>;
  284. vcc9-supply = <&vsys_3v3>;
  285. vcc10-supply = <&vsys_3v3>;
  286. vcc11-supply = <&vsys_3v3>;
  287. vcc12-supply = <&vsys_3v3>;
  288. vddio-supply = <&vcc_1v8>;
  289. regulators {
  290. vdd_center: DCDC_REG1 {
  291. regulator-name = "vdd_center";
  292. regulator-always-on;
  293. regulator-boot-on;
  294. regulator-min-microvolt = <750000>;
  295. regulator-max-microvolt = <1350000>;
  296. regulator-ramp-delay = <6001>;
  297. regulator-state-mem {
  298. regulator-off-in-suspend;
  299. };
  300. };
  301. vdd_cpu_l: DCDC_REG2 {
  302. regulator-name = "vdd_cpu_l";
  303. regulator-always-on;
  304. regulator-boot-on;
  305. regulator-min-microvolt = <750000>;
  306. regulator-max-microvolt = <1350000>;
  307. regulator-ramp-delay = <6001>;
  308. regulator-state-mem {
  309. regulator-off-in-suspend;
  310. };
  311. };
  312. vcc_ddr: DCDC_REG3 {
  313. regulator-name = "vcc_ddr";
  314. regulator-always-on;
  315. regulator-boot-on;
  316. regulator-state-mem {
  317. regulator-on-in-suspend;
  318. };
  319. };
  320. vcc_1v8: DCDC_REG4 {
  321. regulator-name = "vcc_1v8";
  322. regulator-always-on;
  323. regulator-boot-on;
  324. regulator-min-microvolt = <1800000>;
  325. regulator-max-microvolt = <1800000>;
  326. regulator-state-mem {
  327. regulator-on-in-suspend;
  328. regulator-suspend-microvolt = <1800000>;
  329. };
  330. };
  331. vcc1v8_apio2: LDO_REG1 {
  332. regulator-name = "vcc1v8_apio2";
  333. regulator-always-on;
  334. regulator-boot-on;
  335. regulator-min-microvolt = <1800000>;
  336. regulator-max-microvolt = <1800000>;
  337. regulator-state-mem {
  338. regulator-off-in-suspend;
  339. };
  340. };
  341. vcc_vldo2: LDO_REG2 {
  342. regulator-name = "vcc_vldo2";
  343. regulator-always-on;
  344. regulator-boot-on;
  345. regulator-min-microvolt = <3000000>;
  346. regulator-max-microvolt = <3000000>;
  347. regulator-state-mem {
  348. regulator-off-in-suspend;
  349. };
  350. };
  351. vcc1v8_pmupll: LDO_REG3 {
  352. regulator-name = "vcc1v8_pmupll";
  353. regulator-always-on;
  354. regulator-boot-on;
  355. regulator-min-microvolt = <1800000>;
  356. regulator-max-microvolt = <1800000>;
  357. regulator-state-mem {
  358. regulator-on-in-suspend;
  359. regulator-suspend-microvolt = <1800000>;
  360. };
  361. };
  362. vccio_sd: LDO_REG4 {
  363. regulator-name = "vccio_sd";
  364. regulator-always-on;
  365. regulator-boot-on;
  366. regulator-min-microvolt = <1800000>;
  367. regulator-max-microvolt = <3000000>;
  368. regulator-state-mem {
  369. regulator-on-in-suspend;
  370. regulator-suspend-microvolt = <3000000>;
  371. };
  372. };
  373. vcc_vldo5: LDO_REG5 {
  374. regulator-name = "vcc_vldo5";
  375. regulator-always-on;
  376. regulator-boot-on;
  377. regulator-min-microvolt = <3000000>;
  378. regulator-max-microvolt = <3000000>;
  379. regulator-state-mem {
  380. regulator-off-in-suspend;
  381. };
  382. };
  383. vcc_1v5: LDO_REG6 {
  384. regulator-name = "vcc_1v5";
  385. regulator-always-on;
  386. regulator-boot-on;
  387. regulator-min-microvolt = <1500000>;
  388. regulator-max-microvolt = <1500000>;
  389. regulator-state-mem {
  390. regulator-on-in-suspend;
  391. regulator-suspend-microvolt = <1500000>;
  392. };
  393. };
  394. vcc1v8_codec: LDO_REG7 {
  395. regulator-name = "vcc1v8_codec";
  396. regulator-always-on;
  397. regulator-boot-on;
  398. regulator-min-microvolt = <1800000>;
  399. regulator-max-microvolt = <1800000>;
  400. regulator-state-mem {
  401. regulator-off-in-suspend;
  402. };
  403. };
  404. vcc_3v0: LDO_REG8 {
  405. regulator-name = "vcc_3v0";
  406. regulator-always-on;
  407. regulator-boot-on;
  408. regulator-min-microvolt = <3000000>;
  409. regulator-max-microvolt = <3000000>;
  410. regulator-state-mem {
  411. regulator-on-in-suspend;
  412. regulator-suspend-microvolt = <3000000>;
  413. };
  414. };
  415. vcc3v3_s3: vcc_lan: SWITCH_REG1 {
  416. regulator-name = "vcc3v3_s3";
  417. regulator-always-on;
  418. regulator-boot-on;
  419. regulator-state-mem {
  420. regulator-off-in-suspend;
  421. };
  422. };
  423. vcc3v3_s0: SWITCH_REG2 {
  424. regulator-name = "vcc3v3_s0";
  425. regulator-always-on;
  426. regulator-boot-on;
  427. regulator-state-mem {
  428. regulator-off-in-suspend;
  429. };
  430. };
  431. };
  432. };
  433. vdd_cpu_b: regulator@40 {
  434. compatible = "silergy,syr827";
  435. reg = <0x40>;
  436. fcs,suspend-voltage-selector = <1>;
  437. pinctrl-names = "default";
  438. pinctrl-0 = <&cpu_b_sleep>;
  439. regulator-name = "vdd_cpu_b";
  440. regulator-min-microvolt = <712500>;
  441. regulator-max-microvolt = <1500000>;
  442. regulator-ramp-delay = <1000>;
  443. regulator-always-on;
  444. regulator-boot-on;
  445. vin-supply = <&vsys_3v3>;
  446. regulator-state-mem {
  447. regulator-off-in-suspend;
  448. };
  449. };
  450. vdd_gpu: regulator@41 {
  451. compatible = "silergy,syr828";
  452. reg = <0x41>;
  453. fcs,suspend-voltage-selector = <1>;
  454. pinctrl-names = "default";
  455. pinctrl-0 = <&gpu_sleep>;
  456. regulator-name = "vdd_gpu";
  457. regulator-min-microvolt = <712500>;
  458. regulator-max-microvolt = <1500000>;
  459. regulator-ramp-delay = <1000>;
  460. regulator-always-on;
  461. regulator-boot-on;
  462. vin-supply = <&vsys_3v3>;
  463. regulator-state-mem {
  464. regulator-off-in-suspend;
  465. };
  466. };
  467. };
  468. &i2c8 {
  469. clock-frequency = <400000>;
  470. i2c-scl-rising-time-ns = <160>;
  471. i2c-scl-falling-time-ns = <30>;
  472. status = "okay";
  473. };
  474. &i2s0 {
  475. rockchip,playback-channels = <8>;
  476. rockchip,capture-channels = <8>;
  477. status = "okay";
  478. };
  479. &i2s1 {
  480. rockchip,playback-channels = <2>;
  481. rockchip,capture-channels = <2>;
  482. status = "okay";
  483. };
  484. &i2s2 {
  485. status = "okay";
  486. };
  487. &io_domains {
  488. bt656-supply = <&vcc1v8_apio2>;
  489. audio-supply = <&vcc1v8_codec>;
  490. sdmmc-supply = <&vccio_sd>;
  491. gpio1830-supply = <&vcc_3v0>;
  492. status = "okay";
  493. };
  494. &pmu_io_domains {
  495. pmu1830-supply = <&vcc_1v8>;
  496. status = "okay";
  497. };
  498. &pinctrl {
  499. bt {
  500. bt_host_wake_l: bt-host-wake-l {
  501. rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
  502. };
  503. bt_reg_on_h: bt-reg-on-h {
  504. rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
  505. };
  506. bt_wake_l: bt-wake-l {
  507. rockchip,pins = <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
  508. };
  509. };
  510. buttons {
  511. pwrbtn: pwrbtn {
  512. rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
  513. };
  514. };
  515. ir {
  516. ir_rx: ir-rx {
  517. rockchip,pins = <1 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
  518. };
  519. };
  520. leds {
  521. sys_led_pin: sys-led-pin {
  522. rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
  523. };
  524. user_led_pin: user-led-pin {
  525. rockchip,pins = <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
  526. };
  527. };
  528. pmic {
  529. pmic_int_l: pmic-int-l {
  530. rockchip,pins = <1 RK_PC6 RK_FUNC_GPIO &pcfg_pull_up>;
  531. };
  532. cpu_b_sleep: cpu-b-sleep {
  533. rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
  534. };
  535. gpu_sleep: gpu-sleep {
  536. rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_down>;
  537. };
  538. };
  539. sdio-pwrseq {
  540. wifi_enable_h: wifi-enable-h {
  541. rockchip,pins = <2 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>;
  542. };
  543. };
  544. usb2 {
  545. vcc5v0_host_en: vcc5v0-host-en {
  546. rockchip,pins = <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>;
  547. };
  548. };
  549. wifi {
  550. wifi_host_wake_l: wifi-host-wake-l {
  551. rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
  552. };
  553. };
  554. };
  555. &pwm0 {
  556. status = "okay";
  557. };
  558. &pwm2 {
  559. status = "okay";
  560. };
  561. &saradc {
  562. vref-supply = <&vcca1v8_s3>;
  563. status = "okay";
  564. };
  565. &sdio0 {
  566. /* WiFi & BT combo module Ampak AP6356S */
  567. bus-width = <4>;
  568. cap-sdio-irq;
  569. cap-sd-highspeed;
  570. keep-power-in-suspend;
  571. mmc-pwrseq = <&sdio_pwrseq>;
  572. non-removable;
  573. pinctrl-names = "default";
  574. pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
  575. sd-uhs-sdr104;
  576. vqmmc-supply = <&vcc1v8_s3>;
  577. vmmc-supply = <&vccio_sd>;
  578. #address-cells = <1>;
  579. #size-cells = <0>;
  580. status = "okay";
  581. brcmf: wifi@1 {
  582. reg = <1>;
  583. compatible = "brcm,bcm4329-fmac";
  584. interrupt-parent = <&gpio0>;
  585. interrupts = <RK_PA3 IRQ_TYPE_LEVEL_HIGH>;
  586. interrupt-names = "host-wake";
  587. brcm,drive-strength = <5>;
  588. pinctrl-names = "default";
  589. pinctrl-0 = <&wifi_host_wake_l>;
  590. };
  591. };
  592. &sdmmc {
  593. bus-width = <4>;
  594. cap-mmc-highspeed;
  595. cap-sd-highspeed;
  596. cd-gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
  597. disable-wp;
  598. max-frequency = <150000000>;
  599. pinctrl-names = "default";
  600. pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_bus4>;
  601. status = "okay";
  602. };
  603. &sdhci {
  604. bus-width = <8>;
  605. mmc-hs400-1_8v;
  606. non-removable;
  607. status = "okay";
  608. };
  609. &spi1 {
  610. status = "okay";
  611. spiflash: flash@0 {
  612. compatible = "winbond,w25q128fw", "jedec,spi-nor";
  613. reg = <0>;
  614. spi-max-frequency = <104000000>;
  615. };
  616. };
  617. &tcphy0 {
  618. status = "okay";
  619. };
  620. &tcphy1 {
  621. status = "okay";
  622. };
  623. &tsadc {
  624. /* tshut mode 0:CRU 1:GPIO */
  625. rockchip,hw-tshut-mode = <1>;
  626. /* tshut polarity 0:LOW 1:HIGH */
  627. rockchip,hw-tshut-polarity = <1>;
  628. status = "okay";
  629. };
  630. &u2phy0 {
  631. status = "okay";
  632. u2phy0_otg: otg-port {
  633. status = "okay";
  634. };
  635. u2phy0_host: host-port {
  636. phy-supply = <&vcc5v0_host>;
  637. status = "okay";
  638. };
  639. };
  640. &u2phy1 {
  641. status = "okay";
  642. u2phy1_otg: otg-port {
  643. status = "okay";
  644. };
  645. u2phy1_host: host-port {
  646. phy-supply = <&vcc5v0_host>;
  647. status = "okay";
  648. };
  649. };
  650. &uart0 {
  651. pinctrl-names = "default";
  652. pinctrl-0 = <&uart0_xfer &uart0_rts &uart0_cts>;
  653. status = "okay";
  654. bluetooth {
  655. compatible = "brcm,bcm43438-bt";
  656. clocks = <&rk808 1>;
  657. clock-names = "lpo";
  658. device-wakeup-gpios = <&gpio2 RK_PD2 GPIO_ACTIVE_HIGH>;
  659. host-wakeup-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_HIGH>;
  660. shutdown-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_HIGH>;
  661. max-speed = <4000000>;
  662. pinctrl-names = "default";
  663. pinctrl-0 = <&bt_reg_on_h &bt_host_wake_l &bt_wake_l>;
  664. vbat-supply = <&vsys_3v3>;
  665. vddio-supply = <&vcc_1v8>;
  666. };
  667. };
  668. &uart2 {
  669. status = "okay";
  670. };
  671. &usb_host0_ehci {
  672. status = "okay";
  673. };
  674. &usb_host0_ohci {
  675. status = "okay";
  676. };
  677. &usb_host1_ehci {
  678. status = "okay";
  679. };
  680. &usb_host1_ohci {
  681. status = "okay";
  682. };
  683. &usbdrd3_0 {
  684. status = "okay";
  685. };
  686. &usbdrd_dwc3_0 {
  687. status = "okay";
  688. dr_mode = "otg";
  689. };
  690. &usbdrd3_1 {
  691. status = "okay";
  692. };
  693. &usbdrd_dwc3_1 {
  694. status = "okay";
  695. dr_mode = "host";
  696. };
  697. &vopb {
  698. status = "okay";
  699. };
  700. &vopb_mmu {
  701. status = "okay";
  702. };
  703. &vopl {
  704. status = "okay";
  705. };
  706. &vopl_mmu {
  707. status = "okay";
  708. };