[PATCH 2/2] arm64: dts: allwinner: tanix: Enable Ethernet
Jernej Skrabec
jernej.skrabec at gmail.com
Sun Nov 15 09:11:48 PST 2026
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 at gmail.com>
---
.../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 = <®_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 = <®_vdd_cpu_gpu>;
status = "okay";
@@ -120,6 +133,29 @@ hdmi_out_con: endpoint {
};
};
+&i2c3 {
+ status = "okay";
+};
+
+&mdio {
+ ethernet-phy-package at 1 {
+ compatible = "x-powers,ac200-ephy-package";
+ reg = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ vcc-supply = <®_vcc3v3>;
+ nvmem-cells = <&ephy_calibration>;
+ nvmem-cell-names = "configuration";
+ x-powers,ac200 = <&ac200>;
+ x-powers,xmii-rx-clock-inverted;
+
+ ac200_ephy: ethernet-phy at 1 {
+ compatible = "ethernet-phy-id0044.1400";
+ reg = <1>;
+ };
+ };
+};
+
&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
@@ -163,6 +199,10 @@ &pio {
vcc-pg-supply = <®_vcc1v8>;
};
+&pwm {
+ status = "okay";
+};
+
&r_ir {
status = "okay";
};
--
2.43.0
More information about the linux-arm-kernel
mailing list