]> Git Repo - linux.git/log
linux.git
4 months agoarm64: dts: layerscape: remove en25s64 and only keep jedec,spi-nor compatible string
Frank Li [Wed, 23 Oct 2024 20:11:28 +0000 (16:11 -0400)]
arm64: dts: layerscape: remove en25s64 and only keep jedec,spi-nor compatible string

In jedec,spi-nor.yaml:
  SPI NOR flashes compatible with the JEDEC SFDP standard or which may be
  identified with the READ ID opcode (0x9F) do not deserve a specific
  compatible. They should instead only be matched against the generic
  "jedec,spi-nor" compatible.

en25s64 already in drivers/mtd/spi-nor/eon.c. So remove it safely and fix
below warning:
  arch/arm64/boot/dts/freescale/fsl-ls1012a-qds.dtb: flash@2: compatible: 'oneOf' conditional failed, one must be fixed:
        ['en25s64', 'jedec,spi-nor'] is too long

Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8mp-kontron-dl: change touchscreen power-supply to AVDD28-supply
Frank Li [Wed, 23 Oct 2024 15:26:36 +0000 (11:26 -0400)]
arm64: dts: imx8mp-kontron-dl: change touchscreen power-supply to AVDD28-supply

Update the touchscreen power-supply from 'power-supply' to 'AVDD28-supply' and
'VDDIO-supply' as per the binding documentation in goodix.yaml.

Fix below warning:
arch/arm64/boot/dts/freescale/imx8mp-kontron-dl.dtb: touchscreen@5d:
    'power-supply' does not match any of the regexes: 'pinctrl-[0-9]+'
        from schema $id: http://devicetree.org/schemas/input/touchscreen/goodix.yaml

Signed-off-by: Frank Li <[email protected]>
Reviewed-by: Frieder Schrempf <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8mp: Add Boundary Device Nitrogen8MP Universal SMARC Carrier Board
Bhavin Sharma [Wed, 23 Oct 2024 09:11:14 +0000 (14:41 +0530)]
arm64: dts: imx8mp: Add Boundary Device Nitrogen8MP Universal SMARC Carrier Board

Adds the DTSI file for the Nitrogen8MP SMARC System on Module which
is delivered with the Nitrogen8MP Universal SMARC Carrier Board.

Initial support includes:
- Serial console
- eMMC
- SD card

Signed-off-by: Bhavin Sharma <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8: move samsung,burst-clock-frequency to imx8mn and imx8mm mba8mx...
Frank Li [Tue, 22 Oct 2024 22:04:29 +0000 (18:04 -0400)]
arm64: dts: imx8: move samsung,burst-clock-frequency to imx8mn and imx8mm mba8mx board file

Move 'samsung,burst-clock-frequency' and 'samsung,esc-clock-frequency'
properties to i.MX8MN and i.MX8MM mba8mx board file. These properties are
not applicable to i.MX8MQ MIPI DSI, which uses the compatible string
'fsl,imx8mq-nwl-dsi'. The properties are only valid for i.MX8MM and i.MX8MN
devices with the compatible string 'fsl,imx8mm-mipi-dsim', as described in
samsung,mipi-dsim.yaml.

Fix warning:
arch/arm64/boot/dts/freescale/imx8mq-tqma8mq-mba8mx-lvds-tm070jvhg33.dtb: dsi@30a00000:
    Unevaluated properties are not allowed ('ports', 'samsung,burst-clock-frequency', 'samsung,esc-clock-frequency' were unexpected)
        from schema $id: http://devicetree.org/schemas/display/bridge/nwl-dsi.yaml#

Signed-off-by: Frank Li <[email protected]>
Reviewed-by: Alexander Stein <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: mba8mx: remove undocumented 'data-lanes' at panel
Frank Li [Tue, 22 Oct 2024 20:23:41 +0000 (16:23 -0400)]
arm64: dts: mba8mx: remove undocumented 'data-lanes' at panel

'data-lanes' is port0 of lvds bridge. Needn't set it for simple panel. Fix
below CHECK_DTBS warning:

arm64/boot/dts/freescale/imx8mm-tqma8mqml-mba8mx-lvds-tm070jvhg33.dtb:
   panel-lvds: port:endpoint: Unevaluated properties are not allowed ('data-lanes' was unexpected)
       from schema $id: http://devicetree.org/schemas/display/panel/panel-simple.yaml#

Signed-off-by: Frank Li <[email protected]>
Reviewed-by: Alexander Stein <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx: Add i.MX8M Plus Gateworks GW82XX-2X support
Tim Harvey [Tue, 22 Oct 2024 15:30:31 +0000 (08:30 -0700)]
arm64: dts: imx: Add i.MX8M Plus Gateworks GW82XX-2X support

The Gateworks GW82XX-2X is an ARM based single board computer (SBC)
comprised of the i.MX8M Plus based gw702x SoM and the gw82xx baseboard
featuring:
 - i.MX8M Plus SoC
 - LPDDR4 DRAM
 - eMMC FLASH
 - Gateworks System Controller (GSC)
 - microSD (1.8V/3.3V Capable)
 - panel status bi-color LED
 - pushbutton switch
 - fan controller with tachometer
 - USB Type-C connector
 - PCIe switch
 - 2x GbE RJ45 connectors
 - multi-protocol RS232/RS485/RS422 Serial ports
 - 2x Flexible Socket Adapters with SDIO/UART/USB/PCIe
   (for M.2 and miniPCIe expansion)
 - 2x isolated CAN
 - GPS
 - accelerometer
 - magnetometer
 - off-board connectors for: SPI, GPIO, I2C, ADC
 - Wide range DC power input
 - support for 802.3at PoE (via adapter)

Signed-off-by: Tim Harvey <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8ulp-evk: Add spdif sound card support
Shengjiu Wang [Tue, 22 Oct 2024 05:29:19 +0000 (13:29 +0800)]
arm64: dts: imx8ulp-evk: Add spdif sound card support

Add spdif sound card support, configure the pinmux.

This sound card supports only playback sound
through HDMI interface.

Signed-off-by: Shengjiu Wang <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8ulp-evk: Add bt-sco sound card support
Shengjiu Wang [Tue, 22 Oct 2024 05:29:18 +0000 (13:29 +0800)]
arm64: dts: imx8ulp-evk: Add bt-sco sound card support

Add bt-sco sound card, which is used by BT HFP case.
It supports wb profile as default

Signed-off-by: Shengjiu Wang <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8ulp: Add audio device nodes
Shengjiu Wang [Tue, 22 Oct 2024 05:29:17 +0000 (13:29 +0800)]
arm64: dts: imx8ulp: Add audio device nodes

Add edma1, sai4, sai5 device nodes bus of in per_bridge3.
Add edma2, sai6, sai7, spdif device nodes in bus of
per_bridge5.

Signed-off-by: Shengjiu Wang <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qm-mek: enable dsp node for rproc usage
Laurentiu Mihalcea [Mon, 21 Oct 2024 15:52:21 +0000 (11:52 -0400)]
arm64: dts: imx8qm-mek: enable dsp node for rproc usage

Set the status of the dsp node to "okay" and assign and add its reserved
memory regions.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Tested-by: Iuliana Prodan <[email protected]>
Reviewed-by: Iuliana Prodan <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qm: add node for VPU dsp
Laurentiu Mihalcea [Mon, 21 Oct 2024 15:52:20 +0000 (11:52 -0400)]
arm64: dts: imx8qm: add node for VPU dsp

Add DT node for i.MX8QM's DSP, which is found in the VPU subsystem.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Tested-by: Iuliana Prodan <[email protected]>
Reviewed-by: Iuliana Prodan <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qm: drop dsp node from audio_subsys bus
Laurentiu Mihalcea [Mon, 21 Oct 2024 15:52:19 +0000 (11:52 -0400)]
arm64: dts: imx8qm: drop dsp node from audio_subsys bus

