Skip to contentSkip to conversation

arm64: add new phyFLEX-Libra i.MX 8M Plus FPSC hardware.

PATCH In review Yannic Moog 5 participants 20 messages Nov 16 – Nov 24

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover arm64: add new phyFLEX-Libra i.MX 8M Plus FPSC hardware.

This series replaces the existing phyCORE-i.MX 8M Plus FPSC with a newer revision. With the new hardware revision also comes a new product name (phyFLEX i.MX 8M Plus FPSC).
The SoM hardware description largely stays untouched, exception being new name. Most of the changes are in the carrier board due to a redesign. To separate both the changes, this series introduces the phyFLEX-Libra variant as a new binding and set of device trees and then removes the "old" phyCORE based bindings as well as device trees. There has only been prototype hardware of the early "phyCORE" revision.

---
Yannic Moog (5):
dt-bindings: fsl: add phyFLEX-Libra i.MX 8M Plus FPSC
arm64: dts: Add phyFLEX-Libra i.MX 8M Plus FPSC
arm64: dts: imx8mp-phyflex-libra: add display overlays
arm64: dts: remove Libra phyCORE-i.MX 8M Plus FPSC
dt-bindings: fsl: remove phyCORE-i.MX 8M Plus FPSC

 Documentation/devicetree/bindings/arm/fsl.yaml     |  13 +-
 arch/arm64/boot/dts/freescale/Makefile             |  20 +-
 .../boot/dts/freescale/imx8mp-libra-rdk-fpsc.dts   | 290 ----------
 ...re-fpsc.dtsi => imx8mp-phyflex-fpsc-g-som.dtsi} | 256 +++++----
 ...phyflex-libra-rdk-lvds-ph128800t006-zhc01.dtso} |   6 +-
 ...-phyflex-libra-rdk-peb-av-10-ph128800t006.dtso} |  25 +-
 ...tsi => imx8mp-phyflex-libra-rdk-peb-av-10.dtsi} |  88 +--
 ...tso => imx8mp-phyflex-libra-rdk-peb-av-10.dtso} |   2 +-
 .../dts/freescale/imx8mp-phyflex-libra-rdk.dts     | 604 +++++++++++++++++++++
 9 files changed, 819 insertions(+), 485 deletions(-)

---
base-commit: 7be4bc52fd9e0e55dc9a2e0232b89427d2c4b614
change-id: 20260220-imx8mp-phyflex-4fe0dff09807

Best regards,

Signature · 1 line
Yannic Moog <[email protected]>
#1 lore raw

PATCH 1/5 dt-bindings: fsl: add phyFLEX-Libra i.MX 8M Plus FPSC

Add bindings for phyFLEX-i.MX 8M Plus System-on-Module [1] along with a carrier board (Libra) that join to an SBC.

[1] https://www.phytec.eu/en/produkte/system-on-modules/phyflex-imx-8m-plus-fpsc/

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/arm/fsl.yaml +12 -6
index 656f2596e1d53..2d21a1949d949 100644
@@ -1225,12 +1225,18 @@ properties:
           - const: kontron,imx8mp-osm-s               # Kontron i.MX8MP OSM-S SoM
           - const: fsl,imx8mp
 
-      - description: PHYTEC phyCORE-i.MX8MP FPSC based boards
-        items:
-          - enum:
-              - phytec,imx8mp-libra-rdk-fpsc  # i.MX 8M Plus Libra RDK
-          - const: phytec,imx8mp-phycore-fpsc # phyCORE-i.MX 8M Plus FPSC
-          - const: fsl,imx8mp
+      - description: PHYTEC i.MX8MP FPSC based boards
+        oneOf:
+          - items:
+            - enum:
+                - phytec,imx8mp-libra-rdk-fpsc  # i.MX 8M Plus Libra RDK
+            - const: phytec,imx8mp-phycore-fpsc # phyCORE-i.MX 8M Plus FPSC
+            - const: fsl,imx8mp
+          - items:
+            - enum:
+                - phytec,imx8mp-phyflex-libra-rdk # phyFLEX-Libra i.MX 8M Plus RDK
+            - const: phytec,imx8mp-phyflex-fpsc-g # phyFLEX-i.MX 8M Plus FPSC
+            - const: fsl,imx8mp
 
       - description: PHYTEC phyCORE-i.MX8MP SoM based boards
         items:
Signature · 1 line
2.43.0
#2 lore raw

Re: [PATCH 1/5] dt-bindings: fsl: add phyFLEX-Libra i.MX 8M Plus FPSC

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] dt-bindings: arm: fsl: wrong YAML sequence indentation under oneOf items --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] dt-bindings: arm: fsl: wrong YAML sequence indentation under oneOf items
--

commit c45415521ffaa99c1a93405ffd739350149edce7
Author: Yannic Moog <[email protected]>

dt-bindings: fsl: add phyFLEX-Libra i.MX 8M Plus FPSC

This commit adds devicetree compatible bindings for the PHYTEC phyFLEX-i.MX 8M Plus FPSC SoM and the phyFLEX-Libra RDK carrier board.

Quoted 16 lines
Documentation/devicetree/bindings/arm/fsl.yaml +2 -6
index 656f2596e1d53..2d21a1949d949 100644
@@ -1225,12 +1225,18 @@ properties:
           - const: kontron,imx8mp-osm-s               # Kontron i.MX8MP OSM-S SoM
           - const: fsl,imx8mp
 
-      - description: PHYTEC phyCORE-i.MX8MP FPSC based boards
-        items:
-          - enum:
-              - phytec,imx8mp-libra-rdk-fpsc  # i.MX 8M Plus Libra RDK
-          - const: phytec,imx8mp-phycore-fpsc # phyCORE-i.MX 8M Plus FPSC
-          - const: fsl,imx8mp
+      - description: PHYTEC i.MX8MP FPSC based boards
+        oneOf:

Documentation/devicetree/bindings/arm/fsl.yaml properties: · line 1239

Quoted 10 lines
Documentation/devicetree/bindings/arm/fsl.yaml +10 -0
+          - items:
+            - enum:
+                - phytec,imx8mp-libra-rdk-fpsc  # i.MX 8M Plus Libra RDK
+            - const: phytec,imx8mp-phycore-fpsc # phyCORE-i.MX 8M Plus FPSC
+            - const: fsl,imx8mp
+          - items:
+            - enum:
+                - phytec,imx8mp-phyflex-libra-rdk # phyFLEX-Libra i.MX 8M Plus RDK
+            - const: phytec,imx8mp-phyflex-fpsc-g # phyFLEX-i.MX 8M Plus FPSC
+            - const: fsl,imx8mp

[Severity: Low]
Should the sequence entries under both - items: blocks be indented by two additional spaces (14 spaces for - enum: and - const:, and 18 spaces for the enum values)? Documentation/devicetree/bindings/.yamllint configures
spaces: 2 with indent-sequences: true, so aligning - enum: and - const:
with items: at 12 spaces causes make dt_binding_check to fail with yamllint indentation errors.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
#3 lore raw

