Re: [PATCH 1/2] arm64: dts: allwinner: sun50i-h6: Add AC200 companion chip

From: Jun Yan

Date: Mon Nov 16 2026 - 09:23:56 EST


Hi Jernej,

> Every H6 package contains an X-Powers AC200 die next to the SoC. It is
> controlled over I2C3 (PB17/PB18), takes its 24 MHz reference clock from
> PWM1 (PB19), and its Fast Ethernet PHY connects to the EMAC through the
> RMII pins on port A.
>
> Describe these parts in the SoC dtsi:
> - the I2C3 controller with the AC200 at address 0x10 as its child,
> - a pwm-clock that runs PWM1 in bypass mode at 24 MHz as the AC200
> input clock,
> - the I2C3, PWM1 and RMII pin groups,
> - the EPHY calibration value in the SID.
>
> Everything stays disabled. Boards that use the AC200 enable the
> pwm-clock, the PWM and I2C3 controllers and describe the PHY package on
> their MDIO bus.
>
> Signed-off-by: Jernej Skrabec <jernej.skrabec@xxxxxxxxx>
> ---
> arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 53 ++++++++++++++++++++
> 1 file changed, 53 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
> index 48c771223af4..5e48b35d13de 100644
> --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
> @@ -17,6 +17,16 @@ / {
> #address-cells = <1>;
> #size-cells = <1>;
>
> + ac200_clk: ac200-clk {
> + compatible = "pwm-clock";
> + #clock-cells = <0>;
> + clock-frequency = <24000000>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&pwm1_pin>;
> + pwms = <&pwm 1 42 0>;
> + status = "disabled";
> + };
> +
> cpus {
> #address-cells = <1>;
> #size-cells = <0>;
> @@ -314,6 +324,10 @@ ths_calibration: thermal-sensor-calibration@14 {
> cpu_speed_grade: cpu-speed-grade@1c {
> reg = <0x1c 0x4>;
> };
> +
> + ephy_calibration: ephy-calibration@2c {
> + reg = <0x2c 0x1>;
> + };
> };
>
> timer@3009000 {
> @@ -388,6 +402,11 @@ i2c2_pins: i2c2-pins {
> function = "i2c2";
> };
>
> + i2c3_pins: i2c3-pins {
> + pins = "PB17", "PB18";
> + function = "i2c3";
> + };
> +
> mmc0_pins: mmc0-pins {
> pins = "PF0", "PF1", "PF2", "PF3",
> "PF4", "PF5";
> @@ -414,6 +433,19 @@ mmc2_pins: mmc2-pins {
> bias-pull-up;
> };
>
> + pwm1_pin: pwm1-pin {
> + pins = "PB19";
> + function = "pwm1";
> + };
> +
> + /omit-if-no-ref/
> + rmii_pins: rmii-pins {
> + pins = "PA0", "PA1", "PA2", "PA3", "PA4",
> + "PA5", "PA6", "PA7", "PA8", "PA9";
> + function = "emac";
> + drive-strength = <40>;
> + };
> +
> /omit-if-no-ref/
> spi0_pins: spi0-pins {
> pins = "PC0", "PC2", "PC3";
> @@ -626,6 +658,27 @@ i2c2: i2c@5002800 {
> #size-cells = <0>;
> };
>
> + i2c3: i2c@5002c00 {
> + compatible = "allwinner,sun50i-h6-i2c",
> + "allwinner,sun6i-a31-i2c";
> + reg = <0x05002c00 0x400>;
> + interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
> + clocks = <&ccu CLK_BUS_I2C3>;
> + resets = <&ccu RST_BUS_I2C3>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&i2c3_pins>;
> + status = "disabled";
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + /* AC200 is co-packaged with the H6 die. */
> + ac200: mixed-signal@10 {
> + compatible = "x-powers,ac200";
> + reg = <0x10>;
> + clocks = <&ac200_clk>;
> + };
> + };
> +
> spi0: spi@5010000 {
> compatible = "allwinner,sun50i-h6-spi",
> "allwinner,sun8i-h3-spi";
> --
> 2.43.0
>

Tested-by: Jun Yan <jerrysteve1101@xxxxxxxxx>

Tested on a TaiqiCat (TQC) A01 with similar board changes on top: the new
I2C3, PWM1 clock, RMII pins and SID calibration cell all work there as
well.

Thanks,
Jun