arm64: dts: imx8mp: Update pin function file according to Rev.D RM
Subsystems (3)
PATCH 1/1 arm64: dts: imx8mp: Update pin function file according to Rev.D RM
Update i.MX8MP imx8mp-pinfunc.h file according latest reference manual Rev.D. As some of the pins' name are changed, update the dts at the same time.
--- .../boot/dts/freescale/imx8mp-dhcom-som.dtsi | 6 +++--- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 2 +- arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h | 16 ++++++++-------- .../boot/dts/freescale/imx8mp-venice-gw74xx.dts | 4 ++-- arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-)
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +3 -3
@@ -867,14 +867,14 @@ MX8MP_IOMUXC_UART4_TXD__UART4_DCE_TX 0x49 pinctrl_usb0_vbus: dhcom-usb0-grp { fsl,pins = < - MX8MP_IOMUXC_GPIO1_IO10__USB1_OTG_ID 0x0 + MX8MP_IOMUXC_GPIO1_IO10__USB1_ID 0x0 >; }; pinctrl_usb1_vbus: dhcom-usb1-grp { fsl,pins = < - MX8MP_IOMUXC_GPIO1_IO14__USB2_OTG_PWR 0x6 - MX8MP_IOMUXC_GPIO1_IO15__USB2_OTG_OC 0x80 + MX8MP_IOMUXC_GPIO1_IO14__USB2_PWR 0x6 + MX8MP_IOMUXC_GPIO1_IO15__USB2_OC 0x80 >; };
arch/arm64/boot/dts/freescale/imx8mp-evk.dts +1 -1
@@ -529,7 +529,7 @@ MX8MP_IOMUXC_UART2_TXD__UART2_DCE_TX 0x140 pinctrl_usb1_vbus: usb1grp { fsl,pins = < - MX8MP_IOMUXC_GPIO1_IO14__USB2_OTG_PWR 0x10 + MX8MP_IOMUXC_GPIO1_IO14__USB2_PWR 0x10 >; };
arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h +8 -8
@@ -13,10 +13,12 @@#define MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00 0x014 0x274 0x000 0x0 0x0#define MX8MP_IOMUXC_GPIO1_IO00__CCM_ENET_PHY_REF_CLK_ROOT 0x014 0x274 0x000 0x1 0x0#define MX8MP_IOMUXC_GPIO1_IO00__ISP_FL_TRIG_0 0x014 0x274 0x5D4 0x3 0x0 +#define MX8MP_IOMUXC_GPIO1_IO00__ANAMIX_REF_CLK_32K 0x014 0x274 0x000 0x5 0x0#define MX8MP_IOMUXC_GPIO1_IO00__CCM_EXT_CLK1 0x014 0x274 0x000 0x6 0x0#define MX8MP_IOMUXC_GPIO1_IO01__GPIO1_IO01 0x018 0x278 0x000 0x0 0x0#define MX8MP_IOMUXC_GPIO1_IO01__PWM1_OUT 0x018 0x278 0x000 0x1 0x0#define MX8MP_IOMUXC_GPIO1_IO01__ISP_SHUTTER_TRIG_0 0x018 0x278 0x5DC 0x3 0x0 +#define MX8MP_IOMUXC_GPIO1_IO01__ANAMIX_REF_CLK_24M 0x018 0x278 0x000 0x5 0x0#define MX8MP_IOMUXC_GPIO1_IO01__CCM_EXT_CLK2 0x018 0x278 0x000 0x6 0x0#define MX8MP_IOMUXC_GPIO1_IO02__GPIO1_IO02 0x01C 0x27C 0x000 0x0 0x0#define MX8MP_IOMUXC_GPIO1_IO02__WDOG1_WDOG_B 0x01C 0x27C 0x000 0x1 0x0
@@ -58,26 +60,26 @@#define MX8MP_IOMUXC_GPIO1_IO09__USDHC3_RESET_B 0x038 0x298 0x000 0x4 0x0#define MX8MP_IOMUXC_GPIO1_IO09__SDMA2_EXT_EVENT00 0x038 0x298 0x000 0x5 0x0#define MX8MP_IOMUXC_GPIO1_IO10__GPIO1_IO10 0x03C 0x29C 0x000 0x0 0x0 -#define MX8MP_IOMUXC_GPIO1_IO10__USB1_OTG_ID 0x03C 0x29C 0x000 0x1 0x0 +#define MX8MP_IOMUXC_GPIO1_IO10__USB1_ID 0x03C 0x29C 0x000 0x1 0x0#define MX8MP_IOMUXC_GPIO1_IO10__PWM3_OUT 0x03C 0x29C 0x000 0x2 0x0#define MX8MP_IOMUXC_GPIO1_IO11__GPIO1_IO11 0x040 0x2A0 0x000 0x0 0x0 -#define MX8MP_IOMUXC_GPIO1_IO11__USB2_OTG_ID 0x040 0x2A0 0x000 0x1 0x0 +#define MX8MP_IOMUXC_GPIO1_IO11__USB2_ID 0x040 0x2A0 0x000 0x1 0x0#define MX8MP_IOMUXC_GPIO1_IO11__PWM2_OUT 0x040 0x2A0 0x000 0x2 0x0#define MX8MP_IOMUXC_GPIO1_IO11__USDHC3_VSELECT 0x040 0x2A0 0x000 0x4 0x0#define MX8MP_IOMUXC_GPIO1_IO11__CCM_PMIC_READY 0x040 0x2A0 0x554 0x5 0x1#define MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x044 0x2A4 0x000 0x0 0x0 -#define MX8MP_IOMUXC_GPIO1_IO12__USB1_OTG_PWR 0x044 0x2A4 0x000 0x1 0x0 +#define MX8MP_IOMUXC_GPIO1_IO12__USB1_PWR 0x044 0x2A4 0x000 0x1 0x0#define MX8MP_IOMUXC_GPIO1_IO12__SDMA2_EXT_EVENT01 0x044 0x2A4 0x000 0x5 0x0#define MX8MP_IOMUXC_GPIO1_IO13__GPIO1_IO13 0x048 0x2A8 0x000 0x0 0x0 -#define MX8MP_IOMUXC_GPIO1_IO13__USB1_OTG_OC 0x048 0x2A8 0x000 0x1 0x0 +#define MX8MP_IOMUXC_GPIO1_IO13__USB1_OC 0x048 0x2A8 0x000 0x1 0x0#define MX8MP_IOMUXC_GPIO1_IO13__PWM2_OUT 0x048 0x2A8 0x000 0x5 0x0#define MX8MP_IOMUXC_GPIO1_IO14__GPIO1_IO14 0x04C 0x2AC 0x000 0x0 0x0 -#define MX8MP_IOMUXC_GPIO1_IO14__USB2_OTG_PWR 0x04C 0x2AC 0x000 0x1 0x0 +#define MX8MP_IOMUXC_GPIO1_IO14__USB2_PWR 0x04C 0x2AC 0x000 0x1 0x0#define MX8MP_IOMUXC_GPIO1_IO14__USDHC3_CD_B 0x04C 0x2AC 0x608 0x4 0x0#define MX8MP_IOMUXC_GPIO1_IO14__PWM3_OUT 0x04C 0x2AC 0x000 0x5 0x0#define MX8MP_IOMUXC_GPIO1_IO14__CCM_CLKO1 0x04C 0x2AC 0x000 0x6 0x0#define MX8MP_IOMUXC_GPIO1_IO15__GPIO1_IO15 0x050 0x2B0 0x000 0x0 0x0 -#define MX8MP_IOMUXC_GPIO1_IO15__USB2_OTG_OC 0x050 0x2B0 0x000 0x1 0x0 +#define MX8MP_IOMUXC_GPIO1_IO15__USB2_OC 0x050 0x2B0 0x000 0x1 0x0#define MX8MP_IOMUXC_GPIO1_IO15__USDHC3_WP 0x050 0x2B0 0x634 0x4 0x0#define MX8MP_IOMUXC_GPIO1_IO15__PWM4_OUT 0x050 0x2B0 0x000 0x5 0x0#define MX8MP_IOMUXC_GPIO1_IO15__CCM_CLKO2 0x050 0x2B0 0x000 0x6 0x0
@@ -258,10 +260,8 @@#define MX8MP_IOMUXC_SD2_DATA3__AUDIOMIX_SPDIF1_IN 0x0D4 0x334 0x544 0x3 0x1#define MX8MP_IOMUXC_SD2_DATA3__AUDIOMIX_PDM_BIT_STREAM03 0x0D4 0x334 0x4CC 0x4 0x2#define MX8MP_IOMUXC_SD2_DATA3__GPIO2_IO18 0x0D4 0x334 0x000 0x5 0x0 -#define MX8MP_IOMUXC_SD2_DATA3__SRC_EARLY_RESET 0x0D4 0x334 0x000 0x6 0x0#define MX8MP_IOMUXC_SD2_RESET_B__USDHC2_RESET_B 0x0D8 0x338 0x000 0x0 0x0#define MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19 0x0D8 0x338 0x000 0x5 0x0 -#define MX8MP_IOMUXC_SD2_RESET_B__SRC_SYSTEM_RESET 0x0D8 0x338 0x000 0x6 0x0#define MX8MP_IOMUXC_SD2_WP__USDHC2_WP 0x0DC 0x33C 0x000 0x0 0x0#define MX8MP_IOMUXC_SD2_WP__GPIO2_IO20 0x0DC 0x33C 0x000 0x5 0x0#define MX8MP_IOMUXC_SD2_WP__CORESIGHT_EVENTI 0x0DC 0x33C 0x000 0x6 0x0
arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts +2 -2
@@ -824,8 +824,8 @@ MX8MP_IOMUXC_UART4_TXD__UART4_DCE_TX 0x140 pinctrl_usb1: usb1grp { fsl,pins = < - MX8MP_IOMUXC_GPIO1_IO13__USB1_OTG_OC 0x140 - MX8MP_IOMUXC_GPIO1_IO10__USB1_OTG_ID 0x140 + MX8MP_IOMUXC_GPIO1_IO13__USB1_OC 0x140 + MX8MP_IOMUXC_GPIO1_IO10__USB1_ID 0x140 >; };
arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +2 -2
@@ -1205,7 +1205,7 @@ pinctrl_uart4: uart4grp { pinctrl_usb1_vbus: usb1vbusgrp { fsl,pins = - <MX8MP_IOMUXC_GPIO1_IO12__USB1_OTG_PWR 0x19>; /* SODIMM 155 */ + <MX8MP_IOMUXC_GPIO1_IO12__USB1_PWR 0x19>; /* SODIMM 155 */ }; /* USB_1_ID */
@@ -1216,7 +1216,7 @@ pinctrl_usb_1_id: usb1idgrp { pinctrl_usb2_vbus: usb2vbusgrp { fsl,pins = - <MX8MP_IOMUXC_GPIO1_IO14__USB2_OTG_PWR 0x19>; /* SODIMM 185 */ + <MX8MP_IOMUXC_GPIO1_IO14__USB2_PWR 0x19>; /* SODIMM 185 */ }; /* On-module Wi-Fi */
Signature · 1 line
2.34.1
Hi Jacky
Quoted 3 lines · Jacky Bai
Update i.MX8MP
imx8mp-pinfunc.hfile according latest reference manual Rev.D. As some of the pins' name are changed, update the dts at the same time.
I am confused. We got told by NXP that there is no such USB1_OTG_ID resp. USB1_ID functionality at all on the i.MX 8M Plus and one has to rely on simulating such functionality using a regular GPIO. I mean, I understand that this commit just updates stuff according to the latest reference manual but why would that reference manual still claim such functionality exists when it supposedly really does not and we even had to re-design our PCB due to that?
Anyway, unfortunately, that claim was made in a super secret under NDA non-public forum [1] but I am sure them NXP folks should be able to access that as well.
Any ideas?
Quoted 137 lines
Signed-off-by Jacky Bai <[email protected]>---
.../boot/dts/freescale/imx8mp-dhcom-som.dtsi | 6 +++--- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 2 +- arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h | 16 ++++++++-------- .../boot/dts/freescale/imx8mp-venice-gw74xx.dts | 4 ++--arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi| 4 ++--5 files changed, 16 insertions(+), 16 deletions(-)arch/arm64/boot/dts/freescale/imx8mp- renamed from arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +0
-0
dhcom-som.dtsi
indexa616eb378002..dd896b6ddfe5100644arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +0
-0@@ -867,14 +867,14 @@ MX8MP_IOMUXC_UART4_TXD__UART4_DCE_TX 0x49
pinctrl_usb0_vbus: dhcom-usb0-grp {
fsl,pins = <
- MX8MP_IOMUXC_GPIO1_IO10__USB1_OTG_ID 0x0 + MX8MP_IOMUXC_GPIO1_IO10__USB1_ID 0x0 >;
};
pinctrl_usb1_vbus: dhcom-usb1-grp {
fsl,pins = <
- MX8MP_IOMUXC_GPIO1_IO14__USB2_OTG_PWR 0x6 - MX8MP_IOMUXC_GPIO1_IO15__USB2_OTG_OC 0x80 + MX8MP_IOMUXC_GPIO1_IO14__USB2_PWR 0x6 + MX8MP_IOMUXC_GPIO1_IO15__USB2_OC 0x80 >;
};arch/arm64/boot/dts/freescale/imx8mp-evk.dts +0
-0@@ -529,7 +529,7 @@ MX8MP_IOMUXC_UART2_TXD__UART2_DCE_TX 0x140
pinctrl_usb1_vbus: usb1grp {
fsl,pins = <
- MX8MP_IOMUXC_GPIO1_IO14__USB2_OTG_PWR 0x10 + MX8MP_IOMUXC_GPIO1_IO14__USB2_PWR 0x10 >;
};arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h +8
-8@@ -13,10 +13,12 @@ #define MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00 0x014 0x274 0x000 0x0 0x0 #define MX8MP_IOMUXC_GPIO1_IO00__CCM_ENET_PHY_REF_CLK_ROOT 0x014 0x274 0x000 0x1 0x0 #define MX8MP_IOMUXC_GPIO1_IO00__ISP_FL_TRIG_0 0x014 0x274 0x5D4 0x3 0x0 +#define MX8MP_IOMUXC_GPIO1_IO00__ANAMIX_REF_CLK_32K 0x014 0x274 0x000 0x5 0x0 #define MX8MP_IOMUXC_GPIO1_IO00__CCM_EXT_CLK1 0x014 0x274 0x000 0x6 0x0 #define MX8MP_IOMUXC_GPIO1_IO01__GPIO1_IO01 0x018 0x278 0x000 0x0 0x0 #define MX8MP_IOMUXC_GPIO1_IO01__PWM1_OUT 0x018 0x278 0x000 0x1 0x0 #define MX8MP_IOMUXC_GPIO1_IO01__ISP_SHUTTER_TRIG_0 0x018 0x278 0x5DC 0x3 0x0 +#define MX8MP_IOMUXC_GPIO1_IO01__ANAMIX_REF_CLK_24M 0x018 0x278 0x000 0x5 0x0 #define MX8MP_IOMUXC_GPIO1_IO01__CCM_EXT_CLK2 0x018 0x278 0x000 0x6 0x0 #define MX8MP_IOMUXC_GPIO1_IO02__GPIO1_IO02 0x01C 0x27C 0x000 0x0 0x0 #define MX8MP_IOMUXC_GPIO1_IO02__WDOG1_WDOG_B 0x01C 0x27C 0x000 0x1 0x0@@ -58,26 +60,26 @@ #define MX8MP_IOMUXC_GPIO1_IO09__USDHC3_RESET_B 0x038 0x298 0x000 0x4 0x0 #define MX8MP_IOMUXC_GPIO1_IO09__SDMA2_EXT_EVENT00 0x038 0x298 0x000 0x5 0x0 #define MX8MP_IOMUXC_GPIO1_IO10__GPIO1_IO10 0x03C 0x29C 0x000 0x0 0x0 -#define MX8MP_IOMUXC_GPIO1_IO10__USB1_OTG_ID 0x03C 0x29C 0x000 0x1 0x0 +#define MX8MP_IOMUXC_GPIO1_IO10__USB1_ID 0x03C 0x29C 0x000 0x1 0x0 #define MX8MP_IOMUXC_GPIO1_IO10__PWM3_OUT 0x03C 0x29C 0x000 0x2 0x0 #define MX8MP_IOMUXC_GPIO1_IO11__GPIO1_IO11 0x040 0x2A0 0x000 0x0 0x0 -#define MX8MP_IOMUXC_GPIO1_IO11__USB2_OTG_ID 0x040 0x2A0 0x000 0x1 0x0 +#define MX8MP_IOMUXC_GPIO1_IO11__USB2_ID 0x040 0x2A0 0x000 0x1 0x0 #define MX8MP_IOMUXC_GPIO1_IO11__PWM2_OUT 0x040 0x2A0 0x000 0x2 0x0 #define MX8MP_IOMUXC_GPIO1_IO11__USDHC3_VSELECT 0x040 0x2A0 0x000 0x4 0x0 #define MX8MP_IOMUXC_GPIO1_IO11__CCM_PMIC_READY 0x040 0x2A0 0x554 0x5 0x1 #define MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12 0x044 0x2A4 0x000 0x0 0x0 -#define MX8MP_IOMUXC_GPIO1_IO12__USB1_OTG_PWR 0x044 0x2A4 0x000 0x1 0x0 +#define MX8MP_IOMUXC_GPIO1_IO12__USB1_PWR 0x044 0x2A4 0x000 0x1 0x0 #define MX8MP_IOMUXC_GPIO1_IO12__SDMA2_EXT_EVENT01 0x044 0x2A4 0x000 0x5 0x0 #define MX8MP_IOMUXC_GPIO1_IO13__GPIO1_IO13 0x048 0x2A8 0x000 0x0 0x0 -#define MX8MP_IOMUXC_GPIO1_IO13__USB1_OTG_OC 0x048 0x2A8 0x000 0x1 0x0 +#define MX8MP_IOMUXC_GPIO1_IO13__USB1_OC 0x048 0x2A8 0x000 0x1 0x0 #define MX8MP_IOMUXC_GPIO1_IO13__PWM2_OUT 0x048 0x2A8 0x000 0x5 0x0 #define MX8MP_IOMUXC_GPIO1_IO14__GPIO1_IO14 0x04C 0x2AC 0x000 0x0 0x0 -#define MX8MP_IOMUXC_GPIO1_IO14__USB2_OTG_PWR 0x04C 0x2AC 0x000 0x1 0x0 +#define MX8MP_IOMUXC_GPIO1_IO14__USB2_PWR 0x04C 0x2AC 0x000 0x1 0x0 #define MX8MP_IOMUXC_GPIO1_IO14__USDHC3_CD_B 0x04C 0x2AC 0x608 0x4 0x0 #define MX8MP_IOMUXC_GPIO1_IO14__PWM3_OUT 0x04C 0x2AC 0x000 0x5 0x0 #define MX8MP_IOMUXC_GPIO1_IO14__CCM_CLKO1 0x04C 0x2AC 0x000 0x6 0x0 #define MX8MP_IOMUXC_GPIO1_IO15__GPIO1_IO15 0x050 0x2B0 0x000 0x0 0x0 -#define MX8MP_IOMUXC_GPIO1_IO15__USB2_OTG_OC 0x050 0x2B0 0x000 0x1 0x0 +#define MX8MP_IOMUXC_GPIO1_IO15__USB2_OC 0x050 0x2B0 0x000 0x1 0x0 #define MX8MP_IOMUXC_GPIO1_IO15__USDHC3_WP 0x050 0x2B0 0x634 0x4 0x0 #define MX8MP_IOMUXC_GPIO1_IO15__PWM4_OUT 0x050 0x2B0 0x000 0x5 0x0 #define MX8MP_IOMUXC_GPIO1_IO15__CCM_CLKO2 0x050 0x2B0 0x000 0x6 0x0@@ -258,10 +260,8 @@ #define MX8MP_IOMUXC_SD2_DATA3__AUDIOMIX_SPDIF1_IN 0x0D4 0x334 0x544 0x3 0x1 #define MX8MP_IOMUXC_SD2_DATA3__AUDIOMIX_PDM_BIT_STREAM03 0x0D4 0x334 0x4CC 0x4 0x2 #define MX8MP_IOMUXC_SD2_DATA3__GPIO2_IO18 0x0D4 0x334 0x000 0x5 0x0 -#define MX8MP_IOMUXC_SD2_DATA3__SRC_EARLY_RESET 0x0D4 0x334 0x000 0x6 0x0 #define MX8MP_IOMUXC_SD2_RESET_B__USDHC2_RESET_B 0x0D8 0x338 0x000 0x0 0x0 #define MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19 0x0D8 0x338 0x000 0x5 0x0 -#define MX8MP_IOMUXC_SD2_RESET_B__SRC_SYSTEM_RESET 0x0D8 0x338 0x000 0x6 0x0 #define MX8MP_IOMUXC_SD2_WP__USDHC2_WP 0x0DC 0x33C 0x000 0x0 0x0 #define MX8MP_IOMUXC_SD2_WP__GPIO2_IO20 0x0DC 0x33C 0x000 0x5 0x0 #define MX8MP_IOMUXC_SD2_WP__CORESIGHT_EVENTI 0x0DC 0x33C 0x000 0x6 0x0arch/arm64/boot/dts/freescale/imx8mp- renamed from arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts +0
-0
venice-gw74xx.dts
index521215520a0f..ac59f36b82fc100644arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts +0
-0@@ -824,8 +824,8 @@ MX8MP_IOMUXC_UART4_TXD__UART4_DCE_TX 0x140
pinctrl_usb1: usb1grp {
fsl,pins = <
- MX8MP_IOMUXC_GPIO1_IO13__USB1_OTG_OC 0x140 - MX8MP_IOMUXC_GPIO1_IO10__USB1_OTG_ID 0x140 + MX8MP_IOMUXC_GPIO1_IO13__USB1_OC 0x140 + MX8MP_IOMUXC_GPIO1_IO10__USB1_ID 0x140 >;
};arch/arm64/boot/dts/freescale/imx8mp- renamed from arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +0
-0
verdin.dtsi
indexc5987bdbb383..da66d8487651100644arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +0
-0@@ -1205,7 +1205,7 @@ pinctrl_uart4: uart4grp {
pinctrl_usb1_vbus: usb1vbusgrp {
fsl,pins =
- <MX8MP_IOMUXC_GPIO1_IO12__USB1_OTG_PWR 0x19>; /* SODIMM 155 */ + <MX8MP_IOMUXC_GPIO1_IO12__USB1_PWR 0x19>; /* SODIMM 155 */ };
/*USB_1_ID*/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +0
-0@@ -1216,7 +1216,7 @@ pinctrl_usb_1_id: usb1idgrp {
Quoted 8 lines
pinctrl_usb2_vbus: usb2vbusgrp {
fsl,pins =
- <MX8MP_IOMUXC_GPIO1_IO14__USB2_OTG_PWR 0x19>; /* SODIMM 185 */ + <MX8MP_IOMUXC_GPIO1_IO14__USB2_PWR 0x19>; /* SODIMM 185 */ };
/* On-module Wi-Fi */
Cheers
Marcel
Quoted 10 lines
Subject: Re: [PATCH] arm64: dts: imx8mp: Update pin function file according to Rev.D RM
Hi Jacky
Quoted 3 lines · Jacky Bai
Update i.MX8MP
imx8mp-pinfunc.hfile according latest reference manual Rev.D. As some of the pins' name are changed, update the dts at the same time.
Quoted 7 lines
I am confused. We got told by NXP that there is no such
USB1_OTG_IDresp.USB1_IDfunctionality at all on the i.MX 8M Plus and one has to rely on simulating such functionality using a regular GPIO. I mean, I understand that this commit just updates stuff according to the latest reference manual but why would that reference manual still claim such functionality exists when it supposedly really does not and we even had to re-design our PCB due to that?
Just confirmed, the info you got from NXP is correct. The USB ID pin has function limitation. IMO, the pinmux function of USB ID should be marked as unavailable or reserved in the RM to eliminate the confusion.
Just hold this patch before I get a clear answer how to update the RM doc info.
BR
Quoted 369 lines
Anyway, unfortunately, that claim was made in a super secret under NDA non-public forum [1] but I am sure them NXP folks should be able to access that as well.
Any ideas?
[1]
arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi
Quoted 17 lines
Signed-off-by Jacky Bai <[email protected]>---
.../boot/dts/freescale/imx8mp-dhcom-som.dtsi | 6 +++--- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 2 +- arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h | 16
++++++++--------
.../boot/dts/freescale/imx8mp-venice-gw74xx.dts | 4 ++--arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi| 4 ++--5 files changed, 16 insertions(+), 16 deletions(-)arch/arm64/boot/dts/freescale/imx8mp- renamed from arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +0
-0
dhcom-som.dtsi
indexa616eb378002..dd896b6ddfe5100644arch/arm64/boot/dts/freescale/imx8mp-dhcom-som.dtsi +0
-0@@ -867,14 +867,14 @@
MX8MP_IOMUXC_UART4_TXD__UART4_DCE_TXQuoted 5 lines
0x49pinctrl_usb0_vbus: dhcom-usb0-grp {
fsl,pins = <- MX8MP_IOMUXC_GPIO1_IO10__USB1_
OTG_IDQuoted 2 lines
0x0+ MX8MP_IOMUXC_GPIO1_IO10__USB1_I D
Quoted 7 lines
+0x0
>;
};pinctrl_usb1_vbus: dhcom-usb1-grp {
fsl,pins = <- MX8MP_IOMUXC_GPIO1_IO14__USB2_
OTG_PWRQuoted 2 lines
0x6- MX8MP_IOMUXC_GPIO1_IO15__USB2_
OTG_OCQuoted 2 lines
0x80+ MX8MP_IOMUXC_GPIO1_IO14__USB2_ PWR
Quoted 2 lines
+0x6
+ MX8MP_IOMUXC_GPIO1_IO15__USB2_ OC
arch/arm64/boot/dts/freescale/imx8mp-evk.dts
Quoted 10 lines
+0x80
>;
};arch/arm64/boot/dts/freescale/imx8mp-evk.dts +0
-0@@ -529,7 +529,7 @@MX8MP_IOMUXC_UART2_TXD__UART2_DCE_TX 0x140
Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mp-evk.dts +0
-0pinctrl_usb1_vbus: usb1grp {fsl,pins = <
- MX8MP_IOMUXC_GPIO1_IO14__USB2_ OTG_PWR 0x10
Quoted 1 line
+ MX8MP_IOMUXC_GPIO1_IO14__USB2_ PWR 0x10
arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h line 13
Quoted 10 lines
>;
};arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h +0
-0@@ -13,10 +13,12 @@ #define
MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00Quoted 2 lines
0x0140x2740x0000x00x0
#define
MX8MP_IOMUXC_GPIO1_IO00__CCM_ENET_PHY_REF_CLK_ROOTQuoted 2 lines
0x0140x2740x0000x10x0
#define
MX8MP_IOMUXC_GPIO1_IO00__ISP_FL_TRIG_0Quoted 2 lines
0x0140x2740x5D40x30x0
+#define
MX8MP_IOMUXC_GPIO1_IO00__ANAMIX_REF_CLK_32KQuoted 2 lines
+0x014
0x2740x0000x50x0
#define
MX8MP_IOMUXC_GPIO1_IO00__CCM_EXT_CLK1Quoted 2 lines
0x0140x2740x0000x60x0
#define
MX8MP_IOMUXC_GPIO1_IO01__GPIO1_IO01Quoted 2 lines
0x0180x2780x0000x00x0
#define
MX8MP_IOMUXC_GPIO1_IO01__PWM1_OUTQuoted 2 lines
0x0180x2780x0000x10x0
#define
MX8MP_IOMUXC_GPIO1_IO01__ISP_SHUTTER_TRIG_0Quoted 2 lines
0x0180x2780x5DC0x30x0
+#define
MX8MP_IOMUXC_GPIO1_IO01__ANAMIX_REF_CLK_24MQuoted 2 lines
+0x018
0x2780x0000x50x0
#define
MX8MP_IOMUXC_GPIO1_IO01__CCM_EXT_CLK2Quoted 2 lines
0x0180x2780x0000x60x0
#define
MX8MP_IOMUXC_GPIO1_IO02__GPIO1_IO02Quoted 2 lines
0x01C0x27C0x0000x00x0
#define
MX8MP_IOMUXC_GPIO1_IO02__WDOG1_WDOG_BQuoted 2 lines
0x01C0x27C0x0000x10x0@@ -58,26 +60,26 @@
#define
MX8MP_IOMUXC_GPIO1_IO09__USDHC3_RESET_BQuoted 2 lines
0x0380x2980x0000x40x0
#define
MX8MP_IOMUXC_GPIO1_IO09__SDMA2_EXT_EVENT00Quoted 2 lines
0x0380x2980x0000x50x0
#define
MX8MP_IOMUXC_GPIO1_IO10__GPIO1_IO10Quoted 2 lines
0x03C0x29C0x0000x00x0-#define
MX8MP_IOMUXC_GPIO1_IO10__USB1_OTG_ID
0x03CQuoted 2 lines
0x29C0x0000x10x0
+#define
MX8MP_IOMUXC_GPIO1_IO10__USB1_IDQuoted 2 lines
+0x03C
0x29C0x0000x10x0
#define
MX8MP_IOMUXC_GPIO1_IO10__PWM3_OUTQuoted 2 lines
0x03C0x29C0x0000x20x0
#define
MX8MP_IOMUXC_GPIO1_IO11__GPIO1_IO11Quoted 2 lines
0x0400x2A00x0000x00x0-#define
MX8MP_IOMUXC_GPIO1_IO11__USB2_OTG_ID
0x040Quoted 2 lines
0x2A00x0000x10x0
+#define
MX8MP_IOMUXC_GPIO1_IO11__USB2_IDQuoted 2 lines
+0x040
0x2A00x0000x10x0
#define
MX8MP_IOMUXC_GPIO1_IO11__PWM2_OUTQuoted 2 lines
0x0400x2A00x0000x20x0
#define
MX8MP_IOMUXC_GPIO1_IO11__USDHC3_VSELECTQuoted 2 lines
0x0400x2A00x0000x40x0
#define
MX8MP_IOMUXC_GPIO1_IO11__CCM_PMIC_READYQuoted 2 lines
0x0400x2A00x5540x50x1
#define
MX8MP_IOMUXC_GPIO1_IO12__GPIO1_IO12Quoted 2 lines
0x0440x2A40x0000x00x0-#define
MX8MP_IOMUXC_GPIO1_IO12__USB1_OTG_PWR
0x044Quoted 2 lines
0x2A40x0000x10x0
+#define
MX8MP_IOMUXC_GPIO1_IO12__USB1_PWRQuoted 2 lines
+0x044
0x2A40x0000x10x0
#define
MX8MP_IOMUXC_GPIO1_IO12__SDMA2_EXT_EVENT01Quoted 2 lines
0x0440x2A40x0000x50x0
#define
MX8MP_IOMUXC_GPIO1_IO13__GPIO1_IO13Quoted 2 lines
0x0480x2A80x0000x00x0-#define
MX8MP_IOMUXC_GPIO1_IO13__USB1_OTG_OC
0x048Quoted 2 lines
0x2A80x0000x10x0
+#define
MX8MP_IOMUXC_GPIO1_IO13__USB1_OCQuoted 2 lines
+0x048
0x2A80x0000x10x0
#define
MX8MP_IOMUXC_GPIO1_IO13__PWM2_OUTQuoted 2 lines
0x0480x2A80x0000x50x0
#define
MX8MP_IOMUXC_GPIO1_IO14__GPIO1_IO14Quoted 2 lines
0x04C0x2AC0x0000x00x0-#define
MX8MP_IOMUXC_GPIO1_IO14__USB2_OTG_PWR
0x04CQuoted 2 lines
0x2AC0x0000x10x0
+#define
MX8MP_IOMUXC_GPIO1_IO14__USB2_PWRQuoted 2 lines
+0x04C
0x2AC0x0000x10x0
#define
MX8MP_IOMUXC_GPIO1_IO14__USDHC3_CD_BQuoted 2 lines
0x04C0x2AC0x6080x40x0
#define
MX8MP_IOMUXC_GPIO1_IO14__PWM3_OUTQuoted 2 lines
0x04C0x2AC0x0000x50x0
#define
MX8MP_IOMUXC_GPIO1_IO14__CCM_CLKO1Quoted 2 lines
0x04C0x2AC0x0000x60x0
#define
MX8MP_IOMUXC_GPIO1_IO15__GPIO1_IO15Quoted 2 lines
0x0500x2B00x0000x00x0-#define
MX8MP_IOMUXC_GPIO1_IO15__USB2_OTG_OC
0x050Quoted 2 lines
0x2B00x0000x10x0
+#define
MX8MP_IOMUXC_GPIO1_IO15__USB2_OCQuoted 2 lines
+0x050
0x2B00x0000x10x0
#define
MX8MP_IOMUXC_GPIO1_IO15__USDHC3_WPQuoted 2 lines
0x0500x2B00x6340x40x0
#define
MX8MP_IOMUXC_GPIO1_IO15__PWM4_OUTQuoted 2 lines
0x0500x2B00x0000x50x0
#define
MX8MP_IOMUXC_GPIO1_IO15__CCM_CLKO2Quoted 2 lines
0x0500x2B00x0000x60x0@@ -258,10 +260,8 @@
#define
MX8MP_IOMUXC_SD2_DATA3__AUDIOMIX_SPDIF1_INQuoted 2 lines
0x0D40x3340x5440x30x1
#define
MX8MP_IOMUXC_SD2_DATA3__AUDIOMIX_PDM_BIT_STREAM03Quoted 2 lines
0x0D40x3340x4CC0x40x2
#define
MX8MP_IOMUXC_SD2_DATA3__GPIO2_IO18Quoted 2 lines
0x0D40x3340x0000x50x0-#define
MX8MP_IOMUXC_SD2_DATA3__SRC_EARLY_RESET
0x0D4Quoted 2 lines
0x3340x0000x60x0
#define
MX8MP_IOMUXC_SD2_RESET_B__USDHC2_RESET_BQuoted 2 lines
0x0D80x3380x0000x00x0
#define
MX8MP_IOMUXC_SD2_RESET_B__GPIO2_IO19Quoted 2 lines
0x0D80x3380x0000x50x0-#define
MX8MP_IOMUXC_SD2_RESET_B__SRC_SYSTEM_RESET
0x0D8Quoted 2 lines
0x3380x0000x60x0
#define
MX8MP_IOMUXC_SD2_WP__USDHC2_WPQuoted 2 lines
0x0DC0x33C0x0000x00x0
#define
MX8MP_IOMUXC_SD2_WP__GPIO2_IO20Quoted 2 lines
0x0DC0x33C0x0000x50x0
#define
MX8MP_IOMUXC_SD2_WP__CORESIGHT_EVENTIarch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts
Quoted 8 lines
0x0DC0x33C0x0000x60x0diff --gita/arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dtsb/arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts
index521215520a0f..ac59f36b82fc100644arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts +0
-0@@ -824,8 +824,8 @@MX8MP_IOMUXC_UART4_TXD__UART4_DCE_TX 0x140
Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mp-venice-gw74xx.dts +0
-0pinctrl_usb1: usb1grp {fsl,pins = <
- MX8MP_IOMUXC_GPIO1_IO13__USB1_ OTG_OC 0x140
Quoted 1 line
- MX8MP_IOMUXC_GPIO1_IO10__USB1_ OTG_ID 0x140
Quoted 1 line
+ MX8MP_IOMUXC_GPIO1_IO13__USB1_ OC 0x140
Quoted 1 line
+ MX8MP_IOMUXC_GPIO1_IO10__USB1_I D 0x140
Quoted 12 lines
>;
};arch/arm64/boot/dts/freescale/imx8mp- renamed from arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +0
-0
verdin.dtsi
indexc5987bdbb383..da66d8487651100644arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +0
-0@@ -1205,7 +1205,7 @@ pinctrl_uart4: uart4grp { pinctrl_usb1_vbus: usb1vbusgrp {Quoted 2 lines
fsl,pins =
- <MX8MP_IOMUXC_GPIO1_IO12__USB1
_OTG_PWRQuoted 2 lines
0x19>; /* SODIMM 155 */
+ <MX8MP_IOMUXC_GPIO1_IO12__USB1
_PWRQuoted 9 lines
+0x19>; /* SODIMM 155 */
};/*
USB_1_ID*/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +0
-0@@ -1216,7 +1216,7 @@ pinctrl_usb_1_id: usb1idgrp { pinctrl_usb2_vbus: usb2vbusgrp {fsl,pins =
- <MX8MP_IOMUXC_GPIO1_IO14__USB2
_OTG_PWRQuoted 2 lines
0x19>; /* SODIMM 185 */
+ <MX8MP_IOMUXC_GPIO1_IO14__USB2
_PWRQuoted 4 lines
+0x19>; /* SODIMM 185 */
};/* On-module Wi-Fi */
Cheers
Marcel