sun50i-a64-nanopi-a64.dts 4.8 KB

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