Skip to contentSkip to conversation

Add i.MX952 FRDM board support

PATCH Applied Joseph Guo 5 participants 11 messages Jul 20 – Aug 6

Subsystems (3)
lore
Share & tools
lore

Joseph Guo

author
#0 lore raw

cover Add i.MX952 FRDM board support

i.MX952 FRDM Board is a low-cost and compact board featuring the i.MX952 application processor.
Add dt-bindings and basic device tree for i.MX952 FRDM board.

---
Joseph Guo (2):
dt-bindings: arm: fsl: add i.MX952 FRDM board
arm64: dts: freescale: add i.MX952 FRDM Board support device tree

 Documentation/devicetree/bindings/arm/fsl.yaml |   1 +
 arch/arm64/boot/dts/freescale/Makefile         |   2 +
 arch/arm64/boot/dts/freescale/imx952-frdm.dts  |   9 +
 arch/arm64/boot/dts/freescale/imx952-frdm.dtsi | 727 +++++++++++++++++++++++++
 4 files changed, 739 insertions(+)

---
base-commit: 139fb260e37938042c6ffaad796e236fde2bafed
change-id: 20260717-imx952_frdm-e8fb415ae4d4

Best regards,

Signature · 1 line
Joseph Guo <[email protected]>
author
#1 lore raw

PATCH 1/2 dt-bindings: arm: fsl: add i.MX952 FRDM board

Add DT compatible string for NXP i.MX952 FRDM board.

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/fsl.yaml +1 -0
index 7b57a6ee1b50dc22ece292d6d9b53b5aa834ee96..f67b3f6d57d3623d41364f852a64802ad2217560 100644
@@ -1536,6 +1536,7 @@ properties:
         items:
           - enum:
               - fsl,imx952-evk            # i.MX952 EVK Board
+              - fsl,imx952-frdm           # i.MX952 FRDM Board
           - const: fsl,imx952
 
       - description: PHYTEC i.MX 95 FPSC based Boards
Signature · 1 line
2.34.1
author
#3 lore raw

PATCH 2/2 arm64: dts: freescale: add i.MX952 FRDM Board support device tree

In reply to Joseph Guo

Add basic device tree support for i.MX952 FRDM Board.

The board-common hardware description is placed in imx952-frdm.dtsi so that it can be shared with future i.MX952-based FRDM derivative boards.

The following peripherals are enabled:
- LPUART1 (console), LPUART5 (BT)
- USDHC1, USDHC2, USDHC3,
- FlexCAN2, FlexCAN3,
- USB1, USB2,
- LPI2C2, LPI2C4
- WDOG3
- MICFIL (PDM)
- LPSPI3

---
 arch/arm64/boot/dts/freescale/Makefile         |   2 +
 arch/arm64/boot/dts/freescale/imx952-frdm.dts  |   9 +
 arch/arm64/boot/dts/freescale/imx952-frdm.dtsi | 727 +++++++++++++++++++++++++
 3 files changed, 738 insertions(+)
arch/arm64/boot/dts/freescale/Makefile +2 -0
index be3c858f1eeb1a807cb8ac36269c581143f755df..a9554dfc785fc43305ad45bb0b80772041e91737 100644
@@ -702,6 +702,8 @@ dtb-$(CONFIG_ARCH_MXC) += imx95-19x19-verdin-evk.dtb
 
 dtb-$(CONFIG_ARCH_MXC) += imx952-evk.dtb
 
+dtb-$(CONFIG_ARCH_MXC) += imx952-frdm.dtb
+
 imx8mm-kontron-dl-dtbs			:= imx8mm-kontron-bl.dtb imx8mm-kontron-dl.dtbo
 imx8mm-kontron-bl-lte-dtbs		:= imx8mm-kontron-bl.dtb imx8mm-kontron-bl-lte.dtbo
 
arch/arm64/boot/dts/freescale/imx952-frdm.dts new file +9 -0
new file mode 100644
index 0000000000000000000000000000000000000000..0b9d74eea37668b455b945b25feb7d9c4fa5a439
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright 2026 NXP
+ */
+
+/dts-v1/;
+
+#include "imx952.dtsi"
+#include "imx952-frdm.dtsi"
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +727 -0

727 lines not on this page · raw message

Signature · 1 line
2.34.1
#4 lore raw

Re: [PATCH 2/2] arm64: dts: freescale: add i.MX952 FRDM Board support device tree

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [High] Shared GPIO requested exclusively by two CAN transceivers causes probe failure for the second…

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Shared GPIO requested exclusively by two CAN transceivers causes probe failure for the second transceiver.
- [Low] Use of undocumented, downstream-only device tree property fsl,cd-gpio-wakeup-disable. --

