clocksource: sp804: add support for Hisilicon sp804 timer
Subsystems (2)
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
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
@@ -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
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.
Signed-off-by Zhen Lei <[email protected]>--- Documentation/devicetree/bindings/timer/arm,sp804.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
Applied, thanks!