sun8i-a83t-allwinner-h8homlet-v2.dts 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. /*
  2. * Copyright 2015 Vishnu Patekar
  3. * Vishnu Patekar <[email protected]>
  4. *
  5. * This file is dual-licensed: you can use it either under the terms
  6. * of the GPL or the X11 license, at your option. Note that this dual
  7. * licensing only applies to this file, and not this project as a
  8. * whole.
  9. *
  10. * a) This file is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of the
  13. * License, or (at your option) any later version.
  14. *
  15. * This file is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * Or, alternatively,
  21. *
  22. * b) Permission is hereby granted, free of charge, to any person
  23. * obtaining a copy of this software and associated documentation
  24. * files (the "Software"), to deal in the Software without
  25. * restriction, including without limitation the rights to use,
  26. * copy, modify, merge, publish, distribute, sublicense, and/or
  27. * sell copies of the Software, and to permit persons to whom the
  28. * Software is furnished to do so, subject to the following
  29. * conditions:
  30. *
  31. * The above copyright notice and this permission notice shall be
  32. * included in all copies or substantial portions of the Software.
  33. *
  34. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  35. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  36. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  37. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  38. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  39. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  40. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  41. * OTHER DEALINGS IN THE SOFTWARE.
  42. */
  43. /dts-v1/;
  44. #include "sun8i-a83t.dtsi"
  45. #include <dt-bindings/gpio/gpio.h>
  46. / {
  47. model = "Allwinner A83T H8Homlet Proto Dev Board v2.0";
  48. compatible = "allwinner,h8homlet-v2", "allwinner,sun8i-a83t";
  49. aliases {
  50. serial0 = &uart0;
  51. };
  52. chosen {
  53. stdout-path = "serial0:115200n8";
  54. };
  55. reg_usb0_vbus: reg-usb0-vbus {
  56. compatible = "regulator-fixed";
  57. regulator-name = "usb0-vbus";
  58. regulator-min-microvolt = <5000000>;
  59. regulator-max-microvolt = <5000000>;
  60. regulator-boot-on;
  61. enable-active-high;
  62. gpio = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
  63. };
  64. reg_usb1_vbus: reg-usb1-vbus {
  65. compatible = "regulator-fixed";
  66. regulator-name = "usb1-vbus";
  67. regulator-min-microvolt = <5000000>;
  68. regulator-max-microvolt = <5000000>;
  69. regulator-boot-on;
  70. enable-active-high;
  71. gpio = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
  72. };
  73. };
  74. &cpu0 {
  75. cpu-supply = <&reg_dcdc2>;
  76. };
  77. &cpu100 {
  78. cpu-supply = <&reg_dcdc3>;
  79. };
  80. &ehci0 {
  81. status = "okay";
  82. };
  83. &mmc0 {
  84. pinctrl-names = "default";
  85. pinctrl-0 = <&mmc0_pins>;
  86. vmmc-supply = <&reg_dcdc1>;
  87. cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
  88. bus-width = <4>;
  89. status = "okay";
  90. };
  91. &mmc2 {
  92. pinctrl-names = "default";
  93. pinctrl-0 = <&mmc2_8bit_emmc_pins>;
  94. vmmc-supply = <&reg_dcdc1>;
  95. vqmmc-supply = <&reg_dcdc1>;
  96. bus-width = <8>;
  97. non-removable;
  98. cap-mmc-hw-reset;
  99. status = "okay";
  100. };
  101. &ohci0 {
  102. status = "okay";
  103. };
  104. &r_rsb {
  105. status = "okay";
  106. axp81x: pmic@3a3 {
  107. compatible = "x-powers,axp818", "x-powers,axp813";
  108. reg = <0x3a3>;
  109. interrupt-parent = <&r_intc>;
  110. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
  111. eldoin-supply = <&reg_dcdc1>;
  112. swin-supply = <&reg_dcdc1>;
  113. };
  114. ac100: codec@e89 {
  115. compatible = "x-powers,ac100";
  116. reg = <0xe89>;
  117. ac100_codec: codec {
  118. compatible = "x-powers,ac100-codec";
  119. interrupt-parent = <&r_pio>;
  120. interrupts = <0 11 IRQ_TYPE_LEVEL_LOW>; /* PL11 */
  121. #clock-cells = <0>;
  122. clock-output-names = "4M_adda";
  123. };
  124. ac100_rtc: rtc {
  125. compatible = "x-powers,ac100-rtc";
  126. interrupt-parent = <&r_intc>;
  127. interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_LOW>;
  128. clocks = <&ac100_codec>;
  129. #clock-cells = <1>;
  130. clock-output-names = "cko1_rtc",
  131. "cko2_rtc",
  132. "cko3_rtc";
  133. };
  134. };
  135. };
  136. #include "axp81x.dtsi"
  137. &ac_power_supply {
  138. status = "okay";
  139. };
  140. &reg_aldo1 {
  141. regulator-always-on;
  142. regulator-min-microvolt = <1800000>;
  143. regulator-max-microvolt = <1800000>;
  144. regulator-name = "vcc-1v8";
  145. };
  146. &reg_aldo2 {
  147. regulator-always-on;
  148. regulator-min-microvolt = <1800000>;
  149. regulator-max-microvolt = <1800000>;
  150. regulator-name = "dram-pll";
  151. };
  152. &reg_aldo3 {
  153. regulator-always-on;
  154. regulator-min-microvolt = <3000000>;
  155. regulator-max-microvolt = <3000000>;
  156. regulator-name = "avcc";
  157. };
  158. &reg_dcdc1 {
  159. regulator-always-on;
  160. regulator-min-microvolt = <3300000>;
  161. regulator-max-microvolt = <3300000>;
  162. regulator-name = "vcc-3v3";
  163. };
  164. &reg_dcdc2 {
  165. regulator-always-on;
  166. regulator-min-microvolt = <700000>;
  167. regulator-max-microvolt = <1100000>;
  168. regulator-name = "vdd-cpua";
  169. };
  170. &reg_dcdc3 {
  171. regulator-always-on;
  172. regulator-min-microvolt = <700000>;
  173. regulator-max-microvolt = <1100000>;
  174. regulator-name = "vdd-cpub";
  175. };
  176. &reg_dcdc4 {
  177. regulator-min-microvolt = <700000>;
  178. regulator-max-microvolt = <1100000>;
  179. regulator-name = "vdd-gpu";
  180. };
  181. &reg_dcdc5 {
  182. regulator-always-on;
  183. regulator-min-microvolt = <1500000>;
  184. regulator-max-microvolt = <1500000>;
  185. regulator-name = "vcc-dram";
  186. };
  187. &reg_dcdc6 {
  188. regulator-always-on;
  189. regulator-min-microvolt = <900000>;
  190. regulator-max-microvolt = <900000>;
  191. regulator-name = "vdd-sys";
  192. };
  193. &reg_dldo2 {
  194. regulator-min-microvolt = <3300000>;
  195. regulator-max-microvolt = <3300000>;
  196. regulator-name = "vcc-mipi";
  197. };
  198. &reg_dldo4 {
  199. /*
  200. * The PHY requires 20ms after all voltages are applied until core
  201. * logic is ready and 30ms after the reset pin is de-asserted.
  202. * Set a 100ms delay to account for PMIC ramp time and board traces.
  203. */
  204. regulator-enable-ramp-delay = <100000>;
  205. regulator-min-microvolt = <3300000>;
  206. regulator-max-microvolt = <3300000>;
  207. regulator-name = "vcc-ephy";
  208. };
  209. &reg_fldo1 {
  210. regulator-min-microvolt = <1080000>;
  211. regulator-max-microvolt = <1320000>;
  212. regulator-name = "vdd12-hsic";
  213. };
  214. &reg_fldo2 {
  215. /*
  216. * Despite the embedded CPUs core not being used in any way,
  217. * this must remain on or the system will hang.
  218. */
  219. regulator-always-on;
  220. regulator-min-microvolt = <700000>;
  221. regulator-max-microvolt = <1100000>;
  222. regulator-name = "vdd-cpus";
  223. };
  224. &reg_rtc_ldo {
  225. regulator-name = "vcc-rtc";
  226. };
  227. &reg_sw {
  228. regulator-name = "vcc-wifi";
  229. };
  230. &uart0 {
  231. pinctrl-names = "default";
  232. pinctrl-0 = <&uart0_pb_pins>;
  233. status = "okay";
  234. };
  235. &usbphy {
  236. usb0_vbus-supply = <&reg_usb0_vbus>;
  237. usb1_vbus-supply = <&reg_usb1_vbus>;
  238. status = "okay";
  239. };
  240. &usb_otg {
  241. dr_mode = "host";
  242. status = "okay";
  243. };