--- Patch [2]: [PATCH 2/2] arm64: dts: freescale: add i.MX952 FRDM Board support device tree --- commit 8bbcb28d08a05e0f4c57023333492b4e023f7caf
Author: Joseph Guo <[email protected]>

arm64: dts: freescale: add i.MX952 FRDM Board support device tree

Add basic device tree support for i.MX952 FRDM Board. The board-common hardware description is placed in imx952-frdm.dtsi so that it can be shared with future i.MX952-based FRDM derivative boards.

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +0 -0
new file mode 100644
index 0000000000000..b9ef6bec2bd5a
@@ -0,0 +1,727 @@

[ ... ]

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi line 63

Quoted 12 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +12 -0
+	flexcan2_phy: can-phy0 {
+		compatible = "nxp,tja1051";
+		#phy-cells = <0>;
+		max-bitrate = <8000000>;
+		silent-gpios = <&pcal6416 6 GPIO_ACTIVE_HIGH>;
+	};
+
+	flexcan3_phy: can-phy1 {
+		compatible = "nxp,tja1051";
+		#phy-cells = <0>;
+		max-bitrate = <8000000>;
+		silent-gpios = <&pcal6416 6 GPIO_ACTIVE_HIGH>;

[Severity: High]
Does this cause a probe failure for the second transceiver?

The first PHY node successfully requests this GPIO line, taking exclusive ownership. Because the phy-can-transceiver driver uses standard exclusive requests (without GPIOD_FLAGS_BIT_NONEXCLUSIVE), the second request for the exact same GPIO line fails with -EBUSY.

This prevents the flexcan3_phy and the flexcan3 controller from probing and functioning.

Quoted 1 line
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +1 -0
+	};

[ ... ]

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi line 705

Quoted 10 lines

+&usdhc2 {

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +9 -0
+	bus-width = <4>;
+	cd-gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+	pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
+	pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
+	pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
+	pinctrl-3 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
+	pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep";
+	vmmc-supply = <&reg_usdhc2_vmmc>;
+	fsl,cd-gpio-wakeup-disable;

[Severity: Low]
Is this out-of-tree vendor property invalid in the upstream kernel?

The property fsl,cd-gpio-wakeup-disable does not exist in any upstream device tree bindings (such as fsl-imx-esdhc.yaml) and is not handled by any driver code in the upstream Linux tree. This acts as dead code and will trigger make dtbs_check validation warnings.

Quoted 2 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +2 -0
+	status = "okay";
+};
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
author
#5 lore raw

Re: [EXT] Re: [PATCH 2/2] arm64: dts: freescale: add i.MX952 FRDM Board support device tree

Quoted 43 lines · On 7/20/2026 2:55 PM, [email protected] wrote:

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Shared GPIO requested exclusively by two CAN transceivers causes probe failure for the second transceiver.
- [Low] Use of undocumented, downstream-only device tree property fsl,cd-gpio-wakeup-disable. --

--- Patch [2]: [PATCH 2/2] arm64: dts: freescale: add i.MX952 FRDM Board support device tree --- commit 8bbcb28d08a05e0f4c57023333492b4e023f7caf
Author: Joseph Guo <[email protected]>

arm64: dts: freescale: add i.MX952 FRDM Board support device tree

Add basic device tree support for i.MX952 FRDM Board. The board-common hardware description is placed in imx952-frdm.dtsi so that it can be shared with future i.MX952-based FRDM derivative boards.

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +0 -0
new file mode 100644
index 0000000000000..b9ef6bec2bd5a
@@ -0,0 +1,727 @@

[ ... ]

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi line 63

Quoted 12 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +12 -0
+     flexcan2_phy: can-phy0 {
+             compatible = "nxp,tja1051";
+             #phy-cells = <0>;
+             max-bitrate = <8000000>;
+             silent-gpios = <&pcal6416 6 GPIO_ACTIVE_HIGH>;
+     };
+
+     flexcan3_phy: can-phy1 {
+             compatible = "nxp,tja1051";
+             #phy-cells = <0>;
+             max-bitrate = <8000000>;
+             silent-gpios = <&pcal6416 6 GPIO_ACTIVE_HIGH>;

[Severity: High]
Does this cause a probe failure for the second transceiver?

Quoted 8 lines

The first PHY node successfully requests this GPIO line, taking exclusive ownership. Because the phy-can-transceiver driver uses standard exclusive requests (without GPIOD_FLAGS_BIT_NONEXCLUSIVE), the second request for the exact same GPIO line fails with -EBUSY.

This prevents the flexcan3_phy and the flexcan3 controller from probing and functioning.

This two CAN PHY did share same pin as their silent-gpio on hardware.

The same design on i.MX95 15x15 FRDM. This should be fine.

Regards,
Joseph

Quoted 26 lines
Quoted 1 line

+ };