Re: [PATCH 1/5] dt-bindings: fsl: add phyFLEX-Libra i.MX 8M Plus FPSC

In reply to Yannic Moog
Quoted 10 lines · Yannic Moog

Add bindings for phyFLEX-i.MX 8M Plus System-on-Module [1] along with a carrier board (Libra) that join to an SBC.

[1] https://www.phytec.eu/en/produkte/system-on-modules/phyflex-imx-8m-plus-fpsc/

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

My bot found errors running 'make dt_binding_check' on your patch:

yamllint warnings/errors:
./Documentation/devicetree/bindings/arm/fsl.yaml:1231:13: [warning] wrong indentation: expected 14 but found 12 (indentation) ./Documentation/devicetree/bindings/arm/fsl.yaml:1236:13: [warning] wrong indentation: expected 14 but found 12 (indentation)

dtschema/dtc warnings/errors:

doc reference errors (make refcheckdocs):

See https://patchwork.kernel.org/project/devicetree/patch/[email protected]

The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch.

If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date:

pip3 install dtschema --upgrade

Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.

#4 lore raw

Re: [PATCH 1/5] dt-bindings: fsl: add phyFLEX-Libra i.MX 8M Plus FPSC

In reply to Yannic Moog
Quoted 21 lines · Yannic Moog

Add bindings for phyFLEX-i.MX 8M Plus System-on-Module [1] along with a carrier board (Libra) that join to an SBC.

[1] https://www.phytec.eu/en/produkte/system-on-modules/phyflex-imx-8m-plus-fpsc/

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/arm/fsl.yaml +0 -3
index 656f2596e1d53..2d21a1949d949 100644
@@ -1225,12 +1225,18 @@ properties:
           - const: kontron,imx8mp-osm-s               # Kontron i.MX8MP OSM-S SoM
           - const: fsl,imx8mp
 
-      - description: PHYTEC phyCORE-i.MX8MP FPSC based boards
-        items:
-          - enum:

Documentation/devicetree/bindings/arm/fsl.yaml properties: · line 1234

Quoted 10 lines
Documentation/devicetree/bindings/arm/fsl.yaml +7 -3
-              - phytec,imx8mp-libra-rdk-fpsc  # i.MX 8M Plus Libra RDK
-          - const: phytec,imx8mp-phycore-fpsc # phyCORE-i.MX 8M Plus FPSC
-          - const: fsl,imx8mp
+      - description: PHYTEC i.MX8MP FPSC based boards
+        oneOf:
+          - items:
+            - enum:
+                - phytec,imx8mp-libra-rdk-fpsc  # i.MX 8M Plus Libra RDK
+            - const: phytec,imx8mp-phycore-fpsc # phyCORE-i.MX 8M Plus FPSC
+            - const: fsl,imx8mp

Except lack of testing, don't nest oneOf.

Best regards,
Krzysztof

#5 lore raw

Re: [PATCH 1/5] dt-bindings: fsl: add phyFLEX-Libra i.MX 8M Plus FPSC

Quoted 27 lines · Krzysztof Kozlowski
Quoted 26 lines · Yannic Moog

Add bindings for phyFLEX-i.MX 8M Plus System-on-Module [1] along with a carrier board (Libra) that join to an SBC.

[1] https://www.phytec.eu/en/produkte/system-on-modules/phyflex-imx-8m-plus-fpsc/

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 18 ++++++++++++------

 1 file changed, 12 insertions(+), 6 deletions(-)
Documentation/devicetree/bindings/arm/fsl.yaml +0 -0
index 656f2596e1d53..2d21a1949d949 100644
@@ -1225,12 +1225,18 @@ properties:

           - const: kontron,imx8mp-osm-s               # Kontron i.MX8MP OSM-S SoM
           - const: fsl,imx8mp

-      - description: PHYTEC phyCORE-i.MX8MP FPSC based boards
-        items:
-          - enum:
-              - phytec,imx8mp-libra-rdk-fpsc  # i.MX 8M Plus Libra RDK -          - const: phytec,imx8mp-phycore-fpsc # phyCORE-i.MX 8M Plus FPSC -          - const: fsl,imx8mp
+      - description: PHYTEC i.MX8MP FPSC based boards

Quoted 8 lines
Quoted 6 lines

+        oneOf:
+          - items:
+            - enum:
+                - phytec,imx8mp-libra-rdk-fpsc  # i.MX 8M Plus Libra RDK +            - const: phytec,imx8mp-phycore-fpsc # phyCORE-i.MX 8M Plus FPSC +            - const: fsl,imx8mp

Except lack of testing, don't nest oneOf.

Both entries refer to the same board, that is why I used oneOf. Is this incorrect usage of the 'oneOf' property? I can remove it, since later patch removes one of the options anyway. Forgot to remove it in the 5th patch.

Yannic

Quoted 3 lines

Best regards,
Krzysztof

#6 lore raw

PATCH 2/5 arm64: dts: Add phyFLEX-Libra i.MX 8M Plus FPSC

In reply to Yannic Moog

phyFLEX-Libra is the successor to phyCORE-Libra i.MX 8M Plus. It has gone through a rename and extensive baseboard changes from revision 1618.1 to 1618.2.

---
 arch/arm64/boot/dts/freescale/Makefile             |   1 +
 .../dts/freescale/imx8mp-phyflex-fpsc-g-som.dtsi   | 858 +++++++++++++++++++++
 .../dts/freescale/imx8mp-phyflex-libra-rdk.dts     | 604 +++++++++++++++
 3 files changed, 1463 insertions(+)
arch/arm64/boot/dts/freescale/Makefile +1 -0
index 95ae85ab4adf5..c716beaefbf09 100644
@@ -468,6 +468,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-peb-av-10-ph128800t006.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-ph128800t006.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-rdk-no-eth.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-wlbt.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyflex-libra-rdk.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-prt8ml.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-basic.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-revb-hdmi.dtb
arch/arm64/boot/dts/freescale/imx8mp-phyflex-fpsc-g-som.dtsi new file +858 -0

858 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +604 -0

604 lines not on this page · raw message

Signature · 1 line
2.43.0
#7 lore raw

Re: [PATCH 2/5] arm64: dts: Add phyFLEX-Libra i.MX 8M Plus FPSC

Thank you for your contribution! Sashiko AI review found 9 potential issues to consider: - [High] arm64: dts: imx8mp-phyflex: missing cs-gpios on ecspi1 and ecspi2 - [Medium] arm64: dts…

