sun8i-t3-cqa3t-bv3.dts 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright (C) 2017 Chen-Yu Tsai <[email protected]>
  4. * Copyright (C) 2017 Icenowy Zheng <[email protected]>
  5. * Copyright (C) 2018 Hao Zhang <[email protected]>
  6. *
  7. * This file is dual-licensed: you can use it either under the terms
  8. * of the GPL or the X11 license, at your option. Note that this dual
  9. * licensing only applies to this file, and not this project as a
  10. * whole.
  11. *
  12. * a) This file is free software; you can redistribute it and/or
  13. * modify it under the terms of the GNU General Public License as
  14. * published by the Free Software Foundation; either version 2 of the
  15. * License, or (at your option) any later version.
  16. *
  17. * This file is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU General Public License for more details.
  21. *
  22. * Or, alternatively,
  23. *
  24. * b) Permission is hereby granted, free of charge, to any person
  25. * obtaining a copy of this software and associated documentation
  26. * files (the "Software"), to deal in the Software without
  27. * restriction, including without limitation the rights to use,
  28. * copy, modify, merge, publish, distribute, sublicense, and/or
  29. * sell copies of the Software, and to permit persons to whom the
  30. * Software is furnished to do so, subject to the following
  31. * conditions:
  32. *
  33. * The above copyright notice and this permission notice shall be
  34. * included in all copies or substantial portions of the Software.
  35. *
  36. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  37. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  38. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  39. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  40. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  41. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  42. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  43. * OTHER DEALINGS IN THE SOFTWARE.
  44. */
  45. /dts-v1/;
  46. #include "sun8i-r40.dtsi"
  47. #include "sun8i-r40-cpu-opp.dtsi"
  48. #include <dt-bindings/gpio/gpio.h>
  49. / {
  50. model = "t3-cqa3t-bv3";
  51. compatible = "qihua,t3-cqa3t-bv3", "allwinner,sun8i-t3",
  52. "allwinner,sun8i-r40";
  53. aliases {
  54. serial0 = &uart0;
  55. };
  56. chosen {
  57. stdout-path = "serial0:115200n8";
  58. };
  59. connector {
  60. compatible = "hdmi-connector";
  61. type = "a";
  62. port {
  63. hdmi_con_in: endpoint {
  64. remote-endpoint = <&hdmi_out_con>;
  65. };
  66. };
  67. };
  68. reg_vcc5v0: vcc5v0 {
  69. compatible = "regulator-fixed";
  70. regulator-name = "vcc5v0";
  71. regulator-min-microvolt = <5000000>;
  72. regulator-max-microvolt = <5000000>;
  73. gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>; /* PH23 */
  74. enable-active-high;
  75. };
  76. };
  77. &ahci {
  78. ahci-supply = <&reg_dldo4>;
  79. phy-supply = <&reg_eldo3>;
  80. status = "okay";
  81. };
  82. &cpu0 {
  83. cpu-supply = <&reg_dcdc2>;
  84. };
  85. &de {
  86. status = "okay";
  87. };
  88. &ehci1 {
  89. status = "okay";
  90. };
  91. &ehci2 {
  92. status = "okay";
  93. };
  94. &hdmi {
  95. status = "okay";
  96. };
  97. &hdmi_out {
  98. hdmi_out_con: endpoint {
  99. remote-endpoint = <&hdmi_con_in>;
  100. };
  101. };
  102. &i2c0 {
  103. status = "okay";
  104. axp22x: pmic@34 {
  105. compatible = "x-powers,axp221";
  106. reg = <0x34>;
  107. interrupt-parent = <&nmi_intc>;
  108. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  109. };
  110. };
  111. #include "axp22x.dtsi"
  112. &mmc0 {
  113. vmmc-supply = <&reg_dcdc1>;
  114. bus-width = <4>;
  115. cd-gpios = <&pio 7 15 GPIO_ACTIVE_LOW>; /* PH15 */
  116. status = "okay";
  117. };
  118. &mmc2 {
  119. vmmc-supply = <&reg_dcdc1>;
  120. vqmmc-supply = <&reg_dcdc1>;
  121. bus-width = <8>;
  122. non-removable;
  123. status = "okay";
  124. };
  125. &ohci1 {
  126. status = "okay";
  127. };
  128. &ohci2 {
  129. status = "okay";
  130. };
  131. &reg_aldo2 {
  132. regulator-always-on;
  133. regulator-min-microvolt = <2500000>;
  134. regulator-max-microvolt = <2500000>;
  135. regulator-name = "vcc-pa";
  136. };
  137. &reg_aldo3 {
  138. regulator-always-on;
  139. regulator-min-microvolt = <2700000>;
  140. regulator-max-microvolt = <3300000>;
  141. regulator-name = "avcc";
  142. };
  143. &reg_dcdc1 {
  144. regulator-always-on;
  145. regulator-min-microvolt = <3000000>;
  146. regulator-max-microvolt = <3000000>;
  147. regulator-name = "vcc-3v0";
  148. };
  149. &reg_dcdc2 {
  150. regulator-always-on;
  151. regulator-min-microvolt = <1000000>;
  152. regulator-max-microvolt = <1300000>;
  153. regulator-name = "vdd-cpu";
  154. };
  155. &reg_dcdc3 {
  156. regulator-always-on;
  157. regulator-min-microvolt = <1000000>;
  158. regulator-max-microvolt = <1300000>;
  159. regulator-name = "vdd-sys";
  160. };
  161. &reg_dcdc5 {
  162. regulator-always-on;
  163. regulator-min-microvolt = <1500000>;
  164. regulator-max-microvolt = <1500000>;
  165. regulator-name = "vcc-dram";
  166. };
  167. &reg_dldo1 {
  168. regulator-always-on;
  169. regulator-min-microvolt = <3300000>;
  170. regulator-max-microvolt = <3300000>;
  171. regulator-name = "vcc-pg";
  172. };
  173. &reg_dldo3 {
  174. regulator-always-on;
  175. regulator-min-microvolt = <3300000>;
  176. regulator-max-microvolt = <3300000>;
  177. regulator-name = "vcc-dldo3";
  178. };
  179. &reg_eldo3 {
  180. regulator-always-on;
  181. regulator-min-microvolt = <2800000>;
  182. regulator-max-microvolt = <2800000>;
  183. regulator-name = "vcc-pe";
  184. };
  185. &tcon_tv0 {
  186. status = "okay";
  187. };
  188. &uart0 {
  189. pinctrl-names = "default";
  190. pinctrl-0 = <&uart0_pb_pins>;
  191. status = "okay";
  192. };
  193. &usbphy {
  194. usb1_vbus-supply = <&reg_vcc5v0>;
  195. usb2_vbus-supply = <&reg_vcc5v0>;
  196. status = "okay";
  197. };