sun50i-a64-olinuxino.dts 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. /*
  2. * Copyright (C) 2017 Jagan Teki <jteki@openedev.com>
  3. *
  4. * This file is dual-licensed: you can use it either under the terms
  5. * of the GPL or the X11 license, at your option. Note that this dual
  6. * licensing only applies to this file, and not this project as a
  7. * whole.
  8. *
  9. * a) This library is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License as
  11. * published by the Free Software Foundation; either version 2 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This library is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * Or, alternatively,
  20. *
  21. * b) Permission is hereby granted, free of charge, to any person
  22. * obtaining a copy of this software and associated documentation
  23. * files (the "Software"), to deal in the Software without
  24. * restriction, including without limitation the rights to use,
  25. * copy, modify, merge, publish, distribute, sublicense, and/or
  26. * sell copies of the Software, and to permit persons to whom the
  27. * Software is furnished to do so, subject to the following
  28. * conditions:
  29. *
  30. * The above copyright notice and this permission notice shall be
  31. * included in all copies or substantial portions of the Software.
  32. *
  33. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  34. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  35. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  36. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  37. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  38. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  39. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  40. * OTHER DEALINGS IN THE SOFTWARE.
  41. */
  42. /dts-v1/;
  43. #include "sun50i-a64.dtsi"
  44. #include <dt-bindings/gpio/gpio.h>
  45. / {
  46. model = "Olimex A64-Olinuxino";
  47. compatible = "olimex,a64-olinuxino", "allwinner,sun50i-a64";
  48. aliases {
  49. serial0 = &uart0;
  50. };
  51. chosen {
  52. stdout-path = "serial0:115200n8";
  53. };
  54. wifi_pwrseq: wifi_pwrseq {
  55. compatible = "mmc-pwrseq-simple";
  56. reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
  57. };
  58. };
  59. &mmc0 {
  60. pinctrl-names = "default";
  61. pinctrl-0 = <&mmc0_pins>;
  62. vmmc-supply = <&reg_dcdc1>;
  63. cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
  64. disable-wp;
  65. bus-width = <4>;
  66. status = "okay";
  67. };
  68. &mmc1 {
  69. pinctrl-names = "default";
  70. pinctrl-0 = <&mmc1_pins>;
  71. vmmc-supply = <&reg_dcdc1>;
  72. vqmmc-supply = <&reg_dldo4>;
  73. mmc-pwrseq = <&wifi_pwrseq>;
  74. bus-width = <4>;
  75. non-removable;
  76. status = "okay";
  77. rtl8723bs: wifi@1 {
  78. reg = <1>;
  79. interrupt-parent = <&r_pio>;
  80. interrupts = <0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */
  81. interrupt-names = "host-wake";
  82. };
  83. };
  84. &r_rsb {
  85. status = "okay";
  86. axp803: pmic@3a3 {
  87. compatible = "x-powers,axp803";
  88. reg = <0x3a3>;
  89. interrupt-parent = <&r_intc>;
  90. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  91. };
  92. };
  93. #include "axp803.dtsi"
  94. &reg_aldo1 {
  95. regulator-always-on;
  96. regulator-min-microvolt = <2800000>;
  97. regulator-max-microvolt = <2800000>;
  98. regulator-name = "vcc-pe";
  99. };
  100. &reg_aldo2 {
  101. regulator-always-on;
  102. regulator-min-microvolt = <3300000>;
  103. regulator-max-microvolt = <3300000>;
  104. regulator-name = "vcc-pl";
  105. };
  106. &reg_aldo3 {
  107. regulator-always-on;
  108. regulator-min-microvolt = <3000000>;
  109. regulator-max-microvolt = <3000000>;
  110. regulator-name = "vcc-pll-avcc";
  111. };
  112. &reg_dcdc1 {
  113. regulator-always-on;
  114. regulator-min-microvolt = <3300000>;
  115. regulator-max-microvolt = <3300000>;
  116. regulator-name = "vcc-3v3";
  117. };
  118. &reg_dcdc2 {
  119. regulator-always-on;
  120. regulator-min-microvolt = <1040000>;
  121. regulator-max-microvolt = <1300000>;
  122. regulator-name = "vdd-cpux";
  123. };
  124. /* DCDC3 is polyphased with DCDC2 */
  125. /*
  126. * The board uses DDR3L DRAM chips. 1.36V is the closest to the nominal
  127. * 1.35V that the PMIC can drive.
  128. */
  129. &reg_dcdc5 {
  130. regulator-always-on;
  131. regulator-min-microvolt = <1360000>;
  132. regulator-max-microvolt = <1360000>;
  133. regulator-name = "vcc-ddr3";
  134. };
  135. &reg_dcdc6 {
  136. regulator-always-on;
  137. regulator-min-microvolt = <1100000>;
  138. regulator-max-microvolt = <1100000>;
  139. regulator-name = "vdd-sys";
  140. };
  141. &reg_dldo1 {
  142. regulator-min-microvolt = <3300000>;
  143. regulator-max-microvolt = <3300000>;
  144. regulator-name = "vcc-hdmi";
  145. };
  146. &reg_dldo2 {
  147. regulator-min-microvolt = <3300000>;
  148. regulator-max-microvolt = <3300000>;
  149. regulator-name = "vcc-mipi";
  150. };
  151. &reg_dldo3 {
  152. regulator-min-microvolt = <2800000>;
  153. regulator-max-microvolt = <2800000>;
  154. regulator-name = "vcc-avdd-csi";
  155. };
  156. &reg_dldo4 {
  157. regulator-min-microvolt = <3300000>;
  158. regulator-max-microvolt = <3300000>;
  159. regulator-name = "vcc-wifi-io";
  160. };
  161. &reg_eldo1 {
  162. regulator-min-microvolt = <1800000>;
  163. regulator-max-microvolt = <1800000>;
  164. regulator-name = "cpvdd";
  165. };
  166. &reg_eldo2 {
  167. regulator-min-microvolt = <1800000>;
  168. regulator-max-microvolt = <1800000>;
  169. regulator-name = "vcc-dvdd-csi";
  170. };
  171. &reg_fldo1 {
  172. regulator-min-microvolt = <1200000>;
  173. regulator-max-microvolt = <1200000>;
  174. regulator-name = "vcc-1v2-hsic";
  175. };
  176. /*
  177. * The A64 chip cannot work without this regulator off, although
  178. * it seems to be only driving the AR100 core.
  179. * Maybe we don't still know well about CPUs domain.
  180. */
  181. &reg_fldo2 {
  182. regulator-always-on;
  183. regulator-min-microvolt = <1100000>;
  184. regulator-max-microvolt = <1100000>;
  185. regulator-name = "vdd-cpus";
  186. };
  187. &reg_rtc_ldo {
  188. regulator-name = "vcc-rtc";
  189. };
  190. &simplefb_hdmi {
  191. vcc-hdmi-supply = <&reg_dldo1>;
  192. };
  193. &uart0 {
  194. pinctrl-names = "default";
  195. pinctrl-0 = <&uart0_pins_a>;
  196. status = "okay";
  197. };