media: dt-bindings: media: camss: sdm845: Make clock-lanes property const
Subsystems (5)
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
@@ -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
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
@@ -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
@@ -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
@@ -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
Rob Herring
maintainerRe: [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.Signed-off-by Robert Foss <[email protected]>--- .../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
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
-0items: - 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
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.Signed-off-by Robert Foss <[email protected]>--- .../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
-0Documentation/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
-0items: - const: 7I 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?
Rob Herring
maintainerRe: [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.Signed-off-by Robert Foss <[email protected]>--- .../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
-0Documentation/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
-0items: - const: 7I 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