1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (C) 2017 Chen-Yu Tsai <wens@csie.org>
7 #include "sun8i-h3.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
13 model = "Libre Computer Board ALL-H3-CC H3";
14 compatible = "libretech,all-h3-cc-h3", "allwinner,sun8i-h3";
22 stdout-path = "serial0:115200n8";
26 compatible = "gpio-leds";
29 label = "librecomputer:green:pwr";
30 gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
35 label = "librecomputer:blue:status";
36 gpios = <&pio 0 7 GPIO_ACTIVE_HIGH>; /* PA7 */
41 compatible = "gpio-keys";
45 linux,code = <KEY_POWER>;
46 gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
51 compatible = "regulator-fixed";
52 regulator-name = "vcc1v2";
53 regulator-min-microvolt = <3300000>;
54 regulator-max-microvolt = <3300000>;
57 vin-supply = <®_vcc5v0>;
58 gpio = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
63 compatible = "regulator-fixed";
64 regulator-name = "vcc3v3";
65 regulator-min-microvolt = <3300000>;
66 regulator-max-microvolt = <3300000>;
67 vin-supply = <®_vcc5v0>;
70 /* This represents the board's 5V input */
72 compatible = "regulator-fixed";
73 regulator-name = "vcc5v0";
74 regulator-min-microvolt = <5000000>;
75 regulator-max-microvolt = <5000000>;
78 reg_vcc_dram: vcc-dram {
79 compatible = "regulator-fixed";
80 regulator-name = "vcc-dram";
81 regulator-min-microvolt = <1500000>;
82 regulator-max-microvolt = <1500000>;
85 vin-supply = <®_vcc5v0>;
86 gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>; /* PL9 */
91 compatible = "regulator-fixed";
92 regulator-name = "vcc-io";
93 regulator-min-microvolt = <3300000>;
94 regulator-max-microvolt = <3300000>;
97 vin-supply = <®_vcc3v3>;
98 gpio = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL5 */
101 reg_vdd_cpux: vdd-cpux {
102 compatible = "regulator-fixed";
103 regulator-name = "vdd-cpux";
104 regulator-min-microvolt = <3300000>;
105 regulator-max-microvolt = <3300000>;
108 vin-supply = <®_vcc5v0>;
109 gpio = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
127 phy-handle = <&int_mii_phy>;
129 allwinner,leds-active-low;
134 pinctrl-names = "default";
135 pinctrl-0 = <&ir_pins_a>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&mmc0_pins_a>;
142 vmmc-supply = <®_vcc_io>;
144 cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 */
162 pinctrl-names = "default";
163 pinctrl-0 = <&uart0_pins_a>;
168 /* VBUS on USB ports are always on */
169 usb0_vbus-supply = <®_vcc5v0>;
170 usb1_vbus-supply = <®_vcc5v0>;
171 usb2_vbus-supply = <®_vcc5v0>;
172 usb3_vbus-supply = <®_vcc5v0>;