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

dt-bindings: power: syscon-poweroff: get regmap from parent node

Just like syscon-reboot device, the syscon-poweroff is supposed to be a
child of syscon node, thus we can take the same approach as
syscon-poweroff: deprecate the 'regmap' field in favor of taking it from
the parent's node.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230901120057.47018-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>

authored by

Krzysztof Kozlowski and committed by
Sebastian Reichel
71629338 c06a65ac

+7 -3
+7 -3
Documentation/devicetree/bindings/power/reset/syscon-poweroff.yaml
··· 15 15 defined by the register map pointed by syscon reference plus the offset 16 16 with the value and mask defined in the poweroff node. 17 17 Default will be little endian mode, 32 bit access only. 18 + The SYSCON register map is normally retrieved from the parental dt-node. So 19 + the SYSCON poweroff node should be represented as a sub-node of a "syscon", 20 + "simple-mfd" node. 18 21 19 22 properties: 20 23 compatible: ··· 33 30 34 31 regmap: 35 32 $ref: /schemas/types.yaml#/definitions/phandle 36 - description: Phandle to the register map node. 33 + deprecated: true 34 + description: 35 + Phandle to the register map node. This property is deprecated in favor of 36 + the syscon-poweroff node being a child of a system controller node. 37 37 38 38 value: 39 39 $ref: /schemas/types.yaml#/definitions/uint32 ··· 44 38 45 39 required: 46 40 - compatible 47 - - regmap 48 41 - offset 49 42 50 43 additionalProperties: false ··· 61 56 - | 62 57 poweroff { 63 58 compatible = "syscon-poweroff"; 64 - regmap = <&regmapnode>; 65 59 offset = <0x0>; 66 60 mask = <0x7a>; 67 61 };