All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 2/2] media: dt-bindings: ti,omap3isp: Convert to DT schema
  2025-12-20 22:03 [PATCH v1 0/2] media: dt-bindings: Convert toshiba,et8ek8 and ti,omap3isp to YAML schema Alex Tran
@ 2025-12-20 22:03   ` Alex Tran
  0 siblings, 0 replies; 5+ messages in thread
From: Alex Tran @ 2025-12-20 20:42 UTC (permalink / raw)
  To: mchehab, robh, krzk+dt, conor+dt
  Cc: pavel, sakari.ailus, mehdi.djait, alex.t.tran, laurent.pinchart,
	hverkuil+cisco, linux-media

Convert binding for ti,omap3isp from TXT to YAML format.

Signed-off-by: Alex Tran <alex.t.tran@gmail.com>
---
 .../devicetree/bindings/media/ti,omap3isp.txt |  71 -------
 .../bindings/media/ti,omap3isp.yaml           | 182 ++++++++++++++++++
 2 files changed, 182 insertions(+), 71 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/media/ti,omap3isp.txt
 create mode 100644 Documentation/devicetree/bindings/media/ti,omap3isp.yaml

diff --git a/Documentation/devicetree/bindings/media/ti,omap3isp.txt b/Documentation/devicetree/bindings/media/ti,omap3isp.txt
deleted file mode 100644
index ac23de855641..000000000000
--- a/Documentation/devicetree/bindings/media/ti,omap3isp.txt
+++ /dev/null
@@ -1,71 +0,0 @@
-OMAP 3 ISP Device Tree bindings
-===============================
-
-The DT definitions can be found in include/dt-bindings/media/omap3-isp.h.
-
-Required properties
-===================
-
-compatible	: must contain "ti,omap3-isp"
-
-reg		: the two registers sets (physical address and length) for the
-		  ISP. The first set contains the core ISP registers up to
-		  the end of the SBL block. The second set contains the
-		  CSI PHYs and receivers registers.
-interrupts	: the ISP interrupt specifier
-iommus		: phandle and IOMMU specifier for the IOMMU that serves the ISP
-syscon		: the phandle and register offset to the Complex I/O or CSI-PHY
-		  register
-ti,phy-type	: 0 -- OMAP3ISP_PHY_TYPE_COMPLEX_IO (e.g. 3430)
-		  1 -- OMAP3ISP_PHY_TYPE_CSIPHY (e.g. 3630)
-#clock-cells	: Must be 1 --- the ISP provides two external clocks,
-		  cam_xclka and cam_xclkb, at indices 0 and 1,
-		  respectively. Please find more information on common
-		  clock bindings in ../clock/clock-bindings.txt.
-
-Port nodes (optional)
----------------------
-
-More documentation on these bindings is available in
-video-interfaces.txt in the same directory.
-
-reg		: The interface:
-		  0 - parallel (CCDC)
-		  1 - CSIPHY1 -- CSI2C / CCP2B on 3630;
-		      CSI1 -- CSIb on 3430
-		  2 - CSIPHY2 -- CSI2A / CCP2B on 3630;
-		      CSI2 -- CSIa on 3430
-
-Optional properties
-===================
-
-vdd-csiphy1-supply : voltage supply of the CSI-2 PHY 1
-vdd-csiphy2-supply : voltage supply of the CSI-2 PHY 2
-
-Endpoint nodes
---------------
-
-lane-polarities	: lane polarity (required on CSI-2)
-		  0 -- not inverted; 1 -- inverted
-data-lanes	: an array of data lanes from 1 to 3. The length can
-		  be either 1 or 2. (required on CSI-2)
-clock-lanes	: the clock lane (from 1 to 3). (required on CSI-2)
-
-
-Example
-=======
-
-		isp@480bc000 {
-			compatible = "ti,omap3-isp";
-			reg = <0x480bc000 0x12fc
-			       0x480bd800 0x0600>;
-			interrupts = <24>;
-			iommus = <&mmu_isp>;
-			syscon = <&scm_conf 0x2f0>;
-			ti,phy-type = <OMAP3ISP_PHY_TYPE_CSIPHY>;
-			#clock-cells = <1>;
-			ports {
-				#address-cells = <1>;
-				#size-cells = <0>;
-			};
-		};
diff --git a/Documentation/devicetree/bindings/media/ti,omap3isp.yaml b/Documentation/devicetree/bindings/media/ti,omap3isp.yaml
new file mode 100644
index 000000000000..3f3b0c0f46e5
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/ti,omap3isp.yaml
@@ -0,0 +1,182 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/media/ti,omap3isp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments OMAP 3 Image Signal Processor (ISP)
+
+maintainers:
+  - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
+  - Sakari Ailus <sakari.ailus@iki.fi>
+
+description:
+  The OMAP 3 ISP is an image signal processor present in OMAP 3 SoCs.
+
+properties:
+  compatible:
+    const: ti,omap3-isp
+
+  reg:
+    items:
+      - description: Core ISP registers up to the end of the SBL block
+      - description: CSI PHYs and receivers registers
+
+  interrupts:
+    maxItems: 1
+    description: the ISP interrupt specifier
+
+  iommus:
+    maxItems: 1
+    description: phandle and IOMMU specifier for the IOMMU that serves the ISP
+
+  syscon:
+    $ref: /schemas/types.yaml#/definitions/phandle-array
+    items:
+      - items:
+          - description: phandle to System Control Module
+          - description: register offset to Complex I/O or CSI-PHY register
+    description:
+      Phandle and register offset to the Complex I/O or CSI-PHY register
+
+  ti,phy-type:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum: [0, 1]
+    description:
+      0 - OMAP3ISP_PHY_TYPE_COMPLEX_IO (e.g. OMAP 3430)
+      1 - OMAP3ISP_PHY_TYPE_CSIPHY (e.g. OMAP 3630)
+
+  '#clock-cells':
+    const: 1
+    description:
+      The ISP provides two external clocks, cam_xclka and cam_xclkb,
+      at indices 0 and 1 respectively.
+
+  vdd-csiphy1-supply:
+    description: Voltage supply of the CSI-2 PHY 1
+
+  vdd-csiphy2-supply:
+    description: Voltage supply of the CSI-2 PHY 2
+
+  ports:
+    $ref: /schemas/graph.yaml#/properties/ports
+
+    properties:
+      port@0:
+        $ref: /schemas/graph.yaml#/$defs/port-base
+        unevaluatedProperties: false
+        description: Parallel (CCDC) interface
+
+        properties:
+          endpoint:
+            $ref: /schemas/media/video-interfaces.yaml#
+            unevaluatedProperties: false
+
+      port@1:
+        $ref: /schemas/graph.yaml#/$defs/port-base
+        unevaluatedProperties: false
+        description: |
+          CSIPHY1 interface:
+            OMAP 3630: CSI2C / CCP2B
+            OMAP 3430: CSI1 (CSIb)
+
+        properties:
+          endpoint:
+            $ref: /schemas/media/video-interfaces.yaml#
+            unevaluatedProperties: false
+
+            properties:
+              lane-polarities:
+                description: |
+                  The lane polarity (required on CSI-2):
+                    0 - not inverted
+                    1 - inverted
+                minItems: 2
+                maxItems: 3
+                items:
+                  enum: [0, 1]
+
+              data-lanes:
+                description: Data lanes (required on CSI-2)
+                minItems: 1
+                maxItems: 2
+                items:
+                  minimum: 1
+                  maximum: 3
+
+              clock-lanes:
+                description: The clock lane (required on CSI-2)
+                maxItems: 1
+                items:
+                  minimum: 1
+                  maximum: 3
+
+      port@2:
+        $ref: /schemas/graph.yaml#/$defs/port-base
+        unevaluatedProperties: false
+        description: |
+          CSIPHY2 interface:
+            OMAP 3630: CSI2A / CCP2B
+            OMAP 3430: CSI2 (CSIa)
+
+        properties:
+          endpoint:
+            $ref: /schemas/media/video-interfaces.yaml#
+            unevaluatedProperties: false
+
+            properties:
+              lane-polarities:
+                description: |
+                  The lane polarity (required on CSI-2):
+                    0 - not inverted
+                    1 - inverted
+                minItems: 2
+                maxItems: 3
+                items:
+                  enum: [0, 1]
+
+              data-lanes:
+                description: Data lanes (required on CSI-2)
+                minItems: 1
+                maxItems: 2
+                items:
+                  minimum: 1
+                  maximum: 3
+
+              clock-lanes:
+                description: The clock lane (required on CSI-2)
+                maxItems: 1
+                items:
+                  minimum: 1
+                  maximum: 3
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - iommus
+  - syscon
+  - ti,phy-type
+  - '#clock-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/media/omap3-isp.h>
+
+    isp@480bc000 {
+        compatible = "ti,omap3-isp";
+        reg = <0x480bc000 0x12fc>,
+              <0x480bd800 0x0600>;
+        interrupts = <24>;
+        iommus = <&mmu_isp>;
+        syscon = <&scm_conf 0x2f0>;
+        ti,phy-type = <OMAP3ISP_PHY_TYPE_CSIPHY>;
+        #clock-cells = <1>;
+
+        ports {
+            #address-cells = <1>;
+            #size-cells = <0>;
+        };
+    };
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v1 2/2] media: dt-bindings: ti,omap3isp: Convert to DT schema
@ 2025-12-20 22:03   ` Alex Tran
  0 siblings, 0 replies; 5+ messages in thread