Thank you for your contribution! Sashiko AI review found 9 potential issues to consider:
- [High] arm64: dts: imx8mp-phyflex: missing cs-gpios on ecspi1 and ecspi2
- [Medium] arm64: dts: imx8mp-phyflex: duplicate UART2_RXD pinmux in pinctrl_ecspi3
- [Medium] arm64: dts: imx8mp-phyflex: misplaced pcie0 properties and clkreq conflict
- [Medium] arm64: dts: imx8mp-phyflex: wrong compatible on 32-byte ID page eeprom@58
- [Medium] arm64: dts: imx8mp-phyflex: pull-downs enabled on usdhc1 CMD and DATA pins
- [Medium] arm64: dts: imx8mp: missing OF graph ports in m2-key-e-connector
- [Low] arm64: dts: imx8mp: 32.768 MHz typo in m2_suspend_clk clock-frequency
- [Low] arm64: dts: imx8mp: invalid port@2 on hd3ss3220 and usb3_phy0 switch
- [Low] arm64: dts: imx8mp: duplicate gpio-line-names on gpio5 in libra-rdk
--

commit 6df61ef89e5f051cd50d9b4d059d503e1d71d85f
Author: Yannic Moog <[email protected]>

arm64: dts: Add phyFLEX-Libra i.MX 8M Plus FPSC

This commit adds the SoM and RDK carrier board device trees for the PHYTEC phyFLEX-Libra i.MX 8M Plus FPSC platform.

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-fpsc-g-som.dtsi new file +0 -0
new file mode 100644
index 0000000000000..384a19743b15f

[ ... ]

arch/arm64/boot/dts/freescale/imx8mp-phyflex-fpsc-g-som.dtsi line 309

Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-fpsc-g-som.dtsi new file +7 -0
+	/* User EEPROM ID page */
+	eeprom@58 {
+		compatible = "atmel,24c32";
+		reg = <0x58>;
+		pagesize = <32>;
+		vcc-supply = <&reg_vdd_io>;
+	};

[Severity: Medium]
Should eeprom@58 use compatible = "atmel,24c32d-wl" instead of "atmel,24c32"?

"atmel,24c32" registers a 4096-byte nvmem device instead of a 32-byte identification page. Reads past 32 bytes wrap around the page, and writes to offsets >= 0x400 set address bit A10, which issues the hardware Lock ID command on 24C32-D devices and permanently write-locks the identification page.

[ ... ]

Quoted 8 lines

+&iomuxc {

arch/arm64/boot/dts/freescale/imx8mp-phyflex-fpsc-g-som.dtsi new file +7 -0
+	pinctrl_ecspi1: ecspi1grp {
+		fsl,pins = <
+			MX8MP_IOMUXC_ECSPI1_SCLK__ECSPI1_SCLK   0x82    /* SPI1_SCLK */
+			MX8MP_IOMUXC_ECSPI1_MOSI__ECSPI1_MOSI   0x82    /* SPI1_MOSI */
+			MX8MP_IOMUXC_ECSPI1_MISO__ECSPI1_MISO   0x82    /* SPI1_MISO */
+			MX8MP_IOMUXC_ECSPI1_SS0__GPIO5_IO09     0x106   /* SPI1_CS */
+		>;

arch/arm64/boot/dts/freescale/imx8mp-phyflex-fpsc-g-som.dtsi line 367

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-fpsc-g-som.dtsi new file +10 -0
+	};
+
+	pinctrl_ecspi2: ecspi2grp {
+		fsl,pins = <
+			MX8MP_IOMUXC_ECSPI2_SCLK__ECSPI2_SCLK   0x82    /* SPI2_SCLK */
+			MX8MP_IOMUXC_ECSPI2_MOSI__ECSPI2_MOSI   0x82    /* SPI2_MOSI */
+			MX8MP_IOMUXC_ECSPI2_MISO__ECSPI2_MISO   0x82    /* SPI2_MISO */
+			MX8MP_IOMUXC_ECSPI2_SS0__GPIO5_IO13     0x106     /* SPI2_CS */
+		>;
+	};

[Severity: High]
Are cs-gpios missing on &ecspi1 and &ecspi2?

pinctrl_ecspi1 and pinctrl_ecspi2 mux the SS0 pads as GPIO5_IO09 and GPIO5_IO13, but neither the SoM dtsi nor imx8mp-phyflex-libra-rdk.dts sets cs-gpios on &ecspi1 or &ecspi2. Without cs-gpios, spi-imx drives native hardware SS0, which is disconnected from the pins, so chip-select is never asserted for adc@0 on ecspi1 or tpm@0 on ecspi2.

arch/arm64/boot/dts/freescale/imx8mp-phyflex-fpsc-g-som.dtsi line 376

Quoted 9 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-fpsc-g-som.dtsi new file +9 -0
+
+	pinctrl_ecspi3: ecspi3grp {
+		fsl,pins = <
+			MX8MP_IOMUXC_UART1_RXD__ECSPI3_SCLK     0x82    /* SPI3_SCLK */
+			MX8MP_IOMUXC_UART1_TXD__ECSPI3_MOSI     0x82    /* SPI3_MOSI */
+			MX8MP_IOMUXC_UART2_RXD__ECSPI3_MISO     0x82    /* SPI3_MISO */
+			MX8MP_IOMUXC_UART2_RXD__GPIO5_IO24      0x106     /* SPI3_CS */
+		>;
+	};

[Severity: Medium]
Should the SPI3_CS pin in pinctrl_ecspi3 be
MX8MP_IOMUXC_UART2_TXD__GPIO5_IO25 instead of
MX8MP_IOMUXC_UART2_RXD__GPIO5_IO24?

Both entries configure the UART2_RXD pad, so the second entry overwrites ECSPI3_MISO with GPIO5_IO24 and leaves the UART2_TXD pad unmuxed. The gpio-line-names property on &gpio5 also labels line 24 as "SPI3_CS" instead of line 25.

[ ... ]

arch/arm64/boot/dts/freescale/imx8mp-phyflex-fpsc-g-som.dtsi line 652

Quoted 12 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-fpsc-g-som.dtsi new file +12 -0
+	pinctrl_usdhc1: usdhc1grp {
+		fsl,pins = <
+			MX8MP_IOMUXC_GPIO1_IO07__USDHC1_WP	0x106	/* SDIO_WP */
+			MX8MP_IOMUXC_GPIO1_IO06__USDHC1_CD_B	0x106	/* SDIO_CD */
+			MX8MP_IOMUXC_SD1_CLK__USDHC1_CLK	0x106	/* SDIO_CLK */
+			MX8MP_IOMUXC_SD1_CMD__USDHC1_CMD	0x106	/* SDIO_CLK */
+			MX8MP_IOMUXC_SD1_DATA0__USDHC1_DATA0	0x106	/* SDIO_DATA0 */
+			MX8MP_IOMUXC_SD1_DATA1__USDHC1_DATA1	0x106	/* SDIO_DATA1 */
+			MX8MP_IOMUXC_SD1_DATA2__USDHC1_DATA2	0x106	/* SDIO_DATA2 */
+			MX8MP_IOMUXC_SD1_DATA3__USDHC1_DATA3	0x106	/* SDIO_DATA3 */
+		>;
+	};

[Severity: Medium]
Does pad setting 0x106 enable internal pull-downs on the USDHC1 CMD and DATA0..3 lines?

On i.MX8MP, 0x106 sets PE=1 with PUE=0 (pull-down), pulling the SDIO command, data, and active-low DATA1 interrupt lines low when undriven instead of pulling them high as 0x1d0 does on pinctrl_usdhc2 and pinctrl_usdhc3.

[ ... ]

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +0 -0
new file mode 100644
index 0000000000000..7ebedbcba7c67

[ ... ]

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts line 96

Quoted 11 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +11 -0
+	m2-key-e-connector {
+		compatible = "pcie-m2-e-connector";
+		clocks = <&rv3028>;
+		i2c-parent = <&i2c3>;
+		sdio-reset-gpios = <&gpio_expander2 6 GPIO_ACTIVE_LOW>;
+		sdio-wake-gpios = <&gpio_expander2 5 GPIO_ACTIVE_LOW>;
+		uart-wake-gpios = <&gpio_expander1 13 GPIO_ACTIVE_LOW>;
+		vpcie3v3-supply = <&reg_vdd_3v3>;
+		w-disable1-gpios = <&gpio_expander1 9 GPIO_ACTIVE_LOW>;
+		w-disable2-gpios = <&gpio_expander1 10 GPIO_ACTIVE_LOW>;
+	};

[Severity: Medium]
Is m2-key-e-connector missing its OF graph ports node?

pwrseq_pcie_m2_probe() requests w-disable1-gpios and w-disable2-gpios asserted (GPIOD_OUT_HIGH), and only deasserts them or creates the Bluetooth serdev when endpoints are matched via the connector's ports node. Without ports, M.2 Wi-Fi and Bluetooth cards remain permanently disabled when CONFIG_PWRSEQ_PCIE_M2 is enabled.

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts line 104

Quoted 8 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +8 -0
+
+	/* RTC (rv3028) clock is used by default */
+	m2_suspend_clk: oscillator-suspend {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <32768000>;
+		status = "disabled";
+	};

[Severity: Low]
Should clock-frequency in m2_suspend_clk be 32768 instead of 32768000? The M.2 Key E suspend clock (SUSCLK) is 32.768 kHz, not 32.768 MHz.

[ ... ]

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts

Quoted 8 lines

+&gpio5 {

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +7 -0
+	gpio-line-names = "", "", "", "", "I2C5_SDA",
+			  "GPIO1", "", "", "", "SPI1_CS",
+			  "", "", "", "SPI2_CS", "I2C1_SCL",
+			  "I2C1_SDA", "I2C2_SCL", "I2C2_SDA", "I2C3_SCL", "I2C3_SDA",
+			  "", "GPIO2", "", "", "SPI3_CS",
+			  "", "GPIO3";
+};

[Severity: Low]
This isn't a bug, but &gpio5 duplicates the exact same gpio-line-names array already defined in imx8mp-phyflex-fpsc-g-som.dtsi.

[ ... ]

Quoted 25 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +25 -0
+	usb-typec@47 {
+		compatible = "ti,hd3ss3220";
+		reg = <0x47>;
+		id-gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
+		interrupt-parent = <&gpio_expander1>;
+		interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port@0 {
+				reg = <0>;
+
+				hd3ss3220_in_ep: endpoint {
+					remote-endpoint = <&ss_ep>;
+				};
+			};
+
+			port@1 {
+				reg = <1>;
+
+				hd3ss3220_out_ep: endpoint {
+					remote-endpoint = <&usb3_role_switch>;
+				};

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts line 458

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +10 -0
+			};
+
+			port@2 {
+				reg = <2>;
+				hd3ss3220_orientation_switch: endpoint {
+					remote-endpoint = <&usb_phy_orientation_switch>;
+				};
+			};
+		};
+	};

