Skip to content

Commit ba1abac

Browse files
committed
riscv: dts: sophgo: Add mdio multiplexer device for cv18xx
Add DT device node of mdio multiplexer device for cv18xx SoC. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Inochi Amaoto <[email protected]> Signed-off-by: Chen Wang <[email protected]> Signed-off-by: Chen Wang <[email protected]>
1 parent 109b3d7 commit ba1abac

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

arch/riscv/boot/dts/sophgo/cv180x.dtsi

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,33 @@
3131
#reset-cells = <1>;
3232
};
3333

34+
mdio: mdio@3009800 {
35+
compatible = "mdio-mux-mmioreg", "mdio-mux";
36+
reg = <0x3009800 0x4>;
37+
#address-cells = <1>;
38+
#size-cells = <0>;
39+
mdio-parent-bus = <&gmac0_mdio>;
40+
mux-mask = <0x80>;
41+
status = "disabled";
42+
43+
internal_mdio: mdio@0 {
44+
#address-cells = <1>;
45+
#size-cells = <0>;
46+
reg = <0>;
47+
48+
internal_ephy: phy@0 {
49+
compatible = "ethernet-phy-ieee802.3-c22";
50+
reg = <1>;
51+
};
52+
};
53+
54+
external_mdio: mdio@80 {
55+
#address-cells = <1>;
56+
#size-cells = <0>;
57+
reg = <0x80>;
58+
};
59+
};
60+
3461
gpio0: gpio@3020000 {
3562
compatible = "snps,dw-apb-gpio";
3663
reg = <0x3020000 0x1000>;
@@ -196,6 +223,8 @@
196223
clock-names = "stmmaceth", "ptp_ref";
197224
interrupts = <SOC_PERIPHERAL_IRQ(15) IRQ_TYPE_LEVEL_HIGH>;
198225
interrupt-names = "macirq";
226+
phy-handle = <&internal_ephy>;
227+
phy-mode = "internal";
199228
resets = <&rst RST_ETH0>;
200229
reset-names = "stmmaceth";
201230
rx-fifo-depth = <8192>;

0 commit comments

Comments
 (0)