Add ADLINK LEC-iMX95 board support
Subsystems (2)
cover Add ADLINK LEC-iMX95 board support
This patch series adds device tree support for the ADLINK LEC-iMX95 module on the I-Pi SMARC Plus carrier board.
The series includes:
- Add the ADLINK LEC-iMX95 compatible strings to the Freescale i.MX device tree binding.
- Add the common device tree description for the LEC-iMX95 module.
- Add the I-Pi SMARC Plus carrier board device tree.
- Add the new board DTB to the Freescale device tree Makefile.
The module device tree describes the onboard peripherals and interfaces, while the carrier board device tree describes the carrier-specific hardware connections.
The device tree has been compiled and validated using DT schema checks.
Hardware: ADLINK LEC-iMX95
Carrier board: I-Pi SMARC Plus
SoC: NXP i.MX95
Dinesh kumar v (2):
dt-bindings: arm: fsl: Add ADLINK LEC-iMX95
arm64: dts: imx95: Add ADLINK LEC-iMX95 board support
.../devicetree/bindings/arm/fsl.yaml | 6 + arch/arm64/boot/dts/freescale/Makefile | 1 + .../dts/freescale/imx95-lec-ipi-smarc.dts | 237 ++++++++++ arch/arm64/boot/dts/freescale/imx95-lec.dtsi | 414 ++++++++++++++++++ 4 files changed, 658 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts create mode 100644 arch/arm64/boot/dts/freescale/imx95-lec.dtsi
Signature · 1 line
2.25.1
PATCH 1/2 dt-bindings: arm: fsl: Add ADLINK LEC-iMX95
Add compatible strings for the ADLINK LEC-iMX95 module and its I-Pi SMARC Plus carrier board.
This allows the board to be identified using the following compatible strings:
"adlink,lec-imx95-ipi-smarc",
"adlink,lec-imx95",
"fsl,imx95".
--- Documentation/devicetree/bindings/arm/fsl.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/fsl.yaml +6 -0
@@ -1636,6 +1636,12 @@ properties: - const: variscite,var-dart-mx95 # Variscite DART-MX95 SOM - const: fsl,imx95 + - description: ADLINK LEC-iMX95 based Boards + items: + - const: adlink,lec-imx95-ipi-smarc + - const: adlink,lec-imx95 + - const: fsl,imx95 + - description: i.MXRT1050 based Boards items: - enum:
Signature · 1 line
2.25.1
[email protected]
AI reviewRe: [PATCH 1/2] dt-bindings: arm: fsl: Add ADLINK LEC-iMX95
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] dt-bindings: arm: fsl: undocumented adlink vendor prefix in fsl.yaml --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] dt-bindings: arm: fsl: undocumented adlink vendor prefix in fsl.yaml --
commit adf2fbda79acf7e7bef8349bedcf40bfbb38f343
Author: Dinesh kumar v <[email protected]>
dt-bindings: arm: fsl: Add ADLINK LEC-iMX95
This commit adds compatible strings to Documentation/devicetree/bindings/arm/fsl.yaml for the ADLINK LEC-iMX95 module and its I-Pi SMARC Plus carrier board.
Documentation/devicetree/bindings/arm/fsl.yaml properties: · line 1604
Quoted 13 lines
Documentation/devicetree/bindings/arm/fsl.yaml +5
-0@@ -1597,6 +1597,12 @@ properties: - const: variscite,var-dart-mx95 # Variscite DART-MX95 SOM - const: fsl,imx95 + - description: ADLINK LEC-iMX95 based Boards + items: + - const: adlink,lec-imx95-ipi-smarc + - const: adlink,lec-imx95 + - const: fsl,imx95
[Severity: Low]
Is the adlink vendor prefix documented in Documentation/devicetree/bindings/vendor-prefixes.yaml?
Looking at patternProperties in Documentation/devicetree/bindings/vendor-prefixes.yaml, the entries go directly from adieng to admatec without an entry for adlink:
"^adieng,.*":
description: ADI Engineering, Inc.
"^admatec,.*":
description: admatec GmbH
"^advantech,.*":
description: Advantech Corporation
Without registering "^adlink,.*" in vendor-prefixes.yaml, running dt_binding_check, dtbs_check, or scripts/checkpatch.pl reports an undocumented vendor prefix for adlink,lec-imx95-ipi-smarc and adlink,lec-imx95.
Also, in the i.MX95 section of properties.compatible.oneOf in Documentation/devicetree/bindings/arm/fsl.yaml, the vendor board groups (PHYTEC, Toradex, Variscite) are ordered alphabetically by vendor. Should the ADLINK LEC-iMX95 based Boards entry be placed before PHYTEC i.MX 95 FPSC based Boards instead of after Variscite DART-MX95 based Boards?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
PATCH 2/2 arm64: dts: imx95: Add ADLINK LEC-iMX95 board support
In reply to Dinesh kumar vAdd device tree support for the ADLINK LEC-iMX95 module on the I-Pi SMARC Plus carrier board.
Add the common module device tree description and the carrier-specific device tree describing the hardware interfaces and peripherals.
Also add the new board DTB to the Freescale device tree Makefile.
--- arch/arm64/boot/dts/freescale/Makefile | 1 + .../dts/freescale/imx95-lec-ipi-smarc.dts | 237 ++++++++++ arch/arm64/boot/dts/freescale/imx95-lec.dtsi | 414 ++++++++++++++++++ 3 files changed, 652 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts create mode 100644 arch/arm64/boot/dts/freescale/imx95-lec.dtsi
arch/arm64/boot/dts/freescale/Makefile +1 -0
@@ -983,6 +983,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-wifi-ivy.dtb dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-wifi-mallow.dtb dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-wifi-yavia.dtb dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-wifi-zinnia.dtb +dtb-$(CONFIG_ARCH_MXC) += imx95-lec-ipi-smarc.dtb imx95-15x15-evk-pcie-dtbs += imx95-15x15-evk.dtb imx-m2-pcie.dtbo dtb-$(CONFIG_ARCH_MXC) += imx95-15x15-evk-pcie.dtb
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts new file +237 -0
237 lines not on this page · raw message
arch/arm64/boot/dts/freescale/imx95-lec.dtsi new file +414 -0
414 lines not on this page · raw message
Signature · 1 line
2.25.1
[email protected]
AI reviewRe: [PATCH 2/2] arm64: dts: imx95: Add ADLINK LEC-iMX95 board support
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Medium] arm64: dts: imx95: missing open-drain bit in pinctrl_lpi2c8 pad config - [Low] arm64: dts…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] arm64: dts: imx95: missing open-drain bit in pinctrl_lpi2c8 pad config
- [Low] arm64: dts: imx95: undocumented adlink vendor prefix in compatible --
commit 248f6e79db5b8ae0d4d8bd60d96acbf1ad1f767b
Author: Dinesh kumar v <[email protected]>
arm64: dts: imx95: Add ADLINK LEC-iMX95 board support
This commit adds device tree descriptions for the ADLINK LEC-iMX95 System on Module and the I-Pi SMARC Plus carrier board.
Quoted 14 lines
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts new file +8
-0@@ -0,0 +1,237 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright (C) 2026 ADLINK Technology Inc. + * + * https://www.adlinktech.com/products/Computer_on_Modules/SMARC/LEC-IMX95 + * https://www.adlinktech.com/products/computer_on_modules/SMARCStarterKits/I-Pi_SMARC_IMX95 + */ +
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts line 18
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts new file +10
-0+/dts-v1/; + +#include "imx95-lec.dtsi" + +/ { + model = "ADLINK LEC-iMX95 on I-Pi SMARC Plus Carrier Board"; + compatible = "adlink,lec-imx95-ipi-smarc", + "adlink,lec-imx95", + "fsl,imx95"; +};
[Severity: Low]
The root node uses the "adlink" vendor prefix in its compatible property, along with the new board and module compatible strings, but "adlink" does not appear in Documentation/devicetree/bindings/vendor-prefixes.yaml and the compatible strings are not documented in Documentation/devicetree/bindings/arm/fsl.yaml.
Should the vendor prefix and board compatible bindings be documented so dtbs_check and checkpatch.pl pass without undocumented DT string warnings?
Quoted 5 lines
arch/arm64/boot/dts/freescale/imx95-lec.dtsi new file +0
-0
[ ... ]
Quoted 1 line
+&scmi_iomuxc {
[ ... ]
Quoted 4 lines
arch/arm64/boot/dts/freescale/imx95-lec.dtsi new file +4
-0+ pinctrl_lpi2c2: lpi2c2grp { + fsl,pins = <IMX95_PAD_I2C2_SCL__AONMIX_TOP_LPI2C2_SCL 0x40000b9e>, + <IMX95_PAD_I2C2_SDA__AONMIX_TOP_LPI2C2_SDA 0x40000b9e>; + };
arch/arm64/boot/dts/freescale/imx95-lec.dtsi line 273
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx95-lec.dtsi new file +10
-0+ + pinctrl_lpi2c3: lpi2c3grp { + fsl,pins = <IMX95_PAD_GPIO_IO28__LPI2C3_SDA 0x40000b9e>, + <IMX95_PAD_GPIO_IO29__LPI2C3_SCL 0x40000b9e>; + }; + + pinctrl_lpi2c8: lpi2c8grp { + fsl,pins = <IMX95_PAD_GPIO_IO13__LPI2C8_SCL 0x4000007e>, + <IMX95_PAD_GPIO_IO12__LPI2C8_SDA 0x4000007e>; + };
[Severity: Medium]
In pinctrl_lpi2c8, IMX95_PAD_GPIO_IO13__LPI2C8_SCL and IMX95_PAD_GPIO_IO12__LPI2C8_SDA are configured with 0x4000007e rather than 0x40000b9e as used in pinctrl_lpi2c2 and pinctrl_lpi2c3 above.
On i.MX95, bit 11 (0x800) of the IOMUXC pad control register enables open-drain output and bit 9 (0x200) enables the internal pull-up. With 0x4000007e, both bits are cleared while lpi2c8 is enabled in imx95-lec-ipi-smarc.dts, driving the I2C8 SCL and SDA lines as push-pull outputs.
Should pinctrl_lpi2c8 use 0x40000b9e so that open-drain mode is enabled on the I2C8 bus?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
v2 cover Add ADLINK LEC-iMX95 board support
In reply to Dinesh kumar vThis patch series adds device tree support for the ADLINK LEC-iMX95 module on the I-Pi SMARC Plus carrier board.
The series includes:
- Add the ADLINK vendor prefix to vendor-prefixes.yaml.
- Add the ADLINK LEC-iMX95 compatible strings to the Freescale i.MX device tree binding.
- Add the common device tree description for the LEC-iMX95 module.
- Add the I-Pi SMARC Plus carrier board device tree.
The module device tree describes the onboard peripherals and interfaces, while the carrier board device tree describes the carrier-specific hardware connections.
The device tree has been compiled and validated using DT schema checks.
Changes in v2:
- Add the ADLINK vendor prefix to vendor-prefixes.yaml.
- Move the ADLINK compatible entry before PHYTEC in alphabetical order.
- Enable open-drain configuration for LPI2C8 SCL and SDA pins.
Hardware: ADLINK LEC-iMX95
Carrier board: I-Pi SMARC Plus
SoC: NXP i.MX95
Dinesh kumar v (3):
dt-bindings: vendor-prefixes: Add ADLINK
dt-bindings: arm: fsl: Add ADLINK LEC-iMX95
arm64: dts: imx95: Add ADLINK LEC-iMX95 board support
.../devicetree/bindings/arm/fsl.yaml | 6 + .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm64/boot/dts/freescale/Makefile | 1 + .../dts/freescale/imx95-lec-ipi-smarc.dts | 237 ++++++++++ arch/arm64/boot/dts/freescale/imx95-lec.dtsi | 414 ++++++++++++++++++ 5 files changed, 660 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts create mode 100644 arch/arm64/boot/dts/freescale/imx95-lec.dtsi
Signature · 1 line
2.25.1
PATCH v2 1/3 dt-bindings: vendor-prefixes: Add ADLINK
Add the ADLINK Technology Inc. vendor prefix for device tree compatible strings used by ADLINK hardware.
--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
@@ -70,6 +70,8 @@ patternProperties: description: ADI Engineering, Inc. "^admatec,.*": description: admatec GmbH + "^adlink,.*": + description: ADLINK Technology Inc. "^advantech,.*": description: Advantech Corporation "^aeroflexgaisler,.*":
Signature · 1 line
2.25.1
[email protected]
AI reviewRe: [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add ADLINK
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider: - [Low] dt-bindings: vendor-prefixes: adlink entry added out of alphabetical order - [Low] dt-bindings…
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] dt-bindings: vendor-prefixes: adlink entry added out of alphabetical order
- [Low] dt-bindings: vendor-prefixes: Author and Signed-off-by email mismatch --
commit dba9f5e74cdb4e9777b31ecece91c151c0904cf4
Author: Dinesh kumar v <[email protected]>
dt-bindings: vendor-prefixes: Add ADLINK
This commit adds the adlink vendor prefix for ADLINK Technology Inc. to the device tree vendor-prefixes schema.
Quoted 6 lines
dt-bindings: vendor-prefixes: Add ADLINK
Add the ADLINK Technology Inc. vendor prefix for device tree compatible strings used by ADLINK hardware.
Signed-off-by Dinesh kumar v <[email protected]>
[Severity: Low]
The commit Author email address ([email protected]) does not match the Signed-off-by email address ([email protected]), which triggers a checkpatch FROM_SIGN_OFF_MISMATCH warning. Should the Author and Signed-off-by addresses be aligned?
Documentation/devicetree/bindings/vendor-prefixes.yaml patternProperties: · line 74
Quoted 10 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +2
-0@@ -70,6 +70,8 @@ patternProperties: description: ADI Engineering, Inc. "^admatec,.*": description: admatec GmbH + "^adlink,.*": + description: ADLINK Technology Inc.
[Severity: Low]
The patternProperties list in Documentation/devicetree/bindings/vendor-prefixes.yaml specifies:
# Keep list in alphabetical order.
Should the "^adlink,.*" entry be placed before "^admatec,.*" rather than after it to maintain alphabetical ordering?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Re: [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add ADLINK
In reply to Dinesh kumar vQuoted 2 lines · Dinesh kumar v
Add the ADLINK Technology Inc. vendor prefix for device tree compatible strings used by ADLINK hardware.
Do not attach (thread) your patchsets to some other threads (unrelated or older versions). This buries them deep in the mailbox and might interfere with applying entire sets. See also:
https://elixir.bootlin.com/linux/v6.16-rc2/source/Documentation/process/submitting-patches.rst#L830
Also, mismatched identity/DCO.
Quoted 11 lines
Signed-off-by Dinesh kumar v <[email protected]>--- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+)Documentation/devicetree/bindings/vendor-prefixes.yaml +0
-0
Documentation/devicetree/bindings/vendor-prefixes.yaml patternProperties: · line 73
Quoted 4 lines
Documentation/devicetree/bindings/vendor-prefixes.yaml +1
-0@@ -70,6 +70,8 @@ patternProperties: description: ADI Engineering, Inc. "^admatec,.*": description: admatec GmbH + "^adlink,.*":
Honestly, so difficult to put things alphabetically...
Best regards,
Krzysztof
PATCH v2 2/3 dt-bindings: arm: fsl: Add ADLINK LEC-iMX95
In reply to Dinesh kumar vAdd compatible strings for the ADLINK LEC-iMX95 module and its I-Pi SMARC Plus carrier board.
--- Documentation/devicetree/bindings/arm/fsl.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/fsl.yaml +6 -0
@@ -1577,6 +1577,12 @@ properties: - fsl,imx952-frdm # i.MX952 FRDM Board - const: fsl,imx952 + - description: ADLINK LEC-iMX95 based Boards + items: + - const: adlink,lec-imx95-ipi-smarc + - const: adlink,lec-imx95 + - const: fsl,imx95 + - description: PHYTEC i.MX 95 FPSC based Boards items: - enum:
Signature · 1 line
2.25.1
PATCH v2 3/3 arm64: dts: imx95: Add ADLINK LEC-iMX95 board support
In reply to Dinesh kumar vAdd the common device tree description for the ADLINK LEC-iMX95 module and the I-Pi SMARC Plus carrier board.
Describe the onboard peripherals and carrier-specific hardware connections.
--- arch/arm64/boot/dts/freescale/Makefile | 1 + .../dts/freescale/imx95-lec-ipi-smarc.dts | 237 ++++++++++ arch/arm64/boot/dts/freescale/imx95-lec.dtsi | 414 ++++++++++++++++++ 3 files changed, 652 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts create mode 100644 arch/arm64/boot/dts/freescale/imx95-lec.dtsi
arch/arm64/boot/dts/freescale/Makefile +1 -0
@@ -983,6 +983,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-wifi-ivy.dtb dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-wifi-mallow.dtb dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-wifi-yavia.dtb dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-wifi-zinnia.dtb +dtb-$(CONFIG_ARCH_MXC) += imx95-lec-ipi-smarc.dtb imx95-15x15-evk-pcie-dtbs += imx95-15x15-evk.dtb imx-m2-pcie.dtbo dtb-$(CONFIG_ARCH_MXC) += imx95-15x15-evk-pcie.dtb
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts new file +237 -0
237 lines not on this page · raw message
arch/arm64/boot/dts/freescale/imx95-lec.dtsi new file +414 -0
414 lines not on this page · raw message
Signature · 1 line
2.25.1
[email protected]
AI reviewRe: [PATCH v2 3/3] arm64: dts: imx95: Add ADLINK LEC-iMX95 board support
Thank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider: - [Low] arm64: dts: imx95: on-module LEC-iMX95 components placed in carrier board DTS - [Low] arm64: dts…
Thank you for your contribution! Sashiko AI review found 5 potential issue(s) to consider:
- [Low] arm64: dts: imx95: on-module LEC-iMX95 components placed in carrier board DTS
- [Low] arm64: dts: imx95: duplicate usb@4c100000 reference via usb3 and usb3_dwc3
- [Low] arm64: dts: imx95: imx95-lec-ipi-smarc.dtb not sorted alphabetically in Makefile
- [Low] arm64: dts: imx95: Author email does not match Signed-off-by email
- [Low] arm64: dts: imx95: duplicate USDHC pinctrl groups and 200MHz pad settings --
commit 15a8ff538ba6c35961382a83a0abb8e1fea067e2
Author: Dinesh kumar v <[email protected]>
arm64: dts: imx95: Add ADLINK LEC-iMX95 board support
This commit adds the device tree description for the ADLINK LEC-iMX95 system on module and the I-Pi SMARC Plus carrier board, along with the corresponding Makefile entry.
Quoted 9 lines
arm64: dts: imx95: Add ADLINK LEC-iMX95 board support
Add the common device tree description for the ADLINK LEC-iMX95 module and the I-Pi SMARC Plus carrier board.
Describe the onboard peripherals and carrier-specific hardware connections.
Signed-off-by Dinesh kumar v <[email protected]>
[Severity: Low]
This isn't a bug, but the Author email address ([email protected]) does not match the Signed-off-by email address ([email protected]). Should these two addresses match?
arch/arm64/boot/dts/freescale/Makefile dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-wifi-ivy.dtb · line 986
Quoted 9 lines
arch/arm64/boot/dts/freescale/Makefile +1
-0@@ -983,6 +983,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-wifi-ivy.dtb dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-wifi-mallow.dtb dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-wifi-yavia.dtb dtb-$(CONFIG_ARCH_MXC) += imx95-verdin-wifi-zinnia.dtb +dtb-$(CONFIG_ARCH_MXC) += imx95-lec-ipi-smarc.dtb
[Severity: Low]
This isn't a bug, but the imx95 targets in arch/arm64/boot/dts/freescale/Makefile are sorted alphabetically. Should imx95-lec-ipi-smarc.dtb be placed between imx95-aquila-dev.dtb and imx95-navq.dtb instead of at the end of the list?
[ ... ]
Quoted 5 lines
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts new file +0
-0
[ ... ]
Quoted 63 lines
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts new file +63
-0+/* Ethernet SMARC GBE0 */ +&enetc_port0 { + pinctrl-0 = <&pinctrl_enetc0>; + phy-handle = <ðphy0>; + pinctrl-names = "default"; + phy-mode = "rgmii-id"; + + status = "okay"; +}; + +/* Ethernet SMARC GBE1 */ +&enetc_port1 { + pinctrl-0 = <&pinctrl_enetc1>; + phy-handle = <ðphy1>; + pinctrl-names = "default"; + phy-mode = "rgmii-id"; + + status = "okay"; +}; + +&lpi2c2 { + clock-frequency = <100000>; + pinctrl-0 = <&pinctrl_lpi2c2>; + pinctrl-names = "default"; + + status = "okay"; + + /* U1000 SX1509BIULTRT_SEMTECH */ + i2c2_gpio_expander_71: pinctrl@71 { + /* + * GPIO Expander Mapping: + * - 0: ENET1_RST_B_3V => U2001 + * - 1: ENET2_RST_B_3V => U2101 + * - 2: SERDES_RST#_3V => SMARC S77 PCIE_C_RST + * - 3: RC210_EN_3V => U1300, RC21008B001GND + * - 4: LT9611_RSTN_3V => U1500 + * - 5: HDMI_INT_3V <= U1500 + * - 6: PCIEA_RST#_3V => SMARC P75 + * - 7: PCIEB_RST#_3V => SMARC S76 + * - 8: TPM_RST_N_1V8 => U2400 + * - 9: LID#_1V8 <= R1005 SMARC S148 + * - 10: SLEEP#_1V8 <= R1010 SMARC S149 + * - 11: CHARGING#_1V8 <= R1007 SMARC S151 + * - 12: CHARGER_PRSNT#_1V8 <= R1011 SMARC S152 + * - 13: BATLOW#_1V8 <= R1014 SMARC S156 + * - 14: TEST#_1V8 <= R1015 SMARC S157 + * - 15: DSI0_TE_1V8 <= R1087 SMARC S144 + */ + compatible = "semtech,sx1509q"; + reg = <0x71>; + #gpio-cells = <2>; + gpio-controller; + #interrupt-cells = <2>; + interrupt-controller; + interrupt-parent = <&gpio4>; + interrupts = <15 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 = <&pinctrl_sx1509q>; + pinctrl-names = "default"; + semtech,probe-reset; + + status = "okay"; + }; +};
[ ... ]
Quoted 20 lines
+&netc_emdio {
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts new file +19
-0+ pinctrl-0 = <&pinctrl_emdio>; + pinctrl-names = "default"; + + status = "okay"; + + ethphy0: ethernet-phy@1 { + compatible = "ethernet-phy-id001c.c916"; + reg = <1>; + eee-broken-1000t; + realtek,clkout-disable; + }; + + ethphy1: ethernet-phy@4 { + compatible = "ethernet-phy-id001c.c916"; + reg = <4>; + eee-broken-1000t; + realtek,clkout-disable; + }; +};
[ ... ]
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts line 225
Quoted 11 lines
+&usb3 {
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts new file +10
-0+ status = "okay"; +}; + +&usb3_dwc3 { + dr_mode = "host"; + snps,dis-u1-entry-quirk; + snps,dis-u2-entry-quirk; + + status = "okay"; +};
[Severity: Low]
In arch/arm64/boot/dts/freescale/imx95.dtsi, usb3 and usb3_dwc3 are labels on the same flattened usb@4c100000 node:
usb3: usb3_dwc3: usb@4c100000 {Should &usb3 and &usb3_dwc3 in arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts be merged into a single node reference so status = "okay" is not set twice on the same node?
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts line 233
Quoted 8 lines
arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts new file +8
-0+ +&usb3_phy { + status = "okay"; +}; + +&usdhc1 { + status = "okay"; +};
[Severity: Low]
Several on-module components and module pinmux bindings are placed here in arch/arm64/boot/dts/freescale/imx95-lec-ipi-smarc.dts rather than in arch/arm64/boot/dts/freescale/imx95-lec.dtsi:
- i2c2_gpio_expander_71 under lpi2c2 is on the module (its interrupt pin is named and muxed via pinctrl_sx1509q in imx95-lec.dtsi, and its pins control on-module devices as well as SMARC signals).
- ethphy0 and ethphy1 under netc_emdio, along with the RGMII/MDIO pinctrl-0 and phy-mode properties on enetc_port0, enetc_port1, and netc_emdio, are part of the SMARC module's GBE0/GBE1 implementation.
- usdhc1 is configured as the non-removable on-module storage in imx95-lec.dtsi, but status = "okay" is only set in the carrier board file.
- The pinctrl-0 and pinctrl-names properties referencing the pinctrl_* groups defined in imx95-lec.dtsi are only attached to the peripheral nodes in imx95-lec-ipi-smarc.dts.
Should these on-module definitions and pinctrl properties be moved into imx95-lec.dtsi so that other carrier board device trees including imx95-lec.dtsi do not have to duplicate them?
[ ... ]
Quoted 5 lines
arch/arm64/boot/dts/freescale/imx95-lec.dtsi new file +0
-0
[ ... ]
Quoted 72 lines
arch/arm64/boot/dts/freescale/imx95-lec.dtsi new file +72
-0+ pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp { + bootph-pre-ram; + fsl,pins = <IMX95_PAD_SD1_CLK__USDHC1_CLK 0x158e>, + <IMX95_PAD_SD1_CMD__USDHC1_CMD 0x138e>, + <IMX95_PAD_SD1_DATA0__USDHC1_DATA0 0x138e>, + <IMX95_PAD_SD1_DATA1__USDHC1_DATA1 0x138e>, + <IMX95_PAD_SD1_DATA2__USDHC1_DATA2 0x138e>, + <IMX95_PAD_SD1_DATA3__USDHC1_DATA3 0x138e>, + <IMX95_PAD_SD1_DATA4__USDHC1_DATA4 0x138e>, + <IMX95_PAD_SD1_DATA5__USDHC1_DATA5 0x138e>, + <IMX95_PAD_SD1_DATA6__USDHC1_DATA6 0x138e>, + <IMX95_PAD_SD1_DATA7__USDHC1_DATA7 0x138e>, + <IMX95_PAD_SD1_STROBE__USDHC1_STROBE 0x158e>; + }; + + pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp { + bootph-pre-ram; + fsl,pins = <IMX95_PAD_SD1_CLK__USDHC1_CLK 0x15fe>, + <IMX95_PAD_SD1_CMD__USDHC1_CMD 0x13fe>, + <IMX95_PAD_SD1_DATA0__USDHC1_DATA0 0x13fe>, + <IMX95_PAD_SD1_DATA1__USDHC1_DATA1 0x13fe>, + <IMX95_PAD_SD1_DATA2__USDHC1_DATA2 0x13fe>, + <IMX95_PAD_SD1_DATA3__USDHC1_DATA3 0x13fe>, + <IMX95_PAD_SD1_DATA4__USDHC1_DATA4 0x13fe>, + <IMX95_PAD_SD1_DATA5__USDHC1_DATA5 0x13fe>, + <IMX95_PAD_SD1_DATA6__USDHC1_DATA6 0x13fe>, + <IMX95_PAD_SD1_DATA7__USDHC1_DATA7 0x13fe>, + <IMX95_PAD_SD1_STROBE__USDHC1_STROBE 0x15fe>; + }; + + pinctrl_usdhc1: usdhc1grp { + bootph-pre-ram; + fsl,pins = <IMX95_PAD_SD1_CLK__USDHC1_CLK 0x158e>, + <IMX95_PAD_SD1_CMD__USDHC1_CMD 0x138e>, + <IMX95_PAD_SD1_DATA0__USDHC1_DATA0 0x138e>, + <IMX95_PAD_SD1_DATA1__USDHC1_DATA1 0x138e>, + <IMX95_PAD_SD1_DATA2__USDHC1_DATA2 0x138e>, + <IMX95_PAD_SD1_DATA3__USDHC1_DATA3 0x138e>, + <IMX95_PAD_SD1_DATA4__USDHC1_DATA4 0x138e>, + <IMX95_PAD_SD1_DATA5__USDHC1_DATA5 0x138e>, + <IMX95_PAD_SD1_DATA6__USDHC1_DATA6 0x138e>, + <IMX95_PAD_SD1_DATA7__USDHC1_DATA7 0x138e>, + <IMX95_PAD_SD1_STROBE__USDHC1_STROBE 0x158e>; + }; + + pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp { + bootph-pre-ram; + fsl,pins = <IMX95_PAD_SD2_CLK__USDHC2_CLK 0x158e>, + <IMX95_PAD_SD2_CMD__USDHC2_CMD 0x138e>, + <IMX95_PAD_SD2_DATA0__USDHC2_DATA0 0x138e>, + <IMX95_PAD_SD2_DATA1__USDHC2_DATA1 0x138e>, + <IMX95_PAD_SD2_DATA2__USDHC2_DATA2 0x138e>, + <IMX95_PAD_SD2_DATA3__USDHC2_DATA3 0x138e>, + <IMX95_PAD_SD2_VSELECT__USDHC2_VSELECT 0x51e>; + }; + + pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { + bootph-pre-ram; + fsl,pins = <IMX95_PAD_SD2_CLK__USDHC2_CLK 0x158e>, + <IMX95_PAD_SD2_CMD__USDHC2_CMD 0x138e>, + <IMX95_PAD_SD2_DATA0__USDHC2_DATA0 0x138e>, + <IMX95_PAD_SD2_DATA1__USDHC2_DATA1 0x138e>, + <IMX95_PAD_SD2_DATA2__USDHC2_DATA2 0x138e>, + <IMX95_PAD_SD2_DATA3__USDHC2_DATA3 0x138e>, + <IMX95_PAD_SD2_VSELECT__USDHC2_VSELECT 0x51e>; + }; + + pinctrl_usdhc2_gpio: usdhc2gpiogrp { + bootph-pre-ram; + fsl,pins = <IMX95_PAD_SD2_CD_B__GPIO3_IO_BIT0 0x31e>; + }; +
arch/arm64/boot/dts/freescale/imx95-lec.dtsi line 413
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx95-lec.dtsi new file +10
-0+ pinctrl_usdhc2: usdhc2grp { + bootph-pre-ram; + fsl,pins = <IMX95_PAD_SD2_CLK__USDHC2_CLK 0x158e>, + <IMX95_PAD_SD2_CMD__USDHC2_CMD 0x138e>, + <IMX95_PAD_SD2_DATA0__USDHC2_DATA0 0x138e>, + <IMX95_PAD_SD2_DATA1__USDHC2_DATA1 0x138e>, + <IMX95_PAD_SD2_DATA2__USDHC2_DATA2 0x138e>, + <IMX95_PAD_SD2_DATA3__USDHC2_DATA3 0x138e>, + <IMX95_PAD_SD2_VSELECT__USDHC2_VSELECT 0x51e>; + };
[Severity: Low]
In scmi_iomuxc in arch/arm64/boot/dts/freescale/imx95-lec.dtsi, pinctrl_usdhc2_200mhz uses the same 0x158e and 0x138e pad configuration values as pinctrl_usdhc2_100mhz and pinctrl_usdhc2, whereas pinctrl_usdhc1_200mhz uses 0x15fe and 0x13fe. In addition, pinctrl_usdhc1_100mhz is identical to pinctrl_usdhc1, and pinctrl_usdhc2_100mhz is identical to pinctrl_usdhc2.
Should pinctrl_usdhc2_200mhz use 0x15fe/0x13fe for 200MHz operation, or if all states intentionally use the same pad settings, can the duplicate pinctrl groups be dropped in favor of reusing pinctrl_usdhc1 and pinctrl_usdhc2?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3