]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: soc: imx-iomuxc-gpr: Document the CSI mux
authorFabio Estevam <festevam@gmail.com>
Wed, 10 Sep 2025 23:34:02 +0000 (20:34 -0300)
committerShawn Guo <shawnguo@kernel.org>
Mon, 20 Oct 2025 11:57:43 +0000 (19:57 +0800)
On i.MX6Q/6DL the following subnodes exist to describe the CSI port muxing:

- ipu1_csi0_mux
- ipu1_csi1_mux
- ipu2_csi0_mux
- ipu2_csi1_mux

As they were not documented, dt-schema emits warnings like:

  'ipu1_csi0_mux', 'ipu1_csi1_mux' do not match any of the regexes:
  '^pinctrl-[0-9]+$'

Add a top-level patternProperties entry for these CSI mux subnodes
and restrict it to i.MX6Q.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Documentation/devicetree/bindings/soc/imx/fsl,imx-iomuxc-gpr.yaml

index b77ce8c6a935e52122b1f4cd33c588234caf468d..721a67e84c137a00a25918b5ccdf184462d55e65 100644 (file)
@@ -51,6 +51,22 @@ properties:
     type: object
     $ref: /schemas/mux/reg-mux.yaml
 
+patternProperties:
+  "^ipu[12]_csi[01]_mux$":
+    type: object
+    $ref: /schemas/media/video-mux.yaml
+
+allOf:
+  - if:
+      properties:
+        compatible:
+          not:
+            contains:
+              const: fsl,imx6q-iomuxc-gpr
+    then:
+      patternProperties:
+        '^ipu[12]_csi[01]_mux$': false
+
 additionalProperties: false
 
 required: