rk3066a-bqcurie2.dts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. /*
  2. * Copyright (c) 2013 MundoReader S.L.
  3. * Author: Heiko Stuebner <heiko@sntech.de>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. /dts-v1/;
  16. #include "rk3066a.dtsi"
  17. / {
  18. model = "bq Curie 2";
  19. compatible = "mundoreader,bq-curie2", "rockchip,rk3066a";
  20. memory {
  21. reg = <0x60000000 0x40000000>;
  22. };
  23. vcc_sd0: fixed-regulator {
  24. compatible = "regulator-fixed";
  25. regulator-name = "sdmmc-supply";
  26. regulator-min-microvolt = <3000000>;
  27. regulator-max-microvolt = <3000000>;
  28. gpio = <&gpio3 7 GPIO_ACTIVE_LOW>;
  29. startup-delay-us = <100000>;
  30. vin-supply = <&vcc_io>;
  31. };
  32. gpio-keys {
  33. compatible = "gpio-keys";
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. autorepeat;
  37. button@0 {
  38. gpios = <&gpio6 2 GPIO_ACTIVE_LOW>; /* GPIO6_A2 */
  39. linux,code = <116>;
  40. label = "GPIO Key Power";
  41. linux,input-type = <1>;
  42. gpio-key,wakeup = <1>;
  43. debounce-interval = <100>;
  44. };
  45. button@1 {
  46. gpios = <&gpio4 21 GPIO_ACTIVE_LOW>; /* GPIO4_C5 */
  47. linux,code = <104>;
  48. label = "GPIO Key Vol-";
  49. linux,input-type = <1>;
  50. gpio-key,wakeup = <0>;
  51. debounce-interval = <100>;
  52. };
  53. /* VOL+ comes somehow thru the ADC */
  54. };
  55. };
  56. &i2c1 {
  57. status = "okay";
  58. clock-frequency = <400000>;
  59. tps: tps@2d {
  60. reg = <0x2d>;
  61. interrupt-parent = <&gpio6>;
  62. interrupts = <6 IRQ_TYPE_LEVEL_LOW>;
  63. vcc5-supply = <&vcc_io>;
  64. vcc6-supply = <&vcc_io>;
  65. regulators {
  66. vcc_rtc: regulator@0 {
  67. regulator-name = "vcc_rtc";
  68. regulator-always-on;
  69. };
  70. vcc_io: regulator@1 {
  71. regulator-name = "vcc_io";
  72. regulator-always-on;
  73. };
  74. vdd_arm: regulator@2 {
  75. regulator-name = "vdd_arm";
  76. regulator-min-microvolt = <600000>;
  77. regulator-max-microvolt = <1500000>;
  78. regulator-boot-on;
  79. regulator-always-on;
  80. };
  81. vcc_ddr: regulator@3 {
  82. regulator-name = "vcc_ddr";
  83. regulator-min-microvolt = <600000>;
  84. regulator-max-microvolt = <1500000>;
  85. regulator-boot-on;
  86. regulator-always-on;
  87. };
  88. vcc18_cif: regulator@5 {
  89. regulator-name = "vcc18_cif";
  90. regulator-always-on;
  91. };
  92. vdd_11: regulator@6 {
  93. regulator-name = "vdd_11";
  94. regulator-always-on;
  95. };
  96. vcc_25: regulator@7 {
  97. regulator-name = "vcc_25";
  98. regulator-always-on;
  99. };
  100. vcc_18: regulator@8 {
  101. regulator-name = "vcc_18";
  102. regulator-always-on;
  103. };
  104. vcc25_hdmi: regulator@9 {
  105. regulator-name = "vcc25_hdmi";
  106. regulator-always-on;
  107. };
  108. vcca_33: regulator@10 {
  109. regulator-name = "vcca_33";
  110. regulator-always-on;
  111. };
  112. vcc_tp: regulator@11 {
  113. regulator-name = "vcc_tp";
  114. regulator-always-on;
  115. };
  116. vcc28_cif: regulator@12 {
  117. regulator-name = "vcc28_cif";
  118. regulator-always-on;
  119. };
  120. };
  121. };
  122. };
  123. /* must be included after &tps gets defined */
  124. #include "tps65910.dtsi"
  125. &mmc0 { /* sdmmc */
  126. num-slots = <1>;
  127. status = "okay";
  128. pinctrl-names = "default";
  129. pinctrl-0 = <&sd0_clk>, <&sd0_cmd>, <&sd0_cd>, <&sd0_bus4>;
  130. vmmc-supply = <&vcc_sd0>;
  131. bus-width = <4>;
  132. disable-wp;
  133. };
  134. &mmc1 { /* wifi */
  135. num-slots = <1>;
  136. status = "okay";
  137. non-removable;
  138. pinctrl-names = "default";
  139. pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_bus4>;
  140. bus-width = <4>;
  141. disable-wp;
  142. };
  143. &uart0 {
  144. status = "okay";
  145. };
  146. &uart1 {
  147. status = "okay";
  148. };
  149. &uart2 {
  150. status = "okay";
  151. };
  152. &uart3 {
  153. status = "okay";
  154. };
  155. &wdt {
  156. status = "okay";
  157. };