[Severity: Low]
Does usb-typec@47 allow port@2, and does usb3_phy0 support orientation-switch on i.MX8MP?

ti,hd3ss3220.yaml only permits port@0 and port@1 because the HD3SS3220 integrates the SuperSpeed orientation mux internally and its driver never requests a typec_switch, so port@2 fails dtbs_check. Likewise, phy-fsl-imx8mq-usb only registers a typec_switch when a second TCA register region is present (on i.MX95), which fsl,imx8mp-usb-phy does not have.

[ ... ]

Quoted 7 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +7 -0
+/* M.2 PCIe */
+&pcie0 {
+	external-facing;
+	reset-gpio = <&gpio1 8 GPIO_ACTIVE_LOW>;
+	supports-clkreq;
+	vpcie-supply = <&reg_vdd_3v3>;
+	wake-gpios = <&gpio_expander1 11 GPIO_ACTIVE_LOW>;

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts line 491

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +10 -0
+	status = "okay";
+};
+
+&pcie_phy {
+	clocks = <&hsio_blk_ctrl>;
+	clock-names = "ref";
+	fsl,clkreq-unsupported;
+	fsl,refclk-pad-mode = <IMX8_PCIE_REFCLK_PAD_OUTPUT>;
+	status = "okay";
+};

[Severity: Medium]
Should external-facing and wake-gpios be placed on the Root Port node (&pcie0_port0) rather than &pcie0, and why are both supports-clkreq and fsl,clkreq-unsupported set?

pci_set_bus_of_node() and pci_configure_of_wake_gpio() only read external-facing and wake-gpios from the Root Port pci_dev node, so both properties are ignored on the host controller node and fail fsl,imx6q-pcie.yaml validation. In addition, supports-clkreq on &pcie0 and fsl,clkreq-unsupported on &pcie_phy configure IOMUXC_GPR14 with conflicting CLKREQ# settings.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
#8 lore raw

Re: [PATCH 2/5] arm64: dts: Add phyFLEX-Libra i.MX 8M Plus FPSC

In reply to Yannic Moog

Hi,
did you base this on the latest downstream state? I think you are missing some of the fixes and adjustments made due to hardware measurements from downstream e.g.:
0fd256893ad2 arm64: dts: freescale: imx8mp-phyflex-fpsc-g-som: Fix wrong comment
a0890e65eb83 PFLG01-46: arm64: dts: imx8mp-phyflex-fpsc-g-som: Update eqos drive strength
df7ad84865d6 PFLG01-46: arm64: dts: imx8mp-phyflex-libra-rdk: Update phy delay

Am 16.11.26 um 11:54 schrieb Yannic Moog:
...

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +0 -0
new file mode 100644
index 0000000000000..7ebedbcba7c67

...

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts line 158

