brintos

brintos / linux-shallow public Read only

0
0
Text · 1.4 KiB · b6acff1 Raw
54 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only2%YAML 1.23---4$id: http://devicetree.org/schemas/power/reset/syscon-reboot-mode.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Generic SYSCON reboot mode driver8 9maintainers:10  - Sebastian Reichel <sre@kernel.org>11 12description: |13  This driver gets reboot mode magic value from reboot-mode driver14  and stores it in a SYSCON mapped register. Then the bootloader15  can read it and take different action according to the magic16  value stored. The SYSCON mapped register is retrieved from the17  parental dt-node plus the offset. So the SYSCON reboot-mode node18  should be represented as a sub-node of a "syscon", "simple-mfd" node.19 20properties:21  compatible:22    const: syscon-reboot-mode23 24  mask:25    $ref: /schemas/types.yaml#/definitions/uint3226    description: Update only the register bits defined by the mask (32 bit)27 28  offset:29    $ref: /schemas/types.yaml#/definitions/uint3230    description: Offset in the register map for the mode register (in bytes)31 32allOf:33  - $ref: reboot-mode.yaml#34 35unevaluatedProperties: false36 37required:38  - compatible39  - offset40 41examples:42  - |43    #include <dt-bindings/soc/rockchip,boot-mode.h>44 45    reboot-mode {46      compatible = "syscon-reboot-mode";47      offset = <0x40>;48      mode-normal = <BOOT_NORMAL>;49      mode-recovery = <BOOT_RECOVERY>;50      mode-bootloader = <BOOT_FASTBOOT>;51      mode-loader = <BOOT_BL_DOWNLOAD>;52    };53...54