[ ... ]

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi line 705

Quoted 10 lines

+&usdhc2 {

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +9 -0
+     bus-width = <4>;
+     cd-gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+     pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-3 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep";
+     vmmc-supply = <&reg_usdhc2_vmmc>;
+     fsl,cd-gpio-wakeup-disable;

[Severity: Low]
Is this out-of-tree vendor property invalid in the upstream kernel?

The property fsl,cd-gpio-wakeup-disable does not exist in any upstream device tree bindings (such as fsl-imx-esdhc.yaml) and is not handled by any driver code in the upstream Linux tree. This acts as dead code and will trigger make dtbs_check validation warnings.

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi

Quoted 2 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +2 -0
+     status = "okay";
+};

--
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2

Signature · 2 lines
Best Regards,
Joseph
#6 lore raw

Re: [EXT] Re: [PATCH 2/2] arm64: dts: freescale: add i.MX952 FRDM Board support device tree

Quoted 49 lines · Joseph Guo
Quoted 48 lines · On 7/20/2026 2:55 PM, [email protected] wrote:

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [High] Shared GPIO requested exclusively by two CAN transceivers causes probe failure for the second transceiver.
- [Low] Use of undocumented, downstream-only device tree property fsl,cd-gpio-wakeup-disable. --

--- Patch [2]: [PATCH 2/2] arm64: dts: freescale: add i.MX952 FRDM Board support device tree --- commit 8bbcb28d08a05e0f4c57023333492b4e023f7caf
Author: Joseph Guo <[email protected]>

arm64: dts: freescale: add i.MX952 FRDM Board support device tree

Add basic device tree support for i.MX952 FRDM Board. The board-common hardware description is placed in imx952-frdm.dtsi so that it can be shared with future i.MX952-based FRDM derivative boards.

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +0 -0
new file mode 100644
index 0000000000000..b9ef6bec2bd5a
@@ -0,0 +1,727 @@

[ ... ]

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi line 63

Quoted 12 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +12 -0
+     flexcan2_phy: can-phy0 {
+             compatible = "nxp,tja1051";
+             #phy-cells = <0>;
+             max-bitrate = <8000000>;
+             silent-gpios = <&pcal6416 6 GPIO_ACTIVE_HIGH>;
+     };
+
+     flexcan3_phy: can-phy1 {
+             compatible = "nxp,tja1051";
+             #phy-cells = <0>;
+             max-bitrate = <8000000>;
+             silent-gpios = <&pcal6416 6 GPIO_ACTIVE_HIGH>;

[Severity: High]
Does this cause a probe failure for the second transceiver?

The first PHY node successfully requests this GPIO line, taking exclusive ownership. Because the phy-can-transceiver driver uses standard exclusive requests (without GPIOD_FLAGS_BIT_NONEXCLUSIVE), the second request for the exact same GPIO line fails with -EBUSY.

Quoted 5 lines
Quoted 3 lines

This prevents the flexcan3_phy and the flexcan3 controller from probing and functioning.

This two CAN PHY did share same pin as their silent-gpio on hardware.

Hardware share gpio, but driver may not handle this case. Are you sure

flexcan3_phy probed if can-phy0 already probed?

Frank

Quoted 36 lines

The same design on i.MX95 15x15 FRDM. This should be fine.

Regards,
Joseph

Quoted 21 lines
Quoted 1 line

+ };

[ ... ]

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi line 705

Quoted 10 lines

+&usdhc2 {

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +9 -0
+     bus-width = <4>;
+     cd-gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+     pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-3 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep";
+     vmmc-supply = <&reg_usdhc2_vmmc>;
+     fsl,cd-gpio-wakeup-disable;

[Severity: Low]
Is this out-of-tree vendor property invalid in the upstream kernel?

The property fsl,cd-gpio-wakeup-disable does not exist in any upstream device tree bindings (such as fsl-imx-esdhc.yaml) and is not handled by any driver code in the upstream Linux tree. This acts as dead code and will trigger make dtbs_check validation warnings.

Quoted 5 lines

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi

Quoted 2 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +2 -0
+     status = "okay";
+};

--
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2

--
Best Regards,
Joseph

author
#7 lore raw

RE: [EXT] Re: [PATCH 2/2] arm64: dts: freescale: add i.MX952 FRDM Board support device tree

