Skip to content

Commit

Permalink
dt-bindings: clk: qcom,gcc-*: use qcom,gcc.yaml
Browse files Browse the repository at this point in the history
Use qcom,gcc.yaml which contains a set of properties common to most
Qualcomm GCC bindings.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20220704172453.838303-2-dmitry.baryshkov@linaro.org
  • Loading branch information
Dmitry Baryshkov authored and Bjorn Andersson committed Aug 29, 2022
1 parent f6d373f commit 0f71ae9
Show file tree
Hide file tree
Showing 19 changed files with 76 additions and 367 deletions.
21 changes: 4 additions & 17 deletions Documentation/devicetree/bindings/clock/qcom,gcc-msm8976.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,29 +45,16 @@ properties:
description:
Phandle to voltage regulator providing power to the GX domain.

'#clock-cells':
const: 1

'#reset-cells':
const: 1

'#power-domain-cells':
const: 1

reg:
maxItems: 1

required:
- compatible
- reg
- clocks
- clock-names
- vdd_gfx-supply
- '#clock-cells'
- '#reset-cells'
- '#power-domain-cells'

additionalProperties: false
allOf:
- $ref: qcom,gcc.yaml#

unevaluatedProperties: false

examples:
- |
Expand Down
21 changes: 4 additions & 17 deletions Documentation/devicetree/bindings/clock/qcom,gcc-msm8994.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,15 @@ properties:
- const: xo
- const: sleep

'#clock-cells':
const: 1

'#reset-cells':
const: 1

'#power-domain-cells':
const: 1

reg:
maxItems: 1

required:
- compatible
- clocks
- clock-names
- reg
- '#clock-cells'
- '#reset-cells'
- '#power-domain-cells'

additionalProperties: false
allOf:
- $ref: qcom,gcc.yaml#

unevaluatedProperties: false

examples:
- |
Expand Down
25 changes: 4 additions & 21 deletions Documentation/devicetree/bindings/clock/qcom,gcc-msm8996.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,30 +49,13 @@ properties:
- const: ufs_rx_symbol_1_clk_src
- const: ufs_tx_symbol_0_clk_src

'#clock-cells':
const: 1

'#reset-cells':
const: 1

'#power-domain-cells':
const: 1

reg:
maxItems: 1

protected-clocks:
description:
Protected clock specifier list as per common clock binding.

required:
- compatible
- reg
- '#clock-cells'
- '#reset-cells'
- '#power-domain-cells'

additionalProperties: false
allOf:
- $ref: qcom,gcc.yaml#

unevaluatedProperties: false

examples:
- |
Expand Down
25 changes: 4 additions & 21 deletions Documentation/devicetree/bindings/clock/qcom,gcc-msm8998.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,32 +37,15 @@ properties:
- const: core_bi_pll_test_se # Optional clock
minItems: 2

'#clock-cells':
const: 1

'#reset-cells':
const: 1

'#power-domain-cells':
const: 1

reg:
maxItems: 1

protected-clocks:
description:
Protected clock specifier list as per common clock binding.

required:
- compatible
- clocks
- clock-names
- reg
- '#clock-cells'
- '#reset-cells'
- '#power-domain-cells'

additionalProperties: false
allOf:
- $ref: qcom,gcc.yaml#

unevaluatedProperties: false

examples:
- |
Expand Down
25 changes: 4 additions & 21 deletions Documentation/devicetree/bindings/clock/qcom,gcc-qcm2290.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,15 @@ properties:
- const: bi_tcxo
- const: sleep_clk

'#clock-cells':
const: 1

'#reset-cells':
const: 1

'#power-domain-cells':
const: 1

reg:
maxItems: 1

protected-clocks:
description:
Protected clock specifier list as per common clock binding.

required:
- compatible
- clocks
- clock-names
- reg
- '#clock-cells'
- '#reset-cells'
- '#power-domain-cells'

additionalProperties: false
allOf:
- $ref: qcom,gcc.yaml#

unevaluatedProperties: false

examples:
- |
Expand Down
25 changes: 4 additions & 21 deletions Documentation/devicetree/bindings/clock/qcom,gcc-sc7180.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,32 +33,15 @@ properties:
- const: bi_tcxo_ao
- const: sleep_clk