Quoted 12 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +12 -0
+
+	reg_vdd_3v3: regulator-vdd-3v3 {
+		compatible = "regulator-fixed";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-max-microvolt = <3300000>;
+		regulator-min-microvolt = <3300000>;
+		regulator-name = "VDD_3V3";
+	};
+
+	reg_vdd_5v0: regulator-vdd-5v0 {
+		compatible = "regulator-fixed";

Why is "regulator-always-on" and "regulator-boot-on" missing here?

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +6 -0
+		regulator-max-microvolt = <5000000>;
+		regulator-min-microvolt = <5000000>;
+		regulator-name = "VDD_5V0";
+	};
+
+	reg_vdd_5v0_hdmi_out: regulator-vdd-5v0-hdmi-out {

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts line 174

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +10 -0
+		compatible = "regulator-fixed";
+		enable-active-high;
+		gpios = <&gpio_expander2 7 GPIO_ACTIVE_HIGH>;
+		regulator-max-microvolt = <5000000>;
+		regulator-min-microvolt = <5000000>;
+		regulator-name = "VDD_5V0_HDMI_OUT";
+	};
+
+	reg_vdd_5v0_ref: regulator-vdd-5v0-ref {
+		compatible = "regulator-fixed";

Why is "regulator-always-on" and "regulator-boot-on" missing here?

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +5 -0
+		regulator-max-microvolt = <5000000>;
+		regulator-min-microvolt = <5000000>;
+		regulator-name = "VDD_5V0_REF";
+	};
+

...

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts line 593

Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +4 -0
+};
+
+&usdhc1 {
+	bus-width = <4>;

First of all this is not necessarily needed, as this is the default value provided by imx8mp.dtsi.
But if you want to supply it, this belongs to SoM dtsi (as is done for imx95 phyFLEX SoM) in my opinion, as the SoM provides 4 lanes for this interface. The other 4 are on mandatory UART signals.

Benjamin

Quoted 12 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +11 -0
+	status = "okay";
+};
+
+/* SD-Card */
+&usdhc2 {
+	assigned-clocks = <&clk IMX8MP_CLK_USDHC2>;
+	assigned-clock-rates = <200000000>;
+	bus-width = <4>;
+	disable-wp;
+	status = "okay";
+};
#9 lore raw

Re: [PATCH 2/5] arm64: dts: Add phyFLEX-Libra i.MX 8M Plus FPSC

Quoted 10 lines · Benjamin Hahn

Hi,
did you base this on the latest downstream state? I think you are missing some of the fixes and adjustments made due to hardware measurements from downstream e.g.:
0fd256893ad2 arm64: dts: freescale: imx8mp-phyflex-fpsc-g-som: Fix wrong comment
a0890e65eb83 PFLG01-46: arm64: dts: imx8mp-phyflex-fpsc-g-som: Update eqos drive strength
df7ad84865d6 PFLG01-46: arm64: dts: imx8mp-phyflex-libra-rdk: Update phy delay

I'll check, thanks.

Quoted 10 lines

Am 16.11.26 um 11:54 schrieb Yannic Moog:
...

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +0 -0
new file mode 100644
index 0000000000000..7ebedbcba7c67

...

Quoted 13 lines

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts line 158

Quoted 12 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +12 -0
+
+	reg_vdd_3v3: regulator-vdd-3v3 {
+		compatible = "regulator-fixed";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-max-microvolt = <3300000>;
+		regulator-min-microvolt = <3300000>;
+		regulator-name = "VDD_3V3";
+	};
+
+	reg_vdd_5v0: regulator-vdd-5v0 {
+		compatible = "regulator-fixed";

Why is "regulator-always-on" and "regulator-boot-on" missing here?

Afaik not needed as they are used.

Quoted 26 lines
Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +6 -0
+		regulator-max-microvolt = <5000000>;
+		regulator-min-microvolt = <5000000>;
+		regulator-name = "VDD_5V0";
+	};
+
+	reg_vdd_5v0_hdmi_out: regulator-vdd-5v0-hdmi-out {

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts line 174

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +10 -0
+		compatible = "regulator-fixed";
+		enable-active-high;
+		gpios = <&gpio_expander2 7 GPIO_ACTIVE_HIGH>;
+		regulator-max-microvolt = <5000000>;
+		regulator-min-microvolt = <5000000>;
+		regulator-name = "VDD_5V0_HDMI_OUT";
+	};
+
+	reg_vdd_5v0_ref: regulator-vdd-5v0-ref {
+		compatible = "regulator-fixed";

Why is "regulator-always-on" and "regulator-boot-on" missing here?

Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +5 -0
+		regulator-max-microvolt = <5000000>;
+		regulator-min-microvolt = <5000000>;
+		regulator-name = "VDD_5V0_REF";
+	};
+

...

Quoted 9 lines

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts line 593

Quoted 4 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +4 -0
+};
+
+&usdhc1 {
+	bus-width = <4>;

First of all this is not necessarily needed, as this is the default value provided by imx8mp.dtsi.
But if you want to supply it, this belongs to SoM dtsi (as is done for imx95 phyFLEX SoM) in my opinion, as the SoM provides 4 lanes for this interface. The other 4 are on mandatory UART signals.

Agree, will add to the SoM dtsi.

Yannic

Quoted 14 lines

Benjamin

Quoted 12 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk.dts new file +11 -0
+	status = "okay";
+};
+
+/* SD-Card */
+&usdhc2 {
+	assigned-clocks = <&clk IMX8MP_CLK_USDHC2>;
+	assigned-clock-rates = <200000000>;
+	bus-width = <4>;
+	disable-wp;
+	status = "okay";
+};
#10 lore raw

PATCH 3/5 arm64: dts: imx8mp-phyflex-libra: add display overlays

In reply to Yannic Moog

The powertip ph128800t006-zhc01 LVDS panel can be connected to the Libra baseboard LVDS headers or to the PEB-AV-10 expansion board attached to the Libra board. Since the PEB-AV-10 also features an audio out via 3.5mm headphone jack, introduce it as an independent overlay if only audio output is required.

---
 arch/arm64/boot/dts/freescale/Makefile             |   9 ++
 ...-phyflex-libra-rdk-lvds-ph128800t006-zhc01.dtso |  44 ++++++
 ...p-phyflex-libra-rdk-peb-av-10-ph128800t006.dtso |  45 ++++++
 .../imx8mp-phyflex-libra-rdk-peb-av-10.dtsi        | 152 +++++++++++++++++++++
 .../imx8mp-phyflex-libra-rdk-peb-av-10.dtso        |   9 ++
 5 files changed, 259 insertions(+)
