Skip to contentSkip to conversation

dt-bindings: clock: Require #reset-cells in sdm845-videocc

PATCH Applied Douglas Anderson 2 participants 2 messages Nov 27, 2018 – Nov 30, 2018

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

PATCH 1/1 dt-bindings: clock: Require #reset-cells in sdm845-videocc

The #reset-cells was listed as optional in the bindings for qcom,sdm845-videocc. There's no reason for it to be optional. As per Stephen [1]:

Quoted 3 lines

We should update the binding to make it a required property. It doesn't make any sense why that property would be optional given that the hardware either has support for resets or it doesn't.

sdm845 support is still in its infancy so we shouldn't be affecting any real device trees by modifying the bindings here.

[1] https://lkml.kernel.org/r/154330186815.88331.12720647562079303842@swboyd.mtv.corp.google.com

Fixes 84b66b211603 ("dt-bindings: clock: Introduce QCOM Video clock bindings")

---

 Documentation/devicetree/bindings/clock/qcom,videocc.txt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Documentation/devicetree/bindings/clock/qcom,videocc.txt +1 -2
index e7c035afa778..8a8622c65c5a 100644
@@ -6,8 +6,6 @@ Required properties :
 - reg : shall contain base register location and length
 - #clock-cells : from common clock binding, shall contain 1.
 - #power-domain-cells : from generic power domain binding, shall contain 1.
-
-Optional properties :
 - #reset-cells : from common reset binding, shall contain 1.
 
 Example:
@@ -16,4 +14,5 @@ Example:
 		reg = <0xab00000 0x10000>;
 		#clock-cells = <1>;
 		#power-domain-cells = <1>;
+		#reset-cells = <1>;
 	};
Signature · 1 line
2.20.0.rc0.387.gc7a69e6b6c-goog
maintainer Applied
#1 lore raw

Quoting Douglas Anderson (2018-11-27 11:24:43)

Quoted 11 lines

The #reset-cells was listed as optional in the bindings for qcom,sdm845-videocc. There's no reason for it to be optional. As per Stephen [1]:

Quoted 3 lines

We should update the binding to make it a required property. It doesn't make any sense why that property would be optional given that the hardware either has support for resets or it doesn't.

sdm845 support is still in its infancy so we shouldn't be affecting any real device trees by modifying the bindings here.

Quoted 6 lines

[1] https://lkml.kernel.org/r/154330186815.88331.12720647562079303842@swboyd.mtv.corp.google.com

Fixes 84b66b211603 ("dt-bindings: clock: Introduce QCOM Video clock bindings")

---

Applied to clk-next