[PATCH v2 1/3] dt-bindings: Add compatible for H6 RTC

26 views
Skip to first unread message

meg...@megous.com

unread,
Aug 20, 2019, 11:19:38 AM8/20/19
to Alessandro Zummo, Alexandre Belloni, Rob Herring, Mark Rutland, Maxime Ripard, Chen-Yu Tsai, Ondrej Jirman, linu...@vger.kernel.org, devic...@vger.kernel.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org, linux...@googlegroups.com
From: Ondrej Jirman <meg...@megous.com>

RTC on H6 is similar to the one on H5 SoC, but incompatible in small
details. See the driver for description of differences. For example
H6 RTC needs to enable the external low speed oscillator. Add new
compatible for this RTC.

Signed-off-by: Ondrej Jirman <meg...@megous.com>
---
.../bindings/rtc/allwinner,sun6i-a31-rtc.yaml | 13 +++++++++++++
1 file changed, 13 insertions(+)

diff --git a/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml b/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml
index 924622f39c44..d7a57ec4a640 100644
--- a/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml
+++ b/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml
@@ -25,6 +25,7 @@ properties:
- items:
- const: allwinner,sun50i-a64-rtc
- const: allwinner,sun8i-h3-rtc
+ - const: allwinner,sun50i-h6-rtc

reg:
maxItems: 1
@@ -92,6 +93,18 @@ allOf:
minItems: 3
maxItems: 3

+ - if:
+ properties:
+ compatible:
+ contains:
+ const: allwinner,sun50i-h6-rtc
+
+ then:
+ properties:
+ clock-output-names:
+ minItems: 3
+ maxItems: 3
+
- if:
properties:
compatible:
--
2.22.1

Alexandre Belloni

unread,
Aug 22, 2019, 5:15:52 PM8/22/19
to meg...@megous.com, Alessandro Zummo, Rob Herring, Mark Rutland, Maxime Ripard, Chen-Yu Tsai, linu...@vger.kernel.org, devic...@vger.kernel.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org, linux...@googlegroups.com
On 20/08/2019 17:19:32+0200, meg...@megous.com wrote:
> From: Ondrej Jirman <meg...@megous.com>
>
> RTC on H6 is similar to the one on H5 SoC, but incompatible in small
> details. See the driver for description of differences. For example
> H6 RTC needs to enable the external low speed oscillator. Add new
> compatible for this RTC.
>
> Signed-off-by: Ondrej Jirman <meg...@megous.com>
> ---
> .../bindings/rtc/allwinner,sun6i-a31-rtc.yaml | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
Applied, thanks.

--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Reply all
Reply to author
Forward
0 new messages