On i.MX8QM, the DSP is in the VPU subsystem, which means that using the
'dsp' node from 'imx8-ss-audio.dtsi' is wrong as it's placed under the
wrong bus. As such, drop it.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Tested-by: Iuliana Prodan <[email protected]>
Reviewed-by: Iuliana Prodan <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qxp-mek: add dsp rproc-related mem regions
Laurentiu Mihalcea [Mon, 21 Oct 2024 15:52:18 +0000 (11:52 -0400)]
arm64: dts: imx8qxp-mek: add dsp rproc-related mem regions

Add missing dsp rproc-related reserved memory regions and assign them to
the 'dsp' node.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Tested-by: Iuliana Prodan <[email protected]>
Reviewed-by: Iuliana Prodan <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8-ss-audio: configure dsp node for rproc usage
Laurentiu Mihalcea [Mon, 21 Oct 2024 15:52:17 +0000 (11:52 -0400)]
arm64: dts: imx8-ss-audio: configure dsp node for rproc usage

The 'dsp' node is currently configured for running an audio firmware.
Since the firmware requires that some audio-related IPs be disabled in
Linux, this will clash with the configurations from the imx8 board DTs
(i.e: imx8qm-mek, imx8qxp-mek, etc...), thus making the dsp unusable
(since the firmware won't function properly).

To avoid this issue, configure the 'dsp' node for rproc. This way, users
will be able to use the dsp alongside the board-level audio configuration
as long as the firmware doesn't need the audio IPs.

Signed-off-by: Laurentiu Mihalcea <[email protected]>
Tested-by: Iuliana Prodan <[email protected]>
Reviewed-by: Iuliana Prodan <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8mm-venice-gw73xx: remove compatible in overlay file
Frank Li [Fri, 18 Oct 2024 18:28:23 +0000 (14:28 -0400)]
arm64: dts: imx8mm-venice-gw73xx: remove compatible in overlay file

Remove compatible string in overlay file to fix below warning:
'gw,imx8mm-gw73xx-0x' is not one of ['fsl,ls1043a-rdb', 'fsl,ls1043a-qds']

Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx93: Add LPSPI alias
Carlos Song [Fri, 18 Oct 2024 03:45:32 +0000 (11:45 +0800)]
arm64: dts: imx93: Add LPSPI alias

Add i.MX93 LPSPI alias for kernel LPSPI driver usage.

Signed-off-by: Carlos Song <[email protected]>
Signed-off-by: Haibo Chen <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8ulp: Add LPSPI alias
Carlos Song [Fri, 18 Oct 2024 03:45:31 +0000 (11:45 +0800)]
arm64: dts: imx8ulp: Add LPSPI alias

Add i.MX8ULP LPSPI alias for kernel LPSPI driver usage.

Signed-off-by: Carlos Song <[email protected]>
Signed-off-by: Haibo Chen <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8dxl: Add LPSPI alias
Carlos Song [Fri, 18 Oct 2024 03:45:30 +0000 (11:45 +0800)]
arm64: dts: imx8dxl: Add LPSPI alias

Add i.MX8DXL LPSPI alias for kernel LPSPI driver usage.

Signed-off-by: Carlos Song <[email protected]>
Signed-off-by: Haibo Chen <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qm: Add LPSPI alias
Carlos Song [Fri, 18 Oct 2024 03:45:29 +0000 (11:45 +0800)]
arm64: dts: imx8qm: Add LPSPI alias

Add i.MX8QM LPSPI alias for kernel LPSPI driver usage.

Signed-off-by: Carlos Song <[email protected]>
Signed-off-by: Haibo Chen <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qxp: Add LPSPI alias
Carlos Song [Fri, 18 Oct 2024 03:45:28 +0000 (11:45 +0800)]
arm64: dts: imx8qxp: Add LPSPI alias

Add i.MX8QXP LPSPI alias for kernel LPSPI driver usage.

Signed-off-by: Carlos Song <[email protected]>
Signed-off-by: Haibo Chen <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qxp: change usbphy1 compatible
Xu Yang [Thu, 26 Sep 2024 07:39:50 +0000 (15:39 +0800)]
arm64: dts: imx8qxp: change usbphy1 compatible

Make fsl,imx8qxp-usbphy compatible with fsl,imx7ulp-usbphy to fix below
warning:

arch/arm64/boot/dts/freescale/imx8qxp-colibri-aster.dtb: usbphy@5b100000: 'nxp,sim' is a required property
        from schema $id: http://devicetree.org/schemas/phy/fsl,mxs-usbphy.yaml#

Signed-off-by: Xu Yang <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qm: change usbphy1 compatible
Xu Yang [Thu, 26 Sep 2024 07:39:49 +0000 (15:39 +0800)]
arm64: dts: imx8qm: change usbphy1 compatible

Make fsl,imx8qm-usbphy compatible with fsl,imx7ulp-usbphy to fix below
warning:

arch/arm64/boot/dts/freescale/imx8qm-apalis-eval.dtb: usbphy@5b100000: 'nxp,sim' is a required property
        from schema $id: http://devicetree.org/schemas/phy/fsl,mxs-usbphy.yaml#

Signed-off-by: Xu Yang <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8dxl-ss-conn: change usbphy1 compatible
Xu Yang [Thu, 26 Sep 2024 07:39:48 +0000 (15:39 +0800)]
arm64: dts: imx8dxl-ss-conn: change usbphy1 compatible

Make fsl,imx8dxl-usbphy compatible with fsl,imx7ulp-usbphy to fix below
warning:

arch/arm64/boot/dts/freescale/imx8dxl-evk.dtb: usbphy@5b100000: 'nxp,sim' is a required property
        from schema $id: http://devicetree.org/schemas/phy/fsl,mxs-usbphy.yaml#

Signed-off-by: Xu Yang <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qxp-mek: add cm4 and related nodes
Frank Li [Mon, 21 Oct 2024 16:34:37 +0000 (12:34 -0400)]
arm64: dts: imx8qxp-mek: add cm4 and related nodes

Add cm4 and related nodes.

Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qxp-mek: add usbotg1 and related node
Frank Li [Mon, 21 Oct 2024 16:34:36 +0000 (12:34 -0400)]
arm64: dts: imx8qxp-mek: add usbotg1 and related node

Add usbotg1, usbphy1 and related regulator nodes.

Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qxp-mek: add flexcan1 and flexcan2
Frank Li [Mon, 21 Oct 2024 16:34:35 +0000 (12:34 -0400)]
arm64: dts: imx8qxp-mek: add flexcan1 and flexcan2

Add flexcan1 and flexcan2.

Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qxp-mek: enable jpeg encode and decode
Frank Li [Mon, 21 Oct 2024 16:34:34 +0000 (12:34 -0400)]
arm64: dts: imx8qxp-mek: enable jpeg encode and decode

Enable jpeg encode and decode.

Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qxp-mek: add esai, cs42888 and related node
Frank Li [Mon, 21 Oct 2024 16:34:33 +0000 (12:34 -0400)]
arm64: dts: imx8qxp-mek: add esai, cs42888 and related node

Add audio codec cs42888 and related node.

Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qxp-mek: add bluetooth audio codec
Frank Li [Mon, 21 Oct 2024 16:34:32 +0000 (12:34 -0400)]
arm64: dts: imx8qxp-mek: add bluetooth audio codec

Add bluetooth audio codec.

Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8m*-venice-gw75xx: add Accelerometer device
Tim Harvey [Fri, 18 Oct 2024 17:36:08 +0000 (10:36 -0700)]
arm64: dts: imx8m*-venice-gw75xx: add Accelerometer device

The GW75xx has a LIS2DE12TR 3-axis accelerometer on the I2C bus with an
interrupt pin. Add it to the device-tree.

Signed-off-by: Tim Harvey <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qm-mek: Add PCIe and SATA
Frank Li [Mon, 21 Oct 2024 19:06:02 +0000 (15:06 -0400)]
arm64: dts: imx8qm-mek: Add PCIe and SATA

Add PCIe[a,b] and SATA support for i.MX8QM-MEK board.

Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8qxp-mek: Add PCIe support
Frank Li [Mon, 21 Oct 2024 19:06:01 +0000 (15:06 -0400)]
arm64: dts: imx8qxp-mek: Add PCIe support

Add PCIe support for i.MX8QXP MEK board.

Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8dxl-evk: Add PCIe support
Richard Zhu [Mon, 21 Oct 2024 19:06:00 +0000 (15:06 -0400)]
arm64: dts: imx8dxl-evk: Add PCIe support

Add PCIe support on i.MX8DXL EVK board.

Signed-off-by: Richard Zhu <[email protected]>
Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8-ss-hsio: Add PCIe and SATA support
Richard Zhu [Mon, 21 Oct 2024 19:05:59 +0000 (15:05 -0400)]
arm64: dts: imx8-ss-hsio: Add PCIe and SATA support

Add PCIe support for i.MX8QXP, i.MX8QM and i.MX8DXL.
Add SATA support for i.MX8QM, which is in hsio subsystem and is shared with
PCIe PHY.

Signed-off-by: Richard Zhu <[email protected]>
Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: colibri-imx8x: Fix typo "rewritting"
WangYuli [Fri, 18 Oct 2024 02:33:40 +0000 (10:33 +0800)]
arm64: dts: colibri-imx8x: Fix typo "rewritting"

There is a spelling mistake of 'rewritting' in comments which
should be 'rewriting'.

Suggested-by: Simon Horman <[email protected]>
Signed-off-by: WangYuli <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx93-9x9-qsb: Add PDM microphone sound card support
Shengjiu Wang [Wed, 16 Oct 2024 08:49:17 +0000 (16:49 +0800)]
arm64: dts: imx93-9x9-qsb: Add PDM microphone sound card support

Add PDM micphone sound card support, configure the pinmux.

This sound card supports recording sound from PDM
microphone and convert the PDM format data to PCM data.

Signed-off-by: Shengjiu Wang <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx93-9x9-qsb: add bt-sco sound card support
Shengjiu Wang [Wed, 16 Oct 2024 08:49:16 +0000 (16:49 +0800)]
arm64: dts: imx93-9x9-qsb: add bt-sco sound card support

Add bt-sco sound card, which is used by BT HFP case.
It supports wb profile as default.

Signed-off-by: Shengjiu Wang <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx93-9x9-qsb: Enable sound-wm8962 sound card
Shengjiu Wang [Wed, 16 Oct 2024 08:49:15 +0000 (16:49 +0800)]
arm64: dts: imx93-9x9-qsb: Enable sound-wm8962 sound card

Add wm8962 sound card which connects to sai3. The connection
of SAI3 and wm8962 is controlled by PCAL6524HEAZ module, add
gpio-hog for it.

Signed-off-by: Shengjiu Wang <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx95-19x19-evk: add lpi2c[5,6] and sub-nodes
Peng Fan [Sat, 12 Oct 2024 11:19:14 +0000 (19:19 +0800)]
arm64: dts: imx95-19x19-evk: add lpi2c[5,6] and sub-nodes

Add LPI2C[5,6] and the gpio expander subnodes.
Since we are at here, also add the alias for all lpi2c and gpio nodes.

Signed-off-by: Peng Fan <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx95-19x19-evk: add nxp,ctrl-ids property
Peng Fan [Sat, 12 Oct 2024 11:19:13 +0000 (19:19 +0800)]
arm64: dts: imx95-19x19-evk: add nxp,ctrl-ids property

Add 'nxp,ctrl-ids' for SCMI firmware to configure the board ctrls as
wakeup sources.

Signed-off-by: Peng Fan <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx95: enable A55 cpuidle
Peng Fan [Sat, 12 Oct 2024 11:19:12 +0000 (19:19 +0800)]
arm64: dts: imx95: enable A55 cpuidle

Add cpuidle node and enable cpuidle for A55.

Signed-off-by: Peng Fan <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx95: add anamix temperature thermal zone and cooling node
Peng Fan [Sat, 12 Oct 2024 11:19:11 +0000 (19:19 +0800)]
arm64: dts: imx95: add anamix temperature thermal zone and cooling node

i.MX95 has two on-chip temperature sensors, one is inside anamix block.
This is to add the anamix temperature thermal zone and its cooling
device.

Signed-off-by: Peng Fan <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx95: update a55 thermal trip points
Peng Fan [Sat, 12 Oct 2024 11:19:10 +0000 (19:19 +0800)]
arm64: dts: imx95: update a55 thermal trip points

Update the thermal trip points for automotive and extended industrial
temperature qualification processors.

Signed-off-by: Peng Fan <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx95: add bbm/misc/syspower scmi nodes
Peng Fan [Sat, 12 Oct 2024 11:19:09 +0000 (19:19 +0800)]
arm64: dts: imx95: add bbm/misc/syspower scmi nodes

Add SYS Power, BBM and MISC nodes under SCMI firmware node.

Reviewed-by: Alexander Stein <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx95: set max-rx-timeout-ms
Peng Fan [Sat, 12 Oct 2024 11:19:08 +0000 (19:19 +0800)]
arm64: dts: imx95: set max-rx-timeout-ms

With 'max-rx-timeout-ms' property added in 'Documentation/devicetree/
indings/firmware/arm,scmi.yaml', set the value for i.MX95.

NXP i.MX95 SCMI Firmware designation does not allow timeout, it will not
recover if the Agents use timeout design. So set a large value (5000ms)
here.

Signed-off-by: Peng Fan <[email protected]>
Acked-by: Alexander Stein <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8mm-kontron: Add DL (Display-Line) overlay with LVDS support
Frieder Schrempf [Tue, 8 Oct 2024 14:37:46 +0000 (16:37 +0200)]
arm64: dts: imx8mm-kontron: Add DL (Display-Line) overlay with LVDS support

The Kontron Electronics DL i.MX8MM consists of the BL i.MX8MM board
and a 7" LVDS panel. Provide an overlay that enables the panel.

Signed-off-by: Frieder Schrempf <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8mm-kontron: Add support for display bridges on BL i.MX8MM
Frieder Schrempf [Tue, 8 Oct 2024 14:37:45 +0000 (16:37 +0200)]
arm64: dts: imx8mm-kontron: Add support for display bridges on BL i.MX8MM

The Kontron Electronics BL i.MX8MM has oboard disply bridges for
DSI->HDMI and DSI->LVDS conversion. The DSI interface is muxed by
a GPIO-controlled switch to one of these two bridges.

By default the HDMI bridge is enabled. The LVDS bridge can be
selected by loading an additional (panel-specific) overlay.

Signed-off-by: Frieder Schrempf <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: layerscape: remove cooling-max-state and cooling-min-state
Frank Li [Mon, 7 Oct 2024 22:05:42 +0000 (18:05 -0400)]
arm64: dts: layerscape: remove cooling-max-state and cooling-min-state

Remove unused property cooling-max-state and cooling-min-state.
Remove undocument property #cooling-cells for ti,amc6821.
Fix below dtb_check warning:
arch/arm64/boot/dts/freescale/fsl-lx2160a-clearfog-cx.dtb: fan-temperature-ctrlr@18: '#cooling-cells', 'cooling-max-state', 'cooling-min-state' do not match any of the regexes: 'pinctrl-[0-9]+'
        from schema $id: http://devicetree.org/schemas/hwmon/ti,amc6821.yaml

Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8mp: add cpuidle state "cpu-pd-wait"
Catalin Popescu [Mon, 7 Oct 2024 13:44:24 +0000 (15:44 +0200)]
arm64: dts: imx8mp: add cpuidle state "cpu-pd-wait"

So far, only WFI is supported on i.MX8mp platform. Add support for
deeper cpuidle state "cpu-pd-wait" that would allow for better power
usage during runtime. This is a port from NXP downstream kernel.

Signed-off-by: Catalin Popescu <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8mp-evk: add PCIe Endpoint function overlay file
Frank Li [Tue, 1 Oct 2024 18:37:47 +0000 (14:37 -0400)]
arm64: dts: imx8mp-evk: add PCIe Endpoint function overlay file

PCIe of i.MX8MP is dual role PCIe controller, which can work as root
complex (RC) mode and endpoint (EP) mode. Add overlay file to let it work
as EP mode.

Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: fsl-lx2160a: add rev2 support
Frank Li [Mon, 26 Aug 2024 21:38:33 +0000 (17:38 -0400)]
arm64: dts: fsl-lx2160a: add rev2 support

Add rev2 dtsi. Although uboot fixup can change compatible string
fsl,lx2160a-pcie to fsl,ls2088a-pcie since 2019, it is quite confused and
should correctly reflect hardware status. So add fsl-lx2160a-rev2.dtsi to
overwrite pcie's compatible string.

Add PCIe EP nodes.

Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8mp: Add support for DH electronics i.MX8M Plus DHCOM PicoITX
Marek Vasut [Fri, 18 Oct 2024 02:54:14 +0000 (10:54 +0800)]
arm64: dts: imx8mp: Add support for DH electronics i.MX8M Plus DHCOM PicoITX

Add support for DH electronics i.MX8M Plus DHCOM SoM on PicoITX carrier board.
This system is populated with serial console, EQoS ethernet, eMMC, SD, SPI NOR,
LEDs and USB 3.0 host used in USB 2.0 mode on PicoITX.

Signed-off-by: Marek Vasut <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8mp-phyboard-pollux-rdk: update gpio-line-names
Benjamin Hahn [Fri, 27 Sep 2024 11:34:16 +0000 (13:34 +0200)]
arm64: dts: imx8mp-phyboard-pollux-rdk: update gpio-line-names

Update gpio-line-names. Add missing and remove unused.

Signed-off-by: Benjamin Hahn <[email protected]>
Reviewed-by: Teresa Remmet <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
4 months agoarm64: dts: imx8mp: Add DH i.MX8MP DHCOM SoM on DRC02 carrier board
Marek Vasut [Wed, 25 Sep 2024 16:03:08 +0000 (18:03 +0200)]
arm64: dts: imx8mp: Add DH i.MX8MP DHCOM SoM on DRC02 carrier board

Add support for DH electronics i.MX8MP DHCOM SoM on DRC02 carrier board.
This system is populated with two ethernet ports, two CANs, RS485 and RS232,
USB, capacitive buttons and an OLED display.

Signed-off-by: Marek Vasut <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx: Add imx8mp-iota2-lumpy board
Michal Vokáč [Wed, 25 Sep 2024 12:49:03 +0000 (14:49 +0200)]
arm64: dts: imx: Add imx8mp-iota2-lumpy board

The IOTA2 Lumpy board is based on the i.MX8MPlus EVK.

Basic features are:
- 4GB LPDDR4
- 64GB eMMC
- 2x 1GB Ethernet
- USB 3.0 Type-C dual role port, without power delivery
- USB 3.0 Type-A host port
- RGB LED - PWM driven
- speaker - PWM driven
- RTC with super capacitor backup

Reviewed-by: Marco Felsch <[email protected]>
Signed-off-by: Michal Vokáč <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: freescale: imx8mp-verdin: Add Ivy carrier board
João Paulo Gonçalves [Tue, 24 Sep 2024 11:40:53 +0000 (13:40 +0200)]
arm64: dts: freescale: imx8mp-verdin: Add Ivy carrier board

Add Toradex Verdin Ivy carrier board support. One notable feature of Ivy
is the analog inputs. These inputs are multiplexed, allowing the same
input to measure either voltage or current. For current measurements,
a GPIO switch enables or disables the shunt resistor. This process is
automatically managed by the Linux kernel using the IIO and MUX
subsystems. Voltage measurement is always enabled, but the voltage
measured by the ADC is scaled by a cascade voltage divider. In the
device tree, the equivalent gain of the voltage divider is used, which
can be calculated as follows:

               ------------
               +          |
                         .-.
                  R1=30K | |
                         | |
                         '-'
                          |-------------------
    Analog Input (AIN)    |                  |
                         .-.                .-.
                  R2=10K | |         R3=30K | |
                         | |                | |
                         '-'                '-'
                          |                  |
                          |                  |--------
                          |                 .-.      +
                          |          R4=10K | |
                          |                 | |      ADC Input (Channels 0 and 1)
                          |                 '-'
               -          |                  |       -
               -----------|                  |--------
                         ===                ===
                         GND                GND

Vin  = Analog Input (AIN)
Vout = ADC Input
Rth  = Thevenin Equiv. Resistance
Vth  = Thevenin Equiv. Voltage
RL   = Load Resistor

R1 = 30K, R2 = 10K, R3 = 30K, R4 = 10K
RL = R4 = 10K

Rth  = (R1 // R2) + R3 = 37500 Ohms
Vth  = (Vin * R2) / (R1 + R2) = Vin/4;
Vout = (Vth * RL)/ (Rth + RL) = Vth/4.75 = Vin/19
Gain = Vout/Vin = 1/19

https://www.toradex.com/products/carrier-board/ivy-carrier-board

Signed-off-by: João Paulo Gonçalves <[email protected]>
Signed-off-by: Francesco Dolcini <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: freescale: imx8mp-verdin: add labels to som nodes
João Paulo Gonçalves [Tue, 24 Sep 2024 11:40:52 +0000 (13:40 +0200)]
arm64: dts: freescale: imx8mp-verdin: add labels to som nodes

Add labels to ti-ads1015 and fec ethernet mdio node to make it easier to
reference them from other nodes.

Signed-off-by: João Paulo Gonçalves <[email protected]>
Signed-off-by: Francesco Dolcini <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: freescale: imx8mm-verdin: Add Ivy carrier board
João Paulo Gonçalves [Tue, 24 Sep 2024 11:30:48 +0000 (13:30 +0200)]
arm64: dts: freescale: imx8mm-verdin: Add Ivy carrier board

Add Toradex Verdin Ivy carrier board support. One notable feature of Ivy
is the analog inputs. These inputs are multiplexed, allowing the same
input to measure either voltage or current. For current measurements,
a GPIO switch enables or disables the shunt resistor. This process is
automatically managed by the Linux kernel using the IIO and MUX
subsystems. Voltage measurement is always enabled, but the voltage
measured by the ADC is scaled by a cascade voltage divider. In the
device tree, the equivalent gain of the voltage divider is used, which
can be calculated as follows:

               ------------
               +          |
                         .-.
              R1=30K     | |
                         | |
                         '-'
                          |-------------------
    Analog Input (AIN)    |                  |
                         .-.                .-.
                  R2=10K | |         R3=30K | |
                         | |                | |
                         '-'                '-'
                          |                  |
                          |                  |--------
                          |                 .-.      +
                          |          R4=10K | |
                          |                 | |      ADC Input (Channels 0 and 1)
                          |                 '-'
               -          |                  |       -
               -----------|                  |--------
                         ===                ===
                         GND                GND

Vin  = Analog Input (AIN)
Vout = ADC Input
Rth  = Thevenin Equiv. Resistance
Vth  = Thevenin Equiv. Voltage
RL   = Load Resistor

R1 = 30K, R2 = 10K, R3 = 30K, R4 = 10K
RL = R4 = 10K

Rth  = (R1 // R2) + R3 = 37500 Ohms
Vth  = (Vin * R2) / (R1 + R2) = Vin/4;
Vout = (Vth * RL)/ (Rth + RL) = Vth/4.75 = Vin/19
Gain = Vout/Vin = 1/19

https://www.toradex.com/products/carrier-board/ivy-carrier-board

Signed-off-by: João Paulo Gonçalves <[email protected]>
Signed-off-by: Francesco Dolcini <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: freescale: imx8mm-verdin: add label to som adc node
João Paulo Gonçalves [Tue, 24 Sep 2024 11:30:47 +0000 (13:30 +0200)]
arm64: dts: freescale: imx8mm-verdin: add label to som adc node

Add a label to ti-ads1015 node to make it easier to reference it
from other nodes.

Signed-off-by: João Paulo Gonçalves <[email protected]>
Signed-off-by: Francesco Dolcini <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx8mp-phyboard-pollux-rdk: add gpio-fan
Yannic Moog [Tue, 24 Sep 2024 07:53:04 +0000 (09:53 +0200)]
arm64: dts: imx8mp-phyboard-pollux-rdk: add gpio-fan

A GPIO fan may be connected to Pollux fan header. The fan should
activate at 60°C and stay active until critical SoC temperature is
reached and the board shuts down.

Signed-off-by: Yannic Moog <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: colibri-imx8x: Add ad7879_ts label to touchscreen controller
Emanuele Ghidoli [Tue, 10 Sep 2024 15:22:12 +0000 (17:22 +0200)]
arm64: dts: colibri-imx8x: Add ad7879_ts label to touchscreen controller

The device tree defines the touchscreen controller, but it cannot be
enabled because it lacks a reference label.
This commit adds a label to allow it to be referenced and enabled.

Signed-off-by: Emanuele Ghidoli <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx8mm-venice-*: add RTC aliases
Tim Harvey [Mon, 9 Sep 2024 22:15:01 +0000 (15:15 -0700)]
arm64: dts: imx8mm-venice-*: add RTC aliases

Add aliases for the RTCs on the Gateworks Venice boards and on the imx8m
SoC. This ensures that the primary RTC is always the one on-board
provided by the Gateworks System Controller (GSC) which is battery
backed as opposed to the one in the IMX8M.

Signed-off-by: Tim Harvey <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx93-9x9-qsb: add I3C overlay file
Frank Li [Fri, 6 Sep 2024 20:15:01 +0000 (16:15 -0400)]
arm64: dts: imx93-9x9-qsb: add I3C overlay file

Add an overlay file to enable I3C support on the i.MX93, replacing I2C1
with I3C. I3C is compatible with I2C, but it has not yet been enabled in
arm64's defconfig. This overlay allows users to conveniently utilize I3C
on the imx93-9x9-qsb platform until I3C and its driver become more mature
and ready for full switch to I3C.

Signed-off-by: Frank Li <[email protected]>
Reviewed-by: Peng Fan <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx8mp-venice-gw74xx: add M2SKT_GPIO10 gpio configuration
Tim Harvey [Thu, 5 Sep 2024 18:32:28 +0000 (11:32 -0700)]
arm64: dts: imx8mp-venice-gw74xx: add M2SKT_GPIO10 gpio configuration

The GW74xx D revision has added a M2SKT_GPIO10 GPIO which routes to the
GPIO10 pin of the M.2 socket for compatibility with certain devices.

Add the iomux and a line name for this.

Signed-off-by: Tim Harvey <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: freescale: minor whitespace cleanup
Krzysztof Kozlowski [Thu, 5 Sep 2024 15:44:10 +0000 (17:44 +0200)]
arm64: dts: freescale: minor whitespace cleanup

The DTS code coding style expects exactly one space before '{'
character.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
Acked-by: Peng Fan <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: Add support for Kontron i.MX8MP SMARC module and eval carrier
Frieder Schrempf [Wed, 4 Sep 2024 08:53:21 +0000 (10:53 +0200)]
arm64: dts: Add support for Kontron i.MX8MP SMARC module and eval carrier

This adds support for the Kontron Electronics i.MX8MP SMARC module
(which uses the OSM-S i.MX8MP SoM) on the Kontron SMARC eval carrier.

Signed-off-by: Frieder Schrempf <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: Add support for Kontron OSM-S i.MX8MP SoM and BL carrier board
Frieder Schrempf [Wed, 4 Sep 2024 08:53:20 +0000 (10:53 +0200)]
arm64: dts: Add support for Kontron OSM-S i.MX8MP SoM and BL carrier board

This adds support for the Kontron Electronics OSM-S i.MX8MP SoM
and the matching baseboard BL i.MX8MP.

The SoM hardware complies to the Open Standard Module (OSM) 1.1
specification, size S (https://sget.org/standards/osm).

Signed-off-by: Frieder Schrempf <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx93-11x11-evk: Enable sound-wm8962 sound card
Chancel Liu [Tue, 3 Sep 2024 18:54:49 +0000 (14:54 -0400)]
arm64: dts: imx93-11x11-evk: Enable sound-wm8962 sound card

Add wm8962 sound card which connects to sai3.

Signed-off-by: Chancel Liu <[email protected]>
Signed-off-by: Shengjiu Wang <[email protected]>
Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx93-11x11-evk: add flexcan support
Haibo Chen [Tue, 3 Sep 2024 18:54:48 +0000 (14:54 -0400)]
arm64: dts: imx93-11x11-evk: add flexcan support

Add flexcan support.

Signed-off-by: Joakim Zhang <[email protected]>
Signed-off-by: Haibo Chen <[email protected]>
Reviewed-by: Jun Li <[email protected]>
Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx93-11x11-evk: add io-expander adi,adp5585-01
Frank Li [Tue, 3 Sep 2024 18:54:47 +0000 (14:54 -0400)]
arm64: dts: imx93-11x11-evk: add io-expander adi,adp5585-01

Add io-expander adi,adp5585 under lpi2c3.

Signed-off-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx93-11x11-evk: remove redundant "sleep" pinctrl in lpi2c2 node
Carlos Song [Tue, 3 Sep 2024 09:39:11 +0000 (17:39 +0800)]
arm64: dts: imx93-11x11-evk: remove redundant "sleep" pinctrl in lpi2c2 node

In lpi2c2 node, default pinctrl and sleep pinctrl have the same value.
So "sleep" pinctrl is redundant and remove it.

Signed-off-by: Carlos Song <[email protected]>
Reviewed-by: Fabio Estevam <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx8mm-emtop-baseboard: Add Peripherals Support
Tarang Raval [Tue, 3 Sep 2024 09:17:20 +0000 (14:47 +0530)]
arm64: dts: imx8mm-emtop-baseboard: Add Peripherals Support

Add following peripherals support for the Emtop i.MX8M Mini Baseboard

        * Wi-Fi
        * Audio
        * SD card
        * RTC
        * CAN bus
        * USB OTG

Signed-off-by: Tarang Raval <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx8-apalis: Add usb4 host support
João Paulo Gonçalves [Tue, 3 Sep 2024 09:12:31 +0000 (11:12 +0200)]
arm64: dts: imx8-apalis: Add usb4 host support

Add USB4 HOST to Apalis-iMX8QM SOM and its carrier boards.

Signed-off-by: João Paulo Gonçalves <[email protected]>
Signed-off-by: Francesco Dolcini <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx8-apalis: Add nau8822 audio-codec to apalis eval v1.2
Hiago De Franco [Tue, 3 Sep 2024 09:12:30 +0000 (11:12 +0200)]
arm64: dts: imx8-apalis: Add nau8822 audio-codec to apalis eval v1.2

Add support for audio-codec NAU88C22 present on the Apalis Evaluation
Board v1.2 carrier board.

Signed-off-by: Hiago De Franco <[email protected]>
Signed-off-by: Francesco Dolcini <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx8-apalis: Add audio support
João Paulo Gonçalves [Tue, 3 Sep 2024 09:12:29 +0000 (11:12 +0200)]
arm64: dts: imx8-apalis: Add audio support

Add audio support to Apalis-iMX8QM and its carrier boards. These includes:
* On SOM i2s sound card
* On SOM spdif sound card
* Enabling Audiomix and Asynchronous Sample Rate Converter

Signed-off-by: João Paulo Gonçalves <[email protected]>
Signed-off-by: Francesco Dolcini <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx8-apalis: Set thermal thresholds
Andrejs Cainikovs [Tue, 3 Sep 2024 09:12:28 +0000 (11:12 +0200)]
arm64: dts: imx8-apalis: Set thermal thresholds

Set critical/alert thermal thresholds for all relevant SOC
temperature trips to the IT value (max T_junction 105 degree
Celsius) in accordance with the IT grade of the SOM.

Signed-off-by: Andrejs Cainikovs <[email protected]>
Signed-off-by: Francesco Dolcini <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx8qm: Remove adma pwm
Andrejs Cainikovs [Tue, 3 Sep 2024 09:12:27 +0000 (11:12 +0200)]
arm64: dts: imx8qm: Remove adma pwm

There is no adma pwm on iMX8QM, so remove it from the DT. When enabled,
this cause warnings on resource partition ownership check by U-Boot
that receives messages from SCU firmware saying that these resources are
not owned:

Booting using the fdt blob at 0x9d400000
Loading Device Tree to 00000000fd622000, end 00000000fd66efff ... OK
Disable pwm@5a190000 rsrc 188 not owned
Disable clock-controller@5a590000 rsrc 188 not owned

Signed-off-by: Andrejs Cainikovs <[email protected]>
Signed-off-by: Francesco Dolcini <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: s32g2: Disable support for SD/eMMC UHS mode
Ciprian Marian Costea [Fri, 30 Aug 2024 11:33:47 +0000 (14:33 +0300)]
arm64: dts: s32g2: Disable support for SD/eMMC UHS mode

Disable SD/eMMC UHS modes for NXP boards which do not set VCCQ voltage
supply to 1.8V by default, such as S32G274A-EVB and S32G274A-RDB2.

Signed-off-by: Ciprian Marian Costea <[email protected]>
Reviewed-by: Matthias Brugger <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: s32g: Add S32G2/S32G3 uSDHC pinmux
Ciprian Marian Costea [Fri, 30 Aug 2024 11:33:46 +0000 (14:33 +0300)]
arm64: dts: s32g: Add S32G2/S32G3 uSDHC pinmux

Adding 100mhz & 200mhz pinmux support for uSDHC helps to enable
higher speed modes for SD (SDR50, DDR50, SDR104) and
eMMC (such as HS200, HS400/HS400ES).

Signed-off-by: Radu Pirea <[email protected]>
Signed-off-by: Ciprian Marian Costea <[email protected]>
Reviewed-by: Matthias Brugger <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx8mm: Add dbi2 and atu reg for i.MX8MM PCIe EP
Richard Zhu [Tue, 13 Aug 2024 07:42:23 +0000 (15:42 +0800)]
arm64: dts: imx8mm: Add dbi2 and atu reg for i.MX8MM PCIe EP

Add dbi2 and iatu reg for i.MX8MM PCIe EP.

For i.MX8M PCIe EP, the dbi2 and atu addresses are pre-defined in the
driver. This method is not good.

In commit b7d67c6130ee ("PCI: imx6: Add iMX95 Endpoint (EP) support"),
Frank suggests to fetch the dbi2 and atu from DT directly. This commit is
preparation to do that for i.MX8MM PCIe EP.

These changes wouldn't break driver function. When "dbi2" and "atu"
properties are present, i.MX PCIe driver would fetch the according base
addresses from DT directly. If only two reg properties are provided, i.MX
PCIe driver would fall back to the old method.

Signed-off-by: Richard Zhu <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx8mp: Add dbi2 and atu reg for i.MX8MP PCIe EP
Richard Zhu [Tue, 13 Aug 2024 07:42:22 +0000 (15:42 +0800)]
arm64: dts: imx8mp: Add dbi2 and atu reg for i.MX8MP PCIe EP

Add dbi2 and iatu reg for i.MX8MP PCIe EP.

For i.MX8M PCIe EP, the dbi2 and atu addresses are pre-defined in the
driver. This method is not good.

In commit b7d67c6130ee ("PCI: imx6: Add iMX95 Endpoint (EP) support"),
Frank suggests to fetch the dbi2 and atu from DT directly. This commit is
preparation to do that for i.MX8MP PCIe EP.

These changes wouldn't break driver function. When "dbi2" and "atu"
properties are present, i.MX PCIe driver would fetch the according base
addresses from DT directly. If only two reg properties are provided, i.MX
PCIe driver would fall back to the old method.

Signed-off-by: Richard Zhu <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoarm64: dts: imx8mq: Add dbi2 and atu reg for i.MX8MQ PCIe EP
Richard Zhu [Tue, 13 Aug 2024 07:42:21 +0000 (15:42 +0800)]
arm64: dts: imx8mq: Add dbi2 and atu reg for i.MX8MQ PCIe EP

Add dbi2 and iatu reg for i.MX8MQ PCIe EP.

For i.MX8M PCIe EP, the dbi2 and atu addresses are pre-defined in the
driver. This method is not good.

In commit b7d67c6130ee ("PCI: imx6: Add iMX95 Endpoint (EP) support"),
Frank suggests to fetch the dbi2 and atu from DT directly. This commit is
preparation to do that for i.MX8MQ PCIe EP.

These changes wouldn't break driver function. When "dbi2" and "atu"
properties are present, i.MX PCIe driver would fetch the according base
addresses from DT directly. If only two reg properties are provided, i.MX
PCIe driver would fall back to the old method.

Signed-off-by: Richard Zhu <[email protected]>
Reviewed-by: Frank Li <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
5 months agoLinux 6.12-rc1 v6.12-rc1
Linus Torvalds [Sun, 29 Sep 2024 22:06:19 +0000 (15:06 -0700)]
Linux 6.12-rc1

5 months agox86: kvm: fix build error
Linus Torvalds [Sun, 29 Sep 2024 21:47:33 +0000 (14:47 -0700)]
x86: kvm: fix build error

The cpu_emergency_register_virt_callback() function is used
unconditionally by the x86 kvm code, but it is declared (and defined)
conditionally:

  #if IS_ENABLED(CONFIG_KVM_INTEL) || IS_ENABLED(CONFIG_KVM_AMD)
  void cpu_emergency_register_virt_callback(cpu_emergency_virt_cb *callback);
  ...

leading to a build error when neither KVM_INTEL nor KVM_AMD support is
enabled:

  arch/x86/kvm/x86.c: In function ‘kvm_arch_enable_virtualization’:
  arch/x86/kvm/x86.c:12517:9: error: implicit declaration of function ‘cpu_emergency_register_virt_callback’ [-Wimplicit-function-declaration]
  12517 |         cpu_emergency_register_virt_callback(kvm_x86_ops.emergency_disable_virtualization_cpu);
        |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  arch/x86/kvm/x86.c: In function ‘kvm_arch_disable_virtualization’:
  arch/x86/kvm/x86.c:12522:9: error: implicit declaration of function ‘cpu_emergency_unregister_virt_callback’ [-Wimplicit-function-declaration]
  12522 |         cpu_emergency_unregister_virt_callback(kvm_x86_ops.emergency_disable_virtualization_cpu);
        |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fix the build by defining empty helper functions the same way the old
cpu_emergency_disable_virtualization() function was dealt with for the
same situation.

Maybe we could instead have made the call sites conditional, since the
callers (kvm_arch_{en,dis}able_virtualization()) have an empty weak
fallback.  I'll leave that to the kvm people to argue about, this at
least gets the build going for that particular config.

Fixes: 590b09b1d88e ("KVM: x86: Register "emergency disable" callbacks when virt is enabled")
Cc: Paolo Bonzini <[email protected]>
Cc: Sean Christopherson <[email protected]>
Cc: Kai Huang <[email protected]>
Cc: Chao Gao <[email protected]>
Cc: Farrah Chen <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
5 months agoMerge tag 'mailbox-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/jassibrar...
Linus Torvalds [Sun, 29 Sep 2024 16:53:04 +0000 (09:53 -0700)]
Merge tag 'mailbox-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/jassibrar/mailbox

Pull mailbox updates from Jassi Brar:

 - fix kconfig dependencies (mhu-v3, omap2+)

 - use devie name instead of genereic imx_mu_chan as interrupt name
   (imx)

 - enable sa8255p and qcs8300 ipc controllers (qcom)

 - Fix timeout during suspend mode (bcm2835)

 - convert to use use of_property_match_string (mailbox)

 - enable mt8188 (mediatek)

 - use devm_clk_get_enabled helpers (spreadtrum)

 - fix device-id typo (rockchip)

* tag 'mailbox-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/jassibrar/mailbox:
  mailbox, remoteproc: omap2+: fix compile testing
  dt-bindings: mailbox: qcom-ipcc: Document QCS8300 IPCC
  dt-bindings: mailbox: qcom-ipcc: document the support for SA8255p
  dt-bindings: mailbox: mtk,adsp-mbox: Add compatible for MT8188
  mailbox: Use of_property_match_string() instead of open-coding
  mailbox: bcm2835: Fix timeout during suspend mode
  mailbox: sprd: Use devm_clk_get_enabled() helpers
  mailbox: rockchip: fix a typo in module autoloading
  mailbox: imx: use device name in interrupt name
  mailbox: ARM_MHU_V3 should depend on ARM64

5 months agoMerge tag 'i2c-for-6.12-rc1-additional_fixes' of git://git.kernel.org/pub/scm/linux...
Linus Torvalds [Sun, 29 Sep 2024 16:47:33 +0000 (09:47 -0700)]
Merge tag 'i2c-for-6.12-rc1-additional_fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux

Pull i2c fixes from Wolfram Sang:

 - fix DesignWare driver ENABLE-ABORT sequence, ensuring ABORT can
   always be sent when needed

 - check for PCLK in the SynQuacer controller as an optional clock,
   allowing ACPI to directly provide the clock rate

 - KEBA driver Kconfig dependency fix

 - fix XIIC driver power suspend sequence

* tag 'i2c-for-6.12-rc1-additional_fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
  i2c: xiic: Fix pm_runtime_set_suspended() with runtime pm enabled
  i2c: keba: I2C_KEBA should depend on KEBA_CP500
  i2c: synquacer: Deal with optional PCLK correctly
  i2c: designware: fix controller is holding SCL low while ENABLE bit is disabled

5 months agoMerge tag 'dma-mapping-6.12-2024-09-29' of git://git.infradead.org/users/hch/dma...
Linus Torvalds [Sun, 29 Sep 2024 16:35:10 +0000 (09:35 -0700)]
Merge tag 'dma-mapping-6.12-2024-09-29' of git://git.infradead.org/users/hch/dma-mapping

Pull dma-mapping fix from Christoph Hellwig:

 - handle chained SGLs in the new tracing code (Christoph Hellwig)

* tag 'dma-mapping-6.12-2024-09-29' of git://git.infradead.org/users/hch/dma-mapping:
  dma-mapping: fix DMA API tracing for chained scatterlists

5 months agoMerge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Linus Torvalds [Sun, 29 Sep 2024 16:22:34 +0000 (09:22 -0700)]
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi

Pull more SCSI updates from James Bottomley:
 "These are mostly minor updates.

  There are two drivers (lpfc and mpi3mr) which missed the initial
  pull and a core change to retry a start/stop unit which affect
  suspend/resume"

* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (32 commits)
  scsi: lpfc: Update lpfc version to 14.4.0.5
  scsi: lpfc: Support loopback tests with VMID enabled
  scsi: lpfc: Revise TRACE_EVENT log flag severities from KERN_ERR to KERN_WARNING
  scsi: lpfc: Ensure DA_ID handling completion before deleting an NPIV instance
  scsi: lpfc: Fix kref imbalance on fabric ndlps from dev_loss_tmo handler
  scsi: lpfc: Restrict support for 32 byte CDBs to specific HBAs
  scsi: lpfc: Update phba link state conditional before sending CMF_SYNC_WQE
  scsi: lpfc: Add ELS_RSP cmd to the list of WQEs to flush in lpfc_els_flush_cmd()
  scsi: mpi3mr: Update driver version to 8.12.0.0.50
  scsi: mpi3mr: Improve wait logic while controller transitions to READY state
  scsi: mpi3mr: Update MPI Headers to revision 34
  scsi: mpi3mr: Use firmware-provided timestamp update interval
  scsi: mpi3mr: Enhance the Enable Controller retry logic
  scsi: sd: Fix off-by-one error in sd_read_block_characteristics()
  scsi: pm8001: Do not overwrite PCI queue mapping
  scsi: scsi_debug: Remove a useless memset()
  scsi: pmcraid: Convert comma to semicolon
  scsi: sd: Retry START STOP UNIT commands
  scsi: mpi3mr: A performance fix
  scsi: ufs: qcom: Update MODE_MAX cfg_bw value
  ...

5 months agoMerge tag 'bcachefs-2024-09-28' of git://evilpiepirate.org/bcachefs
Linus Torvalds [Sun, 29 Sep 2024 16:17:44 +0000 (09:17 -0700)]
Merge tag 'bcachefs-2024-09-28' of git://evilpiepirate.org/bcachefs

Pull more bcachefs updates from Kent Overstreet:
 "Assorted minor syzbot fixes, and for bigger stuff:

  Fix two disk accounting rewrite bugs:

   - Disk accounting keys use the version field of bkey so that journal
     replay can tell which updates have been applied to the btree.

     This is set in the transaction commit path, after we've gotten our
     journal reservation (and our time ordering), but the
     BCH_TRANS_COMMIT_skip_accounting_apply flag that journal replay
     uses was incorrectly skipping this for new updates generated prior
     to journal replay.

     This fixes the underlying cause of an assertion pop in
     disk_accounting_read.

   - A couple of fixes for disk accounting + device removal.

     Checking if acocunting replicas entries were marked in the
     superblock was being done at the wrong point, when deltas in the
     journal could still zero them out, and then additionally we'd try
     to add a missing replicas entry to the superblock without checking
     if it referred to an invalid (removed) device.

  A whole slew of repair fixes:

   - fix infinite loop in propagate_key_to_snapshot_leaves(), this fixes
     an infinite loop when repairing a filesystem with many snapshots

   - fix incorrect transaction restart handling leading to occasional
     "fsck counted ..." warnings

   - fix warning in __bch2_fsck_err() for bkey fsck errors

   - check_inode() in fsck now correctly checks if the filesystem was
     clean

   - there shouldn't be pending logged ops if the fs was clean, we now
     check for this

   - remove_backpointer() doesn't remove a dirent that doesn't actually
     point to the inode

   - many more fsck errors are AUTOFIX"

* tag 'bcachefs-2024-09-28' of git://evilpiepirate.org/bcachefs: (35 commits)
  bcachefs: check_subvol_path() now prints subvol root inode
  bcachefs: remove_backpointer() now checks if dirent points to inode
  bcachefs: dirent_points_to_inode() now warns on mismatch
  bcachefs: Fix lost wake up
  bcachefs: Check for logged ops when clean
  bcachefs: BCH_FS_clean_recovery
  bcachefs: Convert disk accounting BUG_ON() to WARN_ON()
  bcachefs: Fix BCH_TRANS_COMMIT_skip_accounting_apply
  bcachefs: Check for accounting keys with bversion=0
  bcachefs: rename version -> bversion
  bcachefs: Don't delete unlinked inodes before logged op resume
  bcachefs: Fix BCH_SB_ERRS() so we can reorder
  bcachefs: Fix fsck warnings from bkey validation
  bcachefs: Move transaction commit path validation to as late as possible
  bcachefs: Fix disk accounting attempting to mark invalid replicas entry
  bcachefs: Fix unlocked access to c->disk_sb.sb in bch2_replicas_entry_validate()
  bcachefs: Fix accounting read + device removal
  bcachefs: bch_accounting_mode
  bcachefs: fix transaction restart handling in check_extents(), check_dirents()
  bcachefs: kill inode_walker_entry.seen_this_pos
  ...

5 months agoMerge tag 'x86-urgent-2024-09-29' of git://git.kernel.org/pub/scm/linux/kernel/git...
Linus Torvalds [Sun, 29 Sep 2024 16:10:00 +0000 (09:10 -0700)]
Merge tag 'x86-urgent-2024-09-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 fixes from Ingo Molnar:
 "Fix TDX MMIO #VE fault handling, and add two new Intel model numbers
  for 'Pantherlake' and 'Diamond Rapids'"

* tag 'x86-urgent-2024-09-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/cpu: Add two Intel CPU model numbers
  x86/tdx: Fix "in-kernel MMIO" check

5 months agoMerge tag 'locking-urgent-2024-09-29' of git://git.kernel.org/pub/scm/linux/kernel...
Linus Torvalds [Sun, 29 Sep 2024 15:51:30 +0000 (08:51 -0700)]
Merge tag 'locking-urgent-2024-09-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull locking updates from Ingo Molnar:
 "lockdep:
    - Fix potential deadlock between lockdep and RCU (Zhiguo Niu)
    - Use str_plural() to address Coccinelle warning (Thorsten Blum)
    - Add debuggability enhancement (Luis Claudio R. Goncalves)

  static keys & calls:
    - Fix static_key_slow_dec() yet again (Peter Zijlstra)
    - Handle module init failure correctly in static_call_del_module()
      (Thomas Gleixner)
    - Replace pointless WARN_ON() in static_call_module_notify() (Thomas
      Gleixner)

  <linux/cleanup.h>:
    - Add usage and style documentation (Dan Williams)

  rwsems:
    - Move is_rwsem_reader_owned() and rwsem_owner() under
      CONFIG_DEBUG_RWSEMS (Waiman Long)

  atomic ops, x86:
    - Redeclare x86_32 arch_atomic64_{add,sub}() as void (Uros Bizjak)
    - Introduce the read64_nonatomic macro to x86_32 with cx8 (Uros
      Bizjak)"

Signed-off-by: Ingo Molnar <[email protected]>
* tag 'locking-urgent-2024-09-29' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  locking/rwsem: Move is_rwsem_reader_owned() and rwsem_owner() under CONFIG_DEBUG_RWSEMS
  jump_label: Fix static_key_slow_dec() yet again
  static_call: Replace pointless WARN_ON() in static_call_module_notify()
  static_call: Handle module init failure correctly in static_call_del_module()
  locking/lockdep: Simplify character output in seq_line()
  lockdep: fix deadlock issue between lockdep and rcu
  lockdep: Use str_plural() to fix Coccinelle warning
  cleanup: Add usage and style documentation
  lockdep: suggest the fix for "lockdep bfs error:-1" on print_bfs_bug
  locking/atomic/x86: Redeclare x86_32 arch_atomic64_{add,sub}() as void
  locking/atomic/x86: Introduce the read64_nonatomic macro to x86_32 with cx8

5 months agoMerge tag 'cocci-for-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall...
Linus Torvalds [Sun, 29 Sep 2024 15:44:28 +0000 (08:44 -0700)]
Merge tag 'cocci-for-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux

Pull coccinelle updates from Julia Lawall:
 "Extend string_choices.cocci to use more available helpers

  Ten patches from Hongbo Li extending string_choices.cocci with the
  complete set of functions offered by include/linux/string_choices.h.

  One patch from myself reducing the number of redundant cases that are
  checked by Coccinelle, giving a small performance improvement"

* tag 'cocci-for-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux:
  Reduce Coccinelle choices in string_choices.cocci
  coccinelle: Remove unnecessary parentheses for only one possible change.
  coccinelle: Add rules to find str_yes_no() replacements
  coccinelle: Add rules to find str_on_off() replacements
  coccinelle: Add rules to find str_write_read() replacements
  coccinelle: Add rules to find str_read_write() replacements
  coccinelle: Add rules to find str_enable{d}_disable{d}() replacements
  coccinelle: Add rules to find str_lo{w}_hi{gh}() replacements
  coccinelle: Add rules to find str_hi{gh}_lo{w}() replacements
  coccinelle: Add rules to find str_false_true() replacements
  coccinelle: Add rules to find str_true_false() replacements

5 months agoMerge tag 'linux_kselftest-next-6.12-rc1-fixes' of git://git.kernel.org/pub/scm/linux...
Linus Torvalds [Sun, 29 Sep 2024 15:37:03 +0000 (08:37 -0700)]
Merge tag 'linux_kselftest-next-6.12-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest

Pull kselftest fix from Shuah Khan:
 "One urgent fix to vDSO as automated testing is failing due to this
  bug"

* tag 'linux_kselftest-next-6.12-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
  selftests: vDSO: align stack for O2-optimized memcpy

5 months agoMerge branch 'locking/core' into locking/urgent, to pick up pending commits
Ingo Molnar [Sun, 29 Sep 2024 06:57:18 +0000 (08:57 +0200)]
Merge branch 'locking/core' into locking/urgent, to pick up pending commits

Merge all pending locking commits into a single branch.

Signed-off-by: Ingo Molnar <[email protected]>
5 months agoReduce Coccinelle choices in string_choices.cocci
Julia Lawall [Sat, 28 Sep 2024 19:26:22 +0000 (21:26 +0200)]
Reduce Coccinelle choices in string_choices.cocci

The isomorphism neg_if_exp negates the test of a ?: conditional,
making it unnecessary to have an explicit case for a negated test
with the branches inverted.

At the same time, we can disable neg_if_exp in cases where a
different API function may be more suitable for a negated test.

Finally, in the non-patch cases, E matches an expression with
parentheses around it, so there is no need to mention ()
explicitly in the pattern.  The () are still needed in the patch
cases, because we want to drop them, if they are present.

Signed-off-by: Julia Lawall <[email protected]>
5 months agococcinelle: Remove unnecessary parentheses for only one possible change.
Hongbo Li [Wed, 11 Sep 2024 01:09:27 +0000 (09:09 +0800)]
coccinelle: Remove unnecessary parentheses for only one possible change.

The parentheses are only needed if there is a disjunction, ie a
set of possible changes. If there is only one pattern, we can
remove these parentheses. Just like the format:

  -  x
  +  y

not:

  (
  -  x
  +  y
  )

Signed-off-by: Hongbo Li <[email protected]>
Signed-off-by: Julia Lawall <[email protected]>
5 months agococcinelle: Add rules to find str_yes_no() replacements
Hongbo Li [Wed, 11 Sep 2024 01:09:26 +0000 (09:09 +0800)]
coccinelle: Add rules to find str_yes_no() replacements

As other rules done, we add rules for str_yes_no()
to check the relative opportunities.

Signed-off-by: Hongbo Li <[email protected]>
Signed-off-by: Julia Lawall <[email protected]>
5 months agococcinelle: Add rules to find str_on_off() replacements
Hongbo Li [Wed, 11 Sep 2024 01:09:25 +0000 (09:09 +0800)]
coccinelle: Add rules to find str_on_off() replacements

As other rules done, we add rules for str_on_off()
to check the relative opportunities.

Signed-off-by: Hongbo Li <[email protected]>
Signed-off-by: Julia Lawall <[email protected]>
5 months agococcinelle: Add rules to find str_write_read() replacements
Hongbo Li [Wed, 11 Sep 2024 01:09:24 +0000 (09:09 +0800)]
coccinelle: Add rules to find str_write_read() replacements

As other rules done, we add rules for str_write_read()
to check the relative opportunities.

Signed-off-by: Hongbo Li <[email protected]>
Signed-off-by: Julia Lawall <[email protected]>
5 months agococcinelle: Add rules to find str_read_write() replacements
Hongbo Li [Wed, 11 Sep 2024 01:09:23 +0000 (09:09 +0800)]
coccinelle: Add rules to find str_read_write() replacements

As other rules done, we add rules for str_read_write()
to check the relative opportunities.

Signed-off-by: Hongbo Li <[email protected]>
Signed-off-by: Julia Lawall <[email protected]>
This page took 0.11102 seconds and 4 git commands to generate.