Skip to content

Commit f1b3ddb

Browse files
Andre-ARMjernejsk
authored andcommitted
arm64: dts: allwinner: h616: Add OrangePi Zero 3 board support
The OrangePi Zero 3 is a development board based on the Allwinner H618 SoC, which seems to be just an H616 with more L2 cache. The board itself is a slightly updated version of the Orange Pi Zero 2. It features: - Four ARM Cortex-A53 cores, Mali-G31 MP2 GPU - 1/1.5/2/4 GiB LPDDR4 DRAM SKUs (only up to 1GB on the Zero2) - AXP313a PMIC (more capable AXP305 on the Zero2) - Raspberry-Pi-1 compatible GPIO header - extra 13 pin expansion header, exposing pins for 2x USB 2.0 ports - 1 USB 2.0 host port - 1 USB 2.0 type C port (power supply + OTG) - MicroSD slot - on-board 16MiB bootable SPI NOR flash (only 2MB on the Zero2) - 1Gbps Ethernet port (via Motorcomm YT8531 PHY) (RTL8211 on the Zero2) - micro-HDMI port - (yet) unsupported Allwinner WiFi/BT chip Add the devicetree file describing the currently supported features, namely LEDs, SD card, PMIC, SPI flash, USB. Ethernet seems unstable at the moment, though the basic functionality works. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Link: https://lore.kernel.org/r/20230804170856.1237202-4-andre.przywara@arm.com Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
1 parent 25726fd commit f1b3ddb

2 files changed

Lines changed: 95 additions & 0 deletions

File tree

arch/arm64/boot/dts/allwinner/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6.dtb
4040
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-tanix-tx6-mini.dtb
4141
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-orangepi-zero2.dtb
4242
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h616-x96-mate.dtb
43+
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h618-orangepi-zero3.dtb
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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+
10+
/ {
11+
model = "OrangePi Zero3";
12+
compatible = "xunlong,orangepi-zero3", "allwinner,sun50i-h618";
13+
};
14+
15+
&emac0 {
16+
phy-supply = <&reg_dldo1>;
17+
};
18+
19+
&ext_rgmii_phy {
20+
motorcomm,clk-out-frequency-hz = <125000000>;
21+
};
22+
23+
&mmc0 {
24+
/*
25+
* The schematic shows the card detect pin wired up to PF6, via an
26+
* inverter, but it just doesn't work.
27+
*/
28+
broken-cd;
29+
vmmc-supply = <&reg_dldo1>;
30+
};
31+
32+
&r_i2c {
33+
status = "okay";
34+
35+
axp313: pmic@36 {
36+
compatible = "x-powers,axp313a";
37+
reg = <0x36>;
38+
#interrupt-cells = <1>;
39+
interrupt-controller;
40+
interrupt-parent = <&pio>;
41+
interrupts = <2 9 IRQ_TYPE_LEVEL_LOW>; /* PC9 */
42+
43+
vin1-supply = <&reg_vcc5v>;
44+
vin2-supply = <&reg_vcc5v>;
45+
vin3-supply = <&reg_vcc5v>;
46+
47+
regulators {
48+
/* Supplies VCC-PLL, so needs to be always on. */
49+
reg_aldo1: aldo1 {
50+
regulator-always-on;
51+
regulator-min-microvolt = <1800000>;
52+
regulator-max-microvolt = <1800000>;
53+
regulator-name = "vcc1v8";
54+
};
55+
56+
/* Supplies VCC-IO, so needs to be always on. */
57+
reg_dldo1: dldo1 {
58+
regulator-always-on;
59+
regulator-min-microvolt = <3300000>;
60+
regulator-max-microvolt = <3300000>;
61+
regulator-name = "vcc3v3";
62+
};
63+
64+
reg_dcdc1: dcdc1 {
65+
regulator-always-on;
66+
regulator-min-microvolt = <810000>;
67+
regulator-max-microvolt = <990000>;
68+
regulator-name = "vdd-gpu-sys";
69+
};
70+
71+
reg_dcdc2: dcdc2 {
72+
regulator-always-on;
73+
regulator-min-microvolt = <810000>;
74+
regulator-max-microvolt = <1100000>;
75+
regulator-name = "vdd-cpu";
76+
};
77+
78+
reg_dcdc3: dcdc3 {
79+
regulator-always-on;
80+
regulator-min-microvolt = <1100000>;
81+
regulator-max-microvolt = <1100000>;
82+
regulator-name = "vdd-dram";
83+
};
84+
};
85+
};
86+
};
87+
88+
&pio {
89+
vcc-pc-supply = <&reg_dldo1>;
90+
vcc-pf-supply = <&reg_dldo1>;
91+
vcc-pg-supply = <&reg_aldo1>;
92+
vcc-ph-supply = <&reg_dldo1>;
93+
vcc-pi-supply = <&reg_dldo1>;
94+
};

0 commit comments

Comments
 (0)