Skip to contentSkip to conversation

media: dt-bindings: media: camss: sdm845: Make clock-lanes property const

PATCH In review Robert Foss 2 participants 5 messages Oct 25, 2021 – Nov 2, 2021

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 media: dt-bindings: media: camss: sdm845: Make clock-lanes property const

Mistakenly only one out of four CSI ports had the clock-lane marked as const.

---
 .../devicetree/bindings/media/qcom,sdm845-camss.yaml     | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/media/qcom,sdm845-camss.yaml +6 -3
index 9ca5dfa7f226..d8fb6ce1d7f9 100644
@@ -106,7 +106,8 @@ properties:
 
             properties:
               clock-lanes:
-                maxItems: 1
+                items:
+                  - const: 7
 
               data-lanes:
                 minItems: 1
@@ -153,7 +154,8 @@ properties:
 
             properties:
               clock-lanes:
-                maxItems: 1
+                items:
+                  - const: 7
 
               data-lanes:
                 minItems: 1
@@ -176,7 +178,8 @@ properties:
 
             properties:
               clock-lanes:
-                maxItems: 1
+                items:
+                  - const: 7
 
               data-lanes:
                 minItems: 1
Signature · 1 line
2.30.2
#1 lore raw

PATCH 2/2 media: dt-bindings: media: camss: Document clock-lanes property

The clock-lanes property corresponds to a hardware register field that is required to be set, in order to enable the CSI clock signal.

The physical lane of the clock signal is not programmable, but only togglable On or Off, which what BIT(7) of the CSIPHY_3PH_CMN_CSI_COMMON_CTRLn(5) register controls.

---
 .../devicetree/bindings/media/qcom,msm8996-camss.yaml        | 5 +++++
 .../devicetree/bindings/media/qcom,sdm660-camss.yaml         | 5 +++++
 .../devicetree/bindings/media/qcom,sdm845-camss.yaml         | 5 +++++
 3 files changed, 15 insertions(+)
Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml +5 -0
index 38be41e932f0..d4da1fad12cf 100644
@@ -106,6 +106,11 @@ properties:
 
             properties:
               clock-lanes:
+                description:
+                  The index of the clock-lane is not programmable by
+                  the hardware, but is required to define a CSI port.
+                  Lane 7 reflects the hardware register field that enables
+                  the clock lane.
                 items:
                   - const: 7
 
Documentation/devicetree/bindings/media/qcom,sdm660-camss.yaml +5 -0
index 841a1aafdd13..f110152909b9 100644
@@ -112,6 +112,11 @@ properties:
 
             properties:
               clock-lanes:
+                description:
+                  The index of the clock-lane is not programmable by
+                  the hardware, but is required to define a CSI port.
+                  Lane 7 reflects the hardware register field that enables
+                  the clock lane.
                 items:
                   - const: 7
 
Documentation/devicetree/bindings/media/qcom,sdm845-camss.yaml +5 -0
index d8fb6ce1d7f9..087d5606f2be 100644
@@ -106,6 +106,11 @@ properties:
 
             properties:
               clock-lanes:
+                description:
+                  The index of the clock-lane is not programmable by
+                  the hardware, but is required to define a CSI port.
+                  Lane 7 reflects the hardware register field that enables
+                  the clock lane.
                 items:
                   - const: 7
 
Signature · 1 line
2.30.2
maintainer
#2 lore raw

Re: [PATCH v1 2/2] media: dt-bindings: media: camss: Document clock-lanes property

Quoted 19 lines · Robert Foss

The clock-lanes property corresponds to a hardware register field that is required to be set, in order to enable the CSI clock signal.

The physical lane of the clock signal is not programmable, but only togglable On or Off, which what BIT(7) of the CSIPHY_3PH_CMN_CSI_COMMON_CTRLn(5) register controls.

---
 .../devicetree/bindings/media/qcom,msm8996-camss.yaml        | 5 +++++
 .../devicetree/bindings/media/qcom,sdm660-camss.yaml         | 5 +++++
 .../devicetree/bindings/media/qcom,sdm845-camss.yaml         | 5 +++++
 3 files changed, 15 insertions(+)
Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml +0 -0
index 38be41e932f0..d4da1fad12cf 100644

Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml properties: · line 113

