Skip to content

Commit 29a7999

Browse files
AngeloGioacchino Del Regnostorulf
authored andcommitted
dt-bindings: power: mediatek: Document access-controllers property
Allow specifying access-controllers in the main power controller node and deprecate the old mediatek,infracfg, mediatek,infracfg-nao and mediatek,smi properties located in the children. This is done in order to both simplify the power controller nodes and in preparation for adding support for new generation SoCs like MT8196/MT6991 and other variants, which will need to set protection on new busses. Reviewed-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20250805074746.29457-4-angelogioacchino.delregno@collabora.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 91d7789 commit 29a7999

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

Documentation/devicetree/bindings/power/mediatek,power-controller.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ properties:
4444
'#size-cells':
4545
const: 0
4646

47+
access-controllers:
48+
description:
49+
A number of phandles to external blocks to set and clear the required
50+
bits to enable or disable bus protection, necessary to avoid any bus
51+
faults while enabling or disabling a power domain.
52+
For example, this may hold phandles to INFRACFG and SMI.
53+
minItems: 1
54+
maxItems: 3
55+
4756
patternProperties:
4857
"^power-domain@[0-9a-f]+$":
4958
$ref: "#/$defs/power-domain-node"
@@ -123,21 +132,49 @@ $defs:
123132
mediatek,infracfg:
124133
$ref: /schemas/types.yaml#/definitions/phandle
125134
description: phandle to the device containing the INFRACFG register range.
135+
deprecated: true
126136

127137
mediatek,infracfg-nao:
128138
$ref: /schemas/types.yaml#/definitions/phandle
129139
description: phandle to the device containing the INFRACFG-NAO register range.
140+
deprecated: true
130141

131142
mediatek,smi:
132143
$ref: /schemas/types.yaml#/definitions/phandle
133144
description: phandle to the device containing the SMI register range.
145+
deprecated: true
134146

135147
required:
136148
- reg
137149

138150
required:
139151
- compatible
140152

153+
allOf:
154+
- if:
155+
properties:
156+
compatible:
157+
contains:
158+
enum:
159+
- mediatek,mt8183-power-controller
160+
then:
161+
properties:
162+
access-controllers:
163+
minItems: 2
164+
maxItems: 2
165+
166+
- if:
167+
properties:
168+
compatible:
169+
contains:
170+
enum:
171+
- mediatek,mt8365-power-controller
172+
then:
173+
properties:
174+
access-controllers:
175+
minItems: 3
176+
maxItems: 3
177+
141178
additionalProperties: false
142179

143180
examples:

0 commit comments

Comments
 (0)