162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci%YAML 1.2 362306a36Sopenharmony_ci--- 462306a36Sopenharmony_ci$id: http://devicetree.org/schemas/power/reset/syscon-reboot.yaml# 562306a36Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 662306a36Sopenharmony_ci 762306a36Sopenharmony_cititle: Generic SYSCON mapped register reset driver 862306a36Sopenharmony_ci 962306a36Sopenharmony_cimaintainers: 1062306a36Sopenharmony_ci - Sebastian Reichel <sre@kernel.org> 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_cidescription: |+ 1362306a36Sopenharmony_ci This is a generic reset driver using syscon to map the reset register. 1462306a36Sopenharmony_ci The reset is generally performed with a write to the reset register 1562306a36Sopenharmony_ci defined by the SYSCON register map base plus the offset with the value and 1662306a36Sopenharmony_ci mask defined in the reboot node. Default will be little endian mode, 32 bit 1762306a36Sopenharmony_ci access only. The SYSCON registers map is normally retrieved from the 1862306a36Sopenharmony_ci parental dt-node. So the SYSCON reboot node should be represented as a 1962306a36Sopenharmony_ci sub-node of a "syscon", "simple-mfd" node. Though the regmap property 2062306a36Sopenharmony_ci pointing to the system controller node is also supported. 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ciproperties: 2362306a36Sopenharmony_ci compatible: 2462306a36Sopenharmony_ci const: syscon-reboot 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci mask: 2762306a36Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32 2862306a36Sopenharmony_ci description: Update only the register bits defined by the mask (32 bit). 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci offset: 3162306a36Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32 3262306a36Sopenharmony_ci description: Offset in the register map for the reboot register (in bytes). 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci regmap: 3562306a36Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/phandle 3662306a36Sopenharmony_ci deprecated: true 3762306a36Sopenharmony_ci description: | 3862306a36Sopenharmony_ci Phandle to the register map node. This property is deprecated in favor of 3962306a36Sopenharmony_ci the syscon-reboot node been a child of a system controller node. 4062306a36Sopenharmony_ci 4162306a36Sopenharmony_ci value: 4262306a36Sopenharmony_ci $ref: /schemas/types.yaml#/definitions/uint32 4362306a36Sopenharmony_ci description: The reset value written to the reboot register (32 bit access). 4462306a36Sopenharmony_ci 4562306a36Sopenharmony_ci priority: 4662306a36Sopenharmony_ci default: 192 4762306a36Sopenharmony_ci 4862306a36Sopenharmony_cirequired: 4962306a36Sopenharmony_ci - compatible 5062306a36Sopenharmony_ci - offset 5162306a36Sopenharmony_ci 5262306a36Sopenharmony_ciadditionalProperties: false 5362306a36Sopenharmony_ci 5462306a36Sopenharmony_ciallOf: 5562306a36Sopenharmony_ci - $ref: restart-handler.yaml# 5662306a36Sopenharmony_ci - if: 5762306a36Sopenharmony_ci not: 5862306a36Sopenharmony_ci required: 5962306a36Sopenharmony_ci - mask 6062306a36Sopenharmony_ci then: 6162306a36Sopenharmony_ci required: 6262306a36Sopenharmony_ci - value 6362306a36Sopenharmony_ci 6462306a36Sopenharmony_ciexamples: 6562306a36Sopenharmony_ci - | 6662306a36Sopenharmony_ci reboot { 6762306a36Sopenharmony_ci compatible = "syscon-reboot"; 6862306a36Sopenharmony_ci regmap = <®mapnode>; 6962306a36Sopenharmony_ci offset = <0x0>; 7062306a36Sopenharmony_ci mask = <0x1>; 7162306a36Sopenharmony_ci }; 72