sun8i-h3-libretech-all-h3-cc.dts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org>
  4. */
  5. /dts-v1/;
  6. #include "sun8i-h3.dtsi"
  7. #include <dt-bindings/gpio/gpio.h>
  8. #include <dt-bindings/input/input.h>
  9. / {
  10. model = "Libre Computer Board ALL-H3-CC H3";
  11. compatible = "libretech,all-h3-cc-h3", "allwinner,sun8i-h3";
  12. aliases {
  13. ethernet0 = &emac;
  14. serial0 = &uart0;
  15. };
  16. chosen {
  17. stdout-path = "serial0:115200n8";
  18. };
  19. leds {
  20. compatible = "gpio-leds";
  21. pwr_led {
  22. label = "librecomputer:green:pwr";
  23. gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
  24. default-state = "on";
  25. };
  26. status_led {
  27. label = "librecomputer:blue:status";
  28. gpios = <&pio 0 7 GPIO_ACTIVE_HIGH>; /* PA7 */
  29. };
  30. };
  31. gpio_keys {
  32. compatible = "gpio-keys";
  33. power {
  34. label = "power";
  35. linux,code = <KEY_POWER>;
  36. gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
  37. };
  38. };
  39. reg_vcc1v2: vcc1v2 {
  40. compatible = "regulator-fixed";
  41. regulator-name = "vcc1v2";
  42. regulator-min-microvolt = <3300000>;
  43. regulator-max-microvolt = <3300000>;
  44. regulator-always-on;
  45. regulator-boot-on;
  46. vin-supply = <&reg_vcc5v0>;
  47. gpio = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
  48. enable-active-high;
  49. };
  50. reg_vcc3v3: vcc3v3 {
  51. compatible = "regulator-fixed";
  52. regulator-name = "vcc3v3";
  53. regulator-min-microvolt = <3300000>;
  54. regulator-max-microvolt = <3300000>;
  55. vin-supply = <&reg_vcc5v0>;
  56. };
  57. /* This represents the board's 5V input */
  58. reg_vcc5v0: vcc5v0 {
  59. compatible = "regulator-fixed";
  60. regulator-name = "vcc5v0";
  61. regulator-min-microvolt = <5000000>;
  62. regulator-max-microvolt = <5000000>;
  63. };
  64. reg_vcc_dram: vcc-dram {
  65. compatible = "regulator-fixed";
  66. regulator-name = "vcc-dram";
  67. regulator-min-microvolt = <1500000>;
  68. regulator-max-microvolt = <1500000>;
  69. regulator-always-on;
  70. regulator-boot-on;
  71. vin-supply = <&reg_vcc5v0>;
  72. gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>; /* PL9 */
  73. enable-active-high;
  74. };
  75. reg_vcc_io: vcc-io {
  76. compatible = "regulator-fixed";
  77. regulator-name = "vcc-io";
  78. regulator-min-microvolt = <3300000>;
  79. regulator-max-microvolt = <3300000>;
  80. regulator-always-on;
  81. regulator-boot-on;
  82. vin-supply = <&reg_vcc3v3>;
  83. gpio = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL5 */
  84. };
  85. reg_vdd_cpux: vdd-cpux {
  86. compatible = "regulator-fixed";
  87. regulator-name = "vdd-cpux";
  88. regulator-min-microvolt = <3300000>;
  89. regulator-max-microvolt = <3300000>;
  90. regulator-always-on;
  91. regulator-boot-on;
  92. vin-supply = <&reg_vcc5v0>;
  93. gpio = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
  94. enable-active-high;
  95. };
  96. };
  97. &ehci1 {
  98. status = "okay";
  99. };
  100. &ehci2 {
  101. status = "okay";
  102. };
  103. &ehci3 {
  104. status = "okay";
  105. };
  106. &emac {
  107. phy-handle = <&int_mii_phy>;
  108. phy-mode = "mii";
  109. allwinner,leds-active-low;
  110. status = "okay";
  111. };
  112. &ir {
  113. pinctrl-names = "default";
  114. pinctrl-0 = <&ir_pins_a>;
  115. status = "okay";
  116. };
  117. &mmc0 {
  118. pinctrl-names = "default";
  119. pinctrl-0 = <&mmc0_pins_a>;
  120. vmmc-supply = <&reg_vcc_io>;
  121. bus-width = <4>;
  122. cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
  123. cd-inverted;
  124. status = "okay";
  125. };
  126. &ohci1 {
  127. status = "okay";
  128. };
  129. &ohci2 {
  130. status = "okay";
  131. };
  132. &ohci3 {
  133. status = "okay";
  134. };
  135. &uart0 {
  136. pinctrl-names = "default";
  137. pinctrl-0 = <&uart0_pins_a>;
  138. status = "okay";
  139. };
  140. &usbphy {
  141. /* VBUS on USB ports are always on */
  142. usb0_vbus-supply = <&reg_vcc5v0>;
  143. usb1_vbus-supply = <&reg_vcc5v0>;
  144. usb2_vbus-supply = <&reg_vcc5v0>;
  145. usb3_vbus-supply = <&reg_vcc5v0>;
  146. status = "okay";
  147. };