add emac support

This commit is contained in:
Qubot 2024-03-13 10:19:46 +08:00
parent 52f5be1bc5
commit c99effaa0f

View File

@ -61,6 +61,22 @@
regulator-max-microvolt = <5000000>;
regulator-always-on;
};
ac200_pwm_clk: ac200_clk {
compatible = "pwm-clock";
#clock-cells = <0>;
// pwm5 period_ns = 500 > 334 for select 24M clock.
pwms = <&pwm 5 500 0>;
clock-frequency = <2000000>;
status = "okay";
};
};
&pwm5 {
// clk_bypass_output = 1 for Clock direct output without frequency division
// so pwm5 output is 24MHz for AC200 & AC300 clock
clk_bypass_output = <0x1>;
status = "okay";
};
&de {
@ -251,7 +267,23 @@
};
&i2c3 {
status = "disabled";
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c3_pa_pins>;
ac200_x: mfd@10 {
compatible = "x-powers,ac200";
reg = <0x10>;
clocks = <&ac200_pwm_clk>;
// ephy id
nvmem-cells = <&ephy_calibration>;
nvmem-cell-names = "calibration";
ac200_ephy: phy {
compatible = "x-powers,ac200-ephy";
status = "okay";
};
};
};
&i2c4 {