Quoted 8 lines
Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml +5 -0
@@ -106,6 +106,11 @@ properties:
 
             properties:
               clock-lanes:
+                description:
+                  The index of the clock-lane is not programmable by
+                  the hardware, but is required to define a CSI port.
+                  Lane 7 reflects the hardware register field that enables
+                  the clock lane.

If it is fixed, then it should not be required. Fix the required part.

Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml properties: · line 115

Quoted 2 lines
Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml +0 -0
                 items:
                   - const: 7

I don't know how we let that in, but this should be the lane number. Each binding can't be making up its own interpretation.

Rob

#3 lore raw

Re: [PATCH v1 2/2] media: dt-bindings: media: camss: Document clock-lanes property

Quoted 32 lines · Rob Herring
Quoted 19 lines · Robert Foss

The clock-lanes property corresponds to a hardware register field that is required to be set, in order to enable the CSI clock signal.

The physical lane of the clock signal is not programmable, but only togglable On or Off, which what BIT(7) of the CSIPHY_3PH_CMN_CSI_COMMON_CTRLn(5) register controls.

---
 .../devicetree/bindings/media/qcom,msm8996-camss.yaml        | 5 +++++
 .../devicetree/bindings/media/qcom,sdm660-camss.yaml         | 5 +++++
 .../devicetree/bindings/media/qcom,sdm845-camss.yaml         | 5 +++++
 3 files changed, 15 insertions(+)
Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml +0 -0
index 38be41e932f0..d4da1fad12cf 100644

Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml properties: · line 113

Quoted 8 lines
Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml +5 -0
@@ -106,6 +106,11 @@ properties:
 
             properties:
               clock-lanes:
+                description:
+                  The index of the clock-lane is not programmable by
+                  the hardware, but is required to define a CSI port.
+                  Lane 7 reflects the hardware register field that enables
+                  the clock lane.

If it is fixed, then it should not be required. Fix the required part.

Quoted 5 lines

Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml properties: · line 115

Quoted 2 lines
Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml +0 -0
                 items:
                   - const: 7

I don't know how we let that in, but this should be the lane number. Each binding can't be making up its own interpretation.

If the clock lane number isn't programmable, can clock-lanes be omitted?

maintainer
#4 lore raw

Re: [PATCH v1 2/2] media: dt-bindings: media: camss: Document clock-lanes property

Quoted 34 lines · Robert Foss
Quoted 32 lines · Rob Herring
Quoted 19 lines · Robert Foss

The clock-lanes property corresponds to a hardware register field that is required to be set, in order to enable the CSI clock signal.

The physical lane of the clock signal is not programmable, but only togglable On or Off, which what BIT(7) of the CSIPHY_3PH_CMN_CSI_COMMON_CTRLn(5) register controls.

---
 .../devicetree/bindings/media/qcom,msm8996-camss.yaml        | 5 +++++
 .../devicetree/bindings/media/qcom,sdm660-camss.yaml         | 5 +++++
 .../devicetree/bindings/media/qcom,sdm845-camss.yaml         | 5 +++++
 3 files changed, 15 insertions(+)
Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml +0 -0
index 38be41e932f0..d4da1fad12cf 100644

Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml properties: · line 113

Quoted 8 lines
Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml +5 -0
@@ -106,6 +106,11 @@ properties:
 
             properties:
               clock-lanes:
+                description:
+                  The index of the clock-lane is not programmable by
+                  the hardware, but is required to define a CSI port.
+                  Lane 7 reflects the hardware register field that enables
+                  the clock lane.

If it is fixed, then it should not be required. Fix the required part.

Quoted 7 lines
Quoted 5 lines

Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml properties: · line 115

Quoted 2 lines
Documentation/devicetree/bindings/media/qcom,msm8996-camss.yaml +0 -0
                 items:
                   - const: 7

I don't know how we let that in, but this should be the lane number. Each binding can't be making up its own interpretation.

If the clock lane number isn't programmable, can clock-lanes be omitted?

Yes, that would be the correct thing to do.

Rob