sunxi-libretech-all-h3-it.dtsi 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. // Copyright (C) 2019 Chen-Yu Tsai <wens@csie.org>
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. aliases {
  7. serial0 = &uart0;
  8. spi0 = &spi0;
  9. };
  10. chosen {
  11. stdout-path = "serial0:115200n8";
  12. };
  13. connector {
  14. compatible = "hdmi-connector";
  15. type = "d";
  16. port {
  17. hdmi_con_in: endpoint {
  18. remote-endpoint = <&hdmi_out_con>;
  19. };
  20. };
  21. };
  22. leds {
  23. compatible = "gpio-leds";
  24. status_led {
  25. label = "librecomputer:blue:status";
  26. gpios = <&pio 0 7 GPIO_ACTIVE_HIGH>; /* PA7 */
  27. };
  28. };
  29. reg_vcc3v3: vcc3v3 {
  30. compatible = "regulator-fixed";
  31. regulator-name = "vcc3v3";
  32. regulator-min-microvolt = <3300000>;
  33. regulator-max-microvolt = <3300000>;
  34. regulator-always-on;
  35. regulator-boot-on;
  36. vin-supply = <&reg_vcc5v0>;
  37. };
  38. /* This represents the board's 5V input */
  39. reg_vcc5v0: vcc5v0 {
  40. compatible = "regulator-fixed";
  41. regulator-name = "vcc5v0";
  42. regulator-min-microvolt = <5000000>;
  43. regulator-max-microvolt = <5000000>;
  44. regulator-always-on;
  45. regulator-boot-on;
  46. };
  47. reg_vcc_dram: vcc-dram {
  48. compatible = "regulator-fixed";
  49. regulator-name = "vcc-dram";
  50. regulator-min-microvolt = <1500000>;
  51. regulator-max-microvolt = <1500000>;
  52. regulator-always-on;
  53. regulator-boot-on;
  54. vin-supply = <&reg_vcc5v0>;
  55. gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>; /* PL9 */
  56. enable-active-high;
  57. };
  58. reg_vcc_io: vcc-io {
  59. compatible = "regulator-fixed";
  60. regulator-name = "vcc-io";
  61. /* This is simply a MOSFET switch */
  62. regulator-always-on;
  63. regulator-boot-on;
  64. vin-supply = <&reg_vcc3v3>;
  65. gpio = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL5 */
  66. };
  67. reg_vcc_usbwifi: vcc-usbwifi {
  68. compatible = "regulator-fixed";
  69. regulator-name = "vcc-usbwifi";
  70. regulator-min-microvolt = <3300000>;
  71. regulator-max-microvolt = <3300000>;
  72. vin-supply = <&reg_vcc5v0>;
  73. gpio = <&pio 6 4 GPIO_ACTIVE_HIGH>; /* PG4 */
  74. enable-active-high;
  75. };
  76. reg_vdd_cpux: vdd-cpux {
  77. compatible = "regulator-fixed";
  78. regulator-name = "vdd-cpux";
  79. regulator-min-microvolt = <1100000>;
  80. regulator-max-microvolt = <1100000>;
  81. regulator-always-on;
  82. regulator-boot-on;
  83. vin-supply = <&reg_vcc5v0>;
  84. gpio = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
  85. enable-active-high;
  86. };
  87. };
  88. &cpu0 {
  89. cpu-supply = <&reg_vdd_cpux>;
  90. };
  91. &cpu1 {
  92. cpu-supply = <&reg_vdd_cpux>;
  93. };
  94. &cpu2 {
  95. cpu-supply = <&reg_vdd_cpux>;
  96. };
  97. &cpu3 {
  98. cpu-supply = <&reg_vdd_cpux>;
  99. };
  100. &de {
  101. status = "okay";
  102. };
  103. &ehci1 {
  104. status = "okay";
  105. };
  106. &hdmi {
  107. status = "okay";
  108. };
  109. &hdmi_out {
  110. hdmi_out_con: endpoint {
  111. remote-endpoint = <&hdmi_con_in>;
  112. };
  113. };
  114. &mmc0 {
  115. vmmc-supply = <&reg_vcc_io>;
  116. bus-width = <4>;
  117. cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
  118. status = "okay";
  119. };
  120. &pio {
  121. vcc-pa-supply = <&reg_vcc_io>;
  122. vcc-pc-supply = <&reg_vcc_io>;
  123. vcc-pd-supply = <&reg_vcc_io>;
  124. vcc-pe-supply = <&reg_vcc_io>;
  125. vcc-pf-supply = <&reg_vcc_io>;
  126. vcc-pg-supply = <&reg_vcc_io>;
  127. };
  128. &r_pio {
  129. vcc-pl-supply = <&reg_vcc3v3>;
  130. };
  131. &spi0 {
  132. status = "okay";
  133. spiflash@0 {
  134. compatible = "jedec,spi-nor";
  135. reg = <0>;
  136. spi-max-frequency = <50000000>;
  137. };
  138. };
  139. &uart0 {
  140. pinctrl-names = "default";
  141. pinctrl-0 = <&uart0_pa_pins>;
  142. status = "okay";
  143. };
  144. &usb_otg {
  145. dr_mode = "peripheral";
  146. status = "okay";
  147. };
  148. &usbphy {
  149. usb1_vbus-supply = <&reg_vcc_usbwifi>;
  150. status = "okay";
  151. };