rk3566-pinenote.dtsi 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/gpio-keys.h>
  4. #include <dt-bindings/input/input.h>
  5. #include <dt-bindings/leds/common.h>
  6. #include <dt-bindings/pinctrl/rockchip.h>
  7. #include "rk3566.dtsi"
  8. / {
  9. aliases {
  10. mmc0 = &sdhci;
  11. };
  12. chosen {
  13. stdout-path = "serial2:1500000n8";
  14. };
  15. adc-keys {
  16. compatible = "adc-keys";
  17. io-channels = <&saradc 0>;
  18. io-channel-names = "buttons";
  19. keyup-threshold-microvolt = <1750000>;
  20. button-recovery {
  21. label = "recovery";
  22. linux,code = <KEY_VENDOR>;
  23. press-threshold-microvolt = <0>;
  24. };
  25. };
  26. spk_amp: audio-amplifier {
  27. compatible = "simple-audio-amplifier";
  28. enable-gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_HIGH>;
  29. pinctrl-0 = <&spk_amp_enable_h>;
  30. pinctrl-names = "default";
  31. sound-name-prefix = "Speaker Amp";
  32. };
  33. dmic_codec: dmic-codec {
  34. compatible = "dmic-codec";
  35. num-channels = <6>;
  36. #sound-dai-cells = <0>;
  37. };
  38. gpio-keys {
  39. compatible = "gpio-keys";
  40. pinctrl-0 = <&hall_int_l>;
  41. pinctrl-names = "default";
  42. switch-cover {
  43. label = "cover";
  44. gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_LOW>;
  45. linux,input-type = <EV_SW>;
  46. linux,code = <SW_MACHINE_COVER>;
  47. linux,can-disable;
  48. wakeup-event-action = <EV_ACT_DEASSERTED>;
  49. wakeup-source;
  50. };
  51. };
  52. gpio-leds {
  53. compatible = "gpio-leds";
  54. pinctrl-0 = <&led_pin>;
  55. pinctrl-names = "default";
  56. led-0 {
  57. color = <LED_COLOR_ID_WHITE>;
  58. function = LED_FUNCTION_CHARGING;
  59. gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
  60. };
  61. };
  62. sdio_pwrseq: sdio-pwrseq {
  63. compatible = "mmc-pwrseq-simple";
  64. clocks = <&rk817 1>;
  65. clock-names = "ext_clock";
  66. pinctrl-0 = <&wifi_enable_h>;
  67. pinctrl-names = "default";
  68. reset-gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_LOW>;
  69. };
  70. sound {
  71. compatible = "simple-audio-card";
  72. simple-audio-card,name = "PineNote";
  73. simple-audio-card,aux-devs = <&spk_amp>;
  74. simple-audio-card,widgets = "Headphone", "Headphones",
  75. "Speaker", "Internal Speakers";
  76. simple-audio-card,routing = "Headphones", "HPOL",
  77. "Headphones", "HPOR",
  78. "Internal Speakers", "Speaker Amp OUTL",
  79. "Internal Speakers", "Speaker Amp OUTR",
  80. "Speaker Amp INL", "HPOL",
  81. "Speaker Amp INR", "HPOR";
  82. simple-audio-card,pin-switches = "Internal Speakers";
  83. #address-cells = <1>;
  84. #size-cells = <0>;
  85. simple-audio-card,dai-link@0 {
  86. reg = <0>;
  87. bitclock-master = <&link0_cpu>;
  88. format = "i2s";
  89. frame-master = <&link0_cpu>;
  90. mclk-fs = <256>;
  91. link0_cpu: cpu {
  92. sound-dai = <&i2s1_8ch>;
  93. };
  94. link0_codec: codec {
  95. sound-dai = <&rk817>;
  96. };
  97. };
  98. simple-audio-card,dai-link@1 {
  99. reg = <1>;
  100. bitclock-master = <&link1_cpu>;
  101. format = "pdm";
  102. frame-master = <&link1_cpu>;
  103. link1_cpu: cpu {
  104. sound-dai = <&pdm>;
  105. };
  106. link1_codec: codec {
  107. sound-dai = <&dmic_codec>;
  108. };
  109. };
  110. };
  111. vbat_4g: vbat-4g {
  112. compatible = "regulator-fixed";
  113. regulator-name = "vbat_4g";
  114. regulator-min-microvolt = <3800000>;
  115. regulator-max-microvolt = <3800000>;
  116. /* powered by vcc_bat, enabled by vbat_4g_en */
  117. vin-supply = <&vbat_4g_en>;
  118. };
  119. vcc_1v8: vcc-1v8 {
  120. compatible = "regulator-fixed";
  121. regulator-name = "vcc_1v8";
  122. regulator-always-on;
  123. regulator-min-microvolt = <1800000>;
  124. regulator-max-microvolt = <1800000>;
  125. /* powered by vcc_sys, enabled by vcc_1v8_en */
  126. vin-supply = <&vcc_1v8_en>;
  127. };
  128. vcc_bat: vcc-bat {
  129. compatible = "regulator-fixed";
  130. regulator-name = "vcc_bat";
  131. regulator-always-on;
  132. regulator-min-microvolt = <3800000>;
  133. regulator-max-microvolt = <3800000>;
  134. };
  135. vcc_hall_3v3: vcc-hall-3v3 {
  136. compatible = "regulator-fixed";
  137. regulator-name = "vcc_hall_3v3";
  138. regulator-always-on;
  139. regulator-min-microvolt = <3300000>;
  140. regulator-max-microvolt = <3300000>;
  141. vin-supply = <&vcc_sys>;
  142. };
  143. vcc_sys: vcc-sys {
  144. compatible = "regulator-fixed";
  145. regulator-name = "vcc_sys";
  146. regulator-always-on;
  147. regulator-min-microvolt = <3800000>;
  148. regulator-max-microvolt = <3800000>;
  149. vin-supply = <&vcc_bat>;
  150. };
  151. vcc_wl: vcc-wl {
  152. compatible = "regulator-fixed";
  153. enable-active-high;
  154. gpio = <&gpio0 RK_PA0 GPIO_ACTIVE_HIGH>;
  155. pinctrl-0 = <&vcc_wl_pin>;
  156. pinctrl-names = "default";
  157. regulator-name = "vcc_wl";
  158. regulator-min-microvolt = <3300000>;
  159. regulator-max-microvolt = <3300000>;
  160. vin-supply = <&vcc_bat>;
  161. };
  162. vdda_0v9: vdda-0v9 {
  163. compatible = "regulator-fixed";
  164. regulator-name = "vdda_0v9";
  165. regulator-always-on;
  166. regulator-min-microvolt = <900000>;
  167. regulator-max-microvolt = <900000>;
  168. /* powered by vcc_sys, enabled by vcc_1v8_en */
  169. vin-supply = <&vcc_1v8_en>;
  170. };
  171. };
  172. &cpu0 {
  173. cpu-supply = <&vdd_cpu>;
  174. };
  175. &cpu1 {
  176. cpu-supply = <&vdd_cpu>;
  177. };
  178. &cpu2 {
  179. cpu-supply = <&vdd_cpu>;
  180. };
  181. &cpu3 {
  182. cpu-supply = <&vdd_cpu>;
  183. };
  184. &i2c0 {
  185. status = "okay";
  186. vdd_cpu: regulator@1c {
  187. compatible = "tcs,tcs4525";
  188. reg = <0x1c>;
  189. fcs,suspend-voltage-selector = <0>;
  190. regulator-name = "vdd_cpu";
  191. regulator-min-microvolt = <712500>;
  192. regulator-max-microvolt = <1390000>;
  193. regulator-ramp-delay = <2300>;
  194. regulator-always-on;
  195. vin-supply = <&vcc_sys>;
  196. regulator-state-mem {
  197. regulator-on-in-suspend;
  198. };
  199. };
  200. rk817: pmic@20 {
  201. compatible = "rockchip,rk817";
  202. reg = <0x20>;
  203. interrupt-parent = <&gpio0>;
  204. interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>;
  205. assigned-clocks = <&cru I2S1_MCLKOUT_TX>;
  206. assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>;
  207. clocks = <&cru I2S1_MCLKOUT_TX>;
  208. clock-names = "mclk";
  209. #clock-cells = <1>;
  210. pinctrl-0 = <&i2s1m0_mclk>, <&pmic_int_l>, <&pmic_sleep>;
  211. pinctrl-names = "default";
  212. rockchip,system-power-controller;
  213. #sound-dai-cells = <0>;
  214. wakeup-source;
  215. vcc1-supply = <&vcc_sys>;
  216. vcc2-supply = <&vcc_sys>;
  217. vcc3-supply = <&vcc_sys>;
  218. vcc4-supply = <&vcc_sys>;
  219. vcc5-supply = <&vcc_sys>;
  220. vcc6-supply = <&vcc_sys>;
  221. vcc7-supply = <&vcc_sys>;
  222. vcc8-supply = <&vcc_sys>;
  223. vcc9-supply = <&dcdc_boost>;
  224. regulators {
  225. vdd_logic: DCDC_REG1 {
  226. regulator-name = "vdd_logic";
  227. regulator-always-on;
  228. regulator-min-microvolt = <500000>;
  229. regulator-max-microvolt = <1350000>;
  230. regulator-init-microvolt = <900000>;
  231. regulator-ramp-delay = <6001>;
  232. regulator-initial-mode = <0x2>;
  233. regulator-state-mem {
  234. regulator-off-in-suspend;
  235. regulator-suspend-microvolt = <900000>;
  236. };
  237. };
  238. vdd_gpu_npu: DCDC_REG2 {
  239. regulator-name = "vdd_gpu_npu";
  240. regulator-min-microvolt = <500000>;
  241. regulator-max-microvolt = <1350000>;
  242. regulator-init-microvolt = <900000>;
  243. regulator-ramp-delay = <6001>;
  244. regulator-initial-mode = <0x2>;
  245. regulator-state-mem {
  246. regulator-off-in-suspend;
  247. };
  248. };
  249. vcc_ddr: DCDC_REG3 {
  250. regulator-name = "vcc_ddr";
  251. regulator-always-on;
  252. regulator-initial-mode = <0x2>;
  253. regulator-state-mem {
  254. regulator-on-in-suspend;
  255. };
  256. };
  257. vcc_3v3: DCDC_REG4 {
  258. regulator-name = "vcc_3v3";
  259. regulator-always-on;
  260. regulator-min-microvolt = <3300000>;
  261. regulator-max-microvolt = <3300000>;
  262. regulator-initial-mode = <0x2>;
  263. regulator-state-mem {
  264. regulator-off-in-suspend;
  265. };
  266. };
  267. vcca_1v8_pmu: LDO_REG1 {
  268. regulator-name = "vcca_1v8_pmu";
  269. regulator-always-on;
  270. regulator-min-microvolt = <1800000>;
  271. regulator-max-microvolt = <1800000>;
  272. regulator-state-mem {
  273. regulator-on-in-suspend;
  274. };
  275. };
  276. /* unused */
  277. vdda_0v9_ldo: LDO_REG2 {
  278. regulator-name = "vdda_0v9_ldo";
  279. regulator-min-microvolt = <900000>;
  280. regulator-max-microvolt = <900000>;
  281. regulator-state-mem {
  282. regulator-off-in-suspend;
  283. };
  284. };
  285. vdda_0v9_pmu: LDO_REG3 {
  286. regulator-name = "vdda_0v9_pmu";
  287. regulator-always-on;
  288. regulator-min-microvolt = <900000>;
  289. regulator-max-microvolt = <900000>;
  290. regulator-state-mem {
  291. regulator-on-in-suspend;
  292. };
  293. };
  294. vccio_acodec: LDO_REG4 {
  295. regulator-name = "vccio_acodec";
  296. regulator-always-on;
  297. regulator-min-microvolt = <3300000>;
  298. regulator-max-microvolt = <3300000>;
  299. regulator-state-mem {
  300. regulator-off-in-suspend;
  301. };
  302. };
  303. /* unused */
  304. vccio_sd: LDO_REG5 {
  305. regulator-name = "vccio_sd";
  306. regulator-min-microvolt = <1800000>;
  307. regulator-max-microvolt = <3300000>;
  308. regulator-state-mem {
  309. regulator-off-in-suspend;
  310. };
  311. };
  312. vcc_3v3_pmu: LDO_REG6 {
  313. regulator-name = "vcc_3v3_pmu";
  314. regulator-always-on;
  315. regulator-min-microvolt = <3300000>;
  316. regulator-max-microvolt = <3300000>;
  317. regulator-state-mem {
  318. regulator-on-in-suspend;
  319. };
  320. };
  321. vcc_1v8_en: LDO_REG7 {
  322. regulator-name = "vcc_1v8_en";
  323. regulator-min-microvolt = <1800000>;
  324. regulator-max-microvolt = <1800000>;
  325. regulator-state-mem {
  326. regulator-off-in-suspend;
  327. };
  328. };
  329. vbat_4g_en: LDO_REG8 {
  330. regulator-name = "vbat_4g_en";
  331. regulator-min-microvolt = <1800000>;
  332. regulator-max-microvolt = <1800000>;
  333. regulator-state-mem {
  334. regulator-off-in-suspend;
  335. };
  336. };
  337. sleep_sta_ctl: LDO_REG9 {
  338. regulator-name = "sleep_sta_ctl";
  339. regulator-min-microvolt = <1800000>;
  340. regulator-max-microvolt = <1800000>;
  341. regulator-state-mem {
  342. regulator-on-in-suspend;
  343. };
  344. };
  345. dcdc_boost: BOOST {
  346. regulator-name = "boost";
  347. regulator-min-microvolt = <5000000>;
  348. regulator-max-microvolt = <5000000>;
  349. regulator-state-mem {
  350. regulator-off-in-suspend;
  351. };
  352. };
  353. otg_switch: OTG_SWITCH {
  354. regulator-name = "otg_switch";
  355. regulator-state-mem {
  356. regulator-off-in-suspend;
  357. };
  358. };
  359. };
  360. };
  361. };
  362. &i2c1 {
  363. status = "okay";
  364. digitizer@9 {
  365. compatible = "wacom,w9013", "hid-over-i2c";
  366. reg = <0x09>;
  367. interrupt-parent = <&gpio0>;
  368. interrupts = <RK_PB6 IRQ_TYPE_LEVEL_LOW>;
  369. hid-descr-addr = <0x1>;
  370. pinctrl-0 = <&pen_fwe>, <&pen_irq_l>, <&pen_rst_l>;
  371. pinctrl-names = "default";
  372. vdd-supply = <&vcc_3v3_pmu>;
  373. };
  374. };
  375. &i2c3 {
  376. pinctrl-0 = <&i2c3m1_xfer>;
  377. status = "okay";
  378. led-controller@36 {
  379. compatible = "ti,lm3630a";
  380. reg = <0x36>;
  381. enable-gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>;
  382. pinctrl-0 = <&backlight_hwen_h>;
  383. pinctrl-names = "default";
  384. #address-cells = <1>;
  385. #size-cells = <0>;
  386. led@0 {
  387. reg = <0>;
  388. label = "backlight_cool";
  389. default-brightness = <0>;
  390. };
  391. led@1 {
  392. reg = <1>;
  393. label = "backlight_warm";
  394. default-brightness = <0>;
  395. };
  396. };
  397. wusb3801: tcpc@60 {
  398. compatible = "willsemi,wusb3801";
  399. reg = <0x60>;
  400. interrupt-parent = <&gpio0>;
  401. interrupts = <RK_PA4 IRQ_TYPE_LEVEL_LOW>;
  402. pinctrl-0 = <&tcpc_int_l>;
  403. pinctrl-names = "default";
  404. connector {
  405. compatible = "usb-c-connector";
  406. label = "USB-C";
  407. vbus-supply = <&otg_switch>;
  408. power-role = "dual";
  409. try-power-role = "sink";
  410. data-role = "dual";
  411. typec-power-opmode = "default";
  412. pd-disable;
  413. ports {
  414. #address-cells = <0x1>;
  415. #size-cells = <0x0>;
  416. port@0 {
  417. reg = <0x0>;
  418. typec_hs_usb2phy0: endpoint {
  419. remote-endpoint = <&usb2phy0_typec_hs>;
  420. };
  421. };
  422. };
  423. };
  424. };
  425. };
  426. &i2c5 {
  427. status = "okay";
  428. accelerometer@18 {
  429. compatible = "silan,sc7a20";
  430. reg = <0x18>;
  431. interrupt-parent = <&gpio3>;
  432. interrupts = <RK_PB2 IRQ_TYPE_LEVEL_LOW>;
  433. pinctrl-0 = <&accelerometer_int_l>;
  434. pinctrl-names = "default";
  435. st,drdy-int-pin = <1>;
  436. vdd-supply = <&vcc_3v3>;
  437. vddio-supply = <&vcc_3v3>;
  438. };
  439. };
  440. &i2s1_8ch {
  441. pinctrl-0 = <&i2s1m0_lrcktx>, <&i2s1m0_sclktx>, <&i2s1m0_sdi0>, <&i2s1m0_sdo0>;
  442. rockchip,trcm-sync-tx-only;
  443. status = "okay";
  444. };
  445. &pdm {
  446. pinctrl-0 = <&pdmm0_clk1>, <&pdmm0_sdi1>, <&pdmm0_sdi2>;
  447. /* microphones are on channels 1 and 2 */
  448. rockchip,path-map = <1>, <2>, <0>, <3>;
  449. status = "okay";
  450. };
  451. &pinctrl {
  452. accelerometer {
  453. accelerometer_int_l: accelerometer-int-l {
  454. rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
  455. };
  456. };
  457. audio-amplifier {
  458. spk_amp_enable_h: spk-amp-enable-h {
  459. rockchip,pins = <3 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
  460. };
  461. };
  462. backlight {
  463. backlight_hwen_h: backlight-hwen-h {
  464. rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
  465. };
  466. };
  467. bt {
  468. bt_enable_h: bt-enable-h {
  469. rockchip,pins = <0 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>;
  470. };
  471. bt_host_wake_l: bt-host-wake-l {
  472. rockchip,pins = <0 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up>;
  473. };
  474. bt_wake_h: bt-wake-h {
  475. rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>;
  476. };
  477. };
  478. led {
  479. led_pin: led-pin {
  480. rockchip,pins = <3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
  481. };
  482. };
  483. hall {
  484. hall_int_l: hall-int-l {
  485. rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
  486. };
  487. };
  488. pen {
  489. pen_fwe: pen-fwe {
  490. rockchip,pins = <3 RK_PB7 RK_FUNC_GPIO &pcfg_pull_down>;
  491. };
  492. pen_irq_l: pen-irq-l {
  493. rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
  494. };
  495. pen_rst_l: pen-rst-l {
  496. rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
  497. };
  498. };
  499. pmic {
  500. pmic_int_l: pmic-int-l {
  501. rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
  502. };
  503. pmic_sleep: pmic-sleep {
  504. rockchip,pins = <0 RK_PA2 1 &pcfg_pull_none>;
  505. };
  506. };
  507. sdio-pwrseq {
  508. wifi_enable_h: wifi-enable-h {
  509. rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
  510. };
  511. };
  512. tcpc {
  513. tcpc_int_l: tcpc-int-l {
  514. rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
  515. };
  516. };
  517. vcc-wl {
  518. vcc_wl_pin: vcc-wl-pin {
  519. rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>;
  520. };
  521. };
  522. wifi {
  523. wifi_host_wake_l: wifi-host-wake-l {
  524. rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_up>;
  525. };
  526. };
  527. };
  528. &pmu_io_domains {
  529. pmuio1-supply = <&vcc_3v3_pmu>;
  530. pmuio2-supply = <&vcc_3v3_pmu>;
  531. vccio1-supply = <&vccio_acodec>;
  532. vccio2-supply = <&vcc_1v8>;
  533. vccio3-supply = <&vcc_3v3>;
  534. vccio4-supply = <&vcca_1v8_pmu>;
  535. vccio5-supply = <&vcc_3v3>;
  536. vccio6-supply = <&vcc_3v3>;
  537. status = "okay";
  538. };
  539. &saradc {
  540. vref-supply = <&vcc_1v8>;
  541. status = "okay";
  542. };
  543. &sdhci {
  544. bus-width = <8>;
  545. mmc-hs200-1_8v;
  546. non-removable;
  547. pinctrl-0 = <&emmc_bus8>, <&emmc_clk>, <&emmc_cmd>, <&emmc_datastrobe>, <&emmc_rstnout>;
  548. pinctrl-names = "default";
  549. vmmc-supply = <&vcc_3v3>;
  550. vqmmc-supply = <&vcc_1v8>;
  551. status = "okay";
  552. };
  553. &sdmmc1 {
  554. bus-width = <4>;
  555. cap-sd-highspeed;
  556. cap-sdio-irq;
  557. keep-power-in-suspend;
  558. mmc-pwrseq = <&sdio_pwrseq>;
  559. non-removable;
  560. pinctrl-0 = <&sdmmc1_bus4>, <&sdmmc1_clk>, <&sdmmc1_cmd>;
  561. pinctrl-names = "default";
  562. sd-uhs-sdr104;
  563. vmmc-supply = <&vcc_wl>;
  564. vqmmc-supply = <&vcca_1v8_pmu>;
  565. status = "okay";
  566. };
  567. &tsadc {
  568. /* tshut mode 0:CRU 1:GPIO */
  569. rockchip,hw-tshut-mode = <1>;
  570. /* tshut polarity 0:LOW 1:HIGH */
  571. rockchip,hw-tshut-polarity = <0>;
  572. status = "okay";
  573. };
  574. &uart1 {
  575. pinctrl-0 = <&uart1m0_ctsn>, <&uart1m0_rtsn>, <&uart1m0_xfer>;
  576. pinctrl-names = "default";
  577. uart-has-rtscts;
  578. status = "okay";
  579. bluetooth {
  580. compatible = "brcm,bcm43438-bt";
  581. clocks = <&rk817 1>;
  582. clock-names = "lpo";
  583. device-wake-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>;
  584. host-wake-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_HIGH>;
  585. reset-gpios = <&gpio0 RK_PC4 GPIO_ACTIVE_LOW>;
  586. pinctrl-0 = <&bt_enable_h>, <&bt_host_wake_l>, <&bt_wake_h>;
  587. pinctrl-names = "default";
  588. vbat-supply = <&vcc_wl>;
  589. vddio-supply = <&vcca_1v8_pmu>;
  590. };
  591. };
  592. &uart2 {
  593. status = "okay";
  594. };
  595. &usb_host0_xhci {
  596. dr_mode = "otg";
  597. status = "okay";
  598. };
  599. &usb2phy0 {
  600. status = "okay";
  601. };
  602. &usb2phy0_otg {
  603. status = "okay";
  604. port {
  605. usb2phy0_typec_hs: endpoint {
  606. remote-endpoint = <&typec_hs_usb2phy0>;
  607. };
  608. };
  609. };