@@ -4,6 +4,9 @@
*
* Copyright (C) 2021 Renesas Electronics Corp.
*/
+ð_serdes {
+ status = "okay";
+};
&i2c4 {
eeprom@52 {
@@ -13,3 +16,54 @@ eeprom@52 {
pagesize = <8>;
};
};
+
+&rswitch {
+ status = "okay";
+
+ ethernet-ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ port@0 {
+ reg = <0>;
+ phys = <ð_serdes 0>;
+ phy-handle = <&u101>;
+ phy-mode = "sgmii";
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ u101: ethernet-phy@1 {
+ reg = <1>;
+ compatible = "ethernet-phy-ieee802.3-c45";
+ };
+ };
+ };
+ port@1 {
+ reg = <1>;
+ phys = <ð_serdes 1>;
+ phy-handle = <&u201>;
+ phy-mode = "sgmii";
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ u201: ethernet-phy@2 {
+ reg = <2>;
+ compatible = "ethernet-phy-ieee802.3-c45";
+ };
+ };
+ };
+ port@2 {
+ reg = <2>;
+ phys = <ð_serdes 2>;
+ phy-handle = <&u301>;
+ phy-mode = "sgmii";
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ u301: ethernet-phy@3 {
+ reg = <3>;
+ compatible = "ethernet-phy-ieee802.3-c45";
+ };
+ };
+ };
+ };
+};
Enable Ethernet Switch and SERDES for R-Car S4-8 (r8a779f0). Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> --- .../dts/renesas/r8a779f0-spider-ethernet.dtsi | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+)