rk3288-miqi.dtsi 8.2 KB

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