arm64: dts: freescale: Add device tree definition for Cloos CBASE with i.MX8MM
Subsystems (2)
PATCH 1/1 arm64: dts: freescale: Add device tree definition for Cloos CBASE with i.MX8MM
This commit adds support for CBASE board, which incorporates the TQMa8MQML module.
--- .../arm64/boot/dts/freescale/imx8mm-cbase.dts | 577 ++++++++++++++++++ 1 file changed, 577 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-cbase.dts
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts new file +577 -0
@@ -0,0 +1,577 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 Fabio Estevam <[email protected]> + * Copyright 2026 Lukasz Majewski <[email protected]> + */ + +/dts-v1/; + +#include "imx8mm-tqma8mqml.dtsi" + +/ { + model = "Cloos i.MX8MM CBASE board"; + compatible = "cloos,imx8mm-cbase", "tq,imx8mm-tqma8mqml", "fsl,imx8mm"; + + aliases { + mmc0 = &usdhc3; + mmc1 = &usdhc2; + }; + + chosen { + stdout-path = &uart2; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_led>; + + led-0 { + label = "status1"; + gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; + }; + + led-1 { + label = "status2"; + gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>; + }; + + led-2 { + label = "status3"; + gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; + }; + + led-3 { + label = "status4"; + gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; + }; + + led-4 { + label = "error"; + gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>; + }; + + led-5 { + label = "run"; + gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>; + }; + }; + + reg_usb_otg_vbus: regulator-usb-otg-vbus { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_otg_vbus_ctrl>; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio2 2 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + reg_usdhc2_vmmc: regulator-vmmc { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_usdhc2_vmmc>; + regulator-name = "VSD_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio2 19 GPIO_ACTIVE_HIGH>; + enable-active-high; + startup-delay-us = <100>; + off-on-delay-us = <12000>; + }; + + clk_xtal40: clk-xtal40 { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <40000000>; + }; + + sfp_bot: sfp-bot { + compatible = "sff,sfp"; + i2c-bus = <&i2c_sfp_bot>; + tx-fault-gpios = <&sfp_gpio 4 GPIO_ACTIVE_HIGH>; + tx-disable-gpios = <&sfp_gpio 5 GPIO_ACTIVE_HIGH>; + mod-def0-gpios = <&sfp_gpio 6 GPIO_ACTIVE_LOW>; + los-gpios = <&sfp_gpio 7 GPIO_ACTIVE_HIGH>; + maximum-power-milliwatt = <1000>; + }; + + sfp_top: sfp-top { + compatible = "sff,sfp"; + i2c-bus = <&i2c_sfp_top>; + tx-fault-gpios = <&sfp_gpio 0 GPIO_ACTIVE_HIGH>; + tx-disable-gpios = <&sfp_gpio 1 GPIO_ACTIVE_HIGH>; + mod-def0-gpios = <&sfp_gpio 2 GPIO_ACTIVE_LOW>; + los-gpios = <&sfp_gpio 3 GPIO_ACTIVE_HIGH>; + maximum-power-milliwatt = <1000>; + }; +}; + +&ddrc { + operating-points-v2 = <&ddrc_opp_table>; + + ddrc_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-25000000 { + opp-hz = /bits/ 64 <25000000>; + }; + + opp-100000000 { + opp-hz = /bits/ 64 <100000000>; + }; + + opp-750000000 { + opp-hz = /bits/ 64 <750000000>; + }; + }; +}; + +&ecspi1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ecspi1>; + cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>, + <&gpio1 1 GPIO_ACTIVE_LOW>, + <&gpio1 12 GPIO_ACTIVE_LOW>, + <&gpio1 13 GPIO_ACTIVE_LOW>; + status = "okay"; + + can@0 { + compatible = "microchip,mcp2518fd"; + reg = <0>; + clocks = <&clk_xtal40>; + interrupt-parent = <&gpio1>; + interrupts = <3 IRQ_TYPE_EDGE_FALLING>; + spi-max-frequency = <4000000>; + }; + + can@1 { + compatible = "microchip,mcp2518fd"; + reg = <1>; + clocks = <&clk_xtal40>; + interrupt-parent = <&gpio4>; + interrupts = <20 IRQ_TYPE_EDGE_FALLING>; + spi-max-frequency = <4000000>; + }; +}; + +&ecspi2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_ecspi2>; + cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; + status = "okay"; +}; + +&fec1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_fec1>; + fsl,magic-packet; + phy-mode = "rgmii-id"; + status = "okay"; + + fixed-link { + full-duplex; + pause; + speed = <1000>; + }; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + managed_switch: switch@0 { + compatible = "marvell,mv88e6190"; + #interrupt-cells = <2>; + interrupt-controller; + interrupt-parent = <&gpio1>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 = <&pinctrl_switch_interrupt>; + pinctrl-names = "default"; + reg = <0>; + status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + switch0phy1: ethernet-phy@1 { + reg = <0x1>; + }; + + switch0phy2: ethernet-phy@2 { + reg = <0x2>; + }; + + switch0phy3: ethernet-phy@3 { + reg = <0x3>; + }; + + switch0phy4: ethernet-phy@4 { + reg = <0x4>; + }; + + switch0phy5: ethernet-phy@5 { + reg = <0x5>; + }; + + switch0phy6: ethernet-phy@6 { + reg = <0x6>; + }; + + switch0phy7: ethernet-phy@7 { + reg = <0x7>; + }; + + switch0phy8: ethernet-phy@8 { + reg = <0x8>; + }; + }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + ethernet = <&fec1>; + phy-mode = "rgmii-id"; + reg = <0>; + + fixed-link { + full-duplex; + pause; + speed = <1000>; + }; + }; + + port@1 { + label = "lan1"; + phy-handle = <&switch0phy1>; + phy-mode = "internal"; + reg = <1>; + }; + + port@2 { + label = "lan2"; + phy-handle = <&switch0phy2>; + phy-mode = "internal"; + reg = <2>; + }; + + port@3 { + label = "lan3"; + phy-handle = <&switch0phy3>; + phy-mode = "internal"; + reg = <3>; + }; + + port@4 { + label = "lan4"; + phy-handle = <&switch0phy4>; + phy-mode = "internal"; + reg = <4>; + }; + + port@5 { + label = "lan5"; + phy-handle = <&switch0phy5>; + phy-mode = "internal"; + reg = <5>; + }; + + port@6 { + label = "lan6"; + phy-handle = <&switch0phy6>; + phy-mode = "internal"; + reg = <6>; + }; + + port@7 { + label = "lan7"; + phy-handle = <&switch0phy7>; + phy-mode = "internal"; + reg = <7>; + }; + + port@8 { + label = "lan8"; + phy-handle = <&switch0phy8>; + phy-mode = "internal"; + reg = <8>; + }; + + port@9 { + reg = <9>; + label = "lan-sfp1"; + phy-mode = "sgmii"; + sfp = <&sfp_top>; + managed = "in-band-status"; + }; + + port@10 { + reg = <10>; + label = "lan-sfp2"; + phy-mode = "sgmii"; + sfp = <&sfp_bot>; + managed = "in-band-status"; + }; + }; + }; + }; +}; + +&i2c2 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; + status = "okay"; + + onewire@18 { + compatible = "maxim,ds2484"; + reg = <0x18>; + }; + + temp@49 { + compatible = "national,lm77"; + reg = <0x49>; + }; +}; + +&i2c3 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3>; + status = "okay"; + + i2c-mux@70 { + compatible = "nxp,pca9543"; + reg = <0x70>; + #address-cells = <1>; + #size-cells = <0>; + + i2c_sfp_top: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + }; + i2c_sfp_bot: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + }; + }; + + sfp_gpio: gpio@38 { + compatible = "nxp,pca9554"; + reg = <0x38>; + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = "SFP_TXFI_T", "SFP_TXDIS_T", + "SFP_MODPRES_T", "SFP_LOS_T", + "SFP_TXFI_L", "SFP_TXDIS_L", + "SFP_MODPRES_L", "SFP_LOS_L"; + }; +}; + +&lcdif { + status = "okay"; +}; + +&uart1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart1>; + status = "okay"; +}; + +&uart2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart2>; + status = "okay"; +}; + +&uart3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart3>; + status = "okay"; +}; + +&usbotg1 { + dr_mode = "host"; + vbus-supply = <®_usb_otg_vbus>; + status = "okay"; +}; + +&usbotg2 { + dr_mode = "host"; + status = "okay"; +}; + +&usbphynop1 { + power-domains = <&pgc_otg1>; +}; + +&usbphynop2 { + power-domains = <&pgc_otg2>; +}; + +&usdhc2 { + assigned-clocks = <&clk IMX8MM_CLK_USDHC2>; + assigned-clock-rates = <400000000>; + assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_400M>; + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; + pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>; + pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>; + bus-width = <4>; + cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; + disable-wp; + no-mmc; + no-sdio; + sd-uhs-sdr104; + sd-uhs-ddr50; + vmmc-supply = <®_usdhc2_vmmc>; + status = "okay"; +}; + +&iomuxc { + pinctrl_ecspi1: ecspi1grp { + fsl,pins = < + MX8MM_IOMUXC_ECSPI1_MISO_ECSPI1_MISO 0x82 + MX8MM_IOMUXC_ECSPI1_MOSI_ECSPI1_MOSI 0x82 + MX8MM_IOMUXC_ECSPI1_SCLK_ECSPI1_SCLK 0x82 + MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x19 + MX8MM_IOMUXC_GPIO1_IO01_GPIO1_IO1 0x19 + MX8MM_IOMUXC_GPIO1_IO03_GPIO1_IO3 0x19 + MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x19 + MX8MM_IOMUXC_GPIO1_IO13_GPIO1_IO13 0x19 + MX8MM_IOMUXC_SAI1_MCLK_GPIO4_IO20 0x19 + >; + }; + + pinctrl_ecspi2: ecspi2grp { + fsl,pins = <MX8MM_IOMUXC_ECSPI2_SCLK_ECSPI2_SCLK 0x00000006>, + <MX8MM_IOMUXC_ECSPI2_MOSI_ECSPI2_MOSI 0x00000006>, + <MX8MM_IOMUXC_ECSPI2_MISO_ECSPI2_MISO 0x00000006>, + <MX8MM_IOMUXC_ECSPI2_SS0_GPIO5_IO13 0x00000006>; + }; + + pinctrl_fec1: fec1grp { + fsl,pins = < + MX8MM_IOMUXC_ENET_MDC_ENET1_MDC 0x40000002 + MX8MM_IOMUXC_ENET_MDIO_ENET1_MDIO 0x40000002 + MX8MM_IOMUXC_ENET_TD3_ENET1_RGMII_TD3 0x14 + MX8MM_IOMUXC_ENET_TD2_ENET1_RGMII_TD2 0x14 + MX8MM_IOMUXC_ENET_TD1_ENET1_RGMII_TD1 0x14 + MX8MM_IOMUXC_ENET_TD0_ENET1_RGMII_TD0 0x14 + MX8MM_IOMUXC_ENET_RD3_ENET1_RGMII_RD3 0x90 + MX8MM_IOMUXC_ENET_RD2_ENET1_RGMII_RD2 0x90 + MX8MM_IOMUXC_ENET_RD1_ENET1_RGMII_RD1 0x90 + MX8MM_IOMUXC_ENET_RD0_ENET1_RGMII_RD0 0x90 + MX8MM_IOMUXC_ENET_TXC_ENET1_RGMII_TXC 0x14 + MX8MM_IOMUXC_ENET_RXC_ENET1_RGMII_RXC 0x90 + MX8MM_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x90 + MX8MM_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x14 + MX8MM_IOMUXC_SAI2_RXC_GPIO4_IO22 0x10 + >; + }; + + pinctrl_gpio_led: gpioledgrp { + fsl,pins = < + MX8MM_IOMUXC_SD1_CLK_GPIO2_IO0 0x19 + MX8MM_IOMUXC_SD1_CMD_GPIO2_IO1 0x19 + MX8MM_IOMUXC_SD1_DATA1_GPIO2_IO3 0x19 + MX8MM_IOMUXC_SD1_DATA2_GPIO2_IO4 0x19 + MX8MM_IOMUXC_SD1_DATA3_GPIO2_IO5 0x19 + MX8MM_IOMUXC_SD1_DATA4_GPIO2_IO6 0x19 + >; + }; + + pinctrl_i2c2: i2c2grp { + fsl,pins = < + MX8MM_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c3 + MX8MM_IOMUXC_I2C2_SDA_I2C2_SDA 0x400001c3 + >; + }; + + pinctrl_i2c3: i2c3grp { + fsl,pins = < + MX8MM_IOMUXC_I2C3_SCL_I2C3_SCL 0x400001c3 + MX8MM_IOMUXC_I2C3_SDA_I2C3_SDA 0x400001c3 + >; + }; + + pinctrl_otg_vbus_ctrl: otgvbusctrlgrp { + fsl,pins = < + MX8MM_IOMUXC_SD1_DATA0_GPIO2_IO2 0x119 + >; + }; + + pinctrl_switch_interrupt: switchinterruptgrp { + fsl,pins = < + MX8MM_IOMUXC_GPIO1_IO00_GPIO1_IO0 0x19 + >; + }; + + pinctrl_uart1: uart1grp { + fsl,pins = < + MX8MM_IOMUXC_UART1_RXD_UART1_DCE_RX 0x140 + MX8MM_IOMUXC_UART1_TXD_UART1_DCE_TX 0x140 + >; + }; + + pinctrl_uart2: uart2grp { + fsl,pins = < + MX8MM_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140 + MX8MM_IOMUXC_UART2_TXD_UART2_DCE_TX 0x140 + >; + }; + + pinctrl_uart3: uart3grp { + fsl,pins = < + MX8MM_IOMUXC_UART3_RXD_UART3_DCE_RX 0x140 + MX8MM_IOMUXC_UART3_TXD_UART3_DCE_TX 0x140 + >; + }; + + pinctrl_usdhc2_gpio: usdhc2grpgpiogrp { + fsl,pins = < + MX8MM_IOMUXC_SD2_CD_B_GPIO2_IO12 0x1c4 + >; + }; + + pinctrl_usdhc2: usdhc2grp { + fsl,pins = < + MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x190 + MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d0 + MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d0 + MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d0 + MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d0 + MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d0 + >; + }; + + pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp { + fsl,pins = < + MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x194 + MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d4 + MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d4 + MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d4 + MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d4 + MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d4 + >; + }; + + pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { + fsl,pins = < + MX8MM_IOMUXC_SD2_CLK_USDHC2_CLK 0x196 + MX8MM_IOMUXC_SD2_CMD_USDHC2_CMD 0x1d6 + MX8MM_IOMUXC_SD2_DATA0_USDHC2_DATA0 0x1d6 + MX8MM_IOMUXC_SD2_DATA1_USDHC2_DATA1 0x1d6 + MX8MM_IOMUXC_SD2_DATA2_USDHC2_DATA2 0x1d6 + MX8MM_IOMUXC_SD2_DATA3_USDHC2_DATA3 0x1d6 + >; + }; +}; + +/* SPI-NOR memory is not mounted on the used SoM */ +/delete-node/ &flash0;
Signature · 1 line
2.39.5
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 6 potential issues to consider: - [High] arm64: dts: freescale: usdhc2 fails probe due to disabled reg_usdhc2_vqmmc - [Medium] arm64: dts…
Thank you for your contribution! Sashiko AI review found 6 potential issues to consider:
- [High] arm64: dts: freescale: usdhc2 fails probe due to disabled reg_usdhc2_vqmmc
- [Medium] arm64: dts: freescale: missing Makefile entry for imx8mm-cbase.dtb
- [Medium] arm64: dts: freescale: lcdif enabled without mipi_dsi or display bridge
- [Medium] arm64: dts: freescale: undocumented compatibles and missing lm77 OF table
- [Low] arm64: dts: freescale: decimal unit-address port@10 for reg = <10>
- [Low] arm64: dts: freescale: flexspi left enabled after deleting flash0 node
--
commit ed8bce86f8c6ce432aef83c22f5cd48f6151d1c7
Author: Lukasz Majewski <[email protected]>
arm64: dts: freescale: Add device tree definition for Cloos CBASE with i.MX8MM
This commit adds the device tree source for the Cloos CBASE board based on the i.MX8MM TQMa8MQML system-on-module.
Quoted 9 lines
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts new file +3
-0@@ -0,0 +1,577 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 Fabio Estevam <[email protected]>
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts line 13
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts new file +10
-0+ * Copyright 2026 Lukasz Majewski <[email protected]> + */ + +/dts-v1/; + +#include "imx8mm-tqma8mqml.dtsi" + +/ { + model = "Cloos i.MX8MM CBASE board"; + compatible = "cloos,imx8mm-cbase", "tq,imx8mm-tqma8mqml", "fsl,imx8mm";
[Severity: Medium]
Should arch/arm64/boot/dts/freescale/Makefile also add dtb-$(CONFIG_ARCH_MXC) += imx8mm-cbase.dtb? Without that entry, kbuild never compiles imx8mm-cbase.dts during make dtbs or make dtbs_check.
[ ... ]
Quoted 5 lines
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts new file +5
-0+ port@9 { + reg = <9>; + label = "lan-sfp1"; + phy-mode = "sgmii"; + sfp = <&sfp_top>;
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts line 317
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts new file +10
-0+ managed = "in-band-status"; + }; + + port@10 { + reg = <10>; + label = "lan-sfp2"; + phy-mode = "sgmii"; + sfp = <&sfp_bot>; + managed = "in-band-status"; + };
[Severity: Low]
Should port@10 be named port@a to match reg = <10>? Unit-addresses in node names are hexadecimal, so port@10 triggers a dtc unit_address_vs_reg warning and fails dtbs_check against ethernet-switch.yaml.
[ ... ]
Quoted 6 lines
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts new file +6
-0+&i2c2 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; + status = "okay"; +
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts line 338
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts new file +10
-0+ onewire@18 { + compatible = "maxim,ds2484"; + reg = <0x18>; + }; + + temp@49 { + compatible = "national,lm77"; + reg = <0x49>; + }; +};
[Severity: Medium]
Will temp@49 fail module autoloading and schema validation?
drivers/hwmon/lm77.c only defines an i2c_device_id table and has no of_device_id table, while i2c_device_uevent() emits an OF modalias for DT nodes, so the lm77 module will not autoload when CONFIG_SENSORS_LM77=m. In addition, neither "national,lm77" (nor the node name temp@49 instead of temperature-sensor@49) nor the board compatible "cloos,imx8mm-cbase" is documented in the Devicetree bindings, which causes make dtbs_check to fail.
[ ... ]
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts line 378
Quoted 3 lines
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts new file +3
-0+&lcdif { + status = "okay"; +};
[Severity: Medium]
Why is lcdif enabled here when mipi_dsi remains disabled and no display bridge or panel is defined?
In imx8mm.dtsi, lcdif's output endpoint connects to mipi_dsi, which defaults to status = "disabled". During boot, mxsfb_probe() -> mxsfb_load() -> mxsfb_attach_bridge() fails to find an enabled remote bridge or panel and aborts probe with -ENODEV ("Cannot connect bridge").
[ ... ]
Quoted 8 lines
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts new file +8
-0+&usdhc2 { + assigned-clocks = <&clk IMX8MM_CLK_USDHC2>; + assigned-clock-rates = <400000000>; + assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_400M>; + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; + pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>; + pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts line 434
Quoted 10 lines
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts new file +10
-0+ bus-width = <4>; + cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; + disable-wp; + no-mmc; + no-sdio; + sd-uhs-sdr104; + sd-uhs-ddr50; + vmmc-supply = <®_usdhc2_vmmc>; + status = "okay"; +};
[Severity: High]
Does usdhc2 fail to probe because reg_usdhc2_vqmmc is left disabled?
imx8mm-tqma8mqml.dtsi sets vqmmc-supply = <®_usdhc2_vqmmc> on usdhc2, where reg_usdhc2_vqmmc has status = "disabled":
arch/arm64/boot/dts/freescale/imx8mm-tqma8mqml.dtsi:
reg_usdhc2_vqmmc: regulator-usdhc2-vqmmc {
compatible = "regulator-gpio";
...
vin-supply = <&ldo5_reg>;
status = "disabled";
};Because imx8mm-cbase.dts does not enable reg_usdhc2_vqmmc, sdhci_esdhc_imx_probe() -> mmc_regulator_get_supply() -> of_regulator_dev_lookup() finds the disabled DT node with no registered regulator device and returns -EPROBE_DEFER permanently, leaving the SD card slot unusable.
[ ... ]
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts line 577
Quoted 2 lines
arch/arm64/boot/dts/freescale/imx8mm-cbase.dts new file +2
-0+/* SPI-NOR memory is not mounted on the used SoM */ +/delete-node/ &flash0;
[Severity: Low]
Should &flexspi be disabled instead of only deleting &flash0?
imx8mm-tqma8mqml.dtsi sets status = "okay" on &flexspi, so deleting only the child flash0 node leaves the FlexSPI controller enabled to claim its QSPI pins, IRQ, and clocks in nxp_fspi_probe() with no flash attached.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Fabio Estevam
reviewerHi Lukasz,
Quoted 7 lines · Lukasz Majewski
This commit adds support for CBASE board, which incorporates the TQMa8MQML module.
Signed-off-by Lukasz Majewski <[email protected]>--- .../arm64/boot/dts/freescale/imx8mm-cbase.dts | 577 ++++++++++++++++++
You also need to document the board inDocumentation/devicetree/bindings/arm/fsl.yaml
Make sure you run 'make dtbs_check' and that your patch does not introduce any warnings.
Hi Fabio,
Quoted 8 lines
Hi Lukasz,
Quoted 4 lines · Lukasz Majewski
This commit adds support for CBASE board, which incorporates the TQMa8MQML module.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Lukasz Majewski <[email protected]>--- .../arm64/boot/dts/freescale/imx8mm-cbase.dts | 577++++++++++++++++++
You also need to document the board in
Documentation/devicetree/bindings/arm/fsl.yaml
I've sent a separate patch for it (the same as in PHG).
Quoted 2 lines
Make sure you run 'make
dtbs_check' and that your patch does not introduce any warnings.
Yes, this shows no error (at least for the board, which I do add).
However, there are some issues found by AI review regarding the DTS description.
Signature · 10 lines
Best regards, Lukasz Majewski -- Nabla Software Engineering GmbH HRB 40522 Augsburg Phone: +49 821 45592596 E-Mail: [email protected] Managing Director : Stefano Babic
Quoted 15 lines · Łukasz Majewski
Hi Fabio,
Quoted 13 lines
Hi Lukasz,
Quoted 8 lines · Lukasz Majewski
This commit adds support for CBASE board, which incorporates the TQMa8MQML module.
Signed-off-by Lukasz Majewski <[email protected]>--- .../arm64/boot/dts/freescale/imx8mm-cbase.dts | 577++++++++++++++++++
Quoted 5 lines
Quoted 3 lines
You also need to document the board in
Documentation/devicetree/bindings/arm/fsl.yamlI've sent a separate patch for it (the same as in PHG).
Hi Lukasz,
As I understand https://docs.kernel.org/devicetree/bindings/submitting-patches.html
the patches should be sent as a patchseries.