Skip to content

Commit c9491a1

Browse files
lumagandersson
authored andcommitted
dt-bindings: soc: qcom: merge qcom,saw2.txt into qcom,spm.yaml
The Qualcomm SPM / SAW2 device is described in two bindigns files: arm/msm/qcom,saw2.txt and soc/qcom/qcom,spm.yaml. Merge the former into the latter, adding detailed device node description. While we are at it, also rename qcom,spm.yaml to qcom,saw2.yaml to follow the actual compatible used for these devices. The regulator property is retained as is. It will be changed in the later patches. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/20240102-saw2-spm-regulator-v7-1-0472ec237f49@linaro.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent ceeaddc commit c9491a1

2 files changed

Lines changed: 20 additions & 64 deletions

File tree

Documentation/devicetree/bindings/arm/msm/qcom,saw2.txt

Lines changed: 0 additions & 58 deletions
This file was deleted.

Documentation/devicetree/bindings/soc/qcom/qcom,spm.yaml renamed to Documentation/devicetree/bindings/soc/qcom/qcom,saw2.yaml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
22
%YAML 1.2
33
---
4-
$id: http://devicetree.org/schemas/soc/qcom/qcom,spm.yaml#
4+
$id: http://devicetree.org/schemas/soc/qcom/qcom,saw2.yaml#
55
$schema: http://devicetree.org/meta-schemas/core.yaml#
66

7-
title: Qualcomm Subsystem Power Manager
7+
title: Qualcomm Subsystem Power Manager / SPM AVS Wrapper 2 (SAW2)
88

99
maintainers:
1010
- Andy Gross <agross@kernel.org>
1111
- Bjorn Andersson <bjorn.andersson@linaro.org>
1212

1313
description: |
14-
This binding describes the Qualcomm Subsystem Power Manager, used to control
15-
the peripheral logic surrounding the application cores in Qualcomm platforms.
14+
The Qualcomm Subsystem Power Manager is used to control the peripheral logic
15+
surrounding the application cores in Qualcomm platforms.
16+
17+
The SAW2 is a wrapper around the Subsystem Power Manager (SPM) and the
18+
Adaptive Voltage Scaling (AVS) hardware. The SPM is a programmable
19+
power-controller that transitions a piece of hardware (like a processor or
20+
subsystem) into and out of low power modes via a direct connection to
21+
the PMIC. It can also be wired up to interact with other processors in the
22+
system, notifying them when a low power state is entered or exited.
1623
1724
properties:
1825
compatible:
@@ -34,8 +41,15 @@ properties:
3441
- const: qcom,saw2
3542

3643
reg:
37-
description: Base address and size of the SPM register region
38-
maxItems: 1
44+
items:
45+
- description: Base address and size of the SPM register region
46+
- description: Base address and size of the alias register region
47+
minItems: 1
48+
49+
regulator:
50+
type: boolean
51+
description: Indicates that this SPM device acts as a regulator device
52+
device for the core (CPU or Cache) the SPM is attached to.
3953

4054
required:
4155
- compatible

0 commit comments

Comments
 (0)