arch/arm64/boot/dts/freescale/Makefile +9 -0
index c716beaefbf09..c63c0c8ea2c86 100644
@@ -469,6 +469,15 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-ph128800t006.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-rdk-no-eth.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-wlbt.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyflex-libra-rdk.dtb
+imx8mp-phyflex-libra-rdk-lvds-dtbs += imx8mp-phyflex-libra-rdk.dtb \
+	imx8mp-phyflex-libra-rdk-lvds-ph128800t006-zhc01.dtbo
+imx8mp-phyflex-libra-rdk-peb-av-10-dtbs += imx8mp-phyflex-libra-rdk.dtb \
+	imx8mp-phyflex-libra-rdk-peb-av-10.dtbo
+imx8mp-phyflex-libra-rdk-peb-av-10-lvds-dtbs += imx8mp-phyflex-libra-rdk.dtb \
+	imx8mp-phyflex-libra-rdk-peb-av-10-ph128800t006.dtbo
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyflex-libra-rdk-lvds.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyflex-libra-rdk-peb-av-10.dtb
+dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyflex-libra-rdk-peb-av-10-lvds.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-prt8ml.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-basic.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-revb-hdmi.dtb
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-lvds-ph128800t006-zhc01.dtso new file +44 -0

44 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-peb-av-10-ph128800t006.dtso new file +45 -0

45 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-peb-av-10.dtsi new file +152 -0

152 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-peb-av-10.dtso new file +9 -0
new file mode 100644
index 0000000000000..1fd35fc3d77ea
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
+/*
+ * Copyright (C) 2025 PHYTEC Messtechnik GmbH
+ */
+
+/dts-v1/;
+/plugin/;
+
+#include "imx8mp-phyflex-libra-rdk-peb-av-10.dtsi"
Signature · 1 line
2.43.0
#11 lore raw

Re: [PATCH 3/5] arm64: dts: imx8mp-phyflex-libra: add display overlays

Thank you for your contribution! Sashiko AI review found 3 potential issues to consider: - [High] arm64: dts: imx8mp-phyflex-libra: sound and sai5 left disabled on PEB-AV-10 - [High] arm64: dts…

Thank you for your contribution! Sashiko AI review found 3 potential issues to consider:
- [High] arm64: dts: imx8mp-phyflex-libra: sound and sai5 left disabled on PEB-AV-10
- [High] arm64: dts: imx8mp-phyflex-libra: wrong backlight enable-gpios on PEB-AV-10
- [Low] arm64: dts: imx8mp-phyflex-libra: unused reg_vcc_12v and shared backlight_lvds
--

commit 19f62dd057ed6706b50af0f2de5fcf9ee9c1e80f
Author: Yannic Moog <[email protected]>

arm64: dts: imx8mp-phyflex-libra: add display overlays

This commit adds devicetree overlays for the Powertip ph128800t006-zhc01 LVDS panel connected to the Libra baseboard or the PEB-AV-10 expansion board, as well as a standalone overlay for the PEB-AV-10 expansion board.

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-peb-av-10-ph128800t006.dtso new file +0 -0
new file mode 100644
index 0000000000000..33677601789bd
@@ -0,0 +1,45 @@

[ ... ]

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-peb-av-10-ph128800t006.dtso line 20

Quoted 8 lines

+&backlight_lvds {

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-peb-av-10-ph128800t006.dtso new file +7 -0
+	brightness-levels = <0 8 16 32 64 128 255>;
+	default-brightness-level = <8>;
+	enable-gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
+	num-interpolated-steps = <2>;
+	pwms = <&pwm1 0 66667 0>;
+	status = "okay";
+};

[Severity: High]
Should enable-gpios reference <&gpio4 28 GPIO_ACTIVE_HIGH> here instead of <&gpio5 1 GPIO_ACTIVE_HIGH>?

In imx8mp-phyflex-libra-rdk-peb-av-10.dtsi, backlight_lvds is assigned pinctrl_lvds2, which muxes MX8MP_IOMUXC_SAI3_RXFS__GPIO4_IO28 rather than GPIO5_IO01, so the pwm-backlight driver will drive the wrong pin and fail to enable the PEB-AV-10 display backlight.

[ ... ]

Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-peb-av-10.dtsi new file +0 -0
new file mode 100644
index 0000000000000..e94ce6691a620
@@ -0,0 +1,152 @@

[ ... ]

Quoted 11 lines

+&{/} {

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-peb-av-10.dtsi new file +10 -0
+	panel_lvds2: panel-lvds2 {
+		backlight = <&backlight_lvds>;
+		power-supply = <&reg_vdd_3v3>;
+		status = "disabled";
+
+		port {
+			panel2_in: endpoint {
+				remote-endpoint = <&ldb_lvds_ch1>;
+			};
+		};

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-peb-av-10.dtsi line 30

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-peb-av-10.dtsi new file +10 -0
+	};
+
+	reg_vcc_12v: regulator-12v {
+		compatible = "regulator-fixed";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-max-microvolt = <12000000>;
+		regulator-min-microvolt = <12000000>;
+		regulator-name = "VCC_12V";
+	};

[Severity: Low]
reg_vcc_12v is defined here but never referenced anywhere, while panel_lvds2 reuses the baseboard's backlight_lvds node (which uses reg_vdd_12v0) and overwrites its pinctrl-0 with pinctrl_lvds2 even when only the standalone PEB-AV-10 audio overlay is applied. Was a dedicated backlight node supplied by reg_vcc_12v intended for panel_lvds2, or can reg_vcc_12v be dropped and the backlight_lvds pinctrl override moved to imx8mp-phyflex-libra-rdk-peb-av-10-ph128800t006.dtso?

[ ... ]

Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-peb-av-10.dtsi new file +3 -0
+	sound {
+		compatible = "simple-audio-card";
+		simple-audio-card,name = "snd-peb-av-10";

[ ... ]

Quoted 11 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-peb-av-10.dtsi new file +11 -0
+		status = "disabled";
+
+		simple-audio-card,codec {
+			sound-dai = <&codec>;
+		};
+
+		dailink_master: simple-audio-card,cpu {
+			sound-dai = <&sai5>;
+		};
+	};
+};

[ ... ]

Quoted 6 lines

+&sai5 {

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-peb-av-10.dtsi new file +5 -0
+	assigned-clocks = <&clk IMX8MP_CLK_SAI5>;
+	assigned-clock-parents = <&clk IMX8MP_AUDIO_PLL1_OUT>;
+	assigned-clock-rates = <12288000>;
+	clocks = <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_SAI5_IPG>,
+		 <&clk IMX8MP_CLK_DUMMY>,

arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-peb-av-10.dtsi line 132

Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mp-phyflex-libra-rdk-peb-av-10.dtsi new file +10 -0
+		 <&audio_blk_ctrl IMX8MP_CLK_AUDIOMIX_SAI5_MCLK1>,
+		 <&clk IMX8MP_CLK_DUMMY>,
+		 <&clk IMX8MP_CLK_DUMMY>,
+		 <&clk IMX8MP_AUDIO_PLL1_OUT>,
+		 <&clk IMX8MP_AUDIO_PLL2_OUT>;
+	clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3", "pll8k",
+		      "pll11k";
+	#sound-dai-cells = <0>;
+	fsl,sai-mclk-direction-output;
+};

