Skip to contentSkip to conversation

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

PATCH Applied David Heidelberg 3 participants 6 messages Dec 13, 2021 – Jan 5, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: rtc: qcom-pm8xxx-rtc: update register numbers

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

---
 .../devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml         | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml +8 -1
index 4fba6dba16f3..6fa7d9fc2dc7 100644
@@ -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
Signature · 1 line
2.33.0
maintainer
#1 lore raw
Quoted 8 lines · David Heidelberg

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

Quoted 5 lines
---
 .../devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml         | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Running 'make dtbs_check' with the schema in this patch gives the following warnings. Consider if they are expected or the schema is incorrect. These may not be new warnings.

Note that it is not yet a requirement to have 0 warnings for dtbs_check. This will change in the future.

Full log is available here: https://patchwork.ozlabs.org/patch/1567467

rtc@11d: compatible: Additional items are not allowed ('qcom,pm8921-rtc' was unexpected)

	arch/arm/boot/dts/qcom-mdm9615-wp8548-mangoh-green.dt.yaml

rtc@11d: compatible: ['qcom,pm8018-rtc', 'qcom,pm8921-rtc'] is too long

	arch/arm/boot/dts/qcom-mdm9615-wp8548-mangoh-green.dt.yaml
#2 lore raw
Quoted 28 lines · Rob Herring
Quoted 13 lines · David Heidelberg

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

Quoted 6 lines

---

  .../devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml         | 9 
++++++++-
  1 file changed, 8 insertions(+), 1 deletion(-)

Running 'make dtbs_check' with the schema in this patch gives the following warnings. Consider if they are expected or the schema is incorrect. These may not be new warnings.

Note that it is not yet a requirement to have 0 warnings for dtbs_check. This will change in the future.

Quoted 8 lines

Full log is available here: https://patchwork.ozlabs.org/patch/1567467

rtc@11d: compatible: Additional items are not allowed ('qcom,pm8921-rtc' was unexpected)

	arch/arm/boot/dts/qcom-mdm9615-wp8548-mangoh-green.dt.yaml

rtc@11d: compatible: ['qcom,pm8018-rtc', 'qcom,pm8921-rtc'] is too long

	arch/arm/boot/dts/qcom-mdm9615-wp8548-mangoh-green.dt.yaml

Would you consider safe, if I sent patch to remove redundant qcom,pm8921-rtc from arch/arm/boot/dts/qcom-mdm9615.dtsi?

David

maintainer
#3 lore raw
Quoted 39 lines · David Heidelberg
Quoted 35 lines · Rob Herring
Quoted 13 lines · David Heidelberg

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

Quoted 6 lines

---

  .../devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml         | 9
++++++++-
  1 file changed, 8 insertions(+), 1 deletion(-)

Running 'make dtbs_check' with the schema in this patch gives the following warnings. Consider if they are expected or the schema is incorrect. These may not be new warnings.

Note that it is not yet a requirement to have 0 warnings for dtbs_check. This will change in the future.

Full log is available here: https://patchwork.ozlabs.org/patch/1567467

rtc@11d: compatible: Additional items are not allowed ('qcom,pm8921-rtc' was unexpected)

	arch/arm/boot/dts/qcom-mdm9615-wp8548-mangoh-green.dt.yaml
Quoted 6 lines
Quoted 2 lines

rtc@11d: compatible: ['qcom,pm8018-rtc', 'qcom,pm8921-rtc'] is too long

	arch/arm/boot/dts/qcom-mdm9615-wp8548-mangoh-green.dt.yaml

Would you consider safe, if I sent patch to remove redundant qcom,pm8921-rtc from arch/arm/boot/dts/qcom-mdm9615.dtsi?

I don't know. Depends if anything uses that and doesn't know about 'qcom,pm8018-rtc'.

Rob

maintainer Reviewed-by on v1 1/1
#4 lore raw
In reply to David Heidelberg
Quoted 8 lines · David Heidelberg

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

Quoted 5 lines
---
 .../devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml         | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
maintainer Applied
#5 lore raw
In reply to David Heidelberg
Quoted 9 lines · David Heidelberg

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,

Signature · 1 line
Alexandre Belloni <[email protected]>