xref: /linux/arch/arm64/boot/dts/allwinner/sun50i-h618-orangepi-zero3.dts (revision ec71f661a572a770d7c861cd52a50cbbb0e1a8d1)
1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (C) 2023 Arm Ltd.
4 */
5
6/dts-v1/;
7
8#include "sun50i-h616-orangepi-zero.dtsi"
9#include "sun50i-h616-cpu-opp.dtsi"
10
11/ {
12	model = "OrangePi Zero3";
13	compatible = "xunlong,orangepi-zero3", "allwinner,sun50i-h618";
14};
15
16&cpu0 {
17	cpu-supply = <&reg_dcdc2>;
18};
19
20&emac0 {
21	allwinner,tx-delay-ps = <700>;
22	phy-mode = "rgmii-rxid";
23	phy-supply = <&reg_dldo1>;
24};
25
26&ext_rgmii_phy {
27	motorcomm,clk-out-frequency-hz = <125000000>;
28};
29
30&gpu {
31	mali-supply = <&reg_dcdc1>;
32};
33
34&mmc0 {
35	/*
36	 * The schematic shows the card detect pin wired up to PF6, via an
37	 * inverter, but it just doesn't work.
38	 */
39	broken-cd;
40	vmmc-supply = <&reg_dldo1>;
41};
42
43&r_i2c {
44	status = "okay";
45
46	axp313: pmic@36 {
47		compatible = "x-powers,axp313a";
48		reg = <0x36>;
49		#interrupt-cells = <1>;
50		interrupt-controller;
51		interrupt-parent = <&pio>;
52		interrupts = <2 9 IRQ_TYPE_LEVEL_LOW>;	/* PC9 */
53
54		vin1-supply = <&reg_vcc5v>;
55		vin2-supply = <&reg_vcc5v>;
56		vin3-supply = <&reg_vcc5v>;
57
58		regulators {
59			/* Supplies VCC-PLL, so needs to be always on. */
60			reg_aldo1: aldo1 {
61				regulator-always-on;
62				regulator-min-microvolt = <1800000>;
63				regulator-max-microvolt = <1800000>;
64				regulator-name = "vcc1v8";
65			};
66
67			/* Supplies VCC-IO, so needs to be always on. */
68			reg_dldo1: dldo1 {
69				regulator-always-on;
70				regulator-min-microvolt = <3300000>;
71				regulator-max-microvolt = <3300000>;
72				regulator-name = "vcc3v3";
73			};
74
75			reg_dcdc1: dcdc1 {
76				regulator-always-on;
77				regulator-min-microvolt = <810000>;
78				regulator-max-microvolt = <990000>;
79				regulator-name = "vdd-gpu-sys";
80			};
81
82			reg_dcdc2: dcdc2 {
83				regulator-always-on;
84				regulator-min-microvolt = <810000>;
85				regulator-max-microvolt = <1100000>;
86				regulator-name = "vdd-cpu";
87			};
88
89			reg_dcdc3: dcdc3 {
90				regulator-always-on;
91				regulator-min-microvolt = <1100000>;
92				regulator-max-microvolt = <1100000>;
93				regulator-name = "vdd-dram";
94			};
95		};
96	};
97};
98
99&pio {
100	vcc-pc-supply = <&reg_dldo1>;
101	vcc-pf-supply = <&reg_dldo1>;
102	vcc-pg-supply = <&reg_aldo1>;
103	vcc-ph-supply = <&reg_dldo1>;
104	vcc-pi-supply = <&reg_dldo1>;
105};
106