[Severity: High]
Does this leave both the sound card and sai5 disabled when the PEB-AV-10 overlays are applied?

The sound node here sets status = "disabled", and &sai5 omits status = "okay" (leaving it disabled as defined in imx8mp.dtsi). Neither imx8mp-phyflex-libra-rdk-peb-av-10.dtso nor imx8mp-phyflex-libra-rdk-peb-av-10-ph128800t006.dtso enables either node, so the PEB-AV-10 audio device will not probe.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
#12 lore raw

PATCH 4/5 arm64: dts: remove Libra phyCORE-i.MX 8M Plus FPSC

In reply to Yannic Moog

phyCORE-i.MX 8M Plus naming is no longer used for this product. It has been replaced by phyFLEX-i.MX 8M Plus FPSC. Additionally, only prototypes for these early phyCORE-i.MX 8M Plus FPSC SoMs and Single Board Computers exist.

---
 arch/arm64/boot/dts/freescale/Makefile             |  10 -
 .../imx8mp-libra-rdk-fpsc-lvds-etml1010g3dra.dtso  |  44 --
 .../imx8mp-libra-rdk-fpsc-lvds-peb-av-10.dtsi      | 196 -----
 .../imx8mp-libra-rdk-fpsc-lvds-peb-av-10.dtso      |   9 -
 ...8mp-libra-rdk-fpsc-lvds-ph128800t006-zhc01.dtso |  44 --
 .../boot/dts/freescale/imx8mp-libra-rdk-fpsc.dts   | 290 --------
 .../boot/dts/freescale/imx8mp-phycore-fpsc.dtsi    | 796 ---------------------
 7 files changed, 1389 deletions(-)
arch/arm64/boot/dts/freescale/Makefile +0 -10
index c63c0c8ea2c86..96eb4c140c299 100644
@@ -433,16 +433,6 @@ imx8mp-kontron-dl-dtbs += imx8mp-kontron-bl-osm-s.dtb imx8mp-kontron-dl.dtbo
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-kontron-dl.dtb
 
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-kontron-smarc-eval-carrier.dtb
-dtb-$(CONFIG_ARCH_MXC) += imx8mp-libra-rdk-fpsc.dtb
-imx8mp-libra-rdk-fpsc-lvds-etml1010g3dra-dtbs += imx8mp-libra-rdk-fpsc.dtb \
-	imx8mp-libra-rdk-fpsc-lvds-etml1010g3dra.dtbo
-imx8mp-libra-rdk-fpsc-lvds-ph128800t006-zhc01-dtbs += imx8mp-libra-rdk-fpsc.dtb \
-	imx8mp-libra-rdk-fpsc-lvds-ph128800t006-zhc01.dtbo
-imx8mp-libra-rdk-fpsc-lvds-peb-av-10-dtbs += imx8mp-libra-rdk-fpsc.dtb \
-	imx8mp-libra-rdk-fpsc-lvds-peb-av-10.dtbo
-dtb-$(CONFIG_ARCH_MXC) += imx8mp-libra-rdk-fpsc-lvds-etml1010g3dra.dtb
-dtb-$(CONFIG_ARCH_MXC) += imx8mp-libra-rdk-fpsc-lvds-ph128800t006-zhc01.dtb
-dtb-$(CONFIG_ARCH_MXC) += imx8mp-libra-rdk-fpsc-lvds-peb-av-10.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-msc-sm2s-ep1.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-navqp.dtb
 dtb-$(CONFIG_ARCH_MXC) += imx8mp-nitrogen-enc-carrier-board.dtb
arch/arm64/boot/dts/freescale/imx8mp-libra-rdk-fpsc-lvds-etml1010g3dra.dtso deleted +0 -44

44 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mp-libra-rdk-fpsc-lvds-peb-av-10.dtsi deleted +0 -196

196 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mp-libra-rdk-fpsc-lvds-peb-av-10.dtso deleted +0 -9
deleted file mode 100644
index 803a199dffa39..0000000000000
@@ -1,9 +0,0 @@
-// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
-/*
- * Copyright (C) 2025 PHYTEC Messtechnik GmbH
- */
-
-/dts-v1/;
-/plugin/;
-
-#include "imx8mp-libra-rdk-fpsc-lvds-peb-av-10.dtsi"
arch/arm64/boot/dts/freescale/imx8mp-libra-rdk-fpsc-lvds-ph128800t006-zhc01.dtso deleted +0 -44

44 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mp-libra-rdk-fpsc.dts deleted +0 -290

290 lines not on this page · raw message

arch/arm64/boot/dts/freescale/imx8mp-phycore-fpsc.dtsi deleted +0 -796

796 lines not on this page · raw message

Signature · 1 line
2.43.0
#13 lore raw

PATCH 5/5 dt-bindings: fsl: remove phyCORE-i.MX 8M Plus FPSC

In reply to Yannic Moog

binding has no consumer anymore. It describes prototype product only due to renaming of the product. Remove it.

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 5 -----
 1 file changed, 5 deletions(-)
Documentation/devicetree/bindings/arm/fsl.yaml +0 -5
index 2d21a1949d949..ae823a7670b02 100644
@@ -1227,11 +1227,6 @@ properties:
 
       - description: PHYTEC i.MX8MP FPSC based boards
         oneOf:
-          - items:
-            - enum:
-                - phytec,imx8mp-libra-rdk-fpsc  # i.MX 8M Plus Libra RDK
-            - const: phytec,imx8mp-phycore-fpsc # phyCORE-i.MX 8M Plus FPSC
-            - const: fsl,imx8mp
           - items:
             - enum:
                 - phytec,imx8mp-phyflex-libra-rdk # phyFLEX-Libra i.MX 8M Plus RDK
Signature · 1 line
2.43.0
#14 lore raw

Re: [PATCH 5/5] dt-bindings: fsl: remove phyCORE-i.MX 8M Plus FPSC

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] dt-bindings: fsl: redundant single-entry oneOf and yamllint indent error --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] dt-bindings: fsl: redundant single-entry oneOf and yamllint indent error
--

commit f303b3d397f1c2b535993718e5b16c7dfc14c6a7
Author: Yannic Moog <[email protected]>

dt-bindings: fsl: remove phyCORE-i.MX 8M Plus FPSC

This commit removes the compatible entries for the prototype phyCORE-i.MX 8M Plus FPSC SoM and its Libra RDK board from fsl.yaml.

Quoted 6 lines
Documentation/devicetree/bindings/arm/fsl.yaml +0 -0
index 2d21a1949d949..ae823a7670b02 100644
@@ -1227,11 +1227,6 @@ properties:
 

Documentation/devicetree/bindings/arm/fsl.yaml properties: · line 1232

Quoted 10 lines
Documentation/devicetree/bindings/arm/fsl.yaml +0 -5
       - description: PHYTEC i.MX8MP FPSC based boards
         oneOf:
