rk3288-firefly.dtsi 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  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. &gmac {
  132. assigned-clocks = <&cru SCLK_MAC>;
  133. assigned-clock-parents = <&ext_gmac>;
  134. clock_in_out = "input";
  135. pinctrl-names = "default";
  136. pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
  137. phy-supply = <&vcc_lan>;
  138. phy-mode = "rgmii";
  139. snps,reset-active-low;
  140. snps,reset-delays-us = <0 10000 1000000>;
  141. snps,reset-gpio = <&gpio4 8 GPIO_ACTIVE_LOW>;
  142. tx_delay = <0x30>;
  143. rx_delay = <0x10>;
  144. status = "okay";
  145. };
  146. &hdmi {
  147. ddc-i2c-bus = <&i2c5>;
  148. status = "okay";
  149. };
  150. &i2c0 {
  151. clock-frequency = <400000>;
  152. status = "okay";
  153. vdd_cpu: syr827@40 {
  154. compatible = "silergy,syr827";
  155. fcs,suspend-voltage-selector = <1>;
  156. reg = <0x40>;
  157. regulator-name = "vdd_cpu";
  158. regulator-min-microvolt = <850000>;
  159. regulator-max-microvolt = <1350000>;
  160. regulator-always-on;
  161. regulator-boot-on;
  162. vin-supply = <&vcc_sys>;
  163. };
  164. vdd_gpu: syr828@41 {
  165. compatible = "silergy,syr828";
  166. fcs,suspend-voltage-selector = <1>;
  167. reg = <0x41>;
  168. regulator-name = "vdd_gpu";
  169. regulator-min-microvolt = <850000>;
  170. regulator-max-microvolt = <1350000>;
  171. regulator-always-on;
  172. vin-supply = <&vcc_sys>;
  173. };
  174. hym8563: hym8563@51 {
  175. compatible = "haoyu,hym8563";
  176. reg = <0x51>;
  177. #clock-cells = <0>;
  178. clock-frequency = <32768>;
  179. clock-output-names = "xin32k";
  180. interrupt-parent = <&gpio7>;
  181. interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
  182. pinctrl-names = "default";
  183. pinctrl-0 = <&rtc_int>;
  184. };
  185. act8846: act8846@5a {
  186. compatible = "active-semi,act8846";
  187. reg = <0x5a>;
  188. pinctrl-names = "default";
  189. pinctrl-0 = <&pmic_vsel>, <&pwr_hold>;
  190. system-power-controller;
  191. regulators {
  192. vcc_ddr: REG1 {
  193. regulator-name = "vcc_ddr";
  194. regulator-min-microvolt = <1200000>;
  195. regulator-max-microvolt = <1200000>;
  196. regulator-always-on;
  197. };
  198. vcc_io: REG2 {
  199. regulator-name = "vcc_io";
  200. regulator-min-microvolt = <3300000>;
  201. regulator-max-microvolt = <3300000>;
  202. regulator-always-on;
  203. };
  204. vdd_log: REG3 {
  205. regulator-name = "vdd_log";
  206. regulator-min-microvolt = <1100000>;
  207. regulator-max-microvolt = <1100000>;
  208. regulator-always-on;
  209. };
  210. vcc_20: REG4 {
  211. regulator-name = "vcc_20";
  212. regulator-min-microvolt = <2000000>;
  213. regulator-max-microvolt = <2000000>;
  214. regulator-always-on;
  215. };
  216. vccio_sd: REG5 {
  217. regulator-name = "vccio_sd";
  218. regulator-min-microvolt = <3300000>;
  219. regulator-max-microvolt = <3300000>;
  220. regulator-always-on;
  221. };
  222. vdd10_lcd: REG6 {
  223. regulator-name = "vdd10_lcd";
  224. regulator-min-microvolt = <1000000>;
  225. regulator-max-microvolt = <1000000>;
  226. regulator-always-on;
  227. };
  228. vcca_18: REG7 {
  229. regulator-name = "vcca_18";
  230. regulator-min-microvolt = <1800000>;
  231. regulator-max-microvolt = <1800000>;
  232. };
  233. vcca_33: REG8 {
  234. regulator-name = "vcca_33";
  235. regulator-min-microvolt = <3300000>;
  236. regulator-max-microvolt = <3300000>;
  237. };
  238. vcc_lan: REG9 {
  239. regulator-name = "vcc_lan";
  240. regulator-min-microvolt = <3300000>;
  241. regulator-max-microvolt = <3300000>;
  242. };
  243. vdd_10: REG10 {
  244. regulator-name = "vdd_10";
  245. regulator-min-microvolt = <1000000>;
  246. regulator-max-microvolt = <1000000>;
  247. regulator-always-on;
  248. };
  249. vcc_18: REG11 {
  250. regulator-name = "vcc_18";
  251. regulator-min-microvolt = <1800000>;
  252. regulator-max-microvolt = <1800000>;
  253. regulator-always-on;
  254. };
  255. vcc18_lcd: REG12 {
  256. regulator-name = "vcc18_lcd";
  257. regulator-min-microvolt = <1800000>;
  258. regulator-max-microvolt = <1800000>;
  259. regulator-always-on;
  260. };
  261. };
  262. };
  263. };
  264. &i2c1 {
  265. status = "okay";
  266. };
  267. &i2c2 {
  268. status = "okay";
  269. };
  270. &i2c4 {
  271. status = "okay";
  272. };
  273. &i2c5 {
  274. status = "okay";
  275. };
  276. &pinctrl {
  277. pcfg_output_high: pcfg-output-high {
  278. output-high;
  279. };
  280. pcfg_output_low: pcfg-output-low {
  281. output-low;
  282. };
  283. act8846 {
  284. pwr_hold: pwr-hold {
  285. rockchip,pins = <0 1 RK_FUNC_GPIO &pcfg_output_high>;
  286. };
  287. };
  288. gmac {
  289. phy_int: phy-int {
  290. rockchip,pins = <0 9 RK_FUNC_GPIO &pcfg_pull_up>;
  291. };
  292. phy_pmeb: phy-pmeb {
  293. rockchip,pins = <0 8 RK_FUNC_GPIO &pcfg_pull_up>;
  294. };
  295. phy_rst: phy-rst {
  296. rockchip,pins = <4 8 RK_FUNC_GPIO &pcfg_output_high>;
  297. };
  298. };
  299. hym8563 {
  300. rtc_int: rtc-int {
  301. rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_up>;
  302. };
  303. };
  304. keys {
  305. pwr_key: pwr-key {
  306. rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>;
  307. };
  308. };
  309. leds {
  310. power_led: power-led {
  311. rockchip,pins = <8 2 RK_FUNC_GPIO &pcfg_pull_none>;
  312. };
  313. work_led: work-led {
  314. rockchip,pins = <8 1 RK_FUNC_GPIO &pcfg_pull_none>;
  315. };
  316. };
  317. sdmmc {
  318. sdmmc_pwr: sdmmc-pwr {
  319. rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
  320. };
  321. };
  322. usb_host {
  323. host_vbus_drv: host-vbus-drv {
  324. rockchip,pins = <0 14 RK_FUNC_GPIO &pcfg_pull_none>;
  325. };
  326. usbhub_rst: usbhub-rst {
  327. rockchip,pins = <8 3 RK_FUNC_GPIO &pcfg_output_high>;
  328. };
  329. };
  330. usb_otg {
  331. otg_vbus_drv: otg-vbus-drv {
  332. rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
  333. };
  334. };
  335. };
  336. &saradc {
  337. vref-supply = <&vcc_18>;
  338. status = "okay";
  339. };
  340. &sdio0 {
  341. broken-cd;
  342. bus-width = <4>;
  343. disable-wp;
  344. non-removable;
  345. num-slots = <1>;
  346. pinctrl-names = "default";
  347. pinctrl-0 = <&sdio0_bus4>, <&sdio0_cmd>, <&sdio0_clk>;
  348. vmmc-supply = <&vcc_18>;
  349. status = "disabled";
  350. };
  351. &sdmmc {
  352. bus-width = <4>;
  353. cap-mmc-highspeed;
  354. cap-sd-highspeed;
  355. card-detect-delay = <200>;
  356. disable-wp;
  357. num-slots = <1>;
  358. pinctrl-names = "default";
  359. pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>;
  360. vmmc-supply = <&vcc_sd>;
  361. status = "okay";
  362. };
  363. &spi0 {
  364. pinctrl-names = "default";
  365. pinctrl-0 = <&spi0_clk>, <&spi0_cs0>, <&spi0_tx>, <&spi0_rx>, <&spi0_cs1>;
  366. status = "okay";
  367. };
  368. &uart0 {
  369. pinctrl-names = "default";
  370. pinctrl-0 = <&uart0_xfer>, <&uart0_cts>, <&uart0_rts>;
  371. status = "okay";
  372. };
  373. &uart1 {
  374. status = "okay";
  375. };
  376. &uart2 {
  377. status = "okay";
  378. };
  379. &uart3 {
  380. status = "okay";
  381. };
  382. &usb_host1 {
  383. pinctrl-names = "default";
  384. pinctrl-0 = <&usbhub_rst>;
  385. status = "okay";
  386. };
  387. &usb_otg {
  388. status = "okay";
  389. };
  390. &vopb {
  391. status = "okay";
  392. };
  393. &vopb_mmu {
  394. status = "okay";
  395. };
  396. &vopl {
  397. status = "okay";
  398. };
  399. &vopl_mmu {
  400. status = "okay";
  401. };
  402. &wdt {
  403. status = "okay";
  404. };