lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230619215325.5wbjnbvq4aw2nquj@mercury.elektranox.org>
Date:   Mon, 19 Jun 2023 23:53:25 +0200
From:   Sebastian Reichel <sebastian.reichel@...labora.com>
To:     Claudiu Beznea <claudiu.beznea@...rochip.com>
Cc:     robh+dt@...nel.org, krzysztof.kozlowski+dt@...aro.org,
        nicolas.ferre@...rochip.com, alexandre.belloni@...tlin.com,
        conor+dt@...nel.org, devicetree@...r.kernel.org,
        linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
        linux-pm@...r.kernel.org, Conor Dooley <conor.dooley@...rochip.com>
Subject: Re: [PATCH v3 2/4] dt-bindings: power: reset:
 atmel,at91sam9260-shdwc: convert to yaml

Hi,

On Fri, Jun 16, 2023 at 01:16:44PM +0300, Claudiu Beznea wrote:
> Convert Microchip AT91 shutdown controller to YAML.
> 
> Signed-off-by: Claudiu Beznea <claudiu.beznea@...rochip.com>
> Reviewed-by: Conor Dooley <conor.dooley@...rochip.com>
> Acked-by: Nicolas Ferre <nicolas.ferre@...rochip.com>
> ---

Thanks, queued.

-- Sebastian

>  .../devicetree/bindings/arm/atmel-sysregs.txt | 31 -------
>  .../power/reset/atmel,at91sam9260-shdwc.yaml  | 82 +++++++++++++++++++
>  2 files changed, 82 insertions(+), 31 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/power/reset/atmel,at91sam9260-shdwc.yaml
> 
> diff --git a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt b/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
> index ab1b352344ae..e6b2fb291b45 100644
> --- a/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
> +++ b/Documentation/devicetree/bindings/arm/atmel-sysregs.txt
> @@ -52,37 +52,6 @@ Example:
>  		reg = <0xe3804000 0x1000>;
>  };
>  
> -SHDWC Shutdown Controller
> -
> -required properties:
> -- compatible: Should be "atmel,<chip>-shdwc".
> -  <chip> can be "at91sam9260", "at91sam9rl" or "at91sam9x5".
> -- reg: Should contain registers location and length
> -- clocks: phandle to input clock.
> -
> -optional properties:
> -- atmel,wakeup-mode: String, operation mode of the wakeup mode.
> -  Supported values are: "none", "high", "low", "any".
> -- atmel,wakeup-counter: Counter on Wake-up 0 (between 0x0 and 0xf).
> -
> -optional at91sam9260 properties:
> -- atmel,wakeup-rtt-timer: boolean to enable Real-time Timer Wake-up.
> -
> -optional at91sam9rl properties:
> -- atmel,wakeup-rtc-timer: boolean to enable Real-time Clock Wake-up.
> -- atmel,wakeup-rtt-timer: boolean to enable Real-time Timer Wake-up.
> -
> -optional at91sam9x5 properties:
> -- atmel,wakeup-rtc-timer: boolean to enable Real-time Clock Wake-up.
> -
> -Example:
> -
> -	shdwc@...ffd10 {
> -		compatible = "atmel,at91sam9260-shdwc";
> -		reg = <0xfffffd10 0x10>;
> -		clocks = <&clk32k>;
> -	};
> -
>  SHDWC SAMA5D2-Compatible Shutdown Controller
>  
>  1) shdwc node
> diff --git a/Documentation/devicetree/bindings/power/reset/atmel,at91sam9260-shdwc.yaml b/Documentation/devicetree/bindings/power/reset/atmel,at91sam9260-shdwc.yaml
> new file mode 100644
> index 000000000000..f559a2cfd82e
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/power/reset/atmel,at91sam9260-shdwc.yaml
> @@ -0,0 +1,82 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/power/reset/atmel,at91sam9260-shdwc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Microchip AT91 SHDWC Shutdown Controller
> +
> +maintainers:
> +  - Claudiu Beznea <claudiu.beznea@...rochip.com>
> +
> +description: |
> +  Microchip AT91 SHDWC shutdown controller controls the power supplies VDDIO
> +  and VDDCORE and the wake-up detection on debounced input lines.
> +
> +properties:
> +  compatible:
> +    enum:
> +      - atmel,at91sam9260-shdwc
> +      - atmel,at91sam9rl-shdwc
> +      - atmel,at91sam9x5-shdwc
> +
> +  reg:
> +    maxItems: 1
> +
> +  clocks:
> +    maxItems: 1
> +
> +  atmel,wakeup-mode:
> +    description: operation mode of the wakeup mode
> +    $ref: /schemas/types.yaml#/definitions/string
> +    enum: [ none, high, low, any ]
> +
> +  atmel,wakeup-counter:
> +    description: counter on wake-up 0
> +    $ref: /schemas/types.yaml#/definitions/uint32
> +    minimum: 0
> +    maximum: 15
> +
> +  atmel,wakeup-rtt-timer:
> +    description: enable real-time timer wake-up
> +    type: boolean
> +
> +  atmel,wakeup-rtc-timer:
> +    description: enable real-time clock wake-up
> +    type: boolean
> +
> +required:
> +  - compatible
> +  - reg
> +  - clocks
> +
> +allOf:
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: atmel,at91sam9x5-shdwc
> +    then:
> +      properties:
> +        atmel,wakeup-rtt-timer: false
> +
> +  - if:
> +      properties:
> +        compatible:
> +          contains:
> +            const: atmel,at91sam9260-shdwc
> +    then:
> +      properties:
> +        atmel,wakeup-rtc-timer: false
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    shdwc: poweroff@...ffd10 {
> +        compatible = "atmel,at91sam9260-shdwc";
> +        reg = <0xfffffd10 0x10>;
> +        clocks = <&clk32k>;
> +    };
> +
> +...
> -- 
> 2.34.1
> 

Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