rk3066a-bqcurie2.dts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (c) 2013 MundoReader S.L.
  4. * Author: Heiko Stuebner <[email protected]>
  5. */
  6. /dts-v1/;
  7. #include <dt-bindings/input/input.h>
  8. #include "rk3066a.dtsi"
  9. / {
  10. model = "bq Curie 2";
  11. compatible = "mundoreader,bq-curie2", "rockchip,rk3066a";
  12. aliases {
  13. mmc0 = &mmc0;
  14. mmc1 = &mmc1;
  15. };
  16. memory@60000000 {
  17. device_type = "memory";
  18. reg = <0x60000000 0x40000000>;
  19. };
  20. vdd_log: vdd-log {
  21. compatible = "pwm-regulator";
  22. pwms = <&pwm3 0 1000>;
  23. regulator-name = "vdd_log";
  24. regulator-min-microvolt = <1200000>;
  25. regulator-max-microvolt = <1200000>;
  26. regulator-always-on;
  27. voltage-table = <1000000 100>,
  28. <1200000 42>;
  29. status = "okay";
  30. };
  31. vcc_sd0: fixed-regulator {
  32. compatible = "regulator-fixed";
  33. regulator-name = "sdmmc-supply";
  34. regulator-min-microvolt = <3000000>;
  35. regulator-max-microvolt = <3000000>;
  36. gpio = <&gpio3 RK_PA7 GPIO_ACTIVE_LOW>;
  37. startup-delay-us = <100000>;
  38. vin-supply = <&vcc_io>;
  39. };
  40. gpio-keys {
  41. compatible = "gpio-keys";
  42. autorepeat;
  43. key-power {
  44. gpios = <&gpio6 RK_PA2 GPIO_ACTIVE_LOW>; /* GPIO6_A2 */
  45. linux,code = <KEY_POWER>;
  46. label = "GPIO Key Power";
  47. linux,input-type = <1>;
  48. wakeup-source;
  49. debounce-interval = <100>;
  50. };
  51. key-volume-down {
  52. gpios = <&gpio4 RK_PC5 GPIO_ACTIVE_LOW>; /* GPIO4_C5 */
  53. linux,code = <KEY_VOLUMEDOWN>;
  54. label = "GPIO Key Vol-";
  55. linux,input-type = <1>;
  56. debounce-interval = <100>;
  57. };
  58. /* VOL+ comes somehow thru the ADC */
  59. };
  60. };
  61. &cpu0 {
  62. cpu-supply = <&vdd_arm>;
  63. };
  64. &cpu1 {
  65. cpu-supply = <&vdd_arm>;
  66. };
  67. &i2c1 {
  68. status = "okay";
  69. clock-frequency = <400000>;
  70. tps: tps@2d {
  71. reg = <0x2d>;
  72. interrupt-parent = <&gpio6>;
  73. interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>;
  74. vcc5-supply = <&vcc_io>;
  75. vcc6-supply = <&vcc_io>;
  76. regulators {
  77. vcc_rtc: regulator@0 {
  78. regulator-name = "vcc_rtc";
  79. regulator-always-on;
  80. };
  81. vcc_io: regulator@1 {
  82. regulator-name = "vcc_io";
  83. regulator-always-on;
  84. };
  85. vdd_arm: regulator@2 {
  86. regulator-name = "vdd_arm";
  87. regulator-min-microvolt = <600000>;
  88. regulator-max-microvolt = <1500000>;
  89. regulator-boot-on;
  90. regulator-always-on;
  91. };
  92. vcc_ddr: regulator@3 {
  93. regulator-name = "vcc_ddr";
  94. regulator-min-microvolt = <600000>;
  95. regulator-max-microvolt = <1500000>;
  96. regulator-boot-on;
  97. regulator-always-on;
  98. };
  99. vcc18_cif: regulator@5 {
  100. regulator-name = "vcc18_cif";
  101. regulator-always-on;
  102. };
  103. vdd_11: regulator@6 {
  104. regulator-name = "vdd_11";
  105. regulator-always-on;
  106. };
  107. vcc_25: regulator@7 {
  108. regulator-name = "vcc_25";
  109. regulator-always-on;
  110. };
  111. vcc_18: regulator@8 {
  112. regulator-name = "vcc_18";
  113. regulator-always-on;
  114. };
  115. vcc25_hdmi: regulator@9 {
  116. regulator-name = "vcc25_hdmi";
  117. regulator-always-on;
  118. };
  119. vcca_33: regulator@10 {
  120. regulator-name = "vcca_33";
  121. regulator-always-on;
  122. };
  123. vcc_tp: regulator@11 {
  124. regulator-name = "vcc_tp";
  125. regulator-always-on;
  126. };
  127. vcc28_cif: regulator@12 {
  128. regulator-name = "vcc28_cif";
  129. regulator-always-on;
  130. };
  131. };
  132. };
  133. };
  134. /* must be included after &tps gets defined */
  135. #include "tps65910.dtsi"
  136. &mmc0 { /* sdmmc */
  137. status = "okay";
  138. pinctrl-names = "default";
  139. pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
  140. vmmc-supply = <&vcc_sd0>;
  141. bus-width = <4>;
  142. cap-mmc-highspeed;
  143. cap-sd-highspeed;
  144. disable-wp;
  145. };
  146. &mmc1 { /* wifi */
  147. status = "okay";
  148. non-removable;
  149. pinctrl-names = "default";
  150. pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
  151. bus-width = <4>;
  152. };
  153. &pwm3 {
  154. status = "okay";
  155. };
  156. &uart0 {
  157. status = "okay";
  158. };
  159. &uart1 {
  160. status = "okay";
  161. };
  162. &uart2 {
  163. status = "okay";
  164. };
  165. &uart3 {
  166. status = "okay";
  167. };
  168. &wdt {
  169. status = "okay";
  170. };