rk3066a-mk808.dts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2016 Paweł Jarosz <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include <dt-bindings/input/input.h>
  7. #include "rk3066a.dtsi"
  8. / {
  9. model = "Rikomagic MK808";
  10. compatible = "rikomagic,mk808", "rockchip,rk3066a";
  11. aliases {
  12. mmc0 = &mmc0;
  13. mmc1 = &mmc1;
  14. };
  15. chosen {
  16. stdout-path = "serial2:115200n8";
  17. };
  18. memory@60000000 {
  19. reg = <0x60000000 0x40000000>;
  20. device_type = "memory";
  21. };
  22. adc-keys {
  23. compatible = "adc-keys";
  24. io-channels = <&saradc 1>;
  25. io-channel-names = "buttons";
  26. keyup-threshold-microvolt = <2500000>;
  27. poll-interval = <100>;
  28. button-recovery {
  29. label = "recovery";
  30. linux,code = <KEY_VENDOR>;
  31. press-threshold-microvolt = <0>;
  32. };
  33. };
  34. gpio-leds {
  35. compatible = "gpio-leds";
  36. blue_led: led-0 {
  37. label = "mk808:blue:power";
  38. gpios = <&gpio0 RK_PA3 GPIO_ACTIVE_HIGH>;
  39. default-state = "off";
  40. linux,default-trigger = "default-on";
  41. };
  42. };
  43. hdmi_con {
  44. compatible = "hdmi-connector";
  45. type = "c";
  46. port {
  47. hdmi_con_in: endpoint {
  48. remote-endpoint = <&hdmi_out_con>;
  49. };
  50. };
  51. };
  52. vcc_2v5: vcc-2v5 {
  53. compatible = "regulator-fixed";
  54. regulator-name = "vcc_2v5";
  55. regulator-min-microvolt = <2500000>;
  56. regulator-max-microvolt = <2500000>;
  57. };
  58. vcc_io: vcc-io {
  59. compatible = "regulator-fixed";
  60. regulator-name = "vcc_io";
  61. regulator-min-microvolt = <3300000>;
  62. regulator-max-microvolt = <3300000>;
  63. };
  64. vcc_host: usb-host-regulator {
  65. compatible = "regulator-fixed";
  66. enable-active-high;
  67. gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
  68. pinctrl-0 = <&host_drv>;
  69. pinctrl-names = "default";
  70. regulator-always-on;
  71. regulator-name = "host-pwr";
  72. regulator-min-microvolt = <5000000>;
  73. regulator-max-microvolt = <5000000>;
  74. startup-delay-us = <100000>;
  75. vin-supply = <&vcc_io>;
  76. };
  77. vcc_otg: usb-otg-regulator {
  78. compatible = "regulator-fixed";
  79. enable-active-high;
  80. gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
  81. pinctrl-0 = <&otg_drv>;
  82. pinctrl-names = "default";
  83. regulator-always-on;
  84. regulator-name = "vcc_otg";
  85. regulator-min-microvolt = <5000000>;
  86. regulator-max-microvolt = <5000000>;
  87. startup-delay-us = <100000>;
  88. vin-supply = <&vcc_io>;
  89. };
  90. vcc_sd: sdmmc-regulator {
  91. compatible = "regulator-fixed";
  92. gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
  93. pinctrl-0 = <&sdmmc_pwr>;
  94. pinctrl-names = "default";
  95. regulator-name = "vcc_sd";
  96. regulator-min-microvolt = <3300000>;
  97. regulator-max-microvolt = <3300000>;
  98. startup-delay-us = <100000>;
  99. vin-supply = <&vcc_io>;
  100. };
  101. vcc_wifi: sdio-regulator {
  102. compatible = "regulator-fixed";
  103. enable-active-high;
  104. gpio = <&gpio3 RK_PD0 GPIO_ACTIVE_HIGH>;
  105. pinctrl-0 = <&wifi_pwr>;
  106. pinctrl-names = "default";
  107. regulator-name = "vcc_wifi";
  108. regulator-min-microvolt = <3300000>;
  109. regulator-max-microvolt = <3300000>;
  110. startup-delay-us = <100000>;
  111. vin-supply = <&vcc_io>;
  112. };
  113. };
  114. &hdmi {
  115. status = "okay";
  116. };
  117. &hdmi_in_vop1 {
  118. status = "disabled";
  119. };
  120. &hdmi_out {
  121. hdmi_out_con: endpoint {
  122. remote-endpoint = <&hdmi_con_in>;
  123. };
  124. };
  125. &mmc0 {
  126. bus-width = <4>;
  127. cap-mmc-highspeed;
  128. cap-sd-highspeed;
  129. vmmc-supply = <&vcc_sd>;
  130. status = "okay";
  131. };
  132. &mmc1 {
  133. bus-width = <4>;
  134. non-removable;
  135. pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
  136. pinctrl-names = "default";
  137. vmmc-supply = <&vcc_wifi>;
  138. status = "okay";
  139. };
  140. &nfc {
  141. #address-cells = <1>;
  142. #size-cells = <0>;
  143. status = "okay";
  144. nand@0 {
  145. reg = <0>;
  146. label = "rk-nand";
  147. nand-bus-width = <8>;
  148. nand-ecc-mode = "hw";
  149. nand-ecc-step-size = <1024>;
  150. nand-ecc-strength = <40>;
  151. nand-is-boot-medium;
  152. rockchip,boot-blks = <8>;
  153. rockchip,boot-ecc-strength = <24>;
  154. };
  155. };
  156. &pinctrl {
  157. usb-host {
  158. host_drv: host-drv {
  159. rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_default>;
  160. };
  161. };
  162. usb-otg {
  163. otg_drv: otg-drv {
  164. rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_default>;
  165. };
  166. };
  167. sdmmc {
  168. sdmmc_pwr: sdmmc-pwr {
  169. rockchip,pins = <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_default>;
  170. };
  171. };
  172. sdio {
  173. wifi_pwr: wifi-pwr {
  174. rockchip,pins = <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
  175. };
  176. };
  177. };
  178. &saradc {
  179. vref-supply = <&vcc_2v5>;
  180. status = "okay";
  181. };
  182. &uart2 {
  183. status = "okay";
  184. };
  185. &usb_host {
  186. status = "okay";
  187. };
  188. &usb_otg {
  189. status = "okay";
  190. };
  191. &usbphy {
  192. status = "okay";
  193. };
  194. &vop0 {
  195. status = "okay";
  196. };
  197. &wdt {
  198. status = "okay";
  199. };