[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250509152940.2004660-2-ioana.ciornei@nxp.com>
Date: Fri, 9 May 2025 18:29:35 +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 1/6] dt-bindings: mfd: add bindings for QIXIS CPLD
This adds device tree bindings for the board management controller -
QIXIS CPLD - found on some Layerscape based boards such as LX2162A-QDS,
LX2160AQDS, LS1028AQDS etc.
Signed-off-by: Ioana Ciornei <ioana.ciornei@....com>
---
Changes in v2:
- renamed the compatible strings so that it does not mention the i2c
part, which is redundant
- remove the description from the reg property
- reordered the properties when mentioned in the required section
- updated the example so that it actually reflects the expected DT
.../mfd/fsl,ls1028a-qds-qixis-cpld.yaml | 65 +++++++++++++++++++
1 file changed, 65 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mfd/fsl,ls1028a-qds-qixis-cpld.yaml
diff --git a/Documentation/devicetree/bindings/mfd/fsl,ls1028a-qds-qixis-cpld.yaml b/Documentation/devicetree/bindings/mfd/fsl,ls1028a-qds-qixis-cpld.yaml
new file mode 100644
index 000000000000..cf4cd91d9580
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/fsl,ls1028a-qds-qixis-cpld.yaml
@@ -0,0 +1,65 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/fsl,ls1028a-qds-qixis-cpld.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP's QIXIS CPLD board management controller
+
+maintainers:
+ - Ioana Ciornei <ioana.ciornei@....com>
+
+description: |
+ The board management controller found on some Layerscape boards contains
+ different IP blocks like GPIO controllers, interrupt controllers, reg-muxes
+ etc. The QIXIS CPLD on these boards presents itself as an I2C device.
+
+properties:
+ compatible:
+ enum:
+ - fsl,ls1028a-qds-qixis-cpld
+ - fsl,lx2160a-qds-qixis-cpld
+ - fsl,lx2162a-qds-qixis-cpld
+
+ reg:
+ maxItems: 1
+
+ "#address-cells":
+ const: 1
+
+ "#size-cells":
+ const: 0
+
+patternProperties:
+ '^mux-controller(@[a-f0-9]+)?$':
+ $ref: /schemas/mux/reg-mux.yaml#
+
+required:
+ - compatible
+ - reg
+ - "#address-cells"
+ - "#size-cells"
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpld@66 {
+ compatible = "fsl,lx2160a-qds-qixis-cpld";
+ reg = <0x66>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ mux: mux-controller@54 {
+ compatible = "reg-mux";
+ reg = <0x54>;
+ #mux-control-cells = <1>;
+ mux-reg-masks = <0x54 0xf8>, /* 0: reg 0x54, bits 7:3 */
+ <0x54 0x07>; /* 1: reg 0x54, bit 2:0 */
+ };
+ };
+ };
--
2.25.1
Powered by blists - more mailing lists