1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (C) 2019 Clément Péron <peron.clem@gmail.com>
6 #include "sun50i-h6.dtsi"
7 #include "sun50i-h6-cpu-opp.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
12 model = "Beelink GS1";
13 compatible = "azw,beelink-gs1", "allwinner,sun50i-h6";
21 stdout-path = "serial0:115200n8";
25 compatible = "hdmi-connector";
27 ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
30 hdmi_con_in: endpoint {
31 remote-endpoint = <&hdmi_out_con>;
36 ext_osc32k: ext_osc32k_clk {
38 compatible = "fixed-clock";
39 clock-frequency = <32768>;
40 clock-output-names = "ext_osc32k";
44 compatible = "gpio-leds";
47 label = "beelink:white:power";
48 gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
54 /* board wide 5V supply directly from the DC jack */
55 compatible = "regulator-fixed";
56 regulator-name = "vcc-5v";
57 regulator-min-microvolt = <5000000>;
58 regulator-max-microvolt = <5000000>;
63 compatible = "simple-audio-card";
64 simple-audio-card,name = "sun50i-h6-spdif";
66 simple-audio-card,cpu {
70 simple-audio-card,codec {
71 sound-dai = <&spdif_out>;
75 spdif_out: spdif-out {
76 #sound-dai-cells = <0>;
77 compatible = "linux,spdif-dit";
82 cpu-supply = <®_dcdca>;
98 pinctrl-names = "default";
99 pinctrl-0 = <&ext_rgmii_pins>;
100 phy-mode = "rgmii-id";
101 phy-handle = <&ext_rgmii_phy>;
102 phy-supply = <®_aldo2>;
107 mali-supply = <®_dcdcc>;
116 hdmi_out_con: endpoint {
117 remote-endpoint = <&hdmi_con_in>;
122 ext_rgmii_phy: ethernet-phy@1 {
123 compatible = "ethernet-phy-ieee802.3-c22";
129 vmmc-supply = <®_cldo1>;
130 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
136 vmmc-supply = <®_cldo1>;
137 vqmmc-supply = <®_bldo2>;
149 vcc-pd-supply = <®_cldo1>;
150 vcc-pg-supply = <®_aldo1>;
157 compatible = "x-powers,axp805", "x-powers,axp806";
159 interrupt-parent = <&r_intc>;
160 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
161 interrupt-controller;
162 #interrupt-cells = <1>;
163 x-powers,self-working-mode;
164 vina-supply = <®_vcc5v>;
165 vinb-supply = <®_vcc5v>;
166 vinc-supply = <®_vcc5v>;
167 vind-supply = <®_vcc5v>;
168 vine-supply = <®_vcc5v>;
169 aldoin-supply = <®_vcc5v>;
170 bldoin-supply = <®_vcc5v>;
171 cldoin-supply = <®_vcc5v>;
176 regulator-min-microvolt = <3300000>;
177 regulator-max-microvolt = <3300000>;
178 regulator-name = "vcc-pl";
182 regulator-min-microvolt = <3300000>;
183 regulator-max-microvolt = <3300000>;
184 regulator-name = "vcc-ac200";
185 regulator-enable-ramp-delay = <100000>;
190 regulator-min-microvolt = <3300000>;
191 regulator-max-microvolt = <3300000>;
192 regulator-name = "vcc25-dram";
197 regulator-min-microvolt = <1800000>;
198 regulator-max-microvolt = <1800000>;
199 regulator-name = "vcc-bias-pll";
204 regulator-min-microvolt = <1800000>;
205 regulator-max-microvolt = <1800000>;
206 regulator-name = "vcc-efuse-pcie-hdmi-io";
211 regulator-min-microvolt = <1800000>;
212 regulator-max-microvolt = <1800000>;
213 regulator-name = "vcc-dcxoio";
222 regulator-min-microvolt = <3300000>;
223 regulator-max-microvolt = <3300000>;
224 regulator-name = "vcc-3v3";
228 regulator-min-microvolt = <3300000>;
229 regulator-max-microvolt = <3300000>;
230 regulator-name = "vcc-wifi-1";
234 regulator-min-microvolt = <3300000>;
235 regulator-max-microvolt = <3300000>;
236 regulator-name = "vcc-wifi-2";
241 regulator-min-microvolt = <810000>;
242 regulator-max-microvolt = <1160000>;
243 regulator-ramp-delay = <2500>;
244 regulator-name = "vdd-cpu";
248 regulator-enable-ramp-delay = <32000>;
249 regulator-min-microvolt = <810000>;
250 regulator-max-microvolt = <1080000>;
251 regulator-ramp-delay = <2500>;
252 regulator-name = "vdd-gpu";
257 regulator-min-microvolt = <960000>;
258 regulator-max-microvolt = <960000>;
259 regulator-name = "vdd-sys";
264 regulator-min-microvolt = <1200000>;
265 regulator-max-microvolt = <1200000>;
266 regulator-name = "vcc-dram";
277 linux,rc-map-name = "rc-beelink-gs1";
283 * PL0 and PL1 are used for PMIC I2C
284 * don't enable the pl-supply else
285 * it will fail at boot
287 * vcc-pl-supply = <®_aldo1>;
289 vcc-pm-supply = <®_aldo1>;
293 clocks = <&ext_osc32k>;
301 pinctrl-names = "default";
302 pinctrl-0 = <&uart0_ph_pins>;
312 usb0_vbus-supply = <®_vcc5v>;