Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

AngeloGioacchino Del Regno and committed by
Ulf Hansson
29a79991 91d7789f

+37
+37
Documentation/devicetree/bindings/power/mediatek,power-controller.yaml
··· 44 44 '#size-cells': 45 45 const: 0 46 46 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 + 47 56 patternProperties: 48 57 "^power-domain@[0-9a-f]+$": 49 58 $ref: "#/$defs/power-domain-node" ··· 132 123 mediatek,infracfg: 133 124 $ref: /schemas/types.yaml#/definitions/phandle 134 125 description: phandle to the device containing the INFRACFG register range. 126 + deprecated: true 135 127 136 128 mediatek,infracfg-nao: 137 129 $ref: /schemas/types.yaml#/definitions/phandle 138 130 description: phandle to the device containing the INFRACFG-NAO register range. 131 + deprecated: true 139 132 140 133 mediatek,smi: 141 134 $ref: /schemas/types.yaml#/definitions/phandle 142 135 description: phandle to the device containing the SMI register range. 136 + deprecated: true 143 137 144 138 required: 145 139 - reg 146 140 147 141 required: 148 142 - compatible 143 + 144 + allOf: 145 + - if: 146 + properties: 147 + compatible: 148 + contains: 149 + enum: 150 + - mediatek,mt8183-power-controller 151 + then: 152 + properties: 153 + access-controllers: 154 + minItems: 2 155 + maxItems: 2 156 + 157 + - if: 158 + properties: 159 + compatible: 160 + contains: 161 + enum: 162 + - mediatek,mt8365-power-controller 163 + then: 164 + properties: 165 + access-controllers: 166 + minItems: 3 167 + maxItems: 3 149 168 150 169 additionalProperties: false 151 170