lkml.org 
[lkml]   [2024]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH v2 2/4] dt-bindings: arm: Document reboot mode magic
    Add bindings to describe vendor-specific reboot modes. Values here
    correspond to valid parameters to vendor-specific reset types in PSCI
    SYSTEM_RESET2 call.

    Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
    ---
    Documentation/devicetree/bindings/arm/psci.yaml | 38 +++++++++++++++++++++++--
    1 file changed, 36 insertions(+), 2 deletions(-)

    diff --git a/Documentation/devicetree/bindings/arm/psci.yaml b/Documentation/devicetree/bindings/arm/psci.yaml
    index cbb012e217ab..ac778274b3ac 100644
    --- a/Documentation/devicetree/bindings/arm/psci.yaml
    +++ b/Documentation/devicetree/bindings/arm/psci.yaml
    @@ -137,8 +137,31 @@ allOf:
    required:
    - cpu_off
    - cpu_on
    -
    -additionalProperties: false
    + - if:
    + properties:
    + compatible:
    + contains:
    + const: arm,psci-1.0
    + then:
    + allOf:
    + - $ref: /schemas/power/reset/reboot-mode.yaml#
    + - properties:
    + # "mode-normal" is just SYSTEM_RESET
    + mode-normal: false
    + - patternProperties:
    + "^mode-.*$":
    + items:
    + maxItems: 2
    + description: |
    + Describes a vendor-specific reset type. The string after "mode-"
    + maps a reboot mode to the parameters in the PSCI SYSTEM_RESET2 call.
    +
    + Parameters are named mode-xxx = <type[, cookie]>, where xxx
    + is the name of the magic reboot mode, type is the lower 31 bits
    + of the reset_type, and, optionally, the cookie value. If the cookie
    + is not provided, it is defaulted to zero.
    +
    +unevaluatedProperties: false

    examples:
    - |+
    @@ -261,4 +284,15 @@ examples:
    domain-idle-states = <&CLUSTER_RET>, <&CLUSTER_PWRDN>;
    };
    };
    +
    + - |+
    +
    + // Case 5: SYSTEM_RESET2 vendor resets
    + psci {
    + compatible = "arm,psci-1.0";
    + method = "smc";
    +
    + mode-edl = <0>;
    + mode-bootloader = <1 2>;
    + };
    ...
    --
    2.34.1


    \
     
     \ /
      Last update: 2024-04-14 21:33    [W:5.830 / U:0.136 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site