rk3308-roc-cc.dts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
  4. */
  5. /dts-v1/;
  6. #include "rk3308.dtsi"
  7. / {
  8. model = "Firefly ROC-RK3308-CC board";
  9. compatible = "firefly,roc-rk3308-cc", "rockchip,rk3308";
  10. aliases {
  11. mmc0 = &sdmmc;
  12. mmc1 = &emmc;
  13. };
  14. chosen {
  15. stdout-path = "serial2:1500000n8";
  16. };
  17. ir-receiver {
  18. compatible = "gpio-ir-receiver";
  19. gpios = <&gpio0 RK_PC0 GPIO_ACTIVE_HIGH>;
  20. pinctrl-names = "default";
  21. pinctrl-0 = <&ir_recv_pin>;
  22. };
  23. ir_tx {
  24. compatible = "pwm-ir-tx";
  25. pwms = <&pwm5 0 25000 0>;
  26. };
  27. leds {
  28. compatible = "gpio-leds";
  29. power_led: led-0 {
  30. label = "firefly:red:power";
  31. linux,default-trigger = "ir-power-click";
  32. default-state = "on";
  33. gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
  34. };
  35. user_led: led-1 {
  36. label = "firefly:blue:user";
  37. linux,default-trigger = "ir-user-click";
  38. default-state = "off";
  39. gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_HIGH>;
  40. };
  41. };
  42. typec_vcc5v: typec-vcc5v {
  43. compatible = "regulator-fixed";
  44. regulator-name = "typec_vcc5v";
  45. regulator-min-microvolt = <5000000>;
  46. regulator-max-microvolt = <5000000>;
  47. regulator-always-on;
  48. regulator-boot-on;
  49. };
  50. vcc5v0_sys: vcc5v0-sys {
  51. compatible = "regulator-fixed";
  52. regulator-name = "vcc5v0_sys";
  53. regulator-min-microvolt = <5000000>;
  54. regulator-max-microvolt = <5000000>;
  55. regulator-always-on;
  56. regulator-boot-on;
  57. vin-supply = <&typec_vcc5v>;
  58. };
  59. vcc_io: vcc-io {
  60. compatible = "regulator-fixed";
  61. regulator-name = "vcc_io";
  62. regulator-min-microvolt = <3300000>;
  63. regulator-max-microvolt = <3300000>;
  64. regulator-always-on;
  65. regulator-boot-on;
  66. vin-supply = <&vcc5v0_sys>;
  67. };
  68. vcc_sdmmc: vcc-sdmmc {
  69. compatible = "regulator-gpio";
  70. regulator-name = "vcc_sdmmc";
  71. regulator-min-microvolt = <1800000>;
  72. regulator-max-microvolt = <3300000>;
  73. gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_HIGH>;
  74. states = <1800000 0x0>,
  75. <3300000 0x1>;
  76. vin-supply = <&vcc5v0_sys>;
  77. };
  78. vcc_sd: vcc-sd {
  79. compatible = "regulator-fixed";
  80. gpio = <&gpio4 RK_PD6 GPIO_ACTIVE_LOW>;
  81. regulator-name = "vcc_sd";
  82. regulator-min-microvolt = <3300000>;
  83. regulator-max-microvolt = <3300000>;
  84. regulator-always-on;
  85. regulator-boot-on;
  86. vin-supply = <&vcc_io>;
  87. };
  88. vdd_core: vdd-core {
  89. compatible = "pwm-regulator";
  90. pwms = <&pwm0 0 5000 1>;
  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. pwm-supply = <&vcc5v0_sys>;
  99. };
  100. vdd_log: vdd-log {
  101. compatible = "regulator-fixed";
  102. regulator-name = "vdd_log";
  103. regulator-min-microvolt = <1050000>;
  104. regulator-max-microvolt = <1050000>;
  105. regulator-always-on;
  106. regulator-boot-on;
  107. vin-supply = <&vcc5v0_sys>;
  108. };
  109. };
  110. &cpu0 {
  111. cpu-supply = <&vdd_core>;
  112. };
  113. &emmc {
  114. cap-mmc-highspeed;
  115. mmc-hs200-1_8v;
  116. non-removable;
  117. status = "okay";
  118. };
  119. &i2c1 {
  120. clock-frequency = <400000>;
  121. status = "okay";
  122. rtc: rtc@51 {
  123. compatible = "nxp,pcf8563";
  124. reg = <0x51>;
  125. #clock-cells = <0>;
  126. };
  127. };
  128. &pwm5 {
  129. status = "okay";
  130. pinctrl-names = "active";
  131. pinctrl-0 = <&pwm5_pin_pull_down>;
  132. };
  133. &pinctrl {
  134. pinctrl-names = "default";
  135. pinctrl-0 = <&rtc_32k>;
  136. ir-receiver {
  137. ir_recv_pin: ir-recv-pin {
  138. rockchip,pins = <0 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
  139. };
  140. };
  141. buttons {
  142. pwr_key: pwr-key {
  143. rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>;
  144. };
  145. };
  146. };
  147. &pwm0 {
  148. status = "okay";
  149. pinctrl-0 = <&pwm0_pin_pull_down>;
  150. };
  151. &sdmmc {
  152. cap-mmc-highspeed;
  153. cap-sd-highspeed;
  154. card-detect-delay = <300>;
  155. sd-uhs-sdr25;
  156. sd-uhs-sdr50;
  157. sd-uhs-sdr104;
  158. vmmc-supply = <&vcc_sd>;
  159. vqmmc-supply = <&vcc_sdmmc>;
  160. status = "okay";
  161. };
  162. &uart2 {
  163. status = "okay";
  164. };