rk3368-orion-r68-meta.dts 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2016 Matthias Brugger <mbrugger@suse.com>
  4. */
  5. /dts-v1/;
  6. #include <dt-bindings/input/input.h>
  7. #include "rk3368.dtsi"
  8. / {
  9. model = "Rockchip Orion R68";
  10. compatible = "tronsmart,orion-r68-meta", "rockchip,rk3368";
  11. chosen {
  12. stdout-path = "serial2:115200n8";
  13. };
  14. memory {
  15. device_type = "memory";
  16. reg = <0x0 0x0 0x0 0x80000000>;
  17. };
  18. emmc_pwrseq: emmc-pwrseq {
  19. compatible = "mmc-pwrseq-emmc";
  20. pinctrl-0 = <&emmc_reset>;
  21. pinctrl-names = "default";
  22. reset-gpios = <&gpio2 RK_PA3 GPIO_ACTIVE_HIGH>;
  23. };
  24. ext_gmac: external-gmac-clock {
  25. compatible = "fixed-clock";
  26. #clock-cells = <0>;
  27. clock-frequency = <125000000>;
  28. clock-output-names = "ext_gmac";
  29. };
  30. keys: gpio-keys {
  31. compatible = "gpio-keys";
  32. pinctrl-names = "default";
  33. pinctrl-0 = <&pwr_key>;
  34. power {
  35. wakeup-source;
  36. gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
  37. label = "GPIO Power";
  38. linux,code = <KEY_POWER>;
  39. };
  40. };
  41. leds: gpio-leds {
  42. compatible = "gpio-leds";
  43. red {
  44. gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
  45. label = "orion:red:led";
  46. pinctrl-names = "default";
  47. pinctrl-0 = <&led_ctl>;
  48. default-state = "on";
  49. };
  50. blue {
  51. gpios = <&gpio0 RK_PB4 GPIO_ACTIVE_HIGH>;
  52. label = "orion:blue:led";
  53. pinctrl-names = "default";
  54. pinctrl-0 = <&stby_pwren>;
  55. default-state = "off";
  56. };
  57. };
  58. vcc_18: vcc18-regulator {
  59. compatible = "regulator-fixed";
  60. regulator-name = "vcc_18";
  61. regulator-min-microvolt = <1800000>;
  62. regulator-max-microvolt = <1800000>;
  63. regulator-always-on;
  64. regulator-boot-on;
  65. vin-supply = <&vcc_sys>;
  66. };
  67. /* supplies both host and otg */
  68. vcc_host: vcc-host-regulator {
  69. compatible = "regulator-fixed";
  70. gpio = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
  71. pinctrl-names = "default";
  72. pinctrl-0 = <&host_vbus_drv>;
  73. regulator-name = "vcc_host";
  74. regulator-always-on;
  75. regulator-boot-on;
  76. vin-supply = <&vcc_sys>;
  77. };
  78. vcc_io: vcc-io-regulator {
  79. compatible = "regulator-fixed";
  80. regulator-name = "vcc_io";
  81. regulator-min-microvolt = <3300000>;
  82. regulator-max-microvolt = <3300000>;
  83. regulator-always-on;
  84. regulator-boot-on;
  85. vin-supply = <&vcc_sys>;
  86. };
  87. vcc_lan: vcc-lan-regulator {
  88. compatible = "regulator-fixed";
  89. regulator-name = "vcc_lan";
  90. regulator-min-microvolt = <3300000>;
  91. regulator-max-microvolt = <3300000>;
  92. regulator-always-on;
  93. regulator-boot-on;
  94. vin-supply = <&vcc_io>;
  95. };
  96. vcc_sd: vcc-sd-regulator {
  97. compatible = "regulator-fixed";
  98. regulator-name = "vcc_sd";
  99. gpio = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>;
  100. regulator-min-microvolt = <1800000>;
  101. regulator-max-microvolt = <3300000>;
  102. vin-supply = <&vcc_io>;
  103. };
  104. vcc_sys: vcc-sys-regulator {
  105. compatible = "regulator-fixed";
  106. regulator-name = "vcc_sys";
  107. regulator-min-microvolt = <5000000>;
  108. regulator-max-microvolt = <5000000>;
  109. regulator-always-on;
  110. regulator-boot-on;
  111. };
  112. vccio_sd: vcc-io-sd-regulator {
  113. compatible = "regulator-fixed";
  114. regulator-name= "vccio_sd";
  115. regulator-min-microvolt = <1800000>;
  116. regulator-max-microvolt = <3300000>;
  117. regulator-always-on;
  118. regulator-boot-on;
  119. vin-supply = <&vcc_io>;
  120. };
  121. vccio_wl: vccio-wl-regulator {
  122. compatible = "regulator-fixed";
  123. regulator-name = "vccio_wl";
  124. regulator-min-microvolt = <3300000>;
  125. regulator-max-microvolt = <3300000>;
  126. regulator-always-on;
  127. regulator-boot-on;
  128. vin-supply = <&vcc_io>;
  129. };
  130. vdd_10: vdd-10-regulator {
  131. compatible = "regulator-fixed";
  132. regulator-name = "vdd_10";
  133. regulator-min-microvolt = <1000000>;
  134. regulator-max-microvolt = <1000000>;
  135. regulator-always-on;
  136. regulator-boot-on;
  137. vin-supply = <&vcc_sys>;
  138. };
  139. };
  140. &emmc {
  141. bus-width = <8>;
  142. cap-mmc-highspeed;
  143. disable-wp;
  144. mmc-pwrseq = <&emmc_pwrseq>;
  145. mmc-hs200-1_2v;
  146. mmc-hs200-1_8v;
  147. non-removable;
  148. pinctrl-names = "default";
  149. pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
  150. status = "okay";
  151. };
  152. &gmac {
  153. assigned-clocks = <&cru SCLK_MAC>;
  154. assigned-clock-parents = <&ext_gmac>;
  155. clock_in_out = "input";
  156. phy-supply = <&vcc_lan>;
  157. phy-mode = "rgmii";
  158. pinctrl-names = "default";
  159. pinctrl-0 = <&rgmii_pins>;
  160. snps,reset-gpio = <&gpio3 RK_PB4 GPIO_ACTIVE_HIGH>;
  161. snps,reset-active-low;
  162. snps,reset-delays-us = <0 10000 1000000>;
  163. tx_delay = <0x30>;
  164. rx_delay = <0x10>;
  165. status = "ok";
  166. };
  167. &i2c0 {
  168. status = "okay";
  169. vdd_cpu: syr827@40 {
  170. compatible = "silergy,syr827";
  171. reg = <0x40>;
  172. fcs,suspend-voltage-selector = <1>;
  173. regulator-name = "vdd_cpu";
  174. regulator-enable-ramp-delay = <300>;
  175. regulator-min-microvolt = <712500>;
  176. regulator-max-microvolt = <1500000>;
  177. regulator-ramp-delay = <8000>;
  178. regulator-always-on;
  179. regulator-boot-on;
  180. vin-supply = <&vcc_sys>;
  181. };
  182. hym8563: hym8563@51 {
  183. compatible = "haoyu,hym8563";
  184. reg = <0x51>;
  185. #clock-cells = <0>;
  186. clock-frequency = <32768>;
  187. clock-output-names = "xin32k";
  188. /* rtc_int is not connected */
  189. };
  190. };
  191. &pinctrl {
  192. pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma {
  193. bias-disable;
  194. drive-strength = <8>;
  195. };
  196. pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma {
  197. bias-pull-up;
  198. drive-strength = <8>;
  199. };
  200. emmc {
  201. emmc_bus8: emmc-bus8 {
  202. rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
  203. <1 19 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
  204. <1 20 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
  205. <1 21 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
  206. <1 22 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
  207. <1 23 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
  208. <1 24 RK_FUNC_2 &pcfg_pull_up_drv_8ma>,
  209. <1 25 RK_FUNC_2 &pcfg_pull_up_drv_8ma>;
  210. };
  211. emmc-clk {
  212. rockchip,pins = <2 4 RK_FUNC_2 &pcfg_pull_none_drv_8ma>;
  213. };
  214. emmc-cmd {
  215. rockchip,pins = <1 26 RK_FUNC_2 &pcfg_pull_up_drv_8ma>;
  216. };
  217. emmc_reset: emmc-reset {
  218. rockchip,pins = <2 3 RK_FUNC_GPIO &pcfg_pull_none>;
  219. };
  220. };
  221. keys {
  222. pwr_key: pwr-key {
  223. rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_down>;
  224. };
  225. };
  226. leds {
  227. stby_pwren: stby-pwren {
  228. rockchip,pins = <0 12 RK_FUNC_GPIO &pcfg_pull_none>;
  229. };
  230. led_ctl: led-ctl {
  231. rockchip,pins = <3 29 RK_FUNC_GPIO &pcfg_pull_none>;
  232. };
  233. };
  234. sdmmc {
  235. sdmmc_clk: sdmmc-clk {
  236. rockchip,pins = <2 9 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
  237. };
  238. sdmmc_cmd: sdmmc-cmd {
  239. rockchip,pins = <2 10 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
  240. };
  241. sdmmc_cd: sdmmc-cd {
  242. rockchip,pins = <2 11 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
  243. };
  244. sdmmc_bus1: sdmmc-bus1 {
  245. rockchip,pins = <2 5 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
  246. };
  247. sdmmc_bus4: sdmmc-bus4 {
  248. rockchip,pins = <2 5 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
  249. <2 6 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
  250. <2 7 RK_FUNC_1 &pcfg_pull_up_drv_8ma>,
  251. <2 8 RK_FUNC_1 &pcfg_pull_up_drv_8ma>;
  252. };
  253. };
  254. usb {
  255. host_vbus_drv: host-vbus-drv {
  256. rockchip,pins = <0 4 RK_FUNC_GPIO &pcfg_pull_none>;
  257. };
  258. };
  259. };
  260. &saradc {
  261. vref-supply = <&vcc_18>;
  262. status = "okay";
  263. };
  264. &sdmmc {
  265. bus-width = <4>;
  266. clock-frequency = <50000000>;
  267. max-frequency = <50000000>;
  268. cap-sd-highspeed;
  269. card-detect-delay = <200>;
  270. pinctrl-names = "default";
  271. pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_cd &sdmmc_bus4>;
  272. vmmc-supply = <&vcc_sd>;
  273. vqmmc-supply = <&vccio_sd>;
  274. status = "okay";
  275. };
  276. &uart2 {
  277. status = "okay";
  278. };
  279. &uart4 {
  280. pinctrl-names = "default";
  281. pinctrl-0 = <&uart4_xfer>;
  282. status = "okay";
  283. };
  284. &usb_host0_ehci {
  285. status = "okay";
  286. };
  287. &usb_otg {
  288. status = "okay";
  289. };
  290. &wdt {
  291. status = "okay";
  292. };