rk3368-lion.dtsi 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2018 Theobroma Systems Design und Consulting GmbH
  4. */
  5. /dts-v1/;
  6. #include "rk3368.dtsi"
  7. / {
  8. chosen {
  9. stdout-path = "serial0:115200n8";
  10. };
  11. ext_gmac: gmac-clk {
  12. compatible = "fixed-clock";
  13. clock-frequency = <125000000>;
  14. clock-output-names = "ext_gmac";
  15. #clock-cells = <0>;
  16. };
  17. i2cmux1 {
  18. compatible = "i2c-mux-gpio";
  19. #address-cells = <1>;
  20. #size-cells = <0>;
  21. i2c-parent = <&i2c1>;
  22. mux-gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_HIGH>;
  23. /* Q7_GPO_I2C */
  24. i2c@0 {
  25. reg = <0>;
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. };
  29. /* Q7_SMB */
  30. i2c@1 {
  31. reg = <1>;
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. };
  35. };
  36. i2cmux2 {
  37. compatible = "i2c-mux-gpio";
  38. #address-cells = <1>;
  39. #size-cells = <0>;
  40. i2c-parent = <&i2c2>;
  41. mux-gpios = <&gpio1 RK_PB4 GPIO_ACTIVE_HIGH>;
  42. /* Q7_LVDS_BLC_I2C */
  43. i2c@0 {
  44. reg = <0>;
  45. #address-cells = <1>;
  46. #size-cells = <0>;
  47. fan: fan@18 {
  48. compatible = "ti,amc6821";
  49. reg = <0x18>;
  50. cooling-min-state = <0>;
  51. cooling-max-state = <9>;
  52. #cooling-cells = <2>;
  53. };
  54. rtc_twi: rtc@6f {
  55. compatible = "isil,isl1208";
  56. reg = <0x6f>;
  57. };
  58. };
  59. /* Q7_GP2_I2C */
  60. i2c@1 {
  61. reg = <1>;
  62. #address-cells = <1>;
  63. #size-cells = <0>;
  64. };
  65. };
  66. leds {
  67. compatible = "gpio-leds";
  68. pinctrl-names = "default";
  69. pinctrl-0 = <&led_pins_module>;
  70. module_led1 {
  71. label = "module_led1";
  72. gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_HIGH>;
  73. linux,default-trigger = "heartbeat";
  74. panic-indicator;
  75. };
  76. module_led2 {
  77. label = "module_led2";
  78. gpios = <&gpio3 RK_PA3 GPIO_ACTIVE_HIGH>;
  79. default-state = "off";
  80. };
  81. };
  82. vcc_sys: vcc-sys-regulator {
  83. compatible = "regulator-fixed";
  84. regulator-name = "vcc_sys";
  85. regulator-min-microvolt = <5000000>;
  86. regulator-max-microvolt = <5000000>;
  87. regulator-always-on;
  88. regulator-boot-on;
  89. };
  90. };
  91. &cpu_l0 {
  92. cpu-supply = <&vdd_cpu>;
  93. };
  94. &cpu_l1 {
  95. cpu-supply = <&vdd_cpu>;
  96. };
  97. &cpu_l2 {
  98. cpu-supply = <&vdd_cpu>;
  99. };
  100. &cpu_l3 {
  101. cpu-supply = <&vdd_cpu>;
  102. };
  103. &cpu_b0 {
  104. cpu-supply = <&vdd_cpu>;
  105. };
  106. &cpu_b1 {
  107. cpu-supply = <&vdd_cpu>;
  108. };
  109. &cpu_b2 {
  110. cpu-supply = <&vdd_cpu>;
  111. };
  112. &cpu_b3 {
  113. cpu-supply = <&vdd_cpu>;
  114. };
  115. &emmc {
  116. bus-width = <8>;
  117. clock-frequency = <150000000>;
  118. disable-wp;
  119. mmc-hs200-1_8v;
  120. non-removable;
  121. vmmc-supply = <&vcc33_io>;
  122. vqmmc-supply = <&vcc18_io>;
  123. pinctrl-names = "default";
  124. pinctrl-0 = <&emmc_clk>, <&emmc_cmd>, <&emmc_bus8>;
  125. status = "okay";
  126. };
  127. &gmac {
  128. assigned-clocks = <&cru SCLK_MAC>;
  129. assigned-clock-parents = <&ext_gmac>;
  130. clock_in_out = "input";
  131. phy-supply = <&vcc33_io>;
  132. phy-mode = "rgmii";
  133. pinctrl-names = "default";
  134. pinctrl-0 = <&rgmii_pins>;
  135. snps,reset-active-low;
  136. snps,reset-delays-us = <0 10000 50000>;
  137. snps,reset-gpio = <&gpio3 RK_PB3 GPIO_ACTIVE_HIGH>;
  138. tx_delay = <0x10>;
  139. rx_delay = <0x10>;
  140. status = "okay";
  141. };
  142. &i2c0 {
  143. status = "okay";
  144. rk808: pmic@1b {
  145. compatible = "rockchip,rk808";
  146. reg = <0x1b>;
  147. interrupt-parent = <&gpio0>;
  148. interrupts = <RK_PA5 IRQ_TYPE_LEVEL_LOW>;
  149. clock-output-names = "xin32k", "rk808-clkout2";
  150. #clock-cells = <1>;
  151. pinctrl-names = "default";
  152. pinctrl-0 = <&pmic_int_l>, <&pmic_sleep>;
  153. rockchip,system-power-controller;
  154. vcc1-supply = <&vcc_sys>;
  155. vcc2-supply = <&vcc_sys>;
  156. vcc3-supply = <&vcc_sys>;
  157. vcc4-supply = <&vcc_sys>;
  158. vcc6-supply = <&vcc_sys>;
  159. vcc7-supply = <&vcc_sys>;
  160. vcc8-supply = <&vcc_sys>;
  161. vcc9-supply = <&vcc_sys>;
  162. vcc10-supply = <&vcc_sys>;
  163. vcc11-supply = <&vcc_sys>;
  164. vcc12-supply = <&vcc_sys>;
  165. regulators {
  166. vdd_cpu: DCDC_REG1 {
  167. regulator-name = "vdd_cpu";
  168. regulator-min-microvolt = <700000>;
  169. regulator-max-microvolt = <1500000>;
  170. regulator-always-on;
  171. regulator-boot-on;
  172. };
  173. vdd_log: DCDC_REG2 {
  174. regulator-name = "vdd_log";
  175. regulator-min-microvolt = <700000>;
  176. regulator-max-microvolt = <1500000>;
  177. regulator-always-on;
  178. regulator-boot-on;
  179. };
  180. vcc_ddr: DCDC_REG3 {
  181. regulator-name = "vcc_ddr";
  182. regulator-always-on;
  183. regulator-boot-on;
  184. };
  185. vcc33_io: DCDC_REG4 {
  186. regulator-name = "vcc33_io";
  187. regulator-min-microvolt = <3300000>;
  188. regulator-max-microvolt = <3300000>;
  189. regulator-always-on;
  190. regulator-boot-on;
  191. };
  192. vcc33_video: LDO_REG2 {
  193. regulator-name = "vcc33_video";
  194. regulator-min-microvolt = <3300000>;
  195. regulator-max-microvolt = <3300000>;
  196. regulator-always-on;
  197. regulator-boot-on;
  198. };
  199. vdd10_pll: LDO_REG3 {
  200. regulator-name = "vdd10_pll";
  201. regulator-min-microvolt = <1000000>;
  202. regulator-max-microvolt = <1000000>;
  203. regulator-always-on;
  204. regulator-boot-on;
  205. };
  206. vcc18_io: LDO_REG4 {
  207. regulator-name = "vcc18_io";
  208. regulator-min-microvolt = <1800000>;
  209. regulator-max-microvolt = <1800000>;
  210. regulator-boot-on;
  211. };
  212. vdd10_video: LDO_REG6 {
  213. regulator-name = "vdd10_video";
  214. regulator-min-microvolt = <1000000>;
  215. regulator-max-microvolt = <1000000>;
  216. regulator-always-on;
  217. regulator-boot-on;
  218. };
  219. vcc18_video: LDO_REG8 {
  220. regulator-name = "vcc18_video";
  221. regulator-min-microvolt = <1800000>;
  222. regulator-max-microvolt = <1800000>;
  223. regulator-always-on;
  224. regulator-boot-on;
  225. };
  226. };
  227. };
  228. };
  229. &i2c1 {
  230. status = "okay";
  231. };
  232. &i2c2 {
  233. status = "okay";
  234. };
  235. &pinctrl {
  236. leds {
  237. led_pins_module: led-module-gpio {
  238. rockchip,pins =
  239. <RK_GPIO2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
  240. <RK_GPIO3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>;
  241. };
  242. };
  243. pmic {
  244. pmic_int_l: pmic-int-l {
  245. rockchip,pins = <RK_GPIO0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_up>;
  246. };
  247. pmic_sleep: pmic-sleep {
  248. rockchip,pins = <RK_GPIO0 RK_PA0 RK_FUNC_2 &pcfg_pull_none>;
  249. };
  250. };
  251. };
  252. &spi1 {
  253. status = "okay";
  254. norflash: flash@0 {
  255. compatible = "jedec,spi-nor";
  256. reg = <0>;
  257. spi-max-frequency = <50000000>;
  258. };
  259. };
  260. &uart1 {
  261. status = "okay";
  262. };
  263. &uart3 {
  264. status = "okay";
  265. };
  266. &usb_host0_ehci {
  267. status = "okay";
  268. };
  269. &wdt {
  270. status = "okay";
  271. };