-          - items:
-            - enum:
-                - phytec,imx8mp-libra-rdk-fpsc  # i.MX 8M Plus Libra RDK
-            - const: phytec,imx8mp-phycore-fpsc # phyCORE-i.MX 8M Plus FPSC
-            - const: fsl,imx8mp
           - items:
             - enum:
                 - phytec,imx8mp-phyflex-libra-rdk # phyFLEX-Libra i.MX 8M Plus RDK

[Severity: Low]
Should the oneOf wrapper also be removed now that only a single items list remains under PHYTEC i.MX8MP FPSC based boards?

In addition to leaving a single-entry oneOf, the remaining "- enum:" and "- const:" sequence entries are indented at the same column as "items:", which fails yamllint (indent-sequences: true in Documentation/devicetree/bindings/.yamllint) during make dt_binding_check. Dropping oneOf and placing items directly under description avoids both issues.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=5
#15 lore raw

Re: [PATCH 5/5] dt-bindings: fsl: remove phyCORE-i.MX 8M Plus FPSC

In reply to Yannic Moog
Quoted 13 lines · Yannic Moog

binding has no consumer anymore. It describes prototype product only due to renaming of the product. Remove it.

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 5 -----
 1 file changed, 5 deletions(-)
Documentation/devicetree/bindings/arm/fsl.yaml +0 -0
index 2d21a1949d949..ae823a7670b02 100644

Documentation/devicetree/bindings/arm/fsl.yaml properties: · line 1232

Quoted 6 lines
Documentation/devicetree/bindings/arm/fsl.yaml +0 -3
@@ -1227,11 +1227,6 @@ properties:
 
       - description: PHYTEC i.MX8MP FPSC based boards
         oneOf:
-          - items:
-            - enum:
-                - phytec,imx8mp-libra-rdk-fpsc  # i.MX 8M Plus Libra RDK

You just changed this line in earlier patch.

Best regards,
Krzysztof

#16 lore raw

Re: [PATCH 5/5] dt-bindings: fsl: remove phyCORE-i.MX 8M Plus FPSC

Quoted 9 lines · Krzysztof Kozlowski
Quoted 8 lines · Yannic Moog

binding has no consumer anymore. It describes prototype product only due to renaming of the product. Remove it.

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 5 -----

 1 file changed, 5 deletions(-)
Quoted 14 lines
Quoted 6 lines
Documentation/devicetree/bindings/arm/fsl.yaml +0 -0
index 2d21a1949d949..ae823a7670b02 100644
@@ -1227,11 +1227,6 @@ properties:
Quoted 6 lines


       - description: PHYTEC i.MX8MP FPSC based boards
         oneOf:
-          - items:
-            - enum:
-                - phytec,imx8mp-libra-rdk-fpsc  # i.MX 8M Plus Libra RDK

You just changed this line in earlier patch.

Yep, afaik I need this order to avoid errors.

Strategy is

1. introduce "current" binding
2. introduce "current" dts
3. remove predecessor dts
4. remove predecessor binding

What shall I do differently?

Yannic

Quoted 4 lines

Best regards,
Krzysztof

#17 lore raw

Re: [PATCH 5/5] dt-bindings: fsl: remove phyCORE-i.MX 8M Plus FPSC

Quoted 18 lines · Yannic Moog
Quoted 6 lines · Krzysztof Kozlowski
Quoted 6 lines
Documentation/devicetree/bindings/arm/fsl.yaml +0 -0
index 2d21a1949d949..ae823a7670b02 100644
@@ -1227,11 +1227,6 @@ properties:
Quoted 8 lines
Quoted 6 lines


       - description: PHYTEC i.MX8MP FPSC based boards
         oneOf:
-          - items:
-            - enum:
-                - phytec,imx8mp-libra-rdk-fpsc  # i.MX 8M Plus Libra RDK

You just changed this line in earlier patch.

Yep, afaik I need this order to avoid errors.

Quoted 8 lines

Strategy is

1. introduce "current" binding
2. introduce "current" dts
3. remove predecessor dts
4. remove predecessor binding

What shall I do differently?

That's pointless. Commits are one after another, so just squash them. Or explain why do you need any of such strategy (as exception of kernel rules).

Best regards,
Krzysztof

#18 lore raw

Re: [PATCH 5/5] dt-bindings: fsl: remove phyCORE-i.MX 8M Plus FPSC

Quoted 26 lines · Krzysztof Kozlowski
Quoted 25 lines · Yannic Moog
Quoted 6 lines · Krzysztof Kozlowski
Quoted 6 lines
Documentation/devicetree/bindings/arm/fsl.yaml +0 -0
index 2d21a1949d949..ae823a7670b02 100644
@@ -1227,11 +1227,6 @@ properties:
Quoted 8 lines
Quoted 6 lines


       - description: PHYTEC i.MX8MP FPSC based boards
         oneOf:
-          - items:
-            - enum:
-                - phytec,imx8mp-libra-rdk-fpsc  # i.MX 8M Plus Libra RDK

You just changed this line in earlier patch.

Yep, afaik I need this order to avoid errors.

Strategy is

1. introduce "current" binding
2. introduce "current" dts
3. remove predecessor dts
4. remove predecessor binding

Quoted 4 lines
Quoted 1 line

What shall I do differently?

That's pointless. Commits are one after another, so just squash them. Or explain why do you need any of such strategy (as exception of kernel rules).

Okay, I am happy to move the bindings patch between the dts patches and squash them. Thanks.

Yannic

Quoted 3 lines

Best regards,
Krzysztof

#19 lore raw

Re: [PATCH 5/5] dt-bindings: fsl: remove phyCORE-i.MX 8M Plus FPSC

Quoted 27 lines · Yannic Moog
Quoted 26 lines · Krzysztof Kozlowski
Quoted 25 lines · Yannic Moog
Quoted 6 lines · Krzysztof Kozlowski
Quoted 6 lines
Documentation/devicetree/bindings/arm/fsl.yaml +0 -0
index 2d21a1949d949..ae823a7670b02 100644
@@ -1227,11 +1227,6 @@ properties:
Quoted 8 lines
Quoted 6 lines


       - description: PHYTEC i.MX8MP FPSC based boards
         oneOf:
-          - items:
-            - enum:
-                - phytec,imx8mp-libra-rdk-fpsc  # i.MX 8M Plus Libra RDK

You just changed this line in earlier patch.

Yep, afaik I need this order to avoid errors.

Strategy is

1. introduce "current" binding
2. introduce "current" dts
3. remove predecessor dts
4. remove predecessor binding

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

What shall I do differently?

That's pointless. Commits are one after another, so just squash them. Or explain why do you need any of such strategy (as exception of kernel rules).

Okay, I am happy to move the bindings patch between the dts patches and squash them. Thanks.

And you do not get any renames, obviously... Your try to avoiding errors was actually a way to hide breaking ABI and breaking users, so a no-go.

Best regards,
Krzysztof