Quoted 66 lines · Joseph Guo
Quoted 10 lines · On 7/20/2026 2:55 PM, [email protected] wrote:
Quoted 9 lines

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button

Thank you for your contribution! Sashiko AI review found 2 potential

issue(s) to consider:

Quoted 1 line
Quoted 1 line

- [High] Shared GPIO requested exclusively by two CAN transceivers

causes probe failure for the second transceiver.

Quoted 1 line
Quoted 1 line

- [Low] Use of undocumented, downstream-only device tree property

fsl,cd-gpio-wakeup-disable.

Quoted 34 lines
Quoted 34 lines

--

--- Patch [2]: [PATCH 2/2] arm64: dts: freescale: add i.MX952 FRDM Board support device tree --- commit 8bbcb28d08a05e0f4c57023333492b4e023f7caf
Author: Joseph Guo <[email protected]>

arm64: dts: freescale: add i.MX952 FRDM Board support device tree

Add basic device tree support for i.MX952 FRDM Board. The board-common hardware description is placed in imx952-frdm.dtsi so that it can be shared with future i.MX952-based FRDM derivative boards.

Quoted 7 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +0 -0
new file mode 100644
index 0000000000000..b9ef6bec2bd5a
@@ -0,0 +1,727 @@

[ ... ]

Quoted 12 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +12 -0
+     flexcan2_phy: can-phy0 {
+             compatible = "nxp,tja1051";
+             #phy-cells = <0>;
+             max-bitrate = <8000000>;
+             silent-gpios = <&pcal6416 6 GPIO_ACTIVE_HIGH>;
+     };
+
+     flexcan3_phy: can-phy1 {
+             compatible = "nxp,tja1051";
+             #phy-cells = <0>;
+             max-bitrate = <8000000>;
+             silent-gpios = <&pcal6416 6 GPIO_ACTIVE_HIGH>;
Quoted 6 lines
Quoted 6 lines

[Severity: High]
Does this cause a probe failure for the second transceiver?

The first PHY node successfully requests this GPIO line, taking exclusive ownership. Because the phy-can-transceiver driver uses standard exclusive requests (without

GPIOD_FLAGS_BIT_NONEXCLUSIVE),

Quoted 6 lines
Quoted 5 lines

the second request for the exact same GPIO line fails with -EBUSY.

This prevents the flexcan3_phy and the flexcan3 controller from probing and functioning.

Quoted 8 lines
Quoted 1 line

This two CAN PHY did share same pin as their silent-gpio on hardware.

Hardware share gpio, but driver may not handle this case. Are you sure

flexcan3_phy probed if can-phy0 already probed?

Frank

Hi Frank,

root@imx952-15x15-lpddr5-frdm:~# ls /sys/bus/platform/drivers/flexcan/
421d0000.can  42220000.can  bind  module  uevent  unbind
root@imx952-15x15-lpddr5-frdm:~# ls /sys/bus/platform/drivers/can-transceiver-phy/
bind  can-phy0  can-phy1  module  uevent  unbind

From the log I think both can-phy probe successfully.

Regards,
Joseph

Quoted 39 lines
Quoted 33 lines

The same design on i.MX95 15x15 FRDM. This should be fine.

Regards,
Joseph

Quoted 27 lines
Quoted 1 line

+ };

[ ... ]

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi line 705

Quoted 10 lines

+&usdhc2 {

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +9 -0
+     bus-width = <4>;
+     cd-gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+     pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-3 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep";
+     vmmc-supply = <&reg_usdhc2_vmmc>;
+     fsl,cd-gpio-wakeup-disable;

[Severity: Low]
Is this out-of-tree vendor property invalid in the upstream kernel?

The property fsl,cd-gpio-wakeup-disable does not exist in any upstream device tree bindings (such as fsl-imx-esdhc.yaml) and is not handled by any driver code in the upstream Linux tree. This acts as dead code and will trigger make dtbs_check validation warnings.

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi

Quoted 2 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +2 -0
+     status = "okay";
+};

--
Sashiko AI review *
https://sashiko.dev/#/patchset/20260720-imx952_frdm-v1-0-

6d145eaaa5c

Quoted 5 lines
Quoted 1 line

[email protected]?part=2

--
Best Regards,
Joseph

#8 lore raw

RE: [EXT] Re: [PATCH 2/2] arm64: dts: freescale: add i.MX952 FRDM Board support device tree

In reply to Frank Li
Quoted 71 lines

-----Original Message-----
From: Frank Li <[email protected]>
Sent: 2026年7月20日 23:07
To: Joseph Guo <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [EXT] Re: [PATCH 2/2] arm64: dts: freescale: add i.MX952 FRDM Board support device tree

