[PATCH 2/2] arm64: dts: allwinner: tanix: Enable Ethernet

From: Jernej Skrabec

Date: Sun Nov 15 2026 - 12:12:12 EST


The Tanix TX6 and TX6 mini have a 100 Mbit Ethernet port connected to
the PHY in the AC200 companion chip that is co-packaged with the H6.

Enable the PWM controller and the pwm-clock it drives as the AC200
reference clock, enable the I2C bus to the AC200, and describe the
AC200 Ethernet PHY package on the EMAC MDIO bus, so that the EMAC can
use it over RMII.

Signed-off-by: Jernej Skrabec <jernej.skrabec@xxxxxxxxx>
---
.../boot/dts/allwinner/sun50i-h6-tanix.dtsi | 40 +++++++++++++++++++
1 file changed, 40 insertions(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi
index f08077175549..d101001b6f70 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-tanix.dtsi
@@ -11,6 +11,7 @@

/ {
aliases {
+ ethernet0 = &emac;
serial0 = &uart0;
};

@@ -85,6 +86,10 @@ wifi_pwrseq: wifi-pwrseq {
};
};

+&ac200_clk {
+ status = "okay";
+};
+
&cpu0 {
cpu-supply = <&reg_vdd_cpu_gpu>;
};
@@ -105,6 +110,14 @@ &ehci3 {
status = "okay";
};

+&emac {
+ pinctrl-names = "default";
+ pinctrl-0 = <&rmii_pins>;
+ phy-mode = "rmii";
+ phy-handle = <&ac200_ephy>;
+ status = "okay";
+};
+
&gpu {
mali-supply = <&reg_vdd_cpu_gpu>;
status = "okay";
@@ -120,6 +133,29 @@ hdmi_out_con: endpoint {
};
};

+&i2c3 {
+ status = "okay";
+};
+
+&mdio {
+ ethernet-phy-package@1 {
+ compatible = "x-powers,ac200-ephy-package";
+ reg = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ vcc-supply = <&reg_vcc3v3>;
+ nvmem-cells = <&ephy_calibration>;
+ nvmem-cell-names = "configuration";
+ x-powers,ac200 = <&ac200>;
+ x-powers,xmii-rx-clock-inverted;
+
+ ac200_ephy: ethernet-phy@1 {
+ compatible = "ethernet-phy-id0044.1400";
+ reg = <1>;
+ };
+ };
+};
+
&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
@@ -163,6 +199,10 @@ &pio {
vcc-pg-supply = <&reg_vcc1v8>;
};

+&pwm {
+ status = "okay";
+};
+
&r_ir {
status = "okay";
};
--
2.43.0