diff mbox series

dt-bindings: rtc: qcom-pm8xxx-rtc: update register numbers

Message ID 20211213192946.111320-1-david@ixit.cz
State Accepted
Commit a12ac1f0ffa41b7aab3f69c4aac5bb72369bd117
Headers show
Series dt-bindings: rtc: qcom-pm8xxx-rtc: update register numbers | expand

Commit Message

David Heidelberg Dec. 13, 2021, 7:29 p.m. UTC
Extend registers up to 2, also document their names.

Also fixes warnings generated by `make qcom/sdm845-oneplus-fajita.dtb`:
arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: rtc@6000: reg: [[24576], [24832]] is too long
        From schema: Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml
arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: rtc@6000: 'reg-names' does not match any of the regexes: 'pinctrl-[0-9]+'
        From schema: Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml

Signed-off-by: David Heidelberg <david@ixit.cz>
---
 .../devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml         | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Comments

Alexandre Belloni Jan. 5, 2022, 12:09 a.m. UTC | #1
On Mon, 13 Dec 2021 20:29:45 +0100, David Heidelberg wrote:
> Extend registers up to 2, also document their names.
> 
> Also fixes warnings generated by `make qcom/sdm845-oneplus-fajita.dtb`:
> arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: rtc@6000: reg: [[24576], [24832]] is too long
>         From schema: Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml
> arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: rtc@6000: 'reg-names' does not match any of the regexes: 'pinctrl-[0-9]+'
>         From schema: Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml
> 
> [...]

Applied, thanks!

[1/1] dt-bindings: rtc: qcom-pm8xxx-rtc: update register numbers
      commit: a12ac1f0ffa41b7aab3f69c4aac5bb72369bd117

Best regards,
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml b/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml
index 4fba6dba16f3..6fa7d9fc2dc7 100644
--- a/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml
+++ b/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml
@@ -19,7 +19,14 @@  properties:
       - qcom,pmk8350-rtc
 
   reg:
-    maxItems: 1
+    minItems: 1
+    maxItems: 2
+
+  reg-names:
+    minItems: 1
+    items:
+      - const: rtc
+      - const: alarm
 
   interrupts:
     maxItems: 1