diff mbox series

[1/2] dt-bindings: watchdog: Add Maxim MAX63xx bindings

Message ID 20210714153314.1004147-1-linus.walleij@linaro.org
State New
Headers show
Series [1/2] dt-bindings: watchdog: Add Maxim MAX63xx bindings | expand

Commit Message

Linus Walleij July 14, 2021, 3:33 p.m. UTC
This adds devicetree bindings for the Maxim MAX63xx watchdog
timers.

Cc: devicetree@vger.kernel.org
Cc: Marc Zyngier <maz@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

---
 .../bindings/watchdog/maxim,max63xx.yaml      | 44 +++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml

-- 
2.31.1

Comments

Rob Herring July 16, 2021, 7:27 p.m. UTC | #1
On Wed, 14 Jul 2021 17:33:13 +0200, Linus Walleij wrote:
> This adds devicetree bindings for the Maxim MAX63xx watchdog

> timers.

> 

> Cc: devicetree@vger.kernel.org

> Cc: Marc Zyngier <maz@kernel.org>

> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

> ---

>  .../bindings/watchdog/maxim,max63xx.yaml      | 44 +++++++++++++++++++

>  1 file changed, 44 insertions(+)

>  create mode 100644 Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml

> 


Reviewed-by: Rob Herring <robh@kernel.org>
Guenter Roeck July 17, 2021, 2:08 p.m. UTC | #2
On Wed, Jul 14, 2021 at 05:33:13PM +0200, Linus Walleij wrote:
> This adds devicetree bindings for the Maxim MAX63xx watchdog

> timers.

> 

> Cc: devicetree@vger.kernel.org

> Cc: Marc Zyngier <maz@kernel.org>

> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>


Reviewed-by: Guenter Roeck <linux@roeck-us.net>


> ---

>  .../bindings/watchdog/maxim,max63xx.yaml      | 44 +++++++++++++++++++

>  1 file changed, 44 insertions(+)

>  create mode 100644 Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml

> 

> diff --git a/Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml b/Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml

> new file mode 100644

> index 000000000000..f2105eedac2c

> --- /dev/null

> +++ b/Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml

> @@ -0,0 +1,44 @@

> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

> +%YAML 1.2

> +---

> +$id: http://devicetree.org/schemas/watchdog/maxim,max63xx.yaml#

> +$schema: http://devicetree.org/meta-schemas/core.yaml#

> +

> +title: Maxim 63xx Watchdog Timers

> +

> +allOf:

> +  - $ref: "watchdog.yaml#"

> +

> +maintainers:

> +  - Marc Zyngier <maz@kernel.org>

> +  - Linus Walleij <linus.walleij@linaro.org>

> +

> +properties:

> +  compatible:

> +    oneOf:

> +      - const: maxim,max6369

> +      - const: maxim,max6370

> +      - const: maxim,max6371

> +      - const: maxim,max6372

> +      - const: maxim,max6373

> +      - const: maxim,max6374

> +

> +  reg:

> +    description: This is a 1-byte memory-mapped address

> +    maxItems: 1

> +

> +required:

> +  - compatible

> +  - reg

> +

> +unevaluatedProperties: false

> +

> +examples:

> +  - |

> +    wdt: watchdog@50000000 {

> +        compatible = "maxim,max6369";

> +        reg = <0x50000000 0x1>;

> +        timeout-sec = <10>;

> +    };

> +

> +...

> -- 

> 2.31.1

>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml b/Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml
new file mode 100644
index 000000000000..f2105eedac2c
--- /dev/null
+++ b/Documentation/devicetree/bindings/watchdog/maxim,max63xx.yaml
@@ -0,0 +1,44 @@ 
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/maxim,max63xx.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Maxim 63xx Watchdog Timers
+
+allOf:
+  - $ref: "watchdog.yaml#"
+
+maintainers:
+  - Marc Zyngier <maz@kernel.org>
+  - Linus Walleij <linus.walleij@linaro.org>
+
+properties:
+  compatible:
+    oneOf:
+      - const: maxim,max6369
+      - const: maxim,max6370
+      - const: maxim,max6371
+      - const: maxim,max6372
+      - const: maxim,max6373
+      - const: maxim,max6374
+
+  reg:
+    description: This is a 1-byte memory-mapped address
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    wdt: watchdog@50000000 {
+        compatible = "maxim,max6369";
+        reg = <0x50000000 0x1>;
+        timeout-sec = <10>;
+    };
+
+...