From: Alex Tran @ 2025-12-20 22:03 UTC (permalink / raw)
  To: mchehab, robh, krzk+dt, conor+dt
  Cc: pavel, sakari.ailus, mehdi.djait, alex.t.tran, laurent.pinchart,
	hverkuil+cisco, linux-media, devicetree, linux-kernel

Convert binding for ti,omap3isp from TXT to YAML format.

Signed-off-by: Alex Tran <alex.t.tran@gmail.com>
---
 .../devicetree/bindings/media/ti,omap3isp.txt |  71 -------
 .../bindings/media/ti,omap3isp.yaml           | 182 ++++++++++++++++++
 2 files changed, 182 insertions(+), 71 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/media/ti,omap3isp.txt
 create mode 100644 Documentation/devicetree/bindings/media/ti,omap3isp.yaml

diff --git a/Documentation/devicetree/bindings/media/ti,omap3isp.txt b/Documentation/devicetree/bindings/media/ti,omap3isp.txt
deleted file mode 100644
index ac23de855641..000000000000
--- a/Documentation/devicetree/bindings/media/ti,omap3isp.txt
+++ /dev/null
@@ -1,71 +0,0 @@
-OMAP 3 ISP Device Tree bindings
-===============================
-
-The DT definitions can be found in include/dt-bindings/media/omap3-isp.h.
-
-Required properties
-===================
-
-compatible	: must contain "ti,omap3-isp"
-
-reg		: the two registers sets (physical address and length) for the
-		  ISP. The first set contains the core ISP registers up to
-		  the end of the SBL block. The second set contains the
-		  CSI PHYs and receivers registers.
-interrupts	: the ISP interrupt specifier
-iommus		: phandle and IOMMU specifier for the IOMMU that serves the ISP
-syscon		: the phandle and register offset to the Complex I/O or CSI-PHY
-		  register
-ti,phy-type	: 0 -- OMAP3ISP_PHY_TYPE_COMPLEX_IO (e.g. 3430)
-		  1 -- OMAP3ISP_PHY_TYPE_CSIPHY (e.g. 3630)
-#clock-cells	: Must be 1 --- the ISP provides two external clocks,
-		  cam_xclka and cam_xclkb, at indices 0 and 1,
-		  respectively. Please find more information on common
-		  clock bindings in ../clock/clock-bindings.txt.
-
-Port nodes (optional)
----------------------
-
-More documentation on these bindings is available in
-video-interfaces.txt in the same directory.
-
-reg		: The interface:
-		  0 - parallel (CCDC)
-		  1 - CSIPHY1 -- CSI2C / CCP2B on 3630;
-		      CSI1 -- CSIb on 3430
-		  2 - CSIPHY2 -- CSI2A / CCP2B on 3630;
-		      CSI2 -- CSIa on 3430
-
-Optional properties
-===================
-
-vdd-csiphy1-supply : voltage supply of the CSI-2 PHY 1
-vdd-csiphy2-supply : voltage supply of the CSI-2 PHY 2
-
-Endpoint nodes
---------------
-
-lane-polarities	: lane polarity (required on CSI-2)
-		  0 -- not inverted; 1 -- inverted
-data-lanes	: an array of data lanes from 1 to 3. The length can
-		  be either 1 or 2. (required on CSI-2)
-clock-lanes	: the clock lane (from 1 to 3). (required on CSI-2)
-
-
-Example
-=======
-
-		isp@480bc000 {
-			compatible = "ti,omap3-isp";
-			reg = <0x480bc000 0x12fc
-			       0x480bd800 0x0600>;
-			interrupts = <24>;
-			iommus = <&mmu_isp>;
-			syscon = <&scm_conf 0x2f0>;
-			ti,phy-type = <OMAP3ISP_PHY_TYPE_CSIPHY>;
-			#clock-cells = <1>;
-			ports {
-				#address-cells = <1>;
-				#size-cells = <0>;
-			};
-		};
diff --git a/Documentation/devicetree/bindings/media/ti,omap3isp.yaml b/Documentation/devicetree/bindings/media/ti,omap3isp.yaml
new file mode 100644
index 000000000000..3f3b0c0f46e5
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/ti,omap3isp.yaml
@@ -0,0 +1,182 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/media/ti,omap3isp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments OMAP 3 Image Signal Processor (ISP)
+
+maintainers:
+  - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
+  - Sakari Ailus <sakari.ailus@iki.fi>
+
+description:
+  The OMAP 3 ISP is an image signal processor present in OMAP 3 SoCs.
+
+properties:
+  compatible:
+    const: ti,omap3-isp
+
+  reg:
+    items:
+      - description: Core ISP registers up to the end of the SBL block
+      - description: CSI PHYs and receivers registers
+
+  interrupts:
+    maxItems: 1
+    description: the ISP interrupt specifier
+
+  iommus:
+    maxItems: 1
+    description: phandle and IOMMU specifier for the IOMMU that serves the ISP
+
+  syscon:
+    $ref: /schemas/types.yaml#/definitions/phandle-array
+    items:
+      - items:
+          - description: phandle to System Control Module
+          - description: register offset to Complex I/O or CSI-PHY register
+    description:
+      Phandle and register offset to the Complex I/O or CSI-PHY register
+
+  ti,phy-type:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum: [0, 1]
+    description:
+      0 - OMAP3ISP_PHY_TYPE_COMPLEX_IO (e.g. OMAP 3430)
+      1 - OMAP3ISP_PHY_TYPE_CSIPHY (e.g. OMAP 3630)
+
+  '#clock-cells':
+    const: 1
+    description:
+      The ISP provides two external clocks, cam_xclka and cam_xclkb,
+      at indices 0 and 1 respectively.
+
+  vdd-csiphy1-supply:
+    description: Voltage supply of the CSI-2 PHY 1
+
+  vdd-csiphy2-supply:
+    description: Voltage supply of the CSI-2 PHY 2
+
+  ports:
+    $ref: /schemas/graph.yaml#/properties/ports
+
+    properties:
+      port@0:
+        $ref: /schemas/graph.yaml#/$defs/port-base
+        unevaluatedProperties: false
+        description: Parallel (CCDC) interface
+
+        properties:
+          endpoint:
+            $ref: /schemas/media/video-interfaces.yaml#
+            unevaluatedProperties: false
+
+      port@1:
+        $ref: /schemas/graph.yaml#/$defs/port-base
+        unevaluatedProperties: false
+        description: |
+          CSIPHY1 interface:
+            OMAP 3630: CSI2C / CCP2B
+            OMAP 3430: CSI1 (CSIb)
+
+        properties:
+          endpoint:
+            $ref: /schemas/media/video-interfaces.yaml#
+            unevaluatedProperties: false
+
+            properties:
+              lane-polarities:
+                description: |
+                  The lane polarity (required on CSI-2):
+                    0 - not inverted
+                    1 - inverted
+                minItems: 2
+                maxItems: 3
+                items:
+                  enum: [0, 1]
+
+              data-lanes:
+                description: Data lanes (required on CSI-2)
+                minItems: 1
+                maxItems: 2
+                items:
+                  minimum: 1
+                  maximum: 3
+
+              clock-lanes:
+                description: The clock lane (required on CSI-2)
+                maxItems: 1
+                items:
+                  minimum: 1
+                  maximum: 3
+
+      port@2:
+        $ref: /schemas/graph.yaml#/$defs/port-base
+        unevaluatedProperties: false
+        description: |
+          CSIPHY2 interface:
+            OMAP 3630: CSI2A / CCP2B
+            OMAP 3430: CSI2 (CSIa)
+
+        properties:
+          endpoint:
+            $ref: /schemas/media/video-interfaces.yaml#
+            unevaluatedProperties: false
+
+            properties:
+              lane-polarities:
+                description: |
+                  The lane polarity (required on CSI-2):
+                    0 - not inverted
+                    1 - inverted
+                minItems: 2
+                maxItems: 3
+                items:
+                  enum: [0, 1]
+
+              data-lanes:
+                description: Data lanes (required on CSI-2)
+                minItems: 1
+                maxItems: 2
+                items:
+                  minimum: 1
+                  maximum: 3
+
+              clock-lanes:
+                description: The clock lane (required on CSI-2)
+                maxItems: 1
+                items:
+                  minimum: 1
+                  maximum: 3
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - iommus
+  - syscon
+  - ti,phy-type
+  - '#clock-cells'
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/media/omap3-isp.h>
+
+    isp@480bc000 {
+        compatible = "ti,omap3-isp";
+        reg = <0x480bc000 0x12fc>,
+              <0x480bd800 0x0600>;
+        interrupts = <24>;
+        iommus = <&mmu_isp>;
+        syscon = <&scm_conf 0x2f0>;
+        ti,phy-type = <OMAP3ISP_PHY_TYPE_CSIPHY>;
+        #clock-cells = <1>;
+
+        ports {
+            #address-cells = <1>;
+            #size-cells = <0>;
+        };
+    };
-- 
2.51.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v1 2/2] media: dt-bindings: ti,omap3isp: Convert to DT schema
  2025-12-20 22:03   ` Alex Tran
  (?)
@ 2025-12-21 15:08   ` Krzysztof Kozlowski
  2025-12-24 21:46     ` Alex Tran
  -1 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2025-12-21 15:08 UTC (permalink / raw)
  To: Alex Tran
  Cc: mchehab, robh, krzk+dt, conor+dt, pavel, sakari.ailus,
	mehdi.djait, laurent.pinchart, hverkuil+cisco, linux-media,
	devicetree, linux-kernel

On Sat, Dec 20, 2025 at 02:03:25PM -0800, Alex Tran wrote:


Thank you for your patch. There is something to discuss/improve.
	

> +maintainers:
> +  - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> +  - Sakari Ailus <sakari.ailus@iki.fi>
> +
> +description:
> +  The OMAP 3 ISP is an image signal processor present in OMAP 3 SoCs.
> +
> +properties:
> +  compatible:
> +    const: ti,omap3-isp
> +
> +  reg:
> +    items:
> +      - description: Core ISP registers up to the end of the SBL block
> +      - description: CSI PHYs and receivers registers
> +
> +  interrupts:
> +    maxItems: 1
> +    description: the ISP interrupt specifier

Drop description, obvious.

> +
> +  iommus:
> +    maxItems: 1
> +    description: phandle and IOMMU specifier for the IOMMU that serves the ISP

Ditto

> +
> +  syscon:
> +    $ref: /schemas/types.yaml#/definitions/phandle-array
> +    items:
> +      - items:
> +          - description: phandle to System Control Module
> +          - description: register offset to Complex I/O or CSI-PHY register
> +    description:
> +      Phandle and register offset to the Complex I/O or CSI-PHY register
> +
> +  ti,phy-type:
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    enum: [0, 1]
> +    description:
> +      0 - OMAP3ISP_PHY_TYPE_COMPLEX_IO (e.g. OMAP 3430)
> +      1 - OMAP3ISP_PHY_TYPE_CSIPHY (e.g. OMAP 3630)
> +
> +  '#clock-cells':
> +    const: 1
> +    description:
> +      The ISP provides two external clocks, cam_xclka and cam_xclkb,
> +      at indices 0 and 1 respectively.
> +
> +  vdd-csiphy1-supply:
> +    description: Voltage supply of the CSI-2 PHY 1
> +
> +  vdd-csiphy2-supply:
> +    description: Voltage supply of the CSI-2 PHY 2
> +
> +  ports:
> +    $ref: /schemas/graph.yaml#/properties/ports
> +
> +    properties:
> +      port@0:
> +        $ref: /schemas/graph.yaml#/$defs/port-base
> +        unevaluatedProperties: false
> +        description: Parallel (CCDC) interface
> +
> +        properties:
> +          endpoint:
> +            $ref: /schemas/media/video-interfaces.yaml#
> +            unevaluatedProperties: false
> +
> +      port@1:
> +        $ref: /schemas/graph.yaml#/$defs/port-base
> +        unevaluatedProperties: false
> +        description: |
> +          CSIPHY1 interface:
> +            OMAP 3630: CSI2C / CCP2B
> +            OMAP 3430: CSI1 (CSIb)
> +
> +        properties:
> +          endpoint:
> +            $ref: /schemas/media/video-interfaces.yaml#
> +            unevaluatedProperties: false
> +
> +            properties:
> +              lane-polarities:
> +                description: |
> +                  The lane polarity (required on CSI-2):
> +                    0 - not inverted
> +                    1 - inverted

You do not need to describe standard properties. Are the values
different than what video-interfaces define?

Same everywhere else. Look at other bindings how these properties should
be defined/written.

> +                minItems: 2
> +                maxItems: 3
> +                items:
> +                  enum: [0, 1]
> +
> +              data-lanes:
> +                description: Data lanes (required on CSI-2)
> +                minItems: 1
> +                maxItems: 2
> +                items:
> +                  minimum: 1
> +                  maximum: 3
> +
> +              clock-lanes:
> +                description: The clock lane (required on CSI-2)
> +                maxItems: 1
> +                items:
> +                  minimum: 1
> +                  maximum: 3
> +
> +      port@2:
> +        $ref: /schemas/graph.yaml#/$defs/port-base
> +        unevaluatedProperties: false
> +        description: |
> +          CSIPHY2 interface:
> +            OMAP 3630: CSI2A / CCP2B
> +            OMAP 3430: CSI2 (CSIa)
> +
> +        properties:
> +          endpoint:
> +            $ref: /schemas/media/video-interfaces.yaml#
> +            unevaluatedProperties: false
> +
> +            properties:
> +              lane-polarities:
> +                description: |
> +                  The lane polarity (required on CSI-2):
> +                    0 - not inverted
> +                    1 - inverted
> +                minItems: 2
> +                maxItems: 3
> +                items:
> +                  enum: [0, 1]
> +
> +              data-lanes:
> +                description: Data lanes (required on CSI-2)
> +                minItems: 1
> +                maxItems: 2
> +                items:
> +                  minimum: 1
> +                  maximum: 3
> +
> +              clock-lanes:
> +                description: The clock lane (required on CSI-2)
> +                maxItems: 1
> +                items:
> +                  minimum: 1
> +                  maximum: 3
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +  - iommus
> +  - syscon
> +  - ti,phy-type
> +  - '#clock-cells'
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/media/omap3-isp.h>
> +
> +    isp@480bc000 {
> +        compatible = "ti,omap3-isp";
> +        reg = <0x480bc000 0x12fc>,
> +              <0x480bd800 0x0600>;
> +        interrupts = <24>;
> +        iommus = <&mmu_isp>;
> +        syscon = <&scm_conf 0x2f0>;
> +        ti,phy-type = <OMAP3ISP_PHY_TYPE_CSIPHY>;
> +        #clock-cells = <1>;
> +
> +        ports {
> +            #address-cells = <1>;
> +            #size-cells = <0>;

Make example complete, please.


Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v1 2/2] media: dt-bindings: ti,omap3isp: Convert to DT schema
  2025-12-21 15:08   ` Krzysztof Kozlowski
