sun50i-a64-orangepi-win.dts 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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 = "OrangePi Win/Win Plus";
  47. compatible = "xunlong,orangepi-win", "allwinner,sun50i-a64";
  48. aliases {
  49. serial0 = &uart0;
  50. };
  51. chosen {
  52. stdout-path = "serial0:115200n8";
  53. };
  54. };
  55. &ehci1 {
  56. status = "okay";
  57. };
  58. &mmc0 {
  59. pinctrl-names = "default";
  60. pinctrl-0 = <&mmc0_pins>;
  61. vmmc-supply = <&reg_dcdc1>;
  62. cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
  63. disable-wp;
  64. bus-width = <4>;
  65. status = "okay";
  66. };
  67. &ohci1 {
  68. status = "okay";
  69. };
  70. &r_rsb {
  71. status = "okay";
  72. axp803: pmic@3a3 {
  73. compatible = "x-powers,axp803";
  74. reg = <0x3a3>;
  75. interrupt-parent = <&r_intc>;
  76. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  77. };
  78. };
  79. #include "axp803.dtsi"
  80. &reg_aldo1 {
  81. regulator-always-on;
  82. regulator-min-microvolt = <1800000>;
  83. regulator-max-microvolt = <3300000>;
  84. regulator-name = "afvcc-csi";
  85. };
  86. &reg_aldo2 {
  87. regulator-always-on;
  88. regulator-min-microvolt = <1800000>;
  89. regulator-max-microvolt = <3300000>;
  90. regulator-name = "vcc-pl";
  91. };
  92. &reg_aldo3 {
  93. regulator-always-on;
  94. regulator-min-microvolt = <3000000>;
  95. regulator-max-microvolt = <3000000>;
  96. regulator-name = "vcc-pll-avcc";
  97. };
  98. &reg_dcdc1 {
  99. regulator-always-on;
  100. regulator-min-microvolt = <3300000>;
  101. regulator-max-microvolt = <3300000>;
  102. regulator-name = "vcc-3v3";
  103. };
  104. &reg_dcdc2 {
  105. regulator-always-on;
  106. regulator-min-microvolt = <1040000>;
  107. regulator-max-microvolt = <1300000>;
  108. regulator-name = "vdd-cpux";
  109. };
  110. /* DCDC3 is polyphased with DCDC2 */
  111. &reg_dcdc5 {
  112. regulator-always-on;
  113. regulator-min-microvolt = <1500000>;
  114. regulator-max-microvolt = <1500000>;
  115. regulator-name = "vcc-dram";
  116. };
  117. &reg_dcdc6 {
  118. regulator-always-on;
  119. regulator-min-microvolt = <1100000>;
  120. regulator-max-microvolt = <1100000>;
  121. regulator-name = "vdd-sys";
  122. };
  123. &reg_dldo1 {
  124. regulator-min-microvolt = <3300000>;
  125. regulator-max-microvolt = <3300000>;
  126. regulator-name = "vcc-hdmi-dsi";
  127. };
  128. &reg_dldo2 {
  129. regulator-min-microvolt = <3300000>;
  130. regulator-max-microvolt = <3300000>;
  131. regulator-name = "vcc-wifi";
  132. };
  133. &reg_dldo3 {
  134. regulator-min-microvolt = <3300000>;
  135. regulator-max-microvolt = <3300000>;
  136. regulator-name = "avdd-csi";
  137. };
  138. &reg_dldo4 {
  139. regulator-min-microvolt = <3300000>;
  140. regulator-max-microvolt = <3300000>;
  141. regulator-name = "vcc-wifi-io";
  142. };
  143. &reg_eldo1 {
  144. regulator-min-microvolt = <1800000>;
  145. regulator-max-microvolt = <1800000>;
  146. regulator-name = "cpvdd";
  147. };
  148. &reg_fldo1 {
  149. regulator-min-microvolt = <1200000>;
  150. regulator-max-microvolt = <1200000>;
  151. regulator-name = "vcc-1v2-hsic";
  152. };
  153. /*
  154. * The A64 chip cannot work without this regulator off, although
  155. * it seems to be only driving the AR100 core.
  156. * Maybe we don't still know well about CPUs domain.
  157. */
  158. &reg_fldo2 {
  159. regulator-always-on;
  160. regulator-min-microvolt = <1100000>;
  161. regulator-max-microvolt = <1100000>;
  162. regulator-name = "vdd-cpus";
  163. };
  164. &reg_rtc_ldo {
  165. regulator-name = "vcc-rtc";
  166. };
  167. &simplefb_hdmi {
  168. vcc-hdmi-supply = <&reg_dldo1>;
  169. };
  170. &uart0 {
  171. pinctrl-names = "default";
  172. pinctrl-0 = <&uart0_pins_a>;
  173. status = "okay";
  174. };
  175. &usbphy {
  176. status = "okay";
  177. };