Quoted 10 lines · Joseph Guo
Quoted 9 lines · On 7/20/2026 2:55 PM, [email protected] wrote:

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button

Thank you for your contribution! Sashiko AI review found 2 potential

issue(s) to consider:

Quoted 1 line
Quoted 1 line

- [High] Shared GPIO requested exclusively by two CAN transceivers

causes probe failure for the second transceiver.

Quoted 1 line
Quoted 1 line

- [Low] Use of undocumented, downstream-only device tree property

fsl,cd-gpio-wakeup-disable.

Quoted 46 lines
Quoted 45 lines

--

--- Patch [2]: [PATCH 2/2] arm64: dts: freescale: add i.MX952 FRDM Board support device tree --- commit 8bbcb28d08a05e0f4c57023333492b4e023f7caf
Author: Joseph Guo <[email protected]>

arm64: dts: freescale: add i.MX952 FRDM Board support device tree

Add basic device tree support for i.MX952 FRDM Board. The board-common hardware description is placed in imx952-frdm.dtsi so that it can be shared with future i.MX952-based FRDM derivative boards.

Quoted 7 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +0 -0
new file mode 100644
index 0000000000000..b9ef6bec2bd5a
@@ -0,0 +1,727 @@

[ ... ]

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi

Quoted 12 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +12 -0
+     flexcan2_phy: can-phy0 {
+             compatible = "nxp,tja1051";
+             #phy-cells = <0>;
+             max-bitrate = <8000000>;
+             silent-gpios = <&pcal6416 6 GPIO_ACTIVE_HIGH>;
+     };
+
+     flexcan3_phy: can-phy1 {
+             compatible = "nxp,tja1051";
+             #phy-cells = <0>;
+             max-bitrate = <8000000>;
+             silent-gpios = <&pcal6416 6 GPIO_ACTIVE_HIGH>;

[Severity: High]
Does this cause a probe failure for the second transceiver?

The first PHY node successfully requests this GPIO line, taking exclusive ownership. Because the phy-can-transceiver driver uses standard exclusive requests (without GPIOD_FLAGS_BIT_NONEXCLUSIVE), the second request for the exact same GPIO line fails with -EBUSY.

This prevents the flexcan3_phy and the flexcan3 controller from probing and functioning.

Quoted 5 lines
Quoted 1 line

This two CAN PHY did share same pin as their silent-gpio on hardware.

Hardware share gpio, but driver may not handle this case. Are you sure

flexcan3_phy probed if can-phy0 already probed?

Hi Frank

I dug into this. Both of you and sashiko are effectively right, but the outcome depends entirely on kernel config, so let me lay out the facts.

The driver side confirms Frank's/Sashiko's concern. In drivers/phy/phy-can-transceiver.c the silent line is requested exclusively:

silent_gpio = devm_gpiod_get_index_optional(dev, "silent", i,

					    GPIOD_OUT_LOW);

No GPIOD_FLAGS_BIT_NONEXCLUSIVE, and tja1051_drvdata carries CAN_TRANSCEIVER_SILENT_PRESENT, so the line really is requested. On a plain build, the second phy referencing the same pin would hit test_and_set_bit(GPIOD_FLAG_REQUESTED) in gpiod_request_commit() and get -EBUSY, failing the second transceiver and its flexcan controller. And NONEXCLUSIVE cannot be set from DT - the DT gpio flags cell only encodes ACTIVE_LOW / OPEN_DRAIN / PULL etc. So DTS tweaks alone cannot fix it.

Yet on the i.MX95 15x15 FRDM (same design: flexcan2_phy and flexcan5_phy both use silent-gpios = <&pcal6524 7 ...>) I tested it and both can0/can1 probe and pass traffic. The reason is the gpio-shared-proxy framework (drivers/gpio/gpiolib-shared.c, gpio-shared-proxy.c). At postcore_initcall gpiolib scans the DT; when the same controller+offset is referenced by

1 consumer via a "*-gpios" property, it claims the real line once (marked "shared") and hands each consumer its own proxy descriptor with vote-based arbitration - so the second probe no longer returns -EBUSY, with no DTS change.

The important subtlety is how that framework got enabled in my build. It is gated by HAVE_SHARED_GPIOS, and in both your BSP tree(frank.li/linux.git) and current linux-next, the only selector is ARCH_QCOM (commit e511d484cbe4, "arm64: select HAVE_SHARED_GPIOS for ARCH_QCOM"). ARCH_MXC does NOT select it. My kernel has CONFIG_GPIO_SHARED=y because CONFIG_ARCH_QCOM=y is also set (as in the arm64 defconfig), which selects HAVE_SHARED_GPIOS -> GPIO_SHARED=y globally. Since the framework scans the whole DT regardless of SoC, our i.MX CAN nodes benefit from a config that Qualcomm pulled in. It works by coincidence of the multi-platform build, not because i.MX enables it.

Consequences for upstreaming this DTS:

Pure i.MX config (ARCH_MXC=y, no ARCH_QCOM): nothing selects HAVE_SHARED_GPIOS, GPIO_SHARED=n, the framework is compiled out, and the second CAN transceiver fails with -EBUSY. This is exactly Sashiko's scenario, and it is real.

arm64 defconfig (QCOM + i.MX): framework is pulled in by QCOM and it works - what I tested.

So the DTS is fine as written, but to make the shared silent-gpio robust for any i.MX-only configuration we should send a small prerequisite patch mirroring the Qualcomm one:

arch/arm64/Kconfig.platforms +0 -0
@@ config ARCH_MXC

select IMX_GPCV2
select IMX_GPCV2_PM_DOMAINS
+ select HAVE_SHARED_GPIOS
select PM
select PM_GENERIC_DOMAINS
(and CONFIG_GPIO_SHARED_PROXY should be built-in/module in the i.MX defconfig; it is default m). With that in place, the shared silent-gpio in the FRDM DTSI probes correctly regardless of whether ARCH_QCOM is also enabled. If you think this method is okay, then I think Joseph can post this Kconfig patch alongside the board DTS.

Separately, on the [Low] finding: Joseph, please drop the downstream-only "fsl,cd-gpio-wakeup-disable" from &usdhc2 in the upstream DTSI - there is no upstream binding and no driver consumes it, so it is dead code and would trip make dtbs_check

Regards
Haibo Chen

Quoted 58 lines

Frank

Quoted 16 lines

The same design on i.MX95 15x15 FRDM. This should be fine.

Regards,
Joseph

Quoted 10 lines
Quoted 1 line

+ };

