Skip to content

Commit

Permalink
board: sensry: add mdio and phy
Browse files Browse the repository at this point in the history
add mdio and phy to the ganymed_bob_sy120 boards.

Signed-off-by: Sven Ginka <[email protected]>
  • Loading branch information
tswaehn committed Jan 30, 2025
1 parent 966d508 commit f56c149
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
9 changes: 9 additions & 0 deletions boards/sensry/ganymed_bob/ganymed_bob_sy120-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@
bias-pull-up;
};

/* MDIO */
/omit-if-no-ref/ mdio_io: mdio_io {
pinmux = <SY1XX_RGMII0_PAD_CFG3 SY1XX_PAD(0)>;
input-enable;
};

/omit-if-no-ref/ mdio_clk: mdio_clk {
pinmux = <SY1XX_RGMII0_PAD_CFG3 SY1XX_PAD(1)>;
};
};


Expand Down
19 changes: 19 additions & 0 deletions boards/sensry/ganymed_bob/ganymed_bob_sy120_gbm.dts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

/dts-v1/;

#include <zephyr/dt-bindings/gpio/gpio.h>

#include <sensry/ganymed-sy1xx.dtsi>
#include "ganymed_bob_sy120-pinctrl.dtsi"

Expand All @@ -16,3 +18,20 @@
};

};

&mdio0 {
status = "okay";

pinctrl-0 = <&mdio_clk &mdio_io>;
pinctrl-names = "default";

pyh0: phy@0 {
compatible = "microchip,vsc8541";
reg = <0x0>;
status = "okay";

reset-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;

microchip,interface-type = "rgmii";
};
};
19 changes: 19 additions & 0 deletions boards/sensry/ganymed_bob/ganymed_bob_sy120_gen1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

/dts-v1/;

#include <zephyr/dt-bindings/gpio/gpio.h>

#include <sensry/ganymed-sy1xx.dtsi>
#include "ganymed_bob_sy120-pinctrl.dtsi"

Expand All @@ -16,3 +18,20 @@
};

};

&mdio0 {
status = "okay";

pinctrl-0 = <&mdio_clk &mdio_io>;
pinctrl-names = "default";

pyh0: phy@0 {
compatible = "microchip,vsc8541";
reg = <0x0>;
status = "okay";

reset-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;

microchip,interface-type = "rgmii";
};
};

0 comments on commit f56c149

Please sign in to comment.