From 1a3d5abd342edf4a362d5b2f4fabb6719df936fe Mon Sep 17 00:00:00 2001 From: Massimo Pennazio Date: Tue, 25 Mar 2025 17:24:27 +0100 Subject: [PATCH 1/4] Disable eth phys, wlan and change from X6 to X4 drive for eMMC signals in high-speed mode --- .../portenta-x9/arduino_portenta-x9.dts | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts b/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts index a3fb208..3413f52 100644 --- a/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts +++ b/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts @@ -190,7 +190,7 @@ phy-mode = "rgmii-id"; phy-handle = <ðphy2>; fsl,magic-packet; - status = "okay"; + status = "disabled"; phy-reset-gpios = <&gpio3 27 GPIO_ACTIVE_LOW>; phy-reset-duration = <10>; /* [ms] */ phy-reset-post-delay = <80>; /* [ms] */ @@ -216,7 +216,7 @@ pinctrl-0 = <&pinctrl_eqos>; phy-mode = "rgmii-id"; phy-handle = <ðphy1>; - status = "okay"; + status = "disabled"; mdio { compatible = "snps,dwmac-mdio"; @@ -491,7 +491,7 @@ non-removable; wakeup-source; fsl,sdio-async-interrupt-enabled; - status = "okay"; + status = "disabled"; wifi_wake_host { compatible = "nxp,wifi-wake-host"; @@ -695,17 +695,17 @@ /* need to config the SION for data and cmd pad, refer to ERR052021 */ pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp { fsl,pins = < - MX93_PAD_SD1_CLK__USDHC1_CLK 0x15fe - MX93_PAD_SD1_CMD__USDHC1_CMD 0x400013fe - MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x400013fe - MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x400013fe - MX93_PAD_SD1_DATA2__USDHC1_DATA2 0x400013fe - MX93_PAD_SD1_DATA3__USDHC1_DATA3 0x400013fe - MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x400013fe - MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x400013fe - MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x400013fe - MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x400013fe - MX93_PAD_SD1_STROBE__USDHC1_STROBE 0x15fe + MX93_PAD_SD1_CLK__USDHC1_CLK 0x15ce + MX93_PAD_SD1_CMD__USDHC1_CMD 0x400013ce + MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x400013ce + MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x400013ce + MX93_PAD_SD1_DATA2__USDHC1_DATA2 0x400013ce + MX93_PAD_SD1_DATA3__USDHC1_DATA3 0x400013ce + MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x400013ce + MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x400013ce + MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x400013ce + MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x400013ce + MX93_PAD_SD1_STROBE__USDHC1_STROBE 0x15ce >; }; From 34f13faec539e8b4d2ab53f11a47b73722fae704 Mon Sep 17 00:00:00 2001 From: Massimo Pennazio Date: Tue, 25 Mar 2025 17:55:02 +0100 Subject: [PATCH 2/4] Re-enable phys and wlan module --- .../arduino-device-tree/portenta-x9/arduino_portenta-x9.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts b/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts index 3413f52..74c0d9b 100644 --- a/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts +++ b/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts @@ -190,7 +190,7 @@ phy-mode = "rgmii-id"; phy-handle = <ðphy2>; fsl,magic-packet; - status = "disabled"; + status = "okay"; phy-reset-gpios = <&gpio3 27 GPIO_ACTIVE_LOW>; phy-reset-duration = <10>; /* [ms] */ phy-reset-post-delay = <80>; /* [ms] */ @@ -216,7 +216,7 @@ pinctrl-0 = <&pinctrl_eqos>; phy-mode = "rgmii-id"; phy-handle = <ðphy1>; - status = "disabled"; + status = "okay"; mdio { compatible = "snps,dwmac-mdio"; @@ -491,7 +491,7 @@ non-removable; wakeup-source; fsl,sdio-async-interrupt-enabled; - status = "disabled"; + status = "okay"; wifi_wake_host { compatible = "nxp,wifi-wake-host"; From 5f26fc52a285e2917b0e83c26929cbd020606fd9 Mon Sep 17 00:00:00 2001 From: Massimo Pennazio Date: Wed, 26 Mar 2025 10:22:36 +0100 Subject: [PATCH 3/4] Disabling eth phy --- .../arduino-device-tree/portenta-x9/arduino_portenta-x9.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts b/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts index 74c0d9b..51e6143 100644 --- a/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts +++ b/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts @@ -190,7 +190,7 @@ phy-mode = "rgmii-id"; phy-handle = <ðphy2>; fsl,magic-packet; - status = "okay"; + status = "disabled"; phy-reset-gpios = <&gpio3 27 GPIO_ACTIVE_LOW>; phy-reset-duration = <10>; /* [ms] */ phy-reset-post-delay = <80>; /* [ms] */ @@ -216,7 +216,7 @@ pinctrl-0 = <&pinctrl_eqos>; phy-mode = "rgmii-id"; phy-handle = <ðphy1>; - status = "okay"; + status = "disabled"; mdio { compatible = "snps,dwmac-mdio"; From f5660b98fb629c8af31bbdab34cbd3ba6f74098e Mon Sep 17 00:00:00 2001 From: Massimo Pennazio Date: Wed, 26 Mar 2025 11:18:30 +0100 Subject: [PATCH 4/4] Re-enable phys, eMMC X6 drive, SDIO WiFi X4 drive --- .../portenta-x9/arduino_portenta-x9.dts | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts b/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts index 51e6143..3adac24 100644 --- a/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts +++ b/meta-arduino-bsp/recipes-bsp/device-tree/arduino-device-tree/portenta-x9/arduino_portenta-x9.dts @@ -190,7 +190,7 @@ phy-mode = "rgmii-id"; phy-handle = <ðphy2>; fsl,magic-packet; - status = "disabled"; + status = "okay"; phy-reset-gpios = <&gpio3 27 GPIO_ACTIVE_LOW>; phy-reset-duration = <10>; /* [ms] */ phy-reset-post-delay = <80>; /* [ms] */ @@ -216,7 +216,7 @@ pinctrl-0 = <&pinctrl_eqos>; phy-mode = "rgmii-id"; phy-handle = <ðphy1>; - status = "disabled"; + status = "okay"; mdio { compatible = "snps,dwmac-mdio"; @@ -695,17 +695,17 @@ /* need to config the SION for data and cmd pad, refer to ERR052021 */ pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp { fsl,pins = < - MX93_PAD_SD1_CLK__USDHC1_CLK 0x15ce - MX93_PAD_SD1_CMD__USDHC1_CMD 0x400013ce - MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x400013ce - MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x400013ce - MX93_PAD_SD1_DATA2__USDHC1_DATA2 0x400013ce - MX93_PAD_SD1_DATA3__USDHC1_DATA3 0x400013ce - MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x400013ce - MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x400013ce - MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x400013ce - MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x400013ce - MX93_PAD_SD1_STROBE__USDHC1_STROBE 0x15ce + MX93_PAD_SD1_CLK__USDHC1_CLK 0x15fe + MX93_PAD_SD1_CMD__USDHC1_CMD 0x400013fe + MX93_PAD_SD1_DATA0__USDHC1_DATA0 0x400013fe + MX93_PAD_SD1_DATA1__USDHC1_DATA1 0x400013fe + MX93_PAD_SD1_DATA2__USDHC1_DATA2 0x400013fe + MX93_PAD_SD1_DATA3__USDHC1_DATA3 0x400013fe + MX93_PAD_SD1_DATA4__USDHC1_DATA4 0x400013fe + MX93_PAD_SD1_DATA5__USDHC1_DATA5 0x400013fe + MX93_PAD_SD1_DATA6__USDHC1_DATA6 0x400013fe + MX93_PAD_SD1_DATA7__USDHC1_DATA7 0x400013fe + MX93_PAD_SD1_STROBE__USDHC1_STROBE 0x15fe >; }; @@ -736,12 +736,12 @@ /* need to config the SION for data and cmd pad, refer to ERR052021 */ pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp { fsl,pins = < - MX93_PAD_GPIO_IO22__USDHC3_CLK 0x15fe - MX93_PAD_GPIO_IO23__USDHC3_CMD 0x400013fe - MX93_PAD_GPIO_IO24__USDHC3_DATA0 0x400013fe - MX93_PAD_GPIO_IO25__USDHC3_DATA1 0x400013fe - MX93_PAD_GPIO_IO26__USDHC3_DATA2 0x400013fe - MX93_PAD_GPIO_IO27__USDHC3_DATA3 0x400013fe + MX93_PAD_GPIO_IO22__USDHC3_CLK 0x15ce + MX93_PAD_GPIO_IO23__USDHC3_CMD 0x400013ce + MX93_PAD_GPIO_IO24__USDHC3_DATA0 0x400013ce + MX93_PAD_GPIO_IO25__USDHC3_DATA1 0x400013ce + MX93_PAD_GPIO_IO26__USDHC3_DATA2 0x400013ce + MX93_PAD_GPIO_IO27__USDHC3_DATA3 0x400013ce >; };