[ ... ]

Quoted 8 lines

+&usdhc2 {

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +7 -0
+     bus-width = <4>;
+     cd-gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+     pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-3 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-names = "default", "state_100mhz", "state_200mhz",

"sleep";

Quoted 11 lines
Quoted 11 lines

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi

Quoted 2 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +2 -0
+     vmmc-supply = <&reg_usdhc2_vmmc>;
+     fsl,cd-gpio-wakeup-disable;

[Severity: Low]
Is this out-of-tree vendor property invalid in the upstream kernel?

The property fsl,cd-gpio-wakeup-disable does not exist in any upstream device tree bindings (such as fsl-imx-esdhc.yaml) and is not handled by any driver code in the upstream Linux tree. This acts as dead code and will trigger make dtbs_check validation warnings.

Quoted 7 lines
Quoted 7 lines

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi

Quoted 2 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +2 -0
+     status = "okay";
+};

--
Sashiko AI review ·
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsa

shiko.dev%2F%23%2Fpatchset%2F20260720-imx952_frdm-v1-0-6d145eaaa5 c4%

Quoted 1 line
Quoted 1 line

40nxp.com%3Fpart%3D2&data=05%7C02%7Chaibo.chen%40nxp.com%7C29 e9bc792

Quoted 1 line
Quoted 1 line

4f2455f2cdd08dee67565f4%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0 %7C0%7

Quoted 1 line
Quoted 1 line

C639201589065857811%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGk iOnRydWUs

Quoted 1 line
Quoted 1 line

IlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D

Quoted 1 line
Quoted 1 line

%7C0%7C%7C%7C&sdata=hQfdYq0rrk8kvruJk%2FGc32LxLfMMmRAJn7kG

bT5BMjA%3D

Quoted 5 lines
Quoted 1 line

&reserved=0

--
Best Regards,
Joseph

#9 lore raw

Re: [EXT] Re: [PATCH 2/2] arm64: dts: freescale: add i.MX952 FRDM Board support device tree

Quoted 108 lines · Bough Chen
Quoted 71 lines

-----Original Message-----
From: Frank Li <[email protected]>
Sent: 2026年7月20日 23:07
To: Joseph Guo <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]
Subject: Re: [EXT] Re: [PATCH 2/2] arm64: dts: freescale: add i.MX952 FRDM Board support device tree

Quoted 10 lines · Joseph Guo
Quoted 9 lines · On 7/20/2026 2:55 PM, [email protected] wrote:

[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]

Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button

Thank you for your contribution! Sashiko AI review found 2 potential

issue(s) to consider:

Quoted 1 line
Quoted 1 line

