sun50i-h616-x96-mate.dts 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. // SPDX-License-Identifier: (GPL-2.0+ or MIT)
  2. /*
  3. * Copyright (C) 2021 Arm Ltd.
  4. */
  5. /dts-v1/;
  6. #include "sun50i-h616.dtsi"
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/interrupt-controller/arm-gic.h>
  9. / {
  10. model = "X96 Mate";
  11. compatible = "hechuang,x96-mate", "allwinner,sun50i-h616";
  12. aliases {
  13. serial0 = &uart0;
  14. };
  15. chosen {
  16. stdout-path = "serial0:115200n8";
  17. };
  18. reg_vcc5v: vcc5v {
  19. /* board wide 5V supply directly from the DC input */
  20. compatible = "regulator-fixed";
  21. regulator-name = "vcc-5v";
  22. regulator-min-microvolt = <5000000>;
  23. regulator-max-microvolt = <5000000>;
  24. regulator-always-on;
  25. };
  26. };
  27. &ir {
  28. status = "okay";
  29. };
  30. &mmc0 {
  31. vmmc-supply = <&reg_dcdce>;
  32. cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
  33. bus-width = <4>;
  34. status = "okay";
  35. };
  36. &mmc2 {
  37. vmmc-supply = <&reg_dcdce>;
  38. vqmmc-supply = <&reg_bldo1>;
  39. bus-width = <8>;
  40. non-removable;
  41. cap-mmc-hw-reset;
  42. mmc-ddr-1_8v;
  43. mmc-hs200-1_8v;
  44. status = "okay";
  45. };
  46. &r_rsb {
  47. status = "okay";
  48. axp305: pmic@745 {
  49. compatible = "x-powers,axp305", "x-powers,axp805",
  50. "x-powers,axp806";
  51. interrupt-controller;
  52. #interrupt-cells = <1>;
  53. reg = <0x745>;
  54. x-powers,self-working-mode;
  55. vina-supply = <&reg_vcc5v>;
  56. vinb-supply = <&reg_vcc5v>;
  57. vinc-supply = <&reg_vcc5v>;
  58. vind-supply = <&reg_vcc5v>;
  59. vine-supply = <&reg_vcc5v>;
  60. aldoin-supply = <&reg_vcc5v>;
  61. bldoin-supply = <&reg_vcc5v>;
  62. cldoin-supply = <&reg_vcc5v>;
  63. regulators {
  64. reg_aldo1: aldo1 {
  65. regulator-always-on;
  66. regulator-min-microvolt = <3300000>;
  67. regulator-max-microvolt = <3300000>;
  68. regulator-name = "vcc-sys";
  69. };
  70. /* Enabled by the Android BSP */
  71. reg_aldo2: aldo2 {
  72. regulator-min-microvolt = <3300000>;
  73. regulator-max-microvolt = <3300000>;
  74. regulator-name = "vcc3v3-ext";
  75. status = "disabled";
  76. };
  77. /* Enabled by the Android BSP */
  78. reg_aldo3: aldo3 {
  79. regulator-min-microvolt = <3300000>;
  80. regulator-max-microvolt = <3300000>;
  81. regulator-name = "vcc3v3-ext2";
  82. status = "disabled";
  83. };
  84. reg_bldo1: bldo1 {
  85. regulator-always-on;
  86. regulator-min-microvolt = <1800000>;
  87. regulator-max-microvolt = <1800000>;
  88. regulator-name = "vcc1v8";
  89. };
  90. /* Enabled by the Android BSP */
  91. reg_bldo2: bldo2 {
  92. regulator-min-microvolt = <1800000>;
  93. regulator-max-microvolt = <1800000>;
  94. regulator-name = "vcc1v8-2";
  95. status = "disabled";
  96. };
  97. bldo3 {
  98. /* unused */
  99. };
  100. bldo4 {
  101. /* unused */
  102. };
  103. cldo1 {
  104. regulator-min-microvolt = <2500000>;
  105. regulator-max-microvolt = <2500000>;
  106. regulator-name = "vcc2v5";
  107. };
  108. cldo2 {
  109. /* unused */
  110. };
  111. cldo3 {
  112. /* unused */
  113. };
  114. reg_dcdca: dcdca {
  115. regulator-always-on;
  116. regulator-min-microvolt = <810000>;
  117. regulator-max-microvolt = <1100000>;
  118. regulator-name = "vdd-cpu";
  119. };
  120. reg_dcdcc: dcdcc {
  121. regulator-always-on;
  122. regulator-min-microvolt = <810000>;
  123. regulator-max-microvolt = <990000>;
  124. regulator-name = "vdd-gpu-sys";
  125. };
  126. reg_dcdcd: dcdcd {
  127. regulator-always-on;
  128. regulator-min-microvolt = <1360000>;
  129. regulator-max-microvolt = <1360000>;
  130. regulator-name = "vdd-dram";
  131. };
  132. reg_dcdce: dcdce {
  133. regulator-always-on;
  134. regulator-min-microvolt = <3300000>;
  135. regulator-max-microvolt = <3300000>;
  136. regulator-name = "vcc-eth-mmc";
  137. };
  138. sw {
  139. /* unused */
  140. };
  141. };
  142. };
  143. };
  144. &uart0 {
  145. pinctrl-names = "default";
  146. pinctrl-0 = <&uart0_ph_pins>;
  147. status = "okay";
  148. };