rk3288-miqi.dts 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2016 Heiko Stuebner <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include <dt-bindings/input/input.h>
  7. #include "rk3288.dtsi"
  8. / {
  9. model = "mqmaker MiQi";
  10. compatible = "mqmaker,miqi", "rockchip,rk3288";
  11. chosen {
  12. stdout-path = "serial2:115200n8";
  13. };
  14. memory@0 {
  15. device_type = "memory";
  16. reg = <0x0 0x0 0x0 0x80000000>;
  17. };
  18. ext_gmac: external-gmac-clock {
  19. compatible = "fixed-clock";
  20. #clock-cells = <0>;
  21. clock-frequency = <125000000>;
  22. clock-output-names = "ext_gmac";
  23. };
  24. leds {
  25. compatible = "gpio-leds";
  26. work_led: led-0 {
  27. gpios = <&gpio7 RK_PA2 GPIO_ACTIVE_HIGH>;
  28. label = "miqi:green:user";
  29. linux,default-trigger = "timer";
  30. };
  31. };
  32. vcc_flash: flash-regulator {
  33. compatible = "regulator-fixed";
  34. regulator-name = "vcc_flash";
  35. regulator-min-microvolt = <1800000>;
  36. regulator-max-microvolt = <1800000>;
  37. vin-supply = <&vcc_io>;
  38. };
  39. vcc_host: usb-host-regulator {
  40. compatible = "regulator-fixed";
  41. enable-active-high;
  42. gpio = <&gpio0 RK_PB6 GPIO_ACTIVE_HIGH>;
  43. pinctrl-names = "default";
  44. pinctrl-0 = <&host_vbus_drv>;
  45. regulator-name = "vcc_host";
  46. regulator-min-microvolt = <5000000>;
  47. regulator-max-microvolt = <5000000>;
  48. regulator-always-on;
  49. vin-supply = <&vcc_sys>;
  50. };
  51. vcc_sd: sdmmc-regulator {
  52. compatible = "regulator-fixed";
  53. gpio = <&gpio7 RK_PB3 GPIO_ACTIVE_LOW>;
  54. pinctrl-names = "default";
  55. pinctrl-0 = <&sdmmc_pwr>;
  56. regulator-name = "vcc_sd";
  57. regulator-min-microvolt = <3300000>;
  58. regulator-max-microvolt = <3300000>;
  59. startup-delay-us = <100000>;
  60. vin-supply = <&vcc_io>;
  61. };
  62. vcc_sys: vsys-regulator {
  63. compatible = "regulator-fixed";
  64. regulator-name = "vcc_sys";
  65. regulator-min-microvolt = <5000000>;
  66. regulator-max-microvolt = <5000000>;
  67. regulator-always-on;
  68. regulator-boot-on;
  69. };
  70. };
  71. &cpu0 {
  72. cpu-supply = <&vdd_cpu>;
  73. };
  74. &cpu1 {
  75. cpu-supply = <&vdd_cpu>;
  76. };
  77. &cpu2 {
  78. cpu-supply = <&vdd_cpu>;
  79. };
  80. &cpu3 {
  81. cpu-supply = <&vdd_cpu>;
  82. };
  83. &emmc {
  84. bus-width = <8>;
  85. cap-mmc-highspeed;
  86. non-removable;
  87. pinctrl-names = "default";
  88. pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
  89. vmmc-supply = <&vcc_io>;
  90. vqmmc-supply = <&vcc_flash>;
  91. status = "okay";
  92. };
  93. &gmac {
  94. assigned-clocks = <&cru SCLK_MAC>;
  95. assigned-clock-parents = <&ext_gmac>;
  96. clock_in_out = "input";
  97. pinctrl-names = "default";
  98. pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
  99. phy-supply = <&vcc_lan>;
  100. phy-mode = "rgmii";
  101. snps,reset-active-low;
  102. snps,reset-delays-us = <0 10000 1000000>;
  103. snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
  104. tx_delay = <0x30>;
  105. rx_delay = <0x10>;
  106. status = "okay";
  107. };
  108. &gpu {
  109. mali-supply = <&vdd_gpu>;
  110. status = "okay";
  111. };
  112. &hdmi {
  113. ddc-i2c-bus = <&i2c5>;
  114. status = "okay";
  115. };
  116. &i2c0 {
  117. clock-frequency = <400000>;
  118. status = "okay";
  119. vdd_cpu: syr827@40 {
  120. compatible = "silergy,syr827";
  121. fcs,suspend-voltage-selector = <1>;
  122. reg = <0x40>;
  123. regulator-name = "vdd_cpu";
  124. regulator-min-microvolt = <850000>;
  125. regulator-max-microvolt = <1350000>;
  126. regulator-always-on;
  127. regulator-boot-on;
  128. regulator-enable-ramp-delay = <300>;
  129. regulator-ramp-delay = <8000>;
  130. vin-supply = <&vcc_sys>;
  131. };
  132. vdd_gpu: syr828@41 {
  133. compatible = "silergy,syr828";
  134. fcs,suspend-voltage-selector = <1>;
  135. reg = <0x41>;
  136. regulator-name = "vdd_gpu";
  137. regulator-min-microvolt = <850000>;
  138. regulator-max-microvolt = <1350000>;
  139. regulator-always-on;
  140. vin-supply = <&vcc_sys>;
  141. };
  142. hym8563: rtc@51 {
  143. compatible = "haoyu,hym8563";
  144. reg = <0x51>;
  145. #clock-cells = <0>;
  146. clock-output-names = "xin32k";
  147. };
  148. act8846: act8846@5a {
  149. compatible = "active-semi,act8846";
  150. reg = <0x5a>;
  151. pinctrl-names = "default";
  152. pinctrl-0 = <&pmic_vsel>;
  153. system-power-controller;
  154. vp1-supply = <&vcc_sys>;
  155. vp2-supply = <&vcc_sys>;
  156. vp3-supply = <&vcc_sys>;
  157. vp4-supply = <&vcc_sys>;
  158. inl1-supply = <&vcc_sys>;
  159. inl2-supply = <&vcc_sys>;
  160. inl3-supply = <&vcc_20>;
  161. regulators {
  162. vcc_ddr: REG1 {
  163. regulator-name = "vcc_ddr";
  164. regulator-always-on;
  165. };
  166. vcc_io: REG2 {
  167. regulator-name = "vcc_io";
  168. regulator-min-microvolt = <3300000>;
  169. regulator-max-microvolt = <3300000>;
  170. regulator-always-on;
  171. };
  172. vdd_log: REG3 {
  173. regulator-name = "vdd_log";
  174. regulator-min-microvolt = <1100000>;
  175. regulator-max-microvolt = <1100000>;
  176. regulator-always-on;
  177. };
  178. vcc_20: REG4 {
  179. regulator-name = "vcc_20";
  180. regulator-min-microvolt = <2000000>;
  181. regulator-max-microvolt = <2000000>;
  182. regulator-always-on;
  183. };
  184. vccio_sd: REG5 {
  185. regulator-name = "vccio_sd";
  186. regulator-min-microvolt = <3300000>;
  187. regulator-max-microvolt = <3300000>;
  188. regulator-always-on;
  189. };
  190. vdd10_lcd: REG6 {
  191. regulator-name = "vdd10_lcd";
  192. regulator-min-microvolt = <1000000>;
  193. regulator-max-microvolt = <1000000>;
  194. regulator-always-on;
  195. };
  196. vcca_18: REG7 {
  197. regulator-name = "vcca_18";
  198. regulator-min-microvolt = <1800000>;
  199. regulator-max-microvolt = <1800000>;
  200. };
  201. vcca_33: REG8 {
  202. regulator-name = "vcca_33";
  203. regulator-min-microvolt = <3300000>;
  204. regulator-max-microvolt = <3300000>;
  205. };
  206. vcc_lan: REG9 {
  207. regulator-name = "vcc_lan";
  208. regulator-min-microvolt = <3300000>;
  209. regulator-max-microvolt = <3300000>;
  210. };
  211. vdd_10: REG10 {
  212. regulator-name = "vdd_10";
  213. regulator-min-microvolt = <1000000>;
  214. regulator-max-microvolt = <1000000>;
  215. regulator-always-on;
  216. };
  217. vcc_18: REG11 {
  218. regulator-name = "vcc_18";
  219. regulator-min-microvolt = <1800000>;
  220. regulator-max-microvolt = <1800000>;
  221. regulator-always-on;
  222. };
  223. vcc18_lcd: REG12 {
  224. regulator-name = "vcc18_lcd";
  225. regulator-min-microvolt = <1800000>;
  226. regulator-max-microvolt = <1800000>;
  227. regulator-always-on;
  228. };
  229. };
  230. };
  231. };
  232. &i2c1 {
  233. status = "okay";
  234. };
  235. &i2c2 {
  236. status = "okay";
  237. };
  238. &i2c4 {
  239. status = "okay";
  240. };
  241. &i2c5 {
  242. status = "okay";
  243. };
  244. &io_domains {
  245. status = "okay";
  246. audio-supply = <&vcca_33>;
  247. flash0-supply = <&vcc_flash>;
  248. flash1-supply = <&vcc_lan>;
  249. gpio30-supply = <&vcc_io>;
  250. gpio1830-supply = <&vcc_io>;
  251. lcdc-supply = <&vcc_io>;
  252. sdcard-supply = <&vccio_sd>;
  253. wifi-supply = <&vcc_18>;
  254. };
  255. &pinctrl {
  256. pcfg_output_high: pcfg-output-high {
  257. output-high;
  258. };
  259. pcfg_output_low: pcfg-output-low {
  260. output-low;
  261. };
  262. pcfg_pull_up_drv_12ma: pcfg-pull-up-drv-12ma {
  263. bias-pull-up;
  264. drive-strength = <12>;
  265. };
  266. act8846 {
  267. pmic_int: pmic-int {
  268. rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>;
  269. };
  270. pmic_sleep: pmic-sleep {
  271. rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_output_low>;
  272. };
  273. pmic_vsel: pmic-vsel {
  274. rockchip,pins = <7 RK_PA1 RK_FUNC_GPIO &pcfg_output_low>;
  275. };
  276. };
  277. gmac {
  278. phy_int: phy-int {
  279. rockchip,pins = <0 RK_PB1 RK_FUNC_GPIO &pcfg_pull_up>;
  280. };
  281. phy_pmeb: phy-pmeb {
  282. rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
  283. };
  284. phy_rst: phy-rst {
  285. rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_output_high>;
  286. };
  287. };
  288. sdmmc {
  289. /*
  290. * Default drive strength isn't enough to achieve even
  291. * high-speed mode on firefly board so bump up to 12ma.
  292. */
  293. sdmmc_bus4: sdmmc-bus4 {
  294. rockchip,pins = <6 RK_PC0 1 &pcfg_pull_up_drv_12ma>,
  295. <6 RK_PC1 1 &pcfg_pull_up_drv_12ma>,
  296. <6 RK_PC2 1 &pcfg_pull_up_drv_12ma>,
  297. <6 RK_PC3 1 &pcfg_pull_up_drv_12ma>;
  298. };
  299. sdmmc_clk: sdmmc-clk {
  300. rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none_12ma>;
  301. };
  302. sdmmc_cmd: sdmmc-cmd {
  303. rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up_drv_12ma>;
  304. };
  305. sdmmc_pwr: sdmmc-pwr {
  306. rockchip,pins = <7 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
  307. };
  308. };
  309. usb_host {
  310. host_vbus_drv: host-vbus-drv {
  311. rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
  312. };
  313. };
  314. };
  315. &saradc {
  316. vref-supply = <&vcc_18>;
  317. status = "okay";
  318. };
  319. &sdmmc {
  320. bus-width = <4>;
  321. cap-mmc-highspeed;
  322. cap-sd-highspeed;
  323. card-detect-delay = <200>;
  324. disable-wp;
  325. pinctrl-names = "default";
  326. pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
  327. vmmc-supply = <&vcc_sd>;
  328. vqmmc-supply = <&vccio_sd>;
  329. status = "okay";
  330. };
  331. &tsadc {
  332. rockchip,hw-tshut-mode = <0>;
  333. rockchip,hw-tshut-polarity = <0>;
  334. status = "okay";
  335. };
  336. &uart2 {
  337. status = "okay";
  338. };
  339. &uart3 {
  340. status = "okay";
  341. };
  342. &usbphy {
  343. status = "okay";
  344. };
  345. &usb_host1 {
  346. status = "okay";
  347. };
  348. &usb_otg {
  349. /*
  350. * The otg controller is the only system power source,
  351. * so needs to always stay in device mode.
  352. */
  353. dr_mode = "peripheral";
  354. status = "okay";
  355. };
  356. &vopb {
  357. status = "okay";
  358. };
  359. &vopb_mmu {
  360. status = "okay";
  361. };
  362. &vopl {
  363. status = "okay";
  364. };
  365. &vopl_mmu {
  366. status = "okay";
  367. };
  368. &wdt {
  369. status = "okay";
  370. };