1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/power/reset/syscon-reboot.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Generic SYSCON mapped register reset driver 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Sebastian Reichel <sre@kernel.org> 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadotdescription: |+ 13c66ec88fSEmmanuel Vadot This is a generic reset driver using syscon to map the reset register. 14c66ec88fSEmmanuel Vadot The reset is generally performed with a write to the reset register 15c66ec88fSEmmanuel Vadot defined by the SYSCON register map base plus the offset with the value and 16c66ec88fSEmmanuel Vadot mask defined in the reboot node. Default will be little endian mode, 32 bit 17c66ec88fSEmmanuel Vadot access only. The SYSCON registers map is normally retrieved from the 18c66ec88fSEmmanuel Vadot parental dt-node. So the SYSCON reboot node should be represented as a 19c66ec88fSEmmanuel Vadot sub-node of a "syscon", "simple-mfd" node. Though the regmap property 20c66ec88fSEmmanuel Vadot pointing to the system controller node is also supported. 21c66ec88fSEmmanuel Vadot 22c66ec88fSEmmanuel Vadotproperties: 23c66ec88fSEmmanuel Vadot compatible: 24c66ec88fSEmmanuel Vadot const: syscon-reboot 25c66ec88fSEmmanuel Vadot 26c66ec88fSEmmanuel Vadot mask: 27c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 28c66ec88fSEmmanuel Vadot description: Update only the register bits defined by the mask (32 bit). 29c66ec88fSEmmanuel Vadot 30c66ec88fSEmmanuel Vadot offset: 31c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 32c66ec88fSEmmanuel Vadot description: Offset in the register map for the reboot register (in bytes). 33c66ec88fSEmmanuel Vadot 34c66ec88fSEmmanuel Vadot regmap: 35c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/phandle 36c66ec88fSEmmanuel Vadot deprecated: true 37c66ec88fSEmmanuel Vadot description: | 38c66ec88fSEmmanuel Vadot Phandle to the register map node. This property is deprecated in favor of 39c66ec88fSEmmanuel Vadot the syscon-reboot node been a child of a system controller node. 40c66ec88fSEmmanuel Vadot 41c66ec88fSEmmanuel Vadot value: 42c66ec88fSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 43c66ec88fSEmmanuel Vadot description: The reset value written to the reboot register (32 bit access). 44c66ec88fSEmmanuel Vadot 45*cb7aa33aSEmmanuel Vadot priority: 46*cb7aa33aSEmmanuel Vadot default: 192 47*cb7aa33aSEmmanuel Vadot 48c66ec88fSEmmanuel Vadotrequired: 49c66ec88fSEmmanuel Vadot - compatible 50c66ec88fSEmmanuel Vadot - offset 51c66ec88fSEmmanuel Vadot 52c66ec88fSEmmanuel VadotadditionalProperties: false 53c66ec88fSEmmanuel Vadot 54c66ec88fSEmmanuel VadotallOf: 55*cb7aa33aSEmmanuel Vadot - $ref: restart-handler.yaml# 56c66ec88fSEmmanuel Vadot - if: 57c66ec88fSEmmanuel Vadot not: 58c66ec88fSEmmanuel Vadot required: 59c66ec88fSEmmanuel Vadot - mask 60c66ec88fSEmmanuel Vadot then: 61c66ec88fSEmmanuel Vadot required: 62c66ec88fSEmmanuel Vadot - value 63c66ec88fSEmmanuel Vadot 64c66ec88fSEmmanuel Vadotexamples: 65c66ec88fSEmmanuel Vadot - | 66c66ec88fSEmmanuel Vadot reboot { 67c66ec88fSEmmanuel Vadot compatible = "syscon-reboot"; 68c66ec88fSEmmanuel Vadot regmap = <®mapnode>; 69c66ec88fSEmmanuel Vadot offset = <0x0>; 70c66ec88fSEmmanuel Vadot mask = <0x1>; 71c66ec88fSEmmanuel Vadot }; 72