Skip to content

Commit

Permalink
boards: st: add mdio and phy nodes
Browse files Browse the repository at this point in the history
Add mdio and phy nodes for h5/h7 families.

Signed-off-by: Angelo Dureghello <[email protected]>
  • Loading branch information
spectrum70 committed Apr 2, 2024
1 parent b146a58 commit f53c632
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 19 deletions.
16 changes: 13 additions & 3 deletions boards/st/nucleo_h563zi/nucleo_h563zi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,24 @@

&mac {
status = "okay";
pinctrl-0 = <&eth_mdc_pc1
&eth_rxd0_pc4
pinctrl-0 = <&eth_rxd0_pc4
&eth_rxd1_pc5
&eth_ref_clk_pa1
&eth_mdio_pa2
&eth_crs_dv_pa7
&eth_tx_en_pg11
&eth_txd0_pg13
&eth_txd1_pb15>;
pinctrl-names = "default";
};

&mdio {
status = "okay";
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
pinctrl-names = "default";

ethernet-phy@0 {
compatible = "generic-phy";
reg = <0x00>;
status = "okay";
};
};
14 changes: 12 additions & 2 deletions boards/st/nucleo_h723zg/nucleo_h723zg.dts
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,7 @@
&mac {
status = "okay";
pinctrl-0 = <&eth_ref_clk_pa1
&eth_mdio_pa2
&eth_crs_dv_pa7
&eth_mdc_pc1
&eth_rxd0_pc4
&eth_rxd1_pc5
&eth_tx_en_pg11
Expand All @@ -171,6 +169,18 @@
pinctrl-names = "default";
};

&mdio {
status = "okay";
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
pinctrl-names = "default";

ethernet-phy@0 {
compatible = "adi,adin1100-phy";
reg = <0x00>;
status = "okay";
};
};

zephyr_udc0: &usbotg_hs {
pinctrl-0 = <&usb_otg_hs_dm_pa11 &usb_otg_hs_dp_pa12>;
pinctrl-names = "default";
Expand Down
16 changes: 13 additions & 3 deletions boards/st/nucleo_h743zi/nucleo_h743zi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -187,18 +187,28 @@ zephyr_udc0: &usbotg_fs {
*/
&mac {
status = "okay";
pinctrl-0 = <&eth_mdc_pc1
&eth_rxd0_pc4
pinctrl-0 = <&eth_rxd0_pc4
&eth_rxd1_pc5
&eth_ref_clk_pa1
&eth_mdio_pa2
&eth_crs_dv_pa7
&eth_tx_en_pg11
&eth_txd0_pg13
&eth_txd1_pb13>;
pinctrl-names = "default";
};

&mdio {
status = "okay";
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
pinctrl-names = "default";

ethernet-phy@0 {
compatible = "generic-phy";
reg = <0x00>;
status = "okay";
};
};

&spi1 {
status = "okay";
pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pb5>;
Expand Down
14 changes: 12 additions & 2 deletions boards/st/nucleo_h745zi_q/nucleo_h745zi_q_stm32h745xx_m7.dts
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@
&mac {
status = "okay";
pinctrl-0 = <&eth_ref_clk_pa1
&eth_mdio_pa2
&eth_crs_dv_pa7
&eth_mdc_pc1
&eth_rxd0_pc4
&eth_rxd1_pc5
&eth_tx_en_pg11
Expand All @@ -118,6 +116,18 @@
pinctrl-names = "default";
};

&mdio {
status = "okay";
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
pinctrl-names = "default";

ethernet-phy@0 {
compatible = "generic-phy";
reg = <0x00>;
status = "okay";
};
};

&rng {
status = "okay";
};
Expand Down
16 changes: 13 additions & 3 deletions boards/st/nucleo_h753zi/nucleo_h753zi.dts
Original file line number Diff line number Diff line change
Expand Up @@ -164,18 +164,28 @@ zephyr_udc0: &usbotg_fs {
*/
&mac {
status = "okay";
pinctrl-0 = <&eth_mdc_pc1
&eth_rxd0_pc4
pinctrl-0 = <&eth_rxd0_pc4
&eth_rxd1_pc5
&eth_ref_clk_pa1
&eth_mdio_pa2
&eth_crs_dv_pa7
&eth_tx_en_pg11
&eth_txd0_pg13
&eth_txd1_pb13>;
pinctrl-names = "default";
};

&mdio {
status = "okay";
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
pinctrl-names = "default";

ethernet-phy@0 {
compatible = "generic-phy";
reg = <0x00>;
status = "okay";
};
};

&spi1 {
status = "okay";
pinctrl-0 = <&spi1_sck_pa5 &spi1_miso_pa6 &spi1_mosi_pb5>;
Expand Down
16 changes: 13 additions & 3 deletions boards/st/stm32h573i_dk/stm32h573i_dk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -149,18 +149,28 @@

&mac {
status = "okay";
pinctrl-0 = <&eth_mdc_pc1
&eth_rxd0_pc4
pinctrl-0 = <&eth_rxd0_pc4
&eth_rxd1_pc5
&eth_ref_clk_pa1
&eth_mdio_pa2
&eth_crs_dv_pa7
&eth_tx_en_pg11
&eth_txd0_pg13
&eth_txd1_pg12>;
pinctrl-names = "default";
};

&mdio {
status = "okay";
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
pinctrl-names = "default";

ethernet-phy@0 {
compatible = "generic-phy";
reg = <0x00>;
status = "okay";
};
};

&flash0 {
partitions {
compatible = "fixed-partitions";
Expand Down
16 changes: 13 additions & 3 deletions boards/st/stm32h735g_disco/stm32h735g_disco.dts
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,9 @@
};

&mac {
pinctrl-0 = <&eth_mdc_pc1
&eth_rxd0_pc4
pinctrl-0 = <&eth_rxd0_pc4
&eth_rxd1_pc5
&eth_ref_clk_pa1
&eth_mdio_pa2
&eth_crs_dv_pa7
&eth_tx_en_pb11
&eth_txd0_pb12
Expand All @@ -143,6 +141,18 @@
status = "okay";
};

&mdio {
status = "okay";
pinctrl-0 = <&eth_mdio_pa2 &eth_mdc_pc1>;
pinctrl-names = "default";

ethernet-phy@0 {
compatible = "generic-phy";
reg = <0x00>;
status = "okay";
};
};

&sdmmc1 {
pinctrl-0 = <&sdmmc1_d0_pc8
&sdmmc1_d1_pc9
Expand Down

0 comments on commit f53c632

Please sign in to comment.