rv1108-elgin-r1.dts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (C) 2018 O.S. Systems Software LTDA.
  4. */
  5. /dts-v1/;
  6. #include "rv1108.dtsi"
  7. / {
  8. model = "Elgin RV1108 R1 board";
  9. compatible = "elgin,rv1108-r1", "rockchip,rv1108";
  10. aliases {
  11. mmc0 = &emmc;
  12. };
  13. memory@60000000 {
  14. device_type = "memory";
  15. reg = <0x60000000 0x08000000>;
  16. };
  17. chosen {
  18. stdout-path = "serial2:1500000n8";
  19. };
  20. vcc_sys: vsys-regulator {
  21. compatible = "regulator-fixed";
  22. regulator-name = "vsys";
  23. regulator-min-microvolt = <5000000>;
  24. regulator-max-microvolt = <5000000>;
  25. regulator-boot-on;
  26. };
  27. };
  28. &cpu0 {
  29. cpu-supply = <&vdd_core>;
  30. };
  31. &emmc {
  32. bus-width = <8>;
  33. cap-mmc-highspeed;
  34. no-sd;
  35. no-sdio;
  36. non-removable;
  37. mmc-ddr-1_8v;
  38. mmc-hs200-1_8v;
  39. pinctrl-names = "default";
  40. pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
  41. status = "okay";
  42. };
  43. &gmac {
  44. clock_in_out = "output";
  45. pinctrl-names = "default";
  46. pinctrl-0 = <&rmii_pins>;
  47. snps,reset-gpio = <&gpio1 RK_PC1 GPIO_ACTIVE_LOW>;
  48. snps,reset-active-low;
  49. status = "okay";
  50. };
  51. &i2c0 {
  52. clock-frequency = <400000>;
  53. i2c-scl-rising-time-ns = <275>;
  54. i2c-scl-falling-time-ns = <16>;
  55. status = "okay";
  56. rk805: pmic@18 {
  57. compatible = "rockchip,rk805";
  58. reg = <0x18>;
  59. interrupt-parent = <&gpio0>;
  60. interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
  61. rockchip,system-power-controller;
  62. #clock-cells = <0>;
  63. vcc1-supply = <&vcc_sys>;
  64. vcc2-supply = <&vcc_sys>;
  65. vcc3-supply = <&vcc_sys>;
  66. vcc4-supply = <&vcc_sys>;
  67. vcc5-supply = <&vdd_buck2>;
  68. vcc6-supply = <&vdd_buck2>;
  69. regulators {
  70. vdd_core: DCDC_REG1 {
  71. regulator-name = "vdd_core";
  72. regulator-min-microvolt = <700000>;
  73. regulator-max-microvolt = <1500000>;
  74. regulator-always-on;
  75. regulator-boot-on;
  76. regulator-state-mem {
  77. regulator-on-in-suspend;
  78. regulator-suspend-microvolt = <900000>;
  79. };
  80. };
  81. vdd_buck2: DCDC_REG2 {
  82. regulator-name = "vdd_buck2";
  83. regulator-min-microvolt = <2200000>;
  84. regulator-max-microvolt = <2200000>;
  85. regulator-always-on;
  86. regulator-boot-on;
  87. regulator-state-mem {
  88. regulator-off-in-suspend;
  89. };
  90. };
  91. vcc_ddr: DCDC_REG3 {
  92. regulator-name = "vcc_ddr";
  93. regulator-always-on;
  94. regulator-boot-on;
  95. regulator-state-mem {
  96. regulator-on-in-suspend;
  97. };
  98. };
  99. vcc_io: DCDC_REG4 {
  100. regulator-name = "vcc_io";
  101. regulator-min-microvolt = <3300000>;
  102. regulator-max-microvolt = <3300000>;
  103. regulator-always-on;
  104. regulator-boot-on;
  105. regulator-state-mem {
  106. regulator-on-in-suspend;
  107. regulator-suspend-microvolt = <3300000>;
  108. };
  109. };
  110. vdd_10: LDO_REG1 {
  111. regulator-name = "vdd_10";
  112. regulator-min-microvolt = <1000000>;
  113. regulator-max-microvolt = <1000000>;
  114. regulator-always-on;
  115. regulator-boot-on;
  116. regulator-state-mem {
  117. regulator-off-in-suspend;
  118. };
  119. };
  120. vcc_18: LDO_REG2 {
  121. regulator-name = "vcc_18";
  122. regulator-min-microvolt = <1800000>;
  123. regulator-max-microvolt = <1800000>;
  124. regulator-always-on;
  125. regulator-boot-on;
  126. regulator-state-mem {
  127. regulator-off-in-suspend;
  128. };
  129. };
  130. vdd10_pmu: LDO_REG3 {
  131. regulator-name = "vdd10_pmu";
  132. regulator-min-microvolt = <1000000>;
  133. regulator-max-microvolt = <1000000>;
  134. regulator-always-on;
  135. regulator-boot-on;
  136. regulator-state-mem {
  137. regulator-on-in-suspend;
  138. regulator-suspend-microvolt = <1000000>;
  139. };
  140. };
  141. };
  142. };
  143. };
  144. &spi {
  145. pinctrl-names = "default";
  146. pinctrl-0 = <&spim1_clk &spim1_cs0 &spim1_tx &spim1_rx>;
  147. status = "okay";
  148. dh2228fv: dac@0 {
  149. compatible = "rohm,dh2228fv";
  150. reg = <0>;
  151. spi-max-frequency = <24000000>;
  152. spi-cpha;
  153. spi-cpol;
  154. };
  155. };
  156. &u2phy {
  157. status = "okay";
  158. u2phy_host: host-port {
  159. status = "okay";
  160. };
  161. u2phy_otg: otg-port {
  162. status = "okay";
  163. };
  164. };
  165. &uart0 {
  166. pinctrl-names = "default";
  167. pinctrl-0 = <&uart0_xfer>;
  168. status = "okay";
  169. };
  170. &uart2 {
  171. status = "okay";
  172. };
  173. &usb_host_ehci {
  174. status = "okay";
  175. };
  176. &usb_host_ohci {
  177. status = "okay";
  178. };
  179. &usb_otg {
  180. status = "okay";
  181. };