* Fix h616-RTC patches that are breaking builds for armhf * Place fixed patches inline Co-authored-by: Igor Pecovnik <igor.pecovnik@gmail.com>
53 lines
1.6 KiB
Diff
53 lines
1.6 KiB
Diff
From b9dcf9e120fd83c7d4d3bceb45467cc239c8039f Mon Sep 17 00:00:00 2001
|
|
From: Andre Przywara <andre.przywara@arm.com>
|
|
Date: Thu, 10 Dec 2020 22:42:55 +0000
|
|
Subject: [PATCH 18/23] dt-bindings: rtc: sun6i: Add H616 compatible string
|
|
|
|
Add the obvious compatible name to the existing RTC binding.
|
|
The actual RTC part of the device uses a different day/month/year
|
|
storage scheme, so it's not compatible with the previous devices.
|
|
Also the clock part is quite different, as there is no external 32K LOSC
|
|
oscillator input.
|
|
|
|
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
|
|
---
|
|
.../bindings/rtc/allwinner,sun6i-a31-rtc.yaml | 15 +++++++++++++++
|
|
1 file changed, 15 insertions(+)
|
|
|
|
diff --git a/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml b/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml
|
|
index b1b0ee769b71..2c3fd72e17ee 100644
|
|
--- a/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml
|
|
+++ b/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml
|
|
@@ -26,6 +26,7 @@ properties:
|
|
- const: allwinner,sun50i-a64-rtc
|
|
- const: allwinner,sun8i-h3-rtc
|
|
- const: allwinner,sun50i-h6-rtc
|
|
+ - const: allwinner,sun50i-h616-rtc
|
|
|
|
reg:
|
|
maxItems: 1
|
|
@@ -105,6 +106,20 @@ allOf:
|
|
minItems: 3
|
|
maxItems: 3
|
|
|
|
+ - if:
|
|
+ properties:
|
|
+ compatible:
|
|
+ contains:
|
|
+ const: allwinner,sun50i-h616-rtc
|
|
+
|
|
+ then:
|
|
+ properties:
|
|
+ clock-output-names:
|
|
+ minItems: 3
|
|
+ maxItems: 3
|
|
+ clocks:
|
|
+ maxItems: 0
|
|
+
|
|
- if:
|
|
properties:
|
|
compatible:
|
|
--
|
|
2.25.1
|
|
|