'#clock-cells':
const: 1

'#reset-cells':
const: 1

'#power-domain-cells':
const: 1

reg:
maxItems: 1

protected-clocks:
description:
Protected clock specifier list as per common clock binding.

required:
- compatible
- clocks
- clock-names
- reg
- '#clock-cells'
- '#reset-cells'
- '#power-domain-cells'

additionalProperties: false
allOf:
- $ref: qcom,gcc.yaml#

unevaluatedProperties: false

examples:
- |
Expand Down
21 changes: 4 additions & 17 deletions Documentation/devicetree/bindings/clock/qcom,gcc-sc7280.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,15 @@ properties:
- const: ufs_phy_tx_symbol_0_clk
- const: usb3_phy_wrapper_gcc_usb30_pipe_clk

'#clock-cells':
const: 1

'#reset-cells':
const: 1

'#power-domain-cells':
const: 1

reg:
maxItems: 1

required:
- compatible
- clocks
- clock-names
- reg
- '#clock-cells'
- '#reset-cells'
- '#power-domain-cells'

additionalProperties: false
allOf:
- $ref: qcom,gcc.yaml#

unevaluatedProperties: false

examples:
- |
Expand Down
25 changes: 4 additions & 21 deletions Documentation/devicetree/bindings/clock/qcom,gcc-sc8180x.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,32 +32,15 @@ properties:
- const: bi_tcxo_ao
- const: sleep_clk

'#clock-cells':
const: 1

'#reset-cells':
const: 1

'#power-domain-cells':
const: 1

reg:
maxItems: 1

protected-clocks:
description:
Protected clock specifier list as per common clock binding.

required:
- compatible
- clocks
- clock-names
- reg
- '#clock-cells'
- '#reset-cells'
- '#power-domain-cells'

additionalProperties: false
allOf:
- $ref: qcom,gcc.yaml#

unevaluatedProperties: false

examples:
- |
Expand Down
21 changes: 4 additions & 17 deletions Documentation/devicetree/bindings/clock/qcom,gcc-sc8280xp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,30 +56,17 @@ properties:
- description: First EMAC controller reference clock
- description: Second EMAC controller reference clock

'#clock-cells':
const: 1

'#reset-cells':
const: 1

'#power-domain-cells':
const: 1

reg:
maxItems: 1

protected-clocks:
maxItems: 389

required:
- compatible
- clocks
- reg
- '#clock-cells'
- '#reset-cells'
- '#power-domain-cells'

additionalProperties: false
allOf:
- $ref: qcom,gcc.yaml#

unevaluatedProperties: false

examples:
- |
Expand Down
25 changes: 4 additions & 21 deletions Documentation/devicetree/bindings/clock/qcom,gcc-sdm845.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,33 +37,16 @@ properties:
- const: pcie_0_pipe_clk
- const: pcie_1_pipe_clk

'#clock-cells':
const: 1

'#reset-cells':
const: 1

power-domains:
maxItems: 1

'#power-domain-cells':
const: 1

reg:
maxItems: 1

protected-clocks:
description:
Protected clock specifier list as per common clock binding.

required:
- compatible
- reg
- '#clock-cells'
- '#reset-cells'
- '#power-domain-cells'

additionalProperties: false
allOf:
- $ref: qcom,gcc.yaml#

unevaluatedProperties: false

examples:
# Example for GCC for SDM845:
Expand Down
21 changes: 4 additions & 17 deletions Documentation/devicetree/bindings/clock/qcom,gcc-sdx55.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,15 @@ properties:
- const: core_bi_pll_test_se # Optional clock
minItems: 2

'#clock-cells':
const: 1

'#reset-cells':
const: 1

'#power-domain-cells':
const: 1

reg:
maxItems: 1

required:
- compatible
- clocks
- clock-names
- reg
- '#clock-cells'
- '#reset-cells'
- '#power-domain-cells'

additionalProperties: false
allOf:
- $ref: qcom,gcc.yaml#

unevaluatedProperties: false

examples:
- |
Expand Down
Loading

0 comments on commit 0f71ae9

Please sign in to comment.