linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] clocksource: sp804: add support for Hisilicon sp804 timer
@ 2020-09-19 12:44 Zhen Lei
  2020-09-19 12:44 ` [PATCH 1/1] dt-bindings: " Zhen Lei
  0 siblings, 1 reply; 3+ messages in thread
From: Zhen Lei @ 2020-09-19 12:44 UTC (permalink / raw)
  To: devicetree, Daniel Lezcano, Thomas Gleixner, Haojian Zhuang,
	Andrew Morton, Russell King, Catalin Marinas, linux-arm-kernel,
	linux-kernel
  Cc: Zhen Lei, Libin, Kefeng Wang

This patch is one of the series:
https://patchwork.ozlabs.org/project/devicetree-bindings/cover/20200918132237.3552-1-thunder.leizhen@huawei.com/

All are applied by Daniel Lezcano, except this one.

This patch is come from:
https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20200918132237.3552-10-thunder.leizhen@huawei.com/

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(-)

-- 
1.8.3



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] dt-bindings: sp804: add support for Hisilicon sp804 timer
  2020-09-19 12:44 [PATCH 0/1] clocksource: sp804: add support for Hisilicon sp804 timer Zhen Lei
@ 2020-09-19 12:44 ` Zhen Lei
  2020-09-23 21:00   ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Zhen Lei @ 2020-09-19 12:44 UTC (permalink / raw)
  To: devicetree, Daniel Lezcano, Thomas Gleixner, Haojian Zhuang,
	Andrew Morton, Russell King, Catalin Marinas, linux-arm-kernel,
	linux-kernel
  Cc: Zhen Lei, Libin, Kefeng Wang

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

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
 Documentation/devicetree/bindings/timer/arm,sp804.yaml | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/timer/arm,sp804.yaml b/Documentation/devicetree/bindings/timer/arm,sp804.yaml
index ba0945cf799ee0b..e35d3053250a557 100644
--- a/Documentation/devicetree/bindings/timer/arm,sp804.yaml
+++ b/Documentation/devicetree/bindings/timer/arm,sp804.yaml
@@ -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:
-- 
1.8.3



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] dt-bindings: sp804: add support for Hisilicon sp804 timer
  2020-09-19 12:44 ` [PATCH 1/1] dt-bindings: " Zhen Lei
@ 2020-09-23 21:00   ` Rob Herring
  0 siblings, 0 replies; 3+ messages in thread
From: Rob Herring @ 2020-09-23 21:00 UTC (permalink / raw)
  To: Zhen Lei
  Cc: linux-arm-kernel, Thomas Gleixner, Andrew Morton, linux-kernel,
	Catalin Marinas, Kefeng Wang, Haojian Zhuang, devicetree,
	Daniel Lezcano, Russell King, Libin

On Sat, 19 Sep 2020 20:44:12 +0800, Zhen Lei wrote:
> Some Hisilicon SoCs, such as Hi1212, use the Hisilicon extended sp804
> timer.
> 
> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
> ---
>  Documentation/devicetree/bindings/timer/arm,sp804.yaml | 11 +++++++++--
>  1 file changed, 9 insertions(+), 2 deletions(-)
> 

Applied, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-09-23 21:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-19 12:44 [PATCH 0/1] clocksource: sp804: add support for Hisilicon sp804 timer Zhen Lei
2020-09-19 12:44 ` [PATCH 1/1] dt-bindings: " Zhen Lei
2020-09-23 21:00   ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).