rk3368-lion.dts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. // SPDX-License-Identifier: GPL-2.0+ OR X11
  2. /*
  3. * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
  4. */
  5. /dts-v1/;
  6. #include "rk3368.dtsi"
  7. #include "rk3368-lion-u-boot.dtsi"
  8. #include <dt-bindings/input/input.h>
  9. / {
  10. model = "Theobroma Systems RK3368-uQ7 SoM";
  11. compatible = "tsd,rk3368-uq7", "tsd,lion", "rockchip,rk3368";
  12. aliases {
  13. mmc0 = &emmc;
  14. mmc1 = &sdmmc;
  15. };
  16. memory@0 {
  17. device_type = "memory";
  18. reg = <0x0 0x0 0x0 0x80000000>;
  19. };
  20. ext_gmac: gmac-clk {
  21. compatible = "fixed-clock";
  22. clock-frequency = <125000000>;
  23. clock-output-names = "ext_gmac";
  24. #clock-cells = <0>;
  25. };
  26. vcc_sys: vcc-sys-regulator {
  27. compatible = "regulator-fixed";
  28. regulator-name = "vcc_sys";
  29. regulator-min-microvolt = <5000000>;
  30. regulator-max-microvolt = <5000000>;
  31. regulator-always-on;
  32. regulator-boot-on;
  33. };
  34. };
  35. &uart0 {
  36. status = "okay";
  37. };
  38. &emmc {
  39. status = "okay";
  40. bus-width = <8>;
  41. cap-mmc-highspeed;
  42. clock-frequency = <150000000>;
  43. disable-wp;
  44. keep-power-in-suspend;
  45. non-removable;
  46. num-slots = <1>;
  47. vmmc-supply = <&vcc33_io>;
  48. vqmmc-supply = <&vcc18_io>;
  49. pinctrl-names = "default";
  50. pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>;
  51. };
  52. &sdmmc {
  53. status = "okay";
  54. };
  55. &gmac {
  56. status = "okay";
  57. phy-supply = <&vcc33_io>;
  58. phy-mode = "rgmii";
  59. clock_in_out = "input";
  60. snps,reset-gpio = <&gpio3 RK_PB3 GPIO_ACTIVE_LOW>;
  61. snps,reset-active-low;
  62. snps,reset-delays-us = <2 10000 50000>;
  63. assigned-clocks = <&cru SCLK_MAC>;
  64. assigned-clock-parents = <&ext_gmac>;
  65. pinctrl-names = "default";
  66. pinctrl-0 = <&rgmii_pins>;
  67. tx_delay = <0x10>;
  68. rx_delay = <0x10>;
  69. };
  70. &i2c0 {
  71. status = "okay";
  72. rk808: pmic@1b {
  73. compatible = "rockchip,rk808";
  74. reg = <0x1b>;
  75. interrupt-parent = <&gpio0>;
  76. interrupts = <5 IRQ_TYPE_LEVEL_LOW>;
  77. rockchip,system-power-controller;
  78. vcc1-supply = <&vcc_sys>;
  79. vcc2-supply = <&vcc_sys>;
  80. vcc3-supply = <&vcc_sys>;
  81. vcc4-supply = <&vcc_sys>;
  82. vcc6-supply = <&vcc_sys>;
  83. vcc7-supply = <&vcc_sys>;
  84. vcc8-supply = <&vcc_sys>;
  85. vcc9-supply = <&vcc_sys>;
  86. vcc10-supply = <&vcc_sys>;
  87. vcc11-supply = <&vcc_sys>;
  88. vcc12-supply = <&vcc_sys>;
  89. clock-output-names = "xin32k", "rk808-clkout2";
  90. #clock-cells = <1>;
  91. regulators {
  92. vdd_cpu: DCDC_REG1 {
  93. regulator-always-on;
  94. regulator-boot-on;
  95. regulator-min-microvolt = <700000>;
  96. regulator-max-microvolt = <1500000>;
  97. regulator-name = "vdd_cpu";
  98. };
  99. vdd_log: DCDC_REG2 {
  100. regulator-always-on;
  101. regulator-boot-on;
  102. regulator-min-microvolt = <700000>;
  103. regulator-max-microvolt = <1500000>;
  104. regulator-name = "vdd_log";
  105. };
  106. vcc_ddr: DCDC_REG3 {
  107. regulator-always-on;
  108. regulator-boot-on;
  109. regulator-name = "vcc_ddr";
  110. };
  111. vcc33_io: DCDC_REG4 {
  112. regulator-always-on;
  113. regulator-boot-on;
  114. regulator-min-microvolt = <3300000>;
  115. regulator-max-microvolt = <3300000>;
  116. regulator-name = "vcc33_io";
  117. };
  118. vcc33_video: LDO_REG2 {
  119. regulator-always-on;
  120. regulator-boot-on;
  121. regulator-min-microvolt = <3300000>;
  122. regulator-max-microvolt = <3300000>;
  123. regulator-name = "vcc33_video";
  124. };
  125. vdd10_pll: LDO_REG3 {
  126. regulator-always-on;
  127. regulator-boot-on;
  128. regulator-min-microvolt = <1000000>;
  129. regulator-max-microvolt = <1000000>;
  130. regulator-name = "vdd10_pll";
  131. };
  132. vcc18_io: LDO_REG4 {
  133. regulator-boot-on;
  134. regulator-min-microvolt = <1800000>;
  135. regulator-max-microvolt = <1800000>;
  136. regulator-name = "vcc18_io";
  137. };
  138. vdd10_video: LDO_REG6 {
  139. regulator-always-on;
  140. regulator-boot-on;
  141. regulator-min-microvolt = <1000000>;
  142. regulator-max-microvolt = <1000000>;
  143. regulator-name = "vdd10_video";
  144. };
  145. vcc18_video: LDO_REG8 {
  146. regulator-always-on;
  147. regulator-boot-on;
  148. regulator-min-microvolt = <1800000>;
  149. regulator-max-microvolt = <1800000>;
  150. regulator-name = "vcc18_video";
  151. };
  152. };
  153. };
  154. };
  155. &uart0 {
  156. status = "okay";
  157. };
  158. &spi1 {
  159. status = "okay";
  160. #address-cells = <1>;
  161. #size-cells = <0>;
  162. spiflash: w25q32dw@0 {
  163. compatible = "spi-flash";
  164. reg = <0>;
  165. spi-max-frequency = <49500000>;
  166. spi-cpol;
  167. spi-cpha;
  168. };
  169. };