Skip to contentSkip to conversation

dt-bindings: timer: add Broadcom's BCMBCA timers

PATCH Superseded Rafał Miłecki 2 participants 2 messages Oct 28, 2022

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: timer: add Broadcom's BCMBCA timers

From: Rafał Miłecki <[email protected]>

BCA is a big set / family of Broadcom devices sharing multiple hardware blocks. One of them is timer that actually exists in two versions. It's a part of TWD MFD block.

Add binding for it so SoCs can be properly described. Linux (and probably any other OS) doesn't really seem to need a driver for it. it may be needed for bootloaders (e.g., U-Boot) though. Especially for SoCs with CPUs other than Cortex-A9 (which contains arch timers).

---
 .../devicetree/bindings/mfd/brcm,twd.yaml     |  8 ++++
 .../bindings/timer/brcm,bcmbca-timer.yaml     | 45 +++++++++++++++++++
 2 files changed, 53 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/timer/brcm,bcmbca-timer.yaml
Documentation/devicetree/bindings/mfd/brcm,twd.yaml +8 -0
index 634526f790b8..e5136a37b0a3 100644
@@ -36,6 +36,9 @@ properties:
     const: 1
 
 patternProperties:
+  '^timer@[a-f0-9]+$':
+    $ref: /schemas/timer/brcm,bcmbca-timer.yaml
+
   '^watchdog@[a-f0-9]+$':
     $ref: /schemas/watchdog/brcm,bcm7038-wdt.yaml
 
@@ -54,6 +57,11 @@ examples:
         #address-cells = <1>;
         #size-cells = <1>;
 
+        timer@0 {
+            compatible = "brcm,bcm63138-timer";
+            reg = <0x0 0x28>;
+        };
+
         watchdog@28 {
             compatible = "brcm,bcm7038-wdt";
             reg = <0x28 0x8>;
Documentation/devicetree/bindings/timer/brcm,bcmbca-timer.yaml new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
2.34.1
#1 lore raw
Quoted 9 lines · Rafał Miłecki

From: Rafał Miłecki <[email protected]>

BCA is a big set / family of Broadcom devices sharing multiple hardware blocks. One of them is timer that actually exists in two versions. It's a part of TWD MFD block.

Add binding for it so SoCs can be properly described. Linux (and probably any other OS) doesn't really seem to need a driver for it. it may be needed for bootloaders (e.g., U-Boot) though. Especially for SoCs

Drop ',' after e.g.

Quoted 6 lines

with CPUs other than Cortex-A9 (which contains arch timers).

Documentation/devicetree/bindings/timer/brcm,bcmbca-timer.yaml new file +2 -0
+
+examples:

Documentation/devicetree/bindings/timer/brcm,bcmbca-timer.yaml line 45

Quoted 10 lines
Documentation/devicetree/bindings/timer/brcm,bcmbca-timer.yaml new file +10 -0
+  - |
+    timer@fffe0200 {
+      compatible = "brcm,bcm6345-timer";
+      reg = <0xfffe0200 0x1c>;
+    };
+  - |
+    timer@fffe8080 {
+      compatible = "brcm,bcm63138-timer";
+      reg = <0xfffe8080 0x28>;
+    };

You do not need two examples, they are the same.

Best regards,
Krzysztof