rk3308-rock-pi-s.dts 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2019 Akash Gajjar <[email protected]>
  4. * Copyright (c) 2019 Jagan Teki <[email protected]>
  5. */
  6. /dts-v1/;
  7. #include "rk3308.dtsi"
  8. / {
  9. model = "Radxa ROCK Pi S";
  10. compatible = "radxa,rockpis", "rockchip,rk3308";
  11. aliases {
  12. ethernet0 = &gmac;
  13. mmc0 = &emmc;
  14. mmc1 = &sdmmc;
  15. };
  16. chosen {
  17. stdout-path = "serial0:1500000n8";
  18. };
  19. leds {
  20. compatible = "gpio-leds";
  21. pinctrl-names = "default";
  22. pinctrl-0 = <&green_led_gio>, <&heartbeat_led_gpio>;
  23. green-led {
  24. default-state = "on";
  25. gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
  26. label = "rockpis:green:power";
  27. linux,default-trigger = "default-on";
  28. };
  29. blue-led {
  30. default-state = "on";
  31. gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
  32. label = "rockpis:blue:user";
  33. linux,default-trigger = "heartbeat";
  34. };
  35. };
  36. sdio_pwrseq: sdio-pwrseq {
  37. compatible = "mmc-pwrseq-simple";
  38. pinctrl-0 = <&wifi_enable_h>;
  39. pinctrl-names = "default";
  40. reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
  41. };
  42. vcc_1v8: vcc-1v8 {
  43. compatible = "regulator-fixed";
  44. regulator-name = "vcc_1v8";
  45. regulator-always-on;
  46. regulator-boot-on;
  47. regulator-min-microvolt = <1800000>;
  48. regulator-max-microvolt = <1800000>;
  49. vin-supply = <&vcc_io>;
  50. };
  51. vcc_io: vcc-io {
  52. compatible = "regulator-fixed";
  53. regulator-name = "vcc_io";
  54. regulator-always-on;
  55. regulator-boot-on;
  56. regulator-min-microvolt = <3300000>;
  57. regulator-max-microvolt = <3300000>;
  58. vin-supply = <&vcc5v0_sys>;
  59. };
  60. vcc_ddr: vcc-ddr {
  61. compatible = "regulator-fixed";
  62. regulator-name = "vcc_ddr";
  63. regulator-always-on;
  64. regulator-boot-on;
  65. regulator-min-microvolt = <1500000>;
  66. regulator-max-microvolt = <1500000>;
  67. vin-supply = <&vcc5v0_sys>;
  68. };
  69. vcc5v0_otg: vcc5v0-otg {
  70. compatible = "regulator-fixed";
  71. enable-active-high;
  72. gpio = <&gpio0 RK_PC5 GPIO_ACTIVE_HIGH>;
  73. pinctrl-names = "default";
  74. pinctrl-0 = <&otg_vbus_drv>;
  75. regulator-name = "vcc5v0_otg";
  76. regulator-always-on;
  77. vin-supply = <&vcc5v0_sys>;
  78. };
  79. vcc5v0_sys: vcc5v0-sys {
  80. compatible = "regulator-fixed";
  81. regulator-name = "vcc5v0_sys";
  82. regulator-always-on;
  83. regulator-boot-on;
  84. regulator-min-microvolt = <5000000>;
  85. regulator-max-microvolt = <5000000>;
  86. };
  87. vdd_core: vdd-core {
  88. compatible = "pwm-regulator";
  89. pwms = <&pwm0 0 5000 1>;
  90. pwm-supply = <&vcc5v0_sys>;
  91. regulator-name = "vdd_core";
  92. regulator-min-microvolt = <827000>;
  93. regulator-max-microvolt = <1340000>;
  94. regulator-init-microvolt = <1015000>;
  95. regulator-settling-time-up-us = <250>;
  96. regulator-always-on;
  97. regulator-boot-on;
  98. };
  99. vdd_log: vdd-log {
  100. compatible = "regulator-fixed";
  101. regulator-name = "vdd_log";
  102. regulator-always-on;
  103. regulator-boot-on;
  104. regulator-min-microvolt = <1050000>;
  105. regulator-max-microvolt = <1050000>;
  106. vin-supply = <&vcc5v0_sys>;
  107. };
  108. };
  109. &cpu0 {
  110. cpu-supply = <&vdd_core>;
  111. };
  112. &emmc {
  113. bus-width = <4>;
  114. cap-mmc-highspeed;
  115. mmc-hs200-1_8v;
  116. non-removable;
  117. vmmc-supply = <&vcc_io>;
  118. status = "okay";
  119. };
  120. &gmac {
  121. clock_in_out = "output";
  122. phy-supply = <&vcc_io>;
  123. snps,reset-gpio = <&gpio0 RK_PA7 GPIO_ACTIVE_LOW>;
  124. snps,reset-active-low;
  125. snps,reset-delays-us = <0 50000 50000>;
  126. status = "okay";
  127. };
  128. &i2c1 {
  129. status = "okay";
  130. };
  131. &pinctrl {
  132. pinctrl-names = "default";
  133. pinctrl-0 = <&rtc_32k>;
  134. leds {
  135. green_led_gio: green-led-gpio {
  136. rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
  137. };
  138. heartbeat_led_gpio: heartbeat-led-gpio {
  139. rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>;
  140. };
  141. };
  142. usb {
  143. otg_vbus_drv: otg-vbus-drv {
  144. rockchip,pins = <0 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
  145. };
  146. };
  147. sdio-pwrseq {
  148. wifi_enable_h: wifi-enable-h {
  149. rockchip,pins = <0 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>;
  150. };
  151. wifi_host_wake: wifi-host-wake {
  152. rockchip,pins = <0 RK_PA0 RK_FUNC_GPIO &pcfg_pull_down>;
  153. };
  154. };
  155. };
  156. &pwm0 {
  157. status = "okay";
  158. pinctrl-0 = <&pwm0_pin_pull_down>;
  159. };
  160. &saradc {
  161. vref-supply = <&vcc_1v8>;
  162. status = "okay";
  163. };
  164. &sdio {
  165. #address-cells = <1>;
  166. #size-cells = <0>;
  167. cap-sd-highspeed;
  168. cap-sdio-irq;
  169. keep-power-in-suspend;
  170. max-frequency = <1000000>;
  171. mmc-pwrseq = <&sdio_pwrseq>;
  172. non-removable;
  173. sd-uhs-sdr104;
  174. status = "okay";
  175. };
  176. &sdmmc {
  177. cap-sd-highspeed;
  178. status = "okay";
  179. };
  180. &u2phy {
  181. status = "okay";
  182. u2phy_host: host-port {
  183. phy-supply = <&vcc5v0_otg>;
  184. status = "okay";
  185. };
  186. u2phy_otg: otg-port {
  187. phy-supply = <&vcc5v0_otg>;
  188. status = "okay";
  189. };
  190. };
  191. &uart0 {
  192. status = "okay";
  193. };
  194. &uart4 {
  195. status = "okay";
  196. bluetooth {
  197. compatible = "realtek,rtl8723bs-bt";
  198. device-wake-gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
  199. host-wake-gpios = <&gpio4 RK_PB4 GPIO_ACTIVE_HIGH>;
  200. };
  201. };
  202. &usb_host_ehci {
  203. status = "okay";
  204. };
  205. &usb_host_ohci {
  206. status = "okay";
  207. };
  208. &usb20_otg {
  209. dr_mode = "peripheral";
  210. status = "okay";
  211. };
  212. &wdt {
  213. status = "okay";
  214. };