OSDN Git Service

dt-bindings: sp804: add support for Hisilicon sp804 timer
authorZhen Lei <thunder.leizhen@huawei.com>
Sat, 19 Sep 2020 12:44:12 +0000 (20:44 +0800)
committerRob Herring <robh@kernel.org>
Wed, 23 Sep 2020 21:00:57 +0000 (15:00 -0600)
Some Hisilicon SoCs, such as Hi1212, use the Hisilicon extended sp804
timer.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20200919124412.4135-2-thunder.leizhen@huawei.com
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/timer/arm,sp804.yaml

index ba0945c..e35d305 100644 (file)
@@ -15,19 +15,26 @@ description: |+
   free-running mode. The input clock is shared, but can be gated and prescaled
   independently for each timer.
 
+  There is a viriant of Arm SP804: Hisilicon 64-bit SP804 timer. Some Hisilicon
+  SoCs, such as Hi1212, should use the dedicated compatible: "hisilicon,sp804".
+
 # Need a custom select here or 'arm,primecell' will match on lots of nodes
 select:
   properties:
     compatible:
       contains:
-        const: arm,sp804
+        oneOf:
+          - const: arm,sp804
+          - const: hisilicon,sp804
   required:
     - compatible
 
 properties:
   compatible:
     items:
-      - const: arm,sp804
+      - enum:
+        - arm,sp804
+        - hisilicon,sp804
       - const: arm,primecell
 
   interrupts: