Skip to contentSkip to conversation

clocksource: sp804: add support for Hisilicon sp804 timer

PATCH Applied Zhen Lei 2 participants 3 messages Sep 19, 2020 – Sep 23, 2020

Subsystems (2)
lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

cover clocksource: sp804: add support for Hisilicon sp804 timer

This patch is one of the series:
https://patchwork.ozlabs.org/project/devicetree-bindings/cover/[email protected]/

All are applied by Daniel Lezcano, except this one.

This patch is come from:
https://patchwork.ozlabs.org/project/devicetree-bindings/patch/[email protected]/

But one modification was added:
1. "arm,sp804.yaml" contains "select" property, it requires compatible must contain "arm,sp804", so the nodes with compatible "hisilicon,sp804" are skipped and are not checked by "arm,sp804.yaml". Add "oneOf" into "select" to require one of them.

select:
properties:
compatible:
contains:
- const: arm,sp804
+ oneOf:
+ - const: arm,sp804
+ - const: hisilicon,sp804
required:
- compatible

Zhen Lei (1):
dt-bindings: sp804: add support for Hisilicon sp804 timer

 Documentation/devicetree/bindings/timer/arm,sp804.yaml | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
Signature · 1 line
1.8.3
author
#1 lore raw

PATCH 1/1 dt-bindings: sp804: add support for Hisilicon sp804 timer

Some Hisilicon SoCs, such as Hi1212, use the Hisilicon extended sp804 timer.

---
 Documentation/devicetree/bindings/timer/arm,sp804.yaml | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/timer/arm,sp804.yaml +9 -2
index ba0945cf799ee0b..e35d3053250a557 100644
@@ -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:
Signature · 1 line
1.8.3
maintainer Applied
#2 lore raw

Re: [PATCH 1/1] dt-bindings: sp804: add support for Hisilicon sp804 timer

Quoted 8 lines · Zhen Lei

Some Hisilicon SoCs, such as Hi1212, use the Hisilicon extended sp804 timer.

---
 Documentation/devicetree/bindings/timer/arm,sp804.yaml | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

Applied, thanks!