- [High] Shared GPIO requested exclusively by two CAN transceivers

causes probe failure for the second transceiver.

Quoted 1 line
Quoted 1 line

- [Low] Use of undocumented, downstream-only device tree property

fsl,cd-gpio-wakeup-disable.

Quoted 46 lines
Quoted 45 lines

--

--- Patch [2]: [PATCH 2/2] arm64: dts: freescale: add i.MX952 FRDM Board support device tree --- commit 8bbcb28d08a05e0f4c57023333492b4e023f7caf
Author: Joseph Guo <[email protected]>

arm64: dts: freescale: add i.MX952 FRDM Board support device tree

Add basic device tree support for i.MX952 FRDM Board. The board-common hardware description is placed in imx952-frdm.dtsi so that it can be shared with future i.MX952-based FRDM derivative boards.

Quoted 7 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +0 -0
new file mode 100644
index 0000000000000..b9ef6bec2bd5a
@@ -0,0 +1,727 @@

[ ... ]

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi

Quoted 12 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +12 -0
+     flexcan2_phy: can-phy0 {
+             compatible = "nxp,tja1051";
+             #phy-cells = <0>;
+             max-bitrate = <8000000>;
+             silent-gpios = <&pcal6416 6 GPIO_ACTIVE_HIGH>;
+     };
+
+     flexcan3_phy: can-phy1 {
+             compatible = "nxp,tja1051";
+             #phy-cells = <0>;
+             max-bitrate = <8000000>;
+             silent-gpios = <&pcal6416 6 GPIO_ACTIVE_HIGH>;

[Severity: High]
Does this cause a probe failure for the second transceiver?

The first PHY node successfully requests this GPIO line, taking exclusive ownership. Because the phy-can-transceiver driver uses standard exclusive requests (without GPIOD_FLAGS_BIT_NONEXCLUSIVE), the second request for the exact same GPIO line fails with -EBUSY.

This prevents the flexcan3_phy and the flexcan3 controller from probing and functioning.

Quoted 5 lines
Quoted 1 line

This two CAN PHY did share same pin as their silent-gpio on hardware.

Hardware share gpio, but driver may not handle this case. Are you sure

flexcan3_phy probed if can-phy0 already probed?

Hi Frank

I dug into this. Both of you and sashiko are effectively right, but the outcome depends entirely on kernel config, so let me lay out the facts.

The driver side confirms Frank's/Sashiko's concern. In drivers/phy/phy-can-transceiver.c the silent line is requested exclusively:

silent_gpio = devm_gpiod_get_index_optional(dev, "silent", i,

					    GPIOD_OUT_LOW);

No GPIOD_FLAGS_BIT_NONEXCLUSIVE, and tja1051_drvdata carries CAN_TRANSCEIVER_SILENT_PRESENT, so the line really is requested. On a plain build, the second phy referencing the same pin would hit test_and_set_bit(GPIOD_FLAG_REQUESTED) in gpiod_request_commit() and get -EBUSY, failing the second transceiver and its flexcan controller. And NONEXCLUSIVE cannot be set from DT - the DT gpio flags cell only encodes ACTIVE_LOW / OPEN_DRAIN / PULL etc. So DTS tweaks alone cannot fix it.

Yet on the i.MX95 15x15 FRDM (same design: flexcan2_phy and flexcan5_phy both use silent-gpios = <&pcal6524 7 ...>) I tested it and both can0/can1 probe and pass traffic. The reason is the gpio-shared-proxy framework (drivers/gpio/gpiolib-shared.c, gpio-shared-proxy.c). At postcore_initcall gpiolib scans the DT; when the same controller+offset is referenced by

1 consumer via a "*-gpios" property, it claims the real line once (marked "shared") and hands each consumer its own proxy descriptor with vote-based arbitration - so the second probe no longer returns -EBUSY, with no DTS change.

The important subtlety is how that framework got enabled in my build. It is gated by HAVE_SHARED_GPIOS, and in both your BSP tree(frank.li/linux.git) and current linux-next, the only selector is ARCH_QCOM (commit e511d484cbe4, "arm64: select HAVE_SHARED_GPIOS for ARCH_QCOM"). ARCH_MXC does NOT select it. My kernel has CONFIG_GPIO_SHARED=y because CONFIG_ARCH_QCOM=y is also set (as in the arm64 defconfig), which selects HAVE_SHARED_GPIOS -> GPIO_SHARED=y globally. Since the framework scans the whole DT regardless of SoC, our i.MX CAN nodes benefit from a config that Qualcomm pulled in. It works by coincidence of the multi-platform build, not because i.MX enables it.

Consequences for upstreaming this DTS:

Pure i.MX config (ARCH_MXC=y, no ARCH_QCOM): nothing selects HAVE_SHARED_GPIOS, GPIO_SHARED=n, the framework is compiled out, and the second CAN transceiver fails with -EBUSY. This is exactly Sashiko's scenario, and it is real.

arm64 defconfig (QCOM + i.MX): framework is pulled in by QCOM and it works - what I tested.

So the DTS is fine as written, but to make the shared silent-gpio robust for any i.MX-only configuration we should send a small prerequisite patch mirroring the Qualcomm one:

arch/arm64/Kconfig.platforms +0 -0

@@ config ARCH_MXC
select IMX_GPCV2
select IMX_GPCV2_PM_DOMAINS

arch/arm64/Kconfig.platforms +1 -0
+	 select HAVE_SHARED_GPIOS
Quoted 4 lines

select PM
select PM_GENERIC_DOMAINS
(and CONFIG_GPIO_SHARED_PROXY should be built-in/module in the i.MX defconfig; it is default m). With that in place, the shared silent-gpio in the FRDM DTSI probes correctly regardless of whether ARCH_QCOM is also enabled. If you think this method is okay, then I think Joseph can post this Kconfig patch alongside the board DTS.

Thanks you for detail information. It is quite helpful.

Frank

Quoted 64 lines

Separately, on the [Low] finding: Joseph, please drop the downstream-only "fsl,cd-gpio-wakeup-disable" from &usdhc2 in the upstream DTSI - there is no upstream binding and no driver consumes it, so it is dead code and would trip make dtbs_check

Regards
Haibo Chen

Quoted 58 lines

Frank

Quoted 16 lines

The same design on i.MX95 15x15 FRDM. This should be fine.

Regards,
Joseph

Quoted 10 lines
Quoted 1 line

+ };

