blob: 54b0882bedf32aed0dcbaa4d7c5585ee835d5d18 [file] [log] [blame]
Clément Péron71a91772019-04-12 16:15:26 +02001// SPDX-License-Identifier: (GPL-2.0+ or MIT)
2/*
3 * Copyright (C) 2019 Clément Péron <peron.clem@gmail.com>
4 */
5
6/dts-v1/;
7
8#include "sun50i-h6.dtsi"
9
10#include <dt-bindings/gpio/gpio.h>
11
12/ {
13 model = "Beelink GS1";
14 compatible = "azw,beelink-gs1", "allwinner,sun50i-h6";
15
16 aliases {
17 serial0 = &uart0;
18 };
19
20 chosen {
21 stdout-path = "serial0:115200n8";
22 };
23
24 leds {
25 compatible = "gpio-leds";
26
27 power {
28 label = "beelink:white:power";
29 gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
30 default-state = "on";
31 };
32 };
33
34 reg_vcc5v: vcc5v {
35 /* board wide 5V supply directly from the DC jack */
36 compatible = "regulator-fixed";
37 regulator-name = "vcc-5v";
38 regulator-min-microvolt = <5000000>;
39 regulator-max-microvolt = <5000000>;
40 regulator-always-on;
41 };
42};
43
44&mmc0 {
45 vmmc-supply = <&reg_cldo1>;
46 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
47 bus-width = <4>;
48 status = "okay";
49};
50
51&mmc2 {
52 vmmc-supply = <&reg_cldo1>;
53 vqmmc-supply = <&reg_bldo2>;
54 non-removable;
55 cap-mmc-hw-reset;
56 bus-width = <8>;
57 status = "okay";
58};
59
60&r_i2c {
61 status = "okay";
62
63 axp805: pmic@36 {
64 compatible = "x-powers,axp805", "x-powers,axp806";
65 reg = <0x36>;
66 interrupt-parent = <&r_intc>;
67 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
68 interrupt-controller;
69 #interrupt-cells = <1>;
70 x-powers,self-working-mode;
71 vina-supply = <&reg_vcc5v>;
72 vinb-supply = <&reg_vcc5v>;
73 vinc-supply = <&reg_vcc5v>;
74 vind-supply = <&reg_vcc5v>;
75 vine-supply = <&reg_vcc5v>;
76 aldoin-supply = <&reg_vcc5v>;
77 bldoin-supply = <&reg_vcc5v>;
78 cldoin-supply = <&reg_vcc5v>;
79
80 regulators {
81 reg_aldo1: aldo1 {
82 regulator-always-on;
83 regulator-min-microvolt = <3300000>;
84 regulator-max-microvolt = <3300000>;
85 regulator-name = "vcc-pl";
86 };
87
88 reg_aldo2: aldo2 {
89 regulator-min-microvolt = <3300000>;
90 regulator-max-microvolt = <3300000>;
91 regulator-name = "vcc-ac200";
92 regulator-enable-ramp-delay = <100000>;
93 };
94
95 reg_aldo3: aldo3 {
96 regulator-always-on;
97 regulator-min-microvolt = <3300000>;
98 regulator-max-microvolt = <3300000>;
99 regulator-name = "vcc25-dram";
100 };
101
102 reg_bldo1: bldo1 {
103 regulator-always-on;
104 regulator-min-microvolt = <1800000>;
105 regulator-max-microvolt = <1800000>;
106 regulator-name = "vcc-bias-pll";
107 };
108
109 reg_bldo2: bldo2 {
110 regulator-always-on;
111 regulator-min-microvolt = <1800000>;
112 regulator-max-microvolt = <1800000>;
113 regulator-name = "vcc-efuse-pcie-hdmi-io";
114 };
115
116 reg_bldo3: bldo3 {
117 regulator-always-on;
118 regulator-min-microvolt = <1800000>;
119 regulator-max-microvolt = <1800000>;
120 regulator-name = "vcc-dcxoio";
121 };
122
123 bldo4 {
124 /* unused */
125 };
126
127 reg_cldo1: cldo1 {
128 regulator-always-on;
129 regulator-min-microvolt = <3300000>;
130 regulator-max-microvolt = <3300000>;
131 regulator-name = "vcc-3v3";
132 };
133
134 reg_cldo2: cldo2 {
135 regulator-min-microvolt = <3300000>;
136 regulator-max-microvolt = <3300000>;
137 regulator-name = "vcc-wifi-1";
138 };
139
140 reg_cldo3: cldo3 {
141 regulator-min-microvolt = <3300000>;
142 regulator-max-microvolt = <3300000>;
143 regulator-name = "vcc-wifi-2";
144 };
145
146 reg_dcdca: dcdca {
147 regulator-always-on;
148 regulator-min-microvolt = <810000>;
149 regulator-max-microvolt = <1080000>;
150 regulator-name = "vdd-cpu";
151 };
152
153 reg_dcdcc: dcdcc {
154 regulator-min-microvolt = <810000>;
155 regulator-max-microvolt = <1080000>;
156 regulator-name = "vdd-gpu";
157 };
158
159 reg_dcdcd: dcdcd {
160 regulator-always-on;
161 regulator-min-microvolt = <960000>;
162 regulator-max-microvolt = <960000>;
163 regulator-name = "vdd-sys";
164 };
165
166 reg_dcdce: dcdce {
167 regulator-always-on;
168 regulator-min-microvolt = <1200000>;
169 regulator-max-microvolt = <1200000>;
170 regulator-name = "vcc-dram";
171 };
172
173 sw {
174 /* unused */
175 };
176 };
177 };
178};
179
180&uart0 {
181 pinctrl-names = "default";
182 pinctrl-0 = <&uart0_ph_pins>;
183 status = "okay";
184};