rk3288-firefly.dtsi 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457
  1. /*
  2. * Copyright (c) 2014, 2015 FUKAUMI Naoki <naobsd@gmail.com>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+ X11
  5. */
  6. #include "rk3288.dtsi"
  7. / {
  8. 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. ir: ir-receiver {
  18. compatible = "gpio-ir-receiver";
  19. pinctrl-names = "default";
  20. pinctrl-0 = <&ir_int>;
  21. };
  22. keys: gpio-keys {
  23. compatible = "gpio-keys";
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. button@0 {
  27. gpio-key,wakeup = <1>;
  28. gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
  29. label = "GPIO Power";
  30. linux,code = <116>;
  31. pinctrl-names = "default";
  32. pinctrl-0 = <&pwr_key>;
  33. };
  34. };
  35. leds {
  36. u-boot,dm-pre-reloc;
  37. compatible = "gpio-leds";
  38. work {
  39. u-boot,dm-pre-reloc;
  40. gpios = <&gpio8 1 GPIO_ACTIVE_LOW>;
  41. label = "firefly:blue:user";
  42. linux,default-trigger = "rc-feedback";
  43. pinctrl-names = "default";
  44. pinctrl-0 = <&work_led>;
  45. };
  46. power {
  47. u-boot,dm-pre-reloc;
  48. gpios = <&gpio8 2 GPIO_ACTIVE_LOW>;
  49. label = "firefly:green:power";
  50. linux,default-trigger = "default-on";
  51. pinctrl-names = "default";
  52. pinctrl-0 = <&power_led>;
  53. };
  54. };
  55. vcc_sys: vsys-regulator {
  56. compatible = "regulator-fixed";
  57. regulator-name = "vcc_sys";
  58. regulator-min-microvolt = <5000000>;
  59. regulator-max-microvolt = <5000000>;
  60. regulator-always-on;
  61. regulator-boot-on;
  62. };
  63. vcc_sd: sdmmc-regulator {
  64. compatible = "regulator-fixed";
  65. gpio = <&gpio7 11 GPIO_ACTIVE_LOW>;
  66. pinctrl-names = "default";
  67. pinctrl-0 = <&sdmmc_pwr>;
  68. regulator-name = "vcc_sd";
  69. regulator-min-microvolt = <3300000>;
  70. regulator-max-microvolt = <3300000>;
  71. startup-delay-us = <100000>;
  72. vin-supply = <&vcc_io>;
  73. };
  74. vcc_flash: flash-regulator {
  75. compatible = "regulator-fixed";
  76. regulator-name = "vcc_flash";
  77. regulator-min-microvolt = <1800000>;
  78. regulator-max-microvolt = <1800000>;
  79. vin-supply = <&vcc_io>;
  80. };
  81. vcc_5v: usb-regulator {
  82. compatible = "regulator-fixed";
  83. regulator-name = "vcc_5v";
  84. regulator-min-microvolt = <5000000>;
  85. regulator-max-microvolt = <5000000>;
  86. regulator-always-on;
  87. regulator-boot-on;
  88. vin-supply = <&vcc_sys>;
  89. };
  90. vcc_host_5v: usb-host-regulator {
  91. compatible = "regulator-fixed";
  92. enable-active-high;
  93. gpio = <&gpio0 14 GPIO_ACTIVE_HIGH>;
  94. pinctrl-names = "default";
  95. pinctrl-0 = <&host_vbus_drv>;
  96. regulator-name = "vcc_host_5v";
  97. regulator-min-microvolt = <5000000>;
  98. regulator-max-microvolt = <5000000>;
  99. regulator-always-on;
  100. vin-supply = <&vcc_5v>;
  101. };
  102. vcc_otg_5v: usb-otg-regulator {
  103. compatible = "regulator-fixed";
  104. enable-active-high;
  105. gpio = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  106. pinctrl-names = "default";
  107. pinctrl-0 = <&otg_vbus_drv>;
  108. regulator-name = "vcc_otg_5v";
  109. regulator-min-microvolt = <5000000>;
  110. regulator-max-microvolt = <5000000>;
  111. regulator-always-on;
  112. vin-supply = <&vcc_5v>;
  113. };
  114. };
  115. &cpu0 {
  116. cpu0-supply = <&vdd_cpu>;
  117. };
  118. &emmc {
  119. broken-cd;
  120. bus-width = <8>;
  121. cap-mmc-highspeed;
  122. disable-wp;
  123. non-removable;
  124. num-slots = <1>;
  125. pinctrl-names = "default";
  126. pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_pwr>, <&emmc_bus8>;
  127. vmmc-supply = <&vcc_io>;
  128. vqmmc-supply = <&vcc_flash>;
  129. status = "okay";
  130. };
  131. &hdmi {
  132. ddc-i2c-bus = <&i2c5>;
  133. status = "okay";
  134. };
  135. &i2c0 {
  136. clock-frequency = <400000>;
  137. status = "okay";
  138. vdd_cpu: syr827@40 {
  139. compatible = "silergy,syr827";
  140. fcs,suspend-voltage-selector = <1>;
  141. reg = <0x40>;
  142. regulator-name = "vdd_cpu";
  143. regulator-min-microvolt = <850000>;
  144. regulator-max-microvolt = <1350000>;
  145. regulator-always-on;
  146. regulator-boot-on;
  147. vin-supply = <&vcc_sys>;
  148. };
  149. vdd_gpu: syr828@41 {
  150. compatible = "silergy,syr828";
  151. fcs,suspend-voltage-selector = <1>;
  152. reg = <0x41>;
  153. regulator-name = "vdd_gpu";
  154. regulator-min-microvolt = <850000>;
  155. regulator-max-microvolt = <1350000>;
  156. regulator-always-on;
  157. vin-supply = <&vcc_sys>;
  158. };
  159. hym8563: hym8563@51 {
  160. compatible = "haoyu,hym8563";
  161. reg = <0x51>;
  162. #clock-cells = <0>;
  163. clock-frequency = <32768>;
  164. clock-output-names = "xin32k";
  165. interrupt-parent = <&gpio7>;
  166. interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
  167. pinctrl-names = "default";
  168. pinctrl-0 = <&rtc_int>;
  169. };
  170. act8846: act8846@5a {
  171. compatible = "active-semi,act8846";
  172. reg = <0x5a>;
  173. pinctrl-names = "default";
  174. pinctrl-0 = <&pmic_vsel>, <&pwr_hold>;
  175. system-power-controller;
  176. regulators {
  177. vcc_ddr: REG1 {
  178. regulator-name = "vcc_ddr";
  179. regulator-min-microvolt = <1200000>;
  180. regulator-max-microvolt = <1200000>;
  181. regulator-always-on;
  182. };
  183. vcc_io: REG2 {
  184. regulator-name = "vcc_io";
  185. regulator-min-microvolt = <3300000>;
  186. regulator-max-microvolt = <3300000>;
  187. regulator-always-on;
  188. };
  189. vdd_log: REG3 {
  190. regulator-name = "vdd_log";
  191. regulator-min-microvolt = <1100000>;
  192. regulator-max-microvolt = <1100000>;
  193. regulator-always-on;
  194. };
  195. vcc_20: REG4 {
  196. regulator-name = "vcc_20";
  197. regulator-min-microvolt = <2000000>;
  198. regulator-max-microvolt = <2000000>;
  199. regulator-always-on;
  200. };
  201. vccio_sd: REG5 {
  202. regulator-name = "vccio_sd";
  203. regulator-min-microvolt = <3300000>;
  204. regulator-max-microvolt = <3300000>;
  205. regulator-always-on;
  206. };
  207. vdd10_lcd: REG6 {
  208. regulator-name = "vdd10_lcd";
  209. regulator-min-microvolt = <1000000>;
  210. regulator-max-microvolt = <1000000>;
  211. regulator-always-on;
  212. };
  213. vcca_18: REG7 {
  214. regulator-name = "vcca_18";
  215. regulator-min-microvolt = <1800000>;
  216. regulator-max-microvolt = <1800000>;
  217. };
  218. vcca_33: REG8 {
  219. regulator-name = "vcca_33";
  220. regulator-min-microvolt = <3300000>;
  221. regulator-max-microvolt = <3300000>;
  222. };
  223. vcc_lan: REG9 {
  224. regulator-name = "vcc_lan";
  225. regulator-min-microvolt = <3300000>;
  226. regulator-max-microvolt = <3300000>;
  227. };
  228. vdd_10: REG10 {
  229. regulator-name = "vdd_10";
  230. regulator-min-microvolt = <1000000>;
  231. regulator-max-microvolt = <1000000>;
  232. regulator-always-on;
  233. };
  234. vcc_18: REG11 {
  235. regulator-name = "vcc_18";
  236. regulator-min-microvolt = <1800000>;
  237. regulator-max-microvolt = <1800000>;
  238. regulator-always-on;
  239. };
  240. vcc18_lcd: REG12 {
  241. regulator-name = "vcc18_lcd";
  242. regulator-min-microvolt = <1800000>;
  243. regulator-max-microvolt = <1800000>;
  244. regulator-always-on;
  245. };
  246. };
  247. };
  248. };
  249. &i2c1 {
  250. status = "okay";
  251. };
  252. &i2c2 {
  253. status = "okay";
  254. };
  255. &i2c4 {
  256. status = "okay";
  257. };
  258. &i2c5 {
  259. status = "okay";
  260. };
  261. &pinctrl {
  262. pcfg_output_high: pcfg-output-high {
  263. output-high;
  264. };
  265. pcfg_output_low: pcfg-output-low {
  266. output-low;
  267. };
  268. act8846 {
  269. pwr_hold: pwr-hold {
  270. rockchip,pins = <0 1 RK_FUNC_GPIO &pcfg_output_high>;
  271. };
  272. };
  273. gmac {
  274. phy_int: phy-int {
  275. rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
  276. };
  277. phy_pmeb: phy-pmeb {
  278. rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_up>;
  279. };
  280. phy_rst: phy-rst {
  281. rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
  282. };
  283. };
  284. hym8563 {
  285. rtc_int: rtc-int {
  286. rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_up>;
  287. };
  288. };
  289. keys {
  290. pwr_key: pwr-key {
  291. rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
  292. };
  293. };
  294. leds {
  295. power_led: power-led {
  296. rockchip,pins = <8 2 RK_FUNC_GPIO &pcfg_pull_none>;
  297. };
  298. work_led: work-led {
  299. rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_none>;
  300. };
  301. };
  302. sdmmc {
  303. sdmmc_pwr: sdmmc-pwr {
  304. rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
  305. };
  306. };
  307. usb_host {
  308. host_vbus_drv: host-vbus-drv {
  309. rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
  310. };
  311. usbhub_rst: usbhub-rst {
  312. rockchip,pins = <8 3 RK_FUNC_GPIO &pcfg_output_high>;
  313. };
  314. };
  315. usb_otg {
  316. otg_vbus_drv: otg-vbus-drv {
  317. rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
  318. };
  319. };
  320. };
  321. &saradc {
  322. vref-supply = <&vcc_18>;
  323. status = "okay";
  324. };
  325. &sdio0 {
  326. broken-cd;
  327. bus-width = <4>;
  328. disable-wp;
  329. non-removable;
  330. num-slots = <1>;
  331. pinctrl-names = "default";
  332. pinctrl-0 = <&sdio0_bus4>, <&sdio0_cmd>, <&sdio0_clk>;
  333. vmmc-supply = <&vcc_18>;
  334. status = "disabled";
  335. };
  336. &sdmmc {
  337. bus-width = <4>;
  338. cap-mmc-highspeed;
  339. cap-sd-highspeed;
  340. card-detect-delay = <200>;
  341. disable-wp;
  342. num-slots = <1>;
  343. pinctrl-names = "default";
  344. pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
  345. vmmc-supply = <&vcc_sd>;
  346. status = "okay";
  347. };
  348. &spi0 {
  349. pinctrl-names = "default";
  350. pinctrl-0 = <&spi0_clk>, <&spi0_cs0>, <&spi0_tx>, <&spi0_rx>, <&spi0_cs1>;
  351. status = "okay";
  352. };
  353. &uart0 {
  354. pinctrl-names = "default";
  355. pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
  356. status = "okay";
  357. };
  358. &uart1 {
  359. status = "okay";
  360. };
  361. &uart2 {
  362. status = "okay";
  363. };
  364. &uart3 {
  365. status = "okay";
  366. };
  367. &usb_host1 {
  368. pinctrl-names = "default";
  369. pinctrl-0 = <&usbhub_rst>;
  370. status = "okay";
  371. };
  372. &usb_otg {
  373. status = "okay";
  374. };
  375. &vopb {
  376. status = "okay";
  377. };
  378. &vopb_mmu {
  379. status = "okay";
  380. };
  381. &vopl {
  382. status = "okay";
  383. };
  384. &vopl_mmu {
  385. status = "okay";
  386. };
  387. &wdt {
  388. status = "okay";
  389. };