]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dt-bindings: timer: Add SC5xx Timer bindings
authorOliver Gaskell <Oliver.Gaskell@analog.com>
Thu, 12 Sep 2024 15:50:52 +0000 (16:50 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 3 Oct 2024 15:29:22 +0000 (09:29 -0600)
Add devicetree schema for the timer peripheral on Analog Devices SC5xx
series SoCs.

Signed-off-by: Oliver Gaskell <Oliver.Gaskell@analog.com>
MAINTAINERS
doc/device-tree-bindings/timer/adi,sc5xx-gptimer.yaml [new file with mode: 0644]

index c196368a725c4d8add63633b164a54f00fb323e6..0bc7f2f22d465ff87356e8bafd013fa44ca90d28 100644 (file)
@@ -609,6 +609,7 @@ F:  arch/arm/include/asm/arch-adi/
 F:     arch/arm/mach-sc5xx/
 F:     doc/device-tree-bindings/arm/adi/adi,sc5xx.yaml
 F:     doc/device-tree-bindings/clock/adi,sc5xx-clocks.yaml
+F:     doc/device-tree-bindings/timer/adi,sc5xx-gptimer.yaml
 F:     drivers/clk/adi/
 F:     drivers/serial/serial_adi_uart4.c
 F:     drivers/timer/adi_sc5xx_timer.c
diff --git a/doc/device-tree-bindings/timer/adi,sc5xx-gptimer.yaml b/doc/device-tree-bindings/timer/adi,sc5xx-gptimer.yaml
new file mode 100644 (file)
index 0000000..5e313af
--- /dev/null
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: (GPL-2.0+)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/timer/adi,sc5xx-gptimer.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices SC5XX Series SoC Timer Peripherals
+
+maintainers:
+  - Vasileios Bimpikas <vasileios.bimpikas@analog.com>
+  - Utsav Agarwal <utsav.agarwal@analog.com>
+  - Arturs Artamonovs <arturs.artamonovs@analog.com>
+
+properties:
+  compatible:
+    const: adi,sc5xx-gptimer
+
+  reg:
+    minItems: 2
+    maxItems: 2
+
+  clocks:
+    minItems: 1
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - clocks
+
+additionalProperties: false
+
+examples:
+  - |
+    timer0: timer@31018000 {
+      compatible = "adi,sc5xx-gptimer";
+      reg = <0x31018004 0x100>,
+            <0x31018060 0x100>;
+      status = "okay";
+      bootph-all;
+    };
+