[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250509152940.2004660-1-ioana.ciornei@nxp.com>
Date: Fri, 9 May 2025 18:29:34 +0300
From: Ioana Ciornei <ioana.ciornei@....com>
To: lee@...nel.org,
robh@...nel.org,
krzk+dt@...nel.org,
conor+dt@...nel.org,
shawnguo@...nel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Cc: vladimir.oltean@....com,
Ioana Ciornei <ioana.ciornei@....com>
Subject: [PATCH v2 0/6] mfd: simple-mfd-i2c: add QIXIS CPLD support
The MDIO mux on the LX2160AQDS, LX2162AQDS and LS1028AQDS boards never
worked in mainline. The DT files were submitted initially as-is, and
there is a downstream driver for the QIXIS CPLD device:
https://github.com/nxp-qoriq/linux/blob/lf-6.12.y/drivers/soc/fsl/qixis_ctrl.c
Since the HW works with the already existing
driver/mfd/similar-mfd-i2c.c driver, extend the list of compatible
strings to also cover these 3 new boards, instead of trying to upstream
a duplicate driver.
This patch set also adapts the DT nodes for each of the affected boards
so that we match on the new compatible strings. Since we want the QIXIS
CPLD to have child nodes with "reg" and the current format lacks that,
change the compatible string so that we make it clear that by using the
simple-mfd-i2c driver we expect dt nodes children with the reg property.
Since the QDS (QorIQ Development System) boards are not made to deploy
any production software on them, but rather made to be used exclusively
by engineers to test/prototype SoC features, breaking compatibility with
device trees is not an issue.
The last patch describes the two on-board RGMII PHYs found on the
LX2160AQDS boards which make use of the MDIO bus found behind the CPLD
driven MDIO mux.
Changes in v2:
- 1/6: renamed the compatible strings so that it does not mention the i2c
part, which is redundant
- 1/6: remove the description from the reg property
- 1/6: reordered the properties when mentioned in the required section
- 1/6: updated the example so that it actually reflects the expected DT
- 2/6: use the new compatible strings
- 3,4,5/6: updated the commit message to explain better the context
- 3,4,5/6: used the new compatible string
Ioana Ciornei (5):
dt-bindings: mfd: add bindings for QIXIS CPLD
mfd: simple-mfd-i2c: add compatible string for Layerscape QIXIS CPLD
arm64: dts: lx2160a-qds: make the QIXIS CPLD use the simple-mfd-i2c.c
driver
arm64: dts: lx2162a-qds: make the QIXIS CPLD use the simple-mfd-i2c.c
driver
arm64: dts: lx2160a-qds: add the two on-board RGMII PHYs
Vladimir Oltean (1):
arm64: dts: ls1028a-qds: make the QIXIS CPLD use the simple-mfd-i2c.c
driver
.../mfd/fsl,ls1028a-qds-qixis-cpld.yaml | 65 +++++++++++++++++++
.../boot/dts/freescale/fsl-ls1028a-qds.dts | 9 +--
.../boot/dts/freescale/fsl-lx2160a-qds.dts | 28 +++++++-
.../boot/dts/freescale/fsl-lx2162a-qds.dts | 8 ++-
drivers/mfd/simple-mfd-i2c.c | 3 +
5 files changed, 103 insertions(+), 10 deletions(-)
create mode 100644 Documentation/devicetree/bindings/mfd/fsl,ls1028a-qds-qixis-cpld.yaml
--
2.25.1
Powered by blists - more mailing lists