rk3188-bqedison2qc.dts 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2018 MundoReader S.L.
  4. * Author: Heiko Stuebner <[email protected]>
  5. */
  6. /dts-v1/;
  7. #include <dt-bindings/i2c/i2c.h>
  8. #include <dt-bindings/input/input.h>
  9. #include <dt-bindings/interrupt-controller/irq.h>
  10. #include "rk3188.dtsi"
  11. / {
  12. model = "BQ Edison2 Quad-Core";
  13. compatible = "mundoreader,bq-edison2qc", "rockchip,rk3188";
  14. aliases {
  15. mmc0 = &mmc0;
  16. mmc1 = &mmc1;
  17. mmc2 = &emmc;
  18. };
  19. memory@60000000 {
  20. device_type = "memory";
  21. reg = <0x60000000 0x80000000>;
  22. };
  23. backlight: backlight {
  24. compatible = "pwm-backlight";
  25. power-supply = <&vsys>;
  26. pwms = <&pwm1 0 25000>;
  27. };
  28. gpio-keys {
  29. compatible = "gpio-keys";
  30. autorepeat;
  31. pinctrl-names = "default";
  32. pinctrl-0 = <&pwr_key &usb_int>;
  33. key-power {
  34. gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
  35. linux,code = <KEY_POWER>;
  36. label = "GPIO Key Power";
  37. linux,input-type = <1>;
  38. debounce-interval = <100>;
  39. wakeup-source;
  40. };
  41. wake_on_usb: key-wake-on-usb {
  42. label = "Wake-on-USB";
  43. gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
  44. linux,code = <KEY_WAKEUP>;
  45. wakeup-source;
  46. };
  47. };
  48. gpio-poweroff {
  49. compatible = "gpio-poweroff";
  50. gpios = <&gpio0 RK_PA0 GPIO_ACTIVE_LOW>;
  51. pinctrl-names = "default";
  52. pinctrl-0 = <&pwr_hold>;
  53. /* only drive the pin low until device is off */
  54. active-delay-ms = <3000>;
  55. };
  56. lvds-encoder {
  57. compatible = "ti,sn75lvds83", "lvds-encoder";
  58. ports {
  59. #address-cells = <1>;
  60. #size-cells = <0>;
  61. port@0 {
  62. reg = <0>;
  63. lvds_in_vop0: endpoint {
  64. remote-endpoint = <&vop0_out_lvds>;
  65. };
  66. };
  67. port@1 {
  68. reg = <1>;
  69. lvds_out_panel: endpoint {
  70. remote-endpoint = <&panel_in_lvds>;
  71. };
  72. };
  73. };
  74. };
  75. panel {
  76. compatible = "innolux,ee101ia-01d", "panel-lvds";
  77. backlight = <&backlight>;
  78. /* pin LCD_CS, Nshtdn input of lvds-encoder */
  79. enable-gpios = <&gpio3 RK_PD6 GPIO_ACTIVE_HIGH>;
  80. pinctrl-names = "default";
  81. pinctrl-0 = <&lcd_cs>;
  82. power-supply = <&vcc_lcd>;
  83. data-mapping = "vesa-24";
  84. height-mm = <163>;
  85. width-mm = <261>;
  86. panel-timing {
  87. clock-frequency = <72000000>;
  88. hactive = <1280>;
  89. vactive = <800>;
  90. hback-porch = <160>;
  91. hfront-porch = <16>;
  92. hsync-len = <10>;
  93. vback-porch = <23>;
  94. vfront-porch = <12>;
  95. vsync-len = <3>;
  96. };
  97. port {
  98. panel_in_lvds: endpoint {
  99. remote-endpoint = <&lvds_out_panel>;
  100. };
  101. };
  102. };
  103. sdio_pwrseq: sdio-pwrseq {
  104. compatible = "mmc-pwrseq-simple";
  105. clocks = <&hym8563>;
  106. clock-names = "ext_clock";
  107. pinctrl-names = "default";
  108. pinctrl-0 = <&wifi_reg_on>;
  109. reset-gpios = <&gpio3 RK_PD0 GPIO_ACTIVE_LOW>;
  110. };
  111. avdd_cif: cif-avdd-regulator {
  112. compatible = "regulator-fixed";
  113. regulator-name = "avdd-cif";
  114. regulator-min-microvolt = <2800000>;
  115. regulator-max-microvolt = <2800000>;
  116. gpio = <&gpio1 RK_PA6 GPIO_ACTIVE_LOW>;
  117. pinctrl-names = "default";
  118. pinctrl-0 = <&cif_avdd_en>;
  119. startup-delay-us = <100000>;
  120. vin-supply = <&vcc28_cif>;
  121. };
  122. vcc_5v: vcc-5v-regulator {
  123. compatible = "regulator-fixed";
  124. regulator-name = "vcc-5v";
  125. regulator-min-microvolt = <5000000>;
  126. regulator-max-microvolt = <5000000>;
  127. enable-active-high;
  128. gpio = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
  129. pinctrl-names = "default";
  130. pinctrl-0 = <&v5_drv>;
  131. vin-supply = <&vsys>;
  132. };
  133. vcc_lcd: lcd-regulator {
  134. compatible = "regulator-fixed";
  135. regulator-name = "vcc-lcd";
  136. gpio = <&gpio0 RK_PB0 GPIO_ACTIVE_LOW>;
  137. pinctrl-names = "default";
  138. pinctrl-0 = <&lcd_en>;
  139. startup-delay-us = <50000>;
  140. vin-supply = <&vcc_io>;
  141. };
  142. vcc_otg: usb-otg-regulator {
  143. compatible = "regulator-fixed";
  144. regulator-name = "vcc-otg";
  145. regulator-min-microvolt = <5000000>;
  146. regulator-max-microvolt = <5000000>;
  147. enable-active-high;
  148. gpio = <&gpio3 RK_PB1 GPIO_ACTIVE_HIGH>;
  149. pinctrl-names = "default";
  150. pinctrl-0 = <&otg_drv>;
  151. startup-delay-us = <100000>;
  152. vin-supply = <&vcc_5v>;
  153. };
  154. vcc_sd: sdmmc-regulator {
  155. compatible = "regulator-fixed";
  156. regulator-name = "vcc-sd";
  157. regulator-min-microvolt = <3300000>;
  158. regulator-max-microvolt = <3300000>;
  159. gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>;
  160. pinctrl-names = "default";
  161. pinctrl-0 = <&sdmmc_pwr>;
  162. startup-delay-us = <100000>;
  163. vin-supply = <&vcc_io>;
  164. };
  165. vccq_emmc: emmc-vccq-regulator {
  166. compatible = "regulator-fixed";
  167. regulator-name = "vccq-emmc";
  168. regulator-min-microvolt = <2800000>;
  169. regulator-max-microvolt = <2800000>;
  170. vin-supply = <&vcc_io>;
  171. };
  172. /* supplied from the bq24196 */
  173. vsys: vsys-regulator {
  174. compatible = "regulator-fixed";
  175. regulator-name = "vsys";
  176. regulator-min-microvolt = <5000000>;
  177. regulator-max-microvolt = <5000000>;
  178. regulator-boot-on;
  179. };
  180. };
  181. &cpu0 {
  182. cpu-supply = <&vdd_arm>;
  183. };
  184. &cpu1 {
  185. cpu-supply = <&vdd_arm>;
  186. };
  187. &cpu2 {
  188. cpu-supply = <&vdd_arm>;
  189. };
  190. &cpu3 {
  191. cpu-supply = <&vdd_arm>;
  192. };
  193. &cru {
  194. assigned-clocks = <&cru PLL_GPLL>, <&cru PLL_CPLL>,
  195. <&cru ACLK_CPU>,
  196. <&cru HCLK_CPU>, <&cru PCLK_CPU>,
  197. <&cru ACLK_PERI>, <&cru HCLK_PERI>,
  198. <&cru PCLK_PERI>;
  199. assigned-clock-rates = <594000000>, <504000000>,
  200. <300000000>,
  201. <150000000>, <75000000>,
  202. <300000000>, <150000000>,
  203. <75000000>;
  204. };
  205. &emmc {
  206. bus-width = <8>;
  207. cap-mmc-highspeed;
  208. non-removable;
  209. pinctrl-names = "default";
  210. pinctrl-0 = <&emmc_clk &emmc_cmd>;
  211. vmmc-supply = <&vcc_io>;
  212. vqmmc-supply = <&vccq_emmc>;
  213. status = "okay";
  214. };
  215. &gpu {
  216. status = "okay";
  217. };
  218. &i2c0 {
  219. clock-frequency = <400000>;
  220. status = "okay";
  221. lis3de: accelerometer@29 {
  222. compatible = "st,lis3de";
  223. reg = <0x29>;
  224. interrupt-parent = <&gpio0>;
  225. interrupts = <RK_PB7 IRQ_TYPE_EDGE_RISING>;
  226. pinctrl-names = "default";
  227. pinctrl-0 = <&gsensor_int>;
  228. rotation-matrix = "1", "0", "0",
  229. "0", "-1", "0",
  230. "0", "0", "1";
  231. vdd-supply = <&vcc_io>;
  232. };
  233. };
  234. &i2c1 {
  235. clock-frequency = <400000>;
  236. status = "okay";
  237. tmp108@48 {
  238. compatible = "ti,tmp108";
  239. reg = <0x48>;
  240. interrupt-parent = <&gpio1>;
  241. interrupts = <RK_PA7 IRQ_TYPE_LEVEL_LOW>;
  242. pinctrl-names = "default";
  243. pinctrl-0 = <&tmp_alrt>;
  244. #thermal-sensor-cells = <0>;
  245. };
  246. hym8563: rtc@51 {
  247. compatible = "haoyu,hym8563";
  248. reg = <0x51>;
  249. interrupt-parent = <&gpio0>;
  250. interrupts = <RK_PB5 IRQ_TYPE_EDGE_FALLING>;
  251. pinctrl-names = "default";
  252. pinctrl-0 = <&rtc_int>;
  253. #clock-cells = <0>;
  254. clock-output-names = "xin32k";
  255. };
  256. bat: battery@55 {
  257. compatible = "ti,bq27541";
  258. reg = <0x55>;
  259. power-supplies = <&bq24196>;
  260. };
  261. act8846: pmic@5a {
  262. compatible = "active-semi,act8846";
  263. reg = <0x5a>;
  264. pinctrl-names = "default";
  265. pinctrl-0 = <&dvs0_ctl &pmic_int>;
  266. vp1-supply = <&vsys>;
  267. vp2-supply = <&vsys>;
  268. vp3-supply = <&vsys>;
  269. vp4-supply = <&vsys>;
  270. inl1-supply = <&vcc_io>;
  271. inl2-supply = <&vsys>;
  272. inl3-supply = <&vsys>;
  273. regulators {
  274. vcc_ddr: REG1 {
  275. regulator-name = "VCC_DDR";
  276. regulator-min-microvolt = <1200000>;
  277. regulator-max-microvolt = <1200000>;
  278. regulator-always-on;
  279. };
  280. vdd_log: REG2 {
  281. regulator-name = "VDD_LOG";
  282. regulator-min-microvolt = <1000000>;
  283. regulator-max-microvolt = <1200000>;
  284. regulator-always-on;
  285. };
  286. vdd_arm: REG3 {
  287. regulator-name = "VDD_ARM";
  288. regulator-min-microvolt = <875000>;
  289. regulator-max-microvolt = <1350000>;
  290. regulator-always-on;
  291. };
  292. vcc_io: vcc_hdmi: REG4 {
  293. regulator-name = "VCC_IO";
  294. regulator-min-microvolt = <3000000>;
  295. regulator-max-microvolt = <3000000>;
  296. regulator-always-on;
  297. };
  298. vdd_10: REG5 {
  299. regulator-name = "VDD_10";
  300. regulator-min-microvolt = <1000000>;
  301. regulator-max-microvolt = <1000000>;
  302. regulator-always-on;
  303. };
  304. vdd_12: REG6 {
  305. regulator-name = "VDD_12";
  306. regulator-min-microvolt = <1200000>;
  307. regulator-max-microvolt = <1200000>;
  308. regulator-always-on;
  309. };
  310. vcc18_cif: REG7 {
  311. regulator-name = "VCC18_CIF";
  312. regulator-min-microvolt = <1800000>;
  313. regulator-max-microvolt = <1800000>;
  314. regulator-always-on;
  315. };
  316. vcca_33: REG8 {
  317. regulator-name = "VCCA_33";
  318. regulator-min-microvolt = <3300000>;
  319. regulator-max-microvolt = <3300000>;
  320. regulator-always-on;
  321. };
  322. vcc_tp: REG9 {
  323. regulator-name = "VCC_TP";
  324. regulator-min-microvolt = <3300000>;
  325. regulator-max-microvolt = <3300000>;
  326. regulator-always-on;
  327. };
  328. vccio_wl: REG10 {
  329. regulator-name = "VCCIO_WL";
  330. regulator-min-microvolt = <2800000>;
  331. regulator-max-microvolt = <2800000>;
  332. regulator-always-on;
  333. };
  334. vcc_18: REG11 {
  335. regulator-name = "VCC_18";
  336. regulator-min-microvolt = <1800000>;
  337. regulator-max-microvolt = <1800000>;
  338. regulator-always-on;
  339. };
  340. vcc28_cif: REG12 {
  341. regulator-name = "VCC28_CIF";
  342. regulator-min-microvolt = <2800000>;
  343. regulator-max-microvolt = <2800000>;
  344. regulator-always-on;
  345. };
  346. };
  347. };
  348. bq24196: charger@6b {
  349. compatible = "ti,bq24196";
  350. reg = <0x6b>;
  351. interrupt-parent = <&gpio0>;
  352. interrupts = <RK_PD7 IRQ_TYPE_EDGE_FALLING>;
  353. pinctrl-names = "default";
  354. pinctrl-0 = <&charger_int &chg_ctl &otg_en>;
  355. ti,system-minimum-microvolt = <3200000>;
  356. monitored-battery = <&bat>;
  357. omit-battery-class;
  358. usb_otg_vbus: usb-otg-vbus { };
  359. };
  360. };
  361. &i2c2 {
  362. clock-frequency = <400000>;
  363. status = "okay";
  364. ft5606: touchscreen@3e {
  365. compatible = "edt,edt-ft5506";
  366. reg = <0x3e>;
  367. interrupt-parent = <&gpio1>;
  368. interrupts = <RK_PB7 IRQ_TYPE_EDGE_FALLING>;
  369. pinctrl-names = "default";
  370. pinctrl-0 = <&tp_int &tp_rst>;
  371. reset-gpios = <&gpio0 RK_PB6 GPIO_ACTIVE_LOW>;
  372. touchscreen-inverted-y;
  373. /* hw ts resolution does not match display */
  374. touchscreen-size-y = <1024>;
  375. touchscreen-size-x = <768>;
  376. touchscreen-swapped-x-y;
  377. };
  378. };
  379. &i2c3 {
  380. clock-frequency = <400000>;
  381. status = "okay";
  382. };
  383. &i2c4 {
  384. clock-frequency = <400000>;
  385. status = "okay";
  386. rt5616: codec@1b {
  387. compatible = "realtek,rt5616";
  388. reg = <0x1b>;
  389. clocks = <&cru SCLK_I2S0>;
  390. clock-names = "mclk";
  391. #sound-dai-cells = <0>;
  392. };
  393. };
  394. &i2s0 {
  395. status = "okay";
  396. };
  397. &mmc0 {
  398. bus-width = <4>;
  399. cap-mmc-highspeed;
  400. cap-sd-highspeed;
  401. disable-wp;
  402. pinctrl-names = "default";
  403. pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
  404. vmmc-supply = <&vcc_sd>;
  405. status = "okay";
  406. };
  407. &mmc1 {
  408. bus-width = <4>;
  409. cap-sd-highspeed;
  410. keep-power-in-suspend;
  411. mmc-pwrseq = <&sdio_pwrseq>;
  412. non-removable;
  413. pinctrl-names = "default";
  414. pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_bus4>;
  415. vqmmc-supply = <&vccio_wl>;
  416. #address-cells = <1>;
  417. #size-cells = <0>;
  418. status = "okay";
  419. brcmf: wifi@1 {
  420. reg = <1>;
  421. compatible = "brcm,bcm4329-fmac";
  422. interrupt-parent = <&gpio3>;
  423. interrupts = <RK_PD2 IRQ_TYPE_NONE>;
  424. interrupt-names = "host-wake";
  425. brcm,drive-strength = <5>;
  426. pinctrl-names = "default";
  427. pinctrl-0 = <&wifi_host_wake>;
  428. };
  429. };
  430. &pwm1 {
  431. status = "okay";
  432. };
  433. &pinctrl {
  434. pcfg_output_high: pcfg-output-high {
  435. output-high;
  436. };
  437. pcfg_output_low: pcfg-output-low {
  438. output-low;
  439. };
  440. act8846 {
  441. dvs0_ctl: dvs0-ctl {
  442. rockchip,pins = <3 RK_PD3 RK_FUNC_GPIO &pcfg_output_low>;
  443. };
  444. pmic_int: pmic-int {
  445. rockchip,pins = <0 RK_PB3 RK_FUNC_GPIO &pcfg_pull_up>;
  446. };
  447. };
  448. bq24196 {
  449. charger_int: charger-int {
  450. rockchip,pins = <0 RK_PD7 RK_FUNC_GPIO &pcfg_pull_up>;
  451. };
  452. /* pin hog to make it select usb profile */
  453. chg_ctl: chg-ctl {
  454. rockchip,pins = <0 RK_PA1 RK_FUNC_GPIO &pcfg_output_high>;
  455. };
  456. /* low: charging, high: complete, fault: blinking */
  457. chg_det: chg-det {
  458. rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
  459. };
  460. /* charging enabled when pin low and register set */
  461. chg_en: chg-en {
  462. rockchip,pins = <0 RK_PC1 RK_FUNC_GPIO &pcfg_output_low>;
  463. };
  464. /* bq29196 powergood (when low) signal */
  465. dc_det: dc-det {
  466. rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
  467. };
  468. /* wire bq24196 otg pin to high, to enable 500mA charging */
  469. otg_en: otg-en {
  470. rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_output_high>;
  471. };
  472. };
  473. camera {
  474. cif0_pdn: cif0-pdn {
  475. rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
  476. };
  477. cif1_pdn: cif1-pdn {
  478. rockchip,pins = <3 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
  479. };
  480. cif_avdd_en: cif-avdd-en {
  481. rockchip,pins = <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
  482. };
  483. };
  484. display {
  485. lcd_cs: lcd-cs {
  486. rockchip,pins = <3 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>;
  487. };
  488. lcd_en: lcd-en {
  489. rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
  490. };
  491. };
  492. ft5606 {
  493. tp_int: tp-int {
  494. rockchip,pins = <1 RK_PB7 RK_FUNC_GPIO &pcfg_pull_up>;
  495. };
  496. tp_rst: tp-rst {
  497. rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
  498. };
  499. };
  500. hdmi {
  501. hdmi_int: hdmi-int {
  502. rockchip,pins = <2 RK_PD6 RK_FUNC_GPIO &pcfg_pull_up>;
  503. };
  504. hdmi_rst: hdmi-rst {
  505. rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
  506. };
  507. };
  508. hym8563 {
  509. rtc_int: rtc-int {
  510. rockchip,pins = <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>;
  511. };
  512. };
  513. keys {
  514. pwr_hold: pwr-hold {
  515. rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_up>;
  516. };
  517. pwr_key: pwr-key {
  518. rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
  519. };
  520. };
  521. lis3de {
  522. gsensor_int: gsensor-int {
  523. rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
  524. };
  525. };
  526. mmc {
  527. sdmmc_pwr: sdmmc-pwr {
  528. rockchip,pins = <3 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
  529. };
  530. };
  531. tmp108 {
  532. tmp_alrt: tmp-alrt {
  533. rockchip,pins = <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>;
  534. };
  535. };
  536. usb {
  537. v5_drv: v5-drv {
  538. rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
  539. };
  540. otg_drv: otg-drv {
  541. rockchip,pins = <3 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
  542. };
  543. usb_int: usb-int {
  544. rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>;
  545. };
  546. };
  547. rk903 {
  548. bt_host_wake: bt-host-wake {
  549. rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
  550. };
  551. bt_reg_on: bt-reg-on {
  552. rockchip,pins = <3 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>;
  553. };
  554. /* pin hog to pull the reset high */
  555. bt_rst: bt-rst {
  556. rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_output_high>;
  557. };
  558. bt_wake: bt-wake {
  559. rockchip,pins = <3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
  560. };
  561. wifi_host_wake: wifi-host-wake {
  562. rockchip,pins = <3 RK_PD2 RK_FUNC_GPIO &pcfg_pull_up>;
  563. };
  564. wifi_reg_on: wifi-reg-on {
  565. rockchip,pins = <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
  566. };
  567. };
  568. };
  569. &saradc {
  570. vref-supply = <&vcc_18>;
  571. status = "okay";
  572. };
  573. &spdif {
  574. status = "okay";
  575. };
  576. &uart0 {
  577. pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
  578. status = "okay";
  579. bluetooth {
  580. compatible = "brcm,bcm43438-bt";
  581. max-speed = <2000000>;
  582. device-wakeup-gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_HIGH>;
  583. host-wakeup-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
  584. shutdown-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_HIGH>;
  585. pinctrl-names = "default";
  586. pinctrl-0 = <&bt_host_wake &bt_reg_on &bt_rst &bt_wake>;
  587. };
  588. };
  589. &uart1 {
  590. status = "okay";
  591. };
  592. &uart2 {
  593. status = "okay";
  594. };
  595. &uart3 {
  596. pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
  597. status = "okay";
  598. };
  599. &usbphy {
  600. status = "okay";
  601. };
  602. &usb_host {
  603. status = "okay";
  604. };
  605. &usb_otg {
  606. status = "okay";
  607. };
  608. &vop0 {
  609. status = "okay";
  610. };
  611. &vop0_out {
  612. vop0_out_lvds: endpoint {
  613. remote-endpoint = <&lvds_in_vop0>;
  614. };
  615. };
  616. &vop1 {
  617. pinctrl-names = "default";
  618. pinctrl-0 = <&lcdc1_dclk &lcdc1_den &lcdc1_hsync
  619. &lcdc1_vsync &lcdc1_rgb24>;
  620. status = "okay";
  621. };
  622. &wdt {
  623. status = "okay";
  624. };