Skip to content

Commit 4d2e892

Browse files
tswaehnkartben
authored andcommitted
board: sensry: add mdio and phy
add mdio and phy to the ganymed_bob_sy120 boards. Signed-off-by: Sven Ginka <[email protected]>
1 parent 65780da commit 4d2e892

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

boards/sensry/ganymed_bob/ganymed_bob_sy120-pinctrl.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@
5555
bias-pull-up;
5656
};
5757

58+
/* MDIO */
59+
/omit-if-no-ref/ mdio_io: mdio_io {
60+
pinmux = <SY1XX_RGMII0_PAD_CFG3 SY1XX_PAD(0)>;
61+
input-enable;
62+
};
63+
64+
/omit-if-no-ref/ mdio_clk: mdio_clk {
65+
pinmux = <SY1XX_RGMII0_PAD_CFG3 SY1XX_PAD(1)>;
66+
};
5867
};
5968

6069

boards/sensry/ganymed_bob/ganymed_bob_sy120_gbm.dts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
/dts-v1/;
55

6+
#include <zephyr/dt-bindings/gpio/gpio.h>
7+
68
#include <sensry/ganymed-sy1xx.dtsi>
79
#include "ganymed_bob_sy120-pinctrl.dtsi"
810

@@ -16,3 +18,20 @@
1618
};
1719

1820
};
21+
22+
&mdio0 {
23+
status = "okay";
24+
25+
pinctrl-0 = <&mdio_clk &mdio_io>;
26+
pinctrl-names = "default";
27+
28+
pyh0: phy@0 {
29+
compatible = "microchip,vsc8541";
30+
reg = <0x0>;
31+
status = "okay";
32+
33+
reset-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
34+
35+
microchip,interface-type = "rgmii";
36+
};
37+
};

boards/sensry/ganymed_bob/ganymed_bob_sy120_gen1.dts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
/dts-v1/;
55

6+
#include <zephyr/dt-bindings/gpio/gpio.h>
7+
68
#include <sensry/ganymed-sy1xx.dtsi>
79
#include "ganymed_bob_sy120-pinctrl.dtsi"
810

@@ -16,3 +18,20 @@
1618
};
1719

1820
};
21+
22+
&mdio0 {
23+
status = "okay";
24+
25+
pinctrl-0 = <&mdio_clk &mdio_io>;
26+
pinctrl-names = "default";
27+
28+
pyh0: phy@0 {
29+
compatible = "microchip,vsc8541";
30+
reg = <0x0>;
31+
status = "okay";
32+
33+
reset-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
34+
35+
microchip,interface-type = "rgmii";
36+
};
37+
};

0 commit comments

Comments
 (0)