@ 2025-12-24 21:46     ` Alex Tran
  0 siblings, 0 replies; 5+ messages in thread
From: Alex Tran @ 2025-12-24 21:46 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: mchehab, robh, krzk+dt, conor+dt, pavel, sakari.ailus,
	mehdi.djait, laurent.pinchart, hverkuil+cisco, linux-media,
	devicetree, linux-kernel

On Sun, Dec 21, 2025 at 7:08 AM Krzysztof Kozlowski <krzk@kernel.org> wrote:
>
> On Sat, Dec 20, 2025 at 02:03:25PM -0800, Alex Tran wrote:
>
>
> Thank you for your patch. There is something to discuss/improve.
>
>
> > +maintainers:
> > +  - Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > +  - Sakari Ailus <sakari.ailus@iki.fi>
> > +
> > +description:
> > +  The OMAP 3 ISP is an image signal processor present in OMAP 3 SoCs.
> > +
> > +properties:
> > +  compatible:
> > +    const: ti,omap3-isp
> > +
> > +  reg:
> > +    items:
> > +      - description: Core ISP registers up to the end of the SBL block
> > +      - description: CSI PHYs and receivers registers
> > +
> > +  interrupts:
> > +    maxItems: 1
> > +    description: the ISP interrupt specifier
>
> Drop description, obvious.
>
> > +
> > +  iommus:
> > +    maxItems: 1
> > +    description: phandle and IOMMU specifier for the IOMMU that serves the ISP
>
> Ditto
>
> > +
> > +  syscon:
> > +    $ref: /schemas/types.yaml#/definitions/phandle-array
> > +    items:
> > +      - items:
> > +          - description: phandle to System Control Module
> > +          - description: register offset to Complex I/O or CSI-PHY register
> > +    description:
> > +      Phandle and register offset to the Complex I/O or CSI-PHY register
> > +
> > +  ti,phy-type:
> > +    $ref: /schemas/types.yaml#/definitions/uint32
> > +    enum: [0, 1]
> > +    description:
> > +      0 - OMAP3ISP_PHY_TYPE_COMPLEX_IO (e.g. OMAP 3430)
> > +      1 - OMAP3ISP_PHY_TYPE_CSIPHY (e.g. OMAP 3630)
> > +
> > +  '#clock-cells':
> > +    const: 1
> > +    description:
> > +      The ISP provides two external clocks, cam_xclka and cam_xclkb,
> > +      at indices 0 and 1 respectively.
> > +
> > +  vdd-csiphy1-supply:
> > +    description: Voltage supply of the CSI-2 PHY 1
> > +
> > +  vdd-csiphy2-supply:
> > +    description: Voltage supply of the CSI-2 PHY 2
> > +
> > +  ports:
> > +    $ref: /schemas/graph.yaml#/properties/ports
> > +
> > +    properties:
> > +      port@0:
> > +        $ref: /schemas/graph.yaml#/$defs/port-base
> > +        unevaluatedProperties: false
> > +        description: Parallel (CCDC) interface
> > +
> > +        properties:
> > +          endpoint:
> > +            $ref: /schemas/media/video-interfaces.yaml#
> > +            unevaluatedProperties: false
> > +
> > +      port@1:
> > +        $ref: /schemas/graph.yaml#/$defs/port-base
> > +        unevaluatedProperties: false
> > +        description: |
> > +          CSIPHY1 interface:
> > +            OMAP 3630: CSI2C / CCP2B
> > +            OMAP 3430: CSI1 (CSIb)
> > +
> > +        properties:
> > +          endpoint:
> > +            $ref: /schemas/media/video-interfaces.yaml#
> > +            unevaluatedProperties: false
> > +
> > +            properties:
> > +              lane-polarities:
> > +                description: |
> > +                  The lane polarity (required on CSI-2):
> > +                    0 - not inverted
> > +                    1 - inverted
>
> You do not need to describe standard properties. Are the values
> different than what video-interfaces define?
>
> Same everywhere else. Look at other bindings how these properties should
> be defined/written.
>
> > +                minItems: 2
> > +                maxItems: 3
> > +                items:
> > +                  enum: [0, 1]
> > +
> > +              data-lanes:
> > +                description: Data lanes (required on CSI-2)
> > +                minItems: 1
> > +                maxItems: 2
> > +                items:
> > +                  minimum: 1
> > +                  maximum: 3
> > +
> > +              clock-lanes:
> > +                description: The clock lane (required on CSI-2)
> > +                maxItems: 1
> > +                items:
> > +                  minimum: 1
> > +                  maximum: 3
> > +
> > +      port@2:
> > +        $ref: /schemas/graph.yaml#/$defs/port-base
> > +        unevaluatedProperties: false
> > +        description: |
> > +          CSIPHY2 interface:
> > +            OMAP 3630: CSI2A / CCP2B
> > +            OMAP 3430: CSI2 (CSIa)
> > +
> > +        properties:
> > +          endpoint:
> > +            $ref: /schemas/media/video-interfaces.yaml#
> > +            unevaluatedProperties: false
> > +
> > +            properties:
> > +              lane-polarities:
> > +                description: |
> > +                  The lane polarity (required on CSI-2):
> > +                    0 - not inverted
> > +                    1 - inverted
> > +                minItems: 2
> > +                maxItems: 3
> > +                items:
> > +                  enum: [0, 1]
> > +
> > +              data-lanes:
> > +                description: Data lanes (required on CSI-2)
> > +                minItems: 1
> > +                maxItems: 2
> > +                items:
> > +                  minimum: 1
> > +                  maximum: 3
> > +
> > +              clock-lanes:
> > +                description: The clock lane (required on CSI-2)
> > +                maxItems: 1
> > +                items:
> > +                  minimum: 1
> > +                  maximum: 3
> > +
> > +required:
> > +  - compatible
> > +  - reg
> > +  - interrupts
> > +  - iommus
> > +  - syscon
> > +  - ti,phy-type
> > +  - '#clock-cells'
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > +  - |
> > +    #include <dt-bindings/media/omap3-isp.h>
> > +
> > +    isp@480bc000 {
> > +        compatible = "ti,omap3-isp";
> > +        reg = <0x480bc000 0x12fc>,
> > +              <0x480bd800 0x0600>;
> > +        interrupts = <24>;
> > +        iommus = <&mmu_isp>;
> > +        syscon = <&scm_conf 0x2f0>;
> > +        ti,phy-type = <OMAP3ISP_PHY_TYPE_CSIPHY>;
> > +        #clock-cells = <1>;
> > +
> > +        ports {
> > +            #address-cells = <1>;
> > +            #size-cells = <0>;
>
> Make example complete, please.
>
>
> Best regards,
> Krzysztof
>

Thanks for the review. I'll address these in v2. Also the check patch
script seems to be giving false positive warnings about DT binding
docs and includes should be a separate patch. This patch series does
not touch any files under the include/dt-bindings directory at all.

-- 
Yours,
Alex Tran

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v1 2/2] media: dt-bindings: ti,omap3isp: Convert to DT schema
@ 2025-12-26 12:50 kernel test robot
  0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2025-12-26 12:50 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "dtcheck: binding changes may go via different trees"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <3c5a55cc5873e8d16bd25c5968a0d8b36e180325.1766123192.git.alex.t.tran@gmail.com>
References: <3c5a55cc5873e8d16bd25c5968a0d8b36e180325.1766123192.git.alex.t.tran@gmail.com>
TO: Alex Tran <alex.t.tran@gmail.com>
TO: mchehab@kernel.org
TO: robh@kernel.org
TO: krzk+dt@kernel.org
TO: conor+dt@kernel.org
CC: pavel@kernel.org
CC: sakari.ailus@linux.intel.com
CC: mehdi.djait@linux.intel.com
CC: alex.t.tran@gmail.com
CC: laurent.pinchart@ideasonboard.com
CC: hverkuil+cisco@kernel.org
CC: linux-media@vger.kernel.org

Hi Alex,

kernel test robot noticed the following build warnings:

[auto build test WARNING on robh/for-next]
[also build test WARNING on linuxtv-media-pending/master linus/master v6.19-rc2 next-20251219]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Alex-Tran/media-dt-bindings-i2c-toshiba-et8ek8-Convert-to-DT-schema/20251221-044937
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link:    https://lore.kernel.org/r/3c5a55cc5873e8d16bd25c5968a0d8b36e180325.1766123192.git.alex.t.tran%40gmail.com
patch subject: [PATCH v1 2/2] media: dt-bindings: ti,omap3isp: Convert to DT schema
:::::: branch date: 6 days ago
:::::: commit date: 6 days ago
config: arm-randconfig-2052-20251223 (https://download.01.org/0day-ci/archive/20251226/202512261346.uMaRukoD-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project e3ef26df85c317665a2c505a0d9bc179fe67bdaf)
dtschema version: 2025.12
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251226/202512261346.uMaRukoD-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202512261346.uMaRukoD-lkp@intel.com/

dtcheck warnings: (new ones prefixed by >>)
   arch/arm/boot/dts/ti/omap/omap3-n9.dtb: /ocp@68000000/dss@48050000/encoder@4804fc00: failed to match any schema with compatible: ['ti,omap3-dsi']
   arch/arm/boot/dts/ti/omap/omap3-n9.dtb: /ocp@68000000/dss@48050000/encoder@48050800: failed to match any schema with compatible: ['ti,omap3-rfbi']
   arch/arm/boot/dts/ti/omap/omap3-n9.dtb: /ocp@68000000/dss@48050000/encoder@48050c00: failed to match any schema with compatible: ['ti,omap3-venc']
   arch/arm/boot/dts/ti/omap/omap3-n9.dtb: /ocp@68000000/ssi-controller@48058000: failed to match any schema with compatible: ['ti,omap3-ssi']
   arch/arm/boot/dts/ti/omap/omap3-n9.dtb: /ocp@68000000/ssi-controller@48058000/ssi-port@4805a000: failed to match any schema with compatible: ['ti,omap3-ssi-port']
   arch/arm/boot/dts/ti/omap/omap3-n9.dtb: /ocp@68000000/ssi-controller@48058000/ssi-port@4805a000/hsi-client: failed to match any schema with compatible: ['nokia,n9-modem']
   arch/arm/boot/dts/ti/omap/omap3-n9.dtb: /ocp@68000000/ssi-controller@48058000/ssi-port@4805b000: failed to match any schema with compatible: ['ti,omap3-ssi-port']
   arch/arm/boot/dts/ti/omap/omap3-n9.dtb: /ocp@68000000/regulator-abb-mpu: failed to match any schema with compatible: ['ti,abb-v1']
   arch/arm/boot/dts/ti/omap/omap3-n9.dtb: isp@480bc000 (ti,omap3-isp): ports:port@2:endpoint:clock-lanes: 2 is not of type 'array'
   	from schema $id: http://devicetree.org/schemas/media/ti,omap3isp.yaml
>> arch/arm/boot/dts/ti/omap/omap3-n9.dtb: isp@480bc000 (ti,omap3-isp): ports:port@2:endpoint: Unevaluated properties are not allowed ('crc' was unexpected)
   	from schema $id: http://devicetree.org/schemas/media/ti,omap3isp.yaml
   arch/arm/boot/dts/ti/omap/omap3-n9.dtb: /ocp@68000000/bandgap@48002524: failed to match any schema with compatible: ['ti,omap36xx-bandgap']
   arch/arm/boot/dts/ti/omap/omap3-n9.dtb: /ocp@68000000/target-module@480cb000/smartreflex@0: failed to match any schema with compatible: ['ti,omap3-smartreflex-core']
   arch/arm/boot/dts/ti/omap/omap3-n9.dtb: /ocp@68000000/target-module@480c9000/smartreflex@480c9000: failed to match any schema with compatible: ['ti,omap3-smartreflex-mpu-iva']
   arch/arm/boot/dts/ti/omap/omap3-n9.dtb: leds (gpio-leds): 'heartbeat' does not match any of the regexes: '(^led-[0-9a-f]$|led)', '^pinctrl-[0-9]+$'
   	from schema $id: http://devicetree.org/schemas/leds/leds-gpio.yaml
--
   arch/arm/boot/dts/ti/omap/omap3-n950.dtb: /ocp@68000000/dss@48050000/encoder@4804fc00: failed to match any schema with compatible: ['ti,omap3-dsi']
   arch/arm/boot/dts/ti/omap/omap3-n950.dtb: /ocp@68000000/dss@48050000/encoder@48050800: failed to match any schema with compatible: ['ti,omap3-rfbi']
   arch/arm/boot/dts/ti/omap/omap3-n950.dtb: /ocp@68000000/dss@48050000/encoder@48050c00: failed to match any schema with compatible: ['ti,omap3-venc']
   arch/arm/boot/dts/ti/omap/omap3-n950.dtb: /ocp@68000000/ssi-controller@48058000: failed to match any schema with compatible: ['ti,omap3-ssi']
   arch/arm/boot/dts/ti/omap/omap3-n950.dtb: /ocp@68000000/ssi-controller@48058000/ssi-port@4805a000: failed to match any schema with compatible: ['ti,omap3-ssi-port']
   arch/arm/boot/dts/ti/omap/omap3-n950.dtb: /ocp@68000000/ssi-controller@48058000/ssi-port@4805a000/hsi-client: failed to match any schema with compatible: ['nokia,n950-modem']
   arch/arm/boot/dts/ti/omap/omap3-n950.dtb: /ocp@68000000/ssi-controller@48058000/ssi-port@4805b000: failed to match any schema with compatible: ['ti,omap3-ssi-port']
   arch/arm/boot/dts/ti/omap/omap3-n950.dtb: /ocp@68000000/regulator-abb-mpu: failed to match any schema with compatible: ['ti,abb-v1']
   arch/arm/boot/dts/ti/omap/omap3-n950.dtb: isp@480bc000 (ti,omap3-isp): ports:port@2:endpoint:clock-lanes: 2 is not of type 'array'
   	from schema $id: http://devicetree.org/schemas/media/ti,omap3isp.yaml
>> arch/arm/boot/dts/ti/omap/omap3-n950.dtb: isp@480bc000 (ti,omap3-isp): ports:port@2:endpoint: Unevaluated properties are not allowed ('crc' was unexpected)
   	from schema $id: http://devicetree.org/schemas/media/ti,omap3isp.yaml
   arch/arm/boot/dts/ti/omap/omap3-n950.dtb: /ocp@68000000/bandgap@48002524: failed to match any schema with compatible: ['ti,omap36xx-bandgap']
   arch/arm/boot/dts/ti/omap/omap3-n950.dtb: /ocp@68000000/target-module@480cb000/smartreflex@0: failed to match any schema with compatible: ['ti,omap3-smartreflex-core']
   arch/arm/boot/dts/ti/omap/omap3-n950.dtb: /ocp@68000000/target-module@480c9000/smartreflex@480c9000: failed to match any schema with compatible: ['ti,omap3-smartreflex-mpu-iva']
   arch/arm/boot/dts/ti/omap/omap3-n950.dtb: leds (gpio-leds): 'heartbeat' does not match any of the regexes: '(^led-[0-9a-f]$|led)', '^pinctrl-[0-9]+$'
   	from schema $id: http://devicetree.org/schemas/leds/leds-gpio.yaml
   arch/arm/boot/dts/ti/omap/omap3-n950.dtb: keys (gpio-keys): 'keypad_slide' does not match any of the regexes: '^(button|event|key|switch|(button|event|key|switch)-[a-z0-9-]+|[a-z0-9-]+-(button|event|key|switch))$', '^pinctrl-[0-9]+$'
   	from schema $id: http://devicetree.org/schemas/input/gpio-keys.yaml

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-12-26 12:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-26 12:50 [PATCH v1 2/2] media: dt-bindings: ti,omap3isp: Convert to DT schema kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2025-12-20 22:03 [PATCH v1 0/2] media: dt-bindings: Convert toshiba,et8ek8 and ti,omap3isp to YAML schema Alex Tran
2025-12-20 20:42 ` [PATCH v1 2/2] media: dt-bindings: ti,omap3isp: Convert to DT schema Alex Tran
2025-12-20 22:03   ` Alex Tran
2025-12-21 15:08   ` Krzysztof Kozlowski
2025-12-24 21:46     ` Alex Tran

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.