The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/power/reset/syscon-reboot-mode.yaml

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 # SPDX-License-Identifier: GPL-2.0-only
    2 %YAML 1.2
    3 ---
    4 $id: http://devicetree.org/schemas/power/reset/syscon-reboot-mode.yaml#
    5 $schema: http://devicetree.org/meta-schemas/core.yaml#
    6 
    7 title: Generic SYSCON reboot mode driver
    8 
    9 maintainers:
   10   - Sebastian Reichel <sre@kernel.org>
   11 
   12 description: |
   13   This driver gets reboot mode magic value from reboot-mode driver
   14   and stores it in a SYSCON mapped register. Then the bootloader
   15   can read it and take different action according to the magic
   16   value stored. The SYSCON mapped register is retrieved from the
   17   parental dt-node plus the offset. So the SYSCON reboot-mode node
   18   should be represented as a sub-node of a "syscon", "simple-mfd" node.
   19 
   20 properties:
   21   compatible:
   22     const: syscon-reboot-mode
   23 
   24   mask:
   25     $ref: /schemas/types.yaml#/definitions/uint32
   26     description: Update only the register bits defined by the mask (32 bit)
   27 
   28   offset:
   29     $ref: /schemas/types.yaml#/definitions/uint32
   30     description: Offset in the register map for the mode register (in bytes)
   31 
   32 patternProperties:
   33   "^mode-.+":
   34     $ref: /schemas/types.yaml#/definitions/uint32
   35     description: Vendor-specific mode value written to the mode register
   36 
   37 additionalProperties: false
   38 
   39 required:
   40   - compatible
   41   - offset
   42 
   43 examples:
   44   - |
   45     #include <dt-bindings/soc/rockchip,boot-mode.h>
   46 
   47     reboot-mode {
   48       compatible = "syscon-reboot-mode";
   49       offset = <0x40>;
   50       mode-normal = <BOOT_NORMAL>;
   51       mode-recovery = <BOOT_RECOVERY>;
   52       mode-bootloader = <BOOT_FASTBOOT>;
   53       mode-loader = <BOOT_BL_DOWNLOAD>;
   54     };
   55 ...

Cache object: 73f92ca3200cf41d6562d3f54087d3cf


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.