1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 // Copyright (c) 2017 Icenowy Zheng <icenowy@aosc.io>
6 #include "sun50i-h6.dtsi"
7 #include "sun50i-h6-cpu-opp.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
12 model = "Pine H64 model A";
13 compatible = "pine64,pine-h64", "allwinner,sun50i-h6";
22 stdout-path = "serial0:115200n8";
25 ext_osc32k: ext_osc32k_clk {
27 compatible = "fixed-clock";
28 clock-frequency = <32768>;
29 clock-output-names = "ext_osc32k";
32 hdmi_connector: connector {
33 compatible = "hdmi-connector";
35 ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
38 hdmi_con_in: endpoint {
39 remote-endpoint = <&hdmi_out_con>;
45 compatible = "gpio-leds";
48 label = "pine-h64:green:heartbeat";
49 gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
53 label = "pine-h64:white:link";
54 gpios = <&r_pio 0 3 GPIO_ACTIVE_HIGH>; /* PL3 */
58 label = "pine-h64:blue:status";
59 gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
63 reg_gmac_3v3: gmac-3v3 {
64 compatible = "regulator-fixed";
65 regulator-name = "vcc-gmac-3v3";
66 regulator-min-microvolt = <3300000>;
67 regulator-max-microvolt = <3300000>;
68 startup-delay-us = <100000>;
69 gpio = <&pio 2 16 GPIO_ACTIVE_HIGH>;
74 compatible = "regulator-fixed";
75 regulator-name = "usb-vbus";
76 regulator-min-microvolt = <5000000>;
77 regulator-max-microvolt = <5000000>;
78 startup-delay-us = <100000>;
79 gpio = <&r_pio 0 5 GPIO_ACTIVE_HIGH>;
85 cpu-supply = <®_dcdca>;
101 pinctrl-names = "default";
102 pinctrl-0 = <&ext_rgmii_pins>;
103 phy-mode = "rgmii-id";
104 phy-handle = <&ext_rgmii_phy>;
105 phy-supply = <®_gmac_3v3>;
106 allwinner,rx-delay-ps = <200>;
107 allwinner,tx-delay-ps = <200>;
112 mali-supply = <®_dcdcc>;
121 hdmi_out_con: endpoint {
122 remote-endpoint = <&hdmi_con_in>;
127 ext_rgmii_phy: ethernet-phy@1 {
128 compatible = "ethernet-phy-ieee802.3-c22";
134 vmmc-supply = <®_cldo1>;
135 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
141 vmmc-supply = <®_cldo1>;
142 vqmmc-supply = <®_bldo2>;
158 vcc-pc-supply = <®_bldo2>;
159 vcc-pd-supply = <®_cldo1>;
160 vcc-pg-supply = <®_aldo1>;
167 compatible = "x-powers,axp805", "x-powers,axp806";
169 interrupt-parent = <&r_intc>;
170 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
171 interrupt-controller;
172 #interrupt-cells = <1>;
173 x-powers,self-working-mode;
178 regulator-min-microvolt = <3300000>;
179 regulator-max-microvolt = <3300000>;
180 regulator-name = "vcc-pl";
184 regulator-min-microvolt = <3300000>;
185 regulator-max-microvolt = <3300000>;
186 regulator-name = "vcc-ac200";
187 regulator-enable-ramp-delay = <100000>;
191 /* This regulator is connected with CLDO1 */
193 regulator-min-microvolt = <3300000>;
194 regulator-max-microvolt = <3300000>;
195 regulator-name = "vcc-3v3-1";
200 regulator-min-microvolt = <1800000>;
201 regulator-max-microvolt = <1800000>;
202 regulator-name = "vcc-bias-pll";
207 regulator-min-microvolt = <1800000>;
208 regulator-max-microvolt = <1800000>;
209 regulator-name = "vcc-efuse-pcie-hdmi-io";
214 regulator-min-microvolt = <1800000>;
215 regulator-max-microvolt = <1800000>;
216 regulator-name = "vcc-dcxoio";
224 /* This regulator is connected with ALDO3 */
226 regulator-min-microvolt = <3300000>;
227 regulator-max-microvolt = <3300000>;
228 regulator-name = "vcc-3v3-2";
232 regulator-min-microvolt = <3300000>;
233 regulator-max-microvolt = <3300000>;
234 regulator-name = "vcc-wifi-1";
238 regulator-min-microvolt = <3300000>;
239 regulator-max-microvolt = <3300000>;
240 regulator-name = "vcc-wifi-2";
245 regulator-min-microvolt = <810000>;
246 regulator-max-microvolt = <1160000>;
247 regulator-ramp-delay = <2500>;
248 regulator-name = "vdd-cpu";
252 regulator-enable-ramp-delay = <32000>;
253 regulator-min-microvolt = <810000>;
254 regulator-max-microvolt = <1080000>;
255 regulator-ramp-delay = <2500>;
256 regulator-name = "vdd-gpu";
261 regulator-min-microvolt = <960000>;
262 regulator-max-microvolt = <960000>;
263 regulator-name = "vdd-sys";
268 regulator-min-microvolt = <1200000>;
269 regulator-max-microvolt = <1200000>;
270 regulator-name = "vcc-dram";
280 compatible = "nxp,pcf8563";
282 interrupt-parent = <&r_intc>;
283 interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
293 vcc-pm-supply = <®_aldo1>;
297 clocks = <&ext_osc32k>;
301 * The CS pin is shared with the MMC2 CMD pin, so we cannot have the SPI
302 * flash and eMMC at the same time, as one of them would fail probing.
303 * Disable SPI0 in here, to prefer the more useful eMMC. U-Boot can
304 * fix this up in no eMMC is connected.
307 pinctrl-0 = <&spi0_pins>, <&spi0_cs_pin>;
308 pinctrl-names = "default";
312 compatible = "winbond,w25q128", "jedec,spi-nor";
314 spi-max-frequency = <4000000>;
319 pinctrl-names = "default";
320 pinctrl-0 = <&uart0_ph_pins>;
330 usb0_vbus-supply = <®_usb_vbus>;
331 usb3_vbus-supply = <®_usb_vbus>;