[ ... ]

Quoted 8 lines

+&usdhc2 {

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +7 -0
+     bus-width = <4>;
+     cd-gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
+     pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-3 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
+     pinctrl-names = "default", "state_100mhz", "state_200mhz",

"sleep";

Quoted 11 lines
Quoted 11 lines

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi

Quoted 2 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +2 -0
+     vmmc-supply = <&reg_usdhc2_vmmc>;
+     fsl,cd-gpio-wakeup-disable;

[Severity: Low]
Is this out-of-tree vendor property invalid in the upstream kernel?

The property fsl,cd-gpio-wakeup-disable does not exist in any upstream device tree bindings (such as fsl-imx-esdhc.yaml) and is not handled by any driver code in the upstream Linux tree. This acts as dead code and will trigger make dtbs_check validation warnings.

Quoted 7 lines
Quoted 7 lines

arch/arm64/boot/dts/freescale/imx952-frdm.dtsi

Quoted 2 lines
arch/arm64/boot/dts/freescale/imx952-frdm.dtsi new file +2 -0
+     status = "okay";
+};

--
Sashiko AI review ・
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsa

shiko.dev%2F%23%2Fpatchset%2F20260720-imx952_frdm-v1-0-6d145eaaa5 c4%

Quoted 1 line
Quoted 1 line

40nxp.com%3Fpart%3D2&data=05%7C02%7Chaibo.chen%40nxp.com%7C29 e9bc792

Quoted 1 line
Quoted 1 line

4f2455f2cdd08dee67565f4%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0 %7C0%7

Quoted 1 line
Quoted 1 line

C639201589065857811%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGk iOnRydWUs

Quoted 1 line
Quoted 1 line

IlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D

Quoted 1 line
Quoted 1 line

%7C0%7C%7C%7C&sdata=hQfdYq0rrk8kvruJk%2FGc32LxLfMMmRAJn7kG

bT5BMjA%3D

Quoted 5 lines
Quoted 1 line

&reserved=0

--
Best Regards,
Joseph

#10 lore raw
In reply to Joseph Guo

From: Frank Li <[email protected]>

Quoted 3 lines · Joseph Guo

i.MX952 FRDM Board is a low-cost and compact board featuring the i.MX952 application processor.
Add dt-bindings and basic device tree for i.MX952 FRDM board.

Applied to imx/dt64-indend, thanks!

[1/2] dt-bindings: arm: fsl: add i.MX952 FRDM board

      commit: fc1661dfee875ef8d6fae18a5a44cda6ca0a7bc4
[2/2] arm64: dts: freescale: add i.MX952 FRDM Board support device tree
      commit: 1e951dec1fdf47462cffd0228bfbaad4ce072c34

Remove Undocument property "fsl,cd-gpio-wakeup-disable".

Best regards,
--
Frank Li <[email protected]>