[Letux-kernel] [PATCH 19/20] MIPS: DTS: ingenic/mipsbook_400: Hook on the Ethernet
Lubomir Rintel
lkundrak at v3.sk
Tue Nov 17 21:58:12 CET 2020
Add a PHY node, use the MAC function on appropriate pins and associate
the Ethernet IP block with them.
Signed-off-by: Lubomir Rintel <lkundrak at v3.sk>
---
arch/mips/boot/dts/ingenic/mipsbook_400.dts | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/arch/mips/boot/dts/ingenic/mipsbook_400.dts b/arch/mips/boot/dts/ingenic/mipsbook_400.dts
index d8e018aa77102..6c7f6c8582313 100644
--- a/arch/mips/boot/dts/ingenic/mipsbook_400.dts
+++ b/arch/mips/boot/dts/ingenic/mipsbook_400.dts
@@ -471,6 +471,11 @@ pins_usb_clk: usb {
pins = "PA29";
bias-disable;
};
+
+ pins_mac: pins_mac {
+ function = "mac";
+ groups = "mac";
+ };
};
&i2c {
@@ -502,6 +507,22 @@ &uhc {
pinctrl-0 = <&pins_usb_clk>;
};
+ðernet {
+ phy-handle = <ðphy>;
+ phy-mode = "mii";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pins_mac>;
+};
+
+&mdio {
+ ethphy: ethernet-phy at 16 {
+ device_type = "ethernet-phy";
+ compatible = "realtek,rtl8201cl", "ethernet-phy-ieee802.3-c22";
+ reg = <16>;
+ };
+};
+
/*
* TODO:
* add LCD
--
2.28.0
More information about the Letux-kernel
mailing list