lkml.org 
[lkml]   [2020]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 13/13] dt-bindings: cpufreq: qcom-hw: Add bindings for 8998
Date
The OSM programming addition has been done under the
qcom,cpufreq-hw-8998 compatible name: specify the requirement
of two additional register spaces for this functionality.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
---
.../bindings/cpufreq/qcom,cpufreq-hw.yaml | 31 ++++++++++++++++---
1 file changed, 27 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/cpufreq/qcom,cpufreq-hw.yaml b/Documentation/devicetree/bindings/cpufreq/qcom,cpufreq-hw.yaml
index 94a56317b14b..f64cea73037e 100644
--- a/Documentation/devicetree/bindings/cpufreq/qcom,cpufreq-hw.yaml
+++ b/Documentation/devicetree/bindings/cpufreq/qcom,cpufreq-hw.yaml
@@ -23,17 +23,21 @@ properties:
- qcom,cpufreq-epss

reg:
+ description: Base address and size of the RBCPR register region
minItems: 2
maxItems: 2

reg-names:
description:
- Frequency domain register region for each domain.
- items:
- - const: "freq-domain0"
- - const: "freq-domain1"
+ Frequency domain register region for each domain. If OSM programming
+ does not happen in the bootloader and has to be done in this driver,
+ then also the OSM domain region osm-domain[0-1] has to be provided.
+ minItems: 2
+ maxItems: 2

clock-names:
+ minItems: 2
+ maxItems: 2
- const: xo
- const: ref

@@ -53,9 +57,28 @@ properties:
property with phandle to a cpufreq_hw followed by the Domain ID(0/1)
in the CPU DT node.

+allOf:
+ - if:
+ properties:
+ reg-names:
+ contains:
+ const: qcom,cpufreq-hw-8998
+ then:
+ properties:
+ reg:
+ minItems: 4
+ maxItems: 4
+ reg-names:
+ items:
+ - const: "freq-domain0"
+ - const: "freq-domain1"
+ - const: "osm-domain0"
+ - const: "osm-domain1"
+
required:
- compatible
- reg
+ - reg-names
- clock-names
- clocks
- "#freq-domain-cells"
--
2.29.2
\
 
 \ /
  Last update: 2020-11-26 19:59    [W:0.147 / U:1.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site