rk3288-firefly.dtsi 9.1 KB

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