devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/2] arm: qcom: mdm9615: first round of bindings and DT fixes
@ 2022-11-08 12:02 Neil Armstrong
  2022-11-08 12:02 ` [PATCH v5 1/2] dt-bindings: rtc: qcom-pm8xxx: document qcom,pm8921-rtc as fallback of qcom,pm8018-rtc Neil Armstrong
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Neil Armstrong @ 2022-11-08 12:02 UTC (permalink / raw)
  To: Rob Herring, Alexandre Belloni, Krzysztof Kozlowski,
	Konrad Dybcio, Alessandro Zummo, Satya Priya, Bjorn Andersson,
	Andy Gross
  Cc: Neil Armstrong, devicetree, linux-kernel, linux-rtc,
	Krzysztof Kozlowski, linux-arm-msm

This is a first round of trivial bindings & DT fixes for the MDM9615 platform.

This first round focuses on trivial changes, the remaining work will
mainly be .txt to .yaml transition of old qcom pmic & co device bindings.

To: Andy Gross <agross@kernel.org>
To: Bjorn Andersson <andersson@kernel.org>
To: Konrad Dybcio <konrad.dybcio@somainline.org>
To: Alessandro Zummo <a.zummo@towertech.it>
To: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: Rob Herring <robh+dt@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>
To: Satya Priya <quic_c_skakit@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: linux-rtc@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Dependencies: None
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
Changes in v5:
- Removed applied patches
- Link to v4: https://lore.kernel.org/r/20220928-mdm9615-dt-schema-fixes-v4-0-dac2dfaac703@linaro.org

Changes in v4:
- patch 1: None
- patch 2: None
- patch 3: None
- patch 4: None
- patch 5: Added reviewed-by tag
- patch 6: Fix descriptions, Added reviewed-by tags
- patch 7: None
- patch 8: None
- patch 9: Added acked-by tag
- patch 10: None
- patch 11: None
- Link to v3: https://lore.kernel.org/r/20220928-mdm9615-dt-schema-fixes-v3-0-531da552c354@linaro.org

Changes in v3:
- Rebased on v6.1-rc1
- patch 1: Added reviewed-by tag
- patch 2: Fixes typo in commit msg and added precision about why MIT was selected
- patch 3: Added reviewed-by tag
- patch 4: None
- patch 5: Drop second example node
- patch 6: Drop Andy, fix interrupts desc and fix example indentation
- patch 7: Fix commit msg wrap & add reviewed-by tag
- patch 8: Reword commit msg & add reviewed-by tag
- patch 9: Reword commit msg & add reviewed-by tag
- patch 10: None
- patch 11: Added reviewed-by tag
- Link to v2: https://lore.kernel.org/r/20220928-mdm9615-dt-schema-fixes-v2-0-87fbeb4ae053@linaro.org

Changes in v2:
- patch 1: switch to move from swir.txt to qcom.yaml
- patch 2: use MIT licence instead of X11 licence
- patch 3: move reg after compatible
- patch 4: added Krzysztof's review
- patch 5: split into 5 changes:
  - document qcom,pm8921 as fallback of qcom,pm8018
  - convert qcom,pm8921-pwrkey to dt-schema
  - document qcom,pm8921-rtc as fallback of qcom,pm8018-rtc
  - drop unused PM8018 compatible
  - drop unused pm8018 RTC compatible
- patch 6: None
- patch 7: Reworded commit log based on Dmitry's wording on similar patches
- Link to v1: https://lore.kernel.org/r/20220928-mdm9615-dt-schema-fixes-v1-0-b6e63a7df1e8@linaro.org

---
Neil Armstrong (2):
      dt-bindings: rtc: qcom-pm8xxx: document qcom,pm8921-rtc as fallback of qcom,pm8018-rtc
      rtc: pm8xxx: drop unused pm8018 compatible

 .../devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml         | 16 ++++++++++------
 drivers/rtc/rtc-pm8xxx.c                                 |  1 -
 2 files changed, 10 insertions(+), 7 deletions(-)
---
base-commit: 9abf2313adc1ca1b6180c508c25f22f9395cc780
change-id: 20220928-mdm9615-dt-schema-fixes-66d4d0ccb7c7

Best regards,
-- 
Neil Armstrong <neil.armstrong@linaro.org>

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

* [PATCH v5 1/2] dt-bindings: rtc: qcom-pm8xxx: document qcom,pm8921-rtc as fallback of qcom,pm8018-rtc
  2022-11-08 12:02 [PATCH v5 0/2] arm: qcom: mdm9615: first round of bindings and DT fixes Neil Armstrong
@ 2022-11-08 12:02 ` Neil Armstrong
  2022-11-08 12:02 ` [PATCH v5 2/2] rtc: pm8xxx: drop unused pm8018 compatible Neil Armstrong
  2022-11-14 17:55 ` [PATCH v5 0/2] arm: qcom: mdm9615: first round of bindings and DT fixes Alexandre Belloni
  2 siblings, 0 replies; 4+ messages in thread
From: Neil Armstrong @ 2022-11-08 12:02 UTC (permalink / raw)
  To: Rob Herring, Alexandre Belloni, Krzysztof Kozlowski,
	Konrad Dybcio, Alessandro Zummo, Satya Priya, Bjorn Andersson,
	Andy Gross
  Cc: Neil Armstrong, devicetree, linux-kernel, linux-rtc,
	Krzysztof Kozlowski, linux-arm-msm

The PM8018 RTC is used as compatible with PM8921 RTC on the MDM9615,
document this situation.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
 .../devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml         | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml b/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml
index 23ab5bb4f395..0a7aa29563c1 100644
--- a/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml
+++ b/Documentation/devicetree/bindings/rtc/qcom-pm8xxx-rtc.yaml
@@ -11,12 +11,16 @@ maintainers:
 
 properties:
   compatible:
-    enum:
-      - qcom,pm8058-rtc
-      - qcom,pm8921-rtc
-      - qcom,pm8941-rtc
-      - qcom,pm8018-rtc
-      - qcom,pmk8350-rtc
+    oneOf:
+      - enum:
+          - qcom,pm8058-rtc
+          - qcom,pm8921-rtc
+          - qcom,pm8941-rtc
+          - qcom,pmk8350-rtc
+      - items:
+          - enum:
+              - qcom,pm8018-rtc
+          - const: qcom,pm8921-rtc
 
   reg:
     minItems: 1

-- 
b4 0.10.1

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

* [PATCH v5 2/2] rtc: pm8xxx: drop unused pm8018 compatible
  2022-11-08 12:02 [PATCH v5 0/2] arm: qcom: mdm9615: first round of bindings and DT fixes Neil Armstrong
  2022-11-08 12:02 ` [PATCH v5 1/2] dt-bindings: rtc: qcom-pm8xxx: document qcom,pm8921-rtc as fallback of qcom,pm8018-rtc Neil Armstrong
@ 2022-11-08 12:02 ` Neil Armstrong
  2022-11-14 17:55 ` [PATCH v5 0/2] arm: qcom: mdm9615: first round of bindings and DT fixes Alexandre Belloni
  2 siblings, 0 replies; 4+ messages in thread
From: Neil Armstrong @ 2022-11-08 12:02 UTC (permalink / raw)
  To: Rob Herring, Alexandre Belloni, Krzysztof Kozlowski,
	Konrad Dybcio, Alessandro Zummo, Satya Priya, Bjorn Andersson,
	Andy Gross
  Cc: Neil Armstrong, devicetree, linux-kernel, linux-rtc,
	Krzysztof Kozlowski, linux-arm-msm

The PM8018 compatible is always used with PM8921 fallback, so PM8018
compatible can be safely removed from device ID table

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
---
 drivers/rtc/rtc-pm8xxx.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c
index dc6d1476baa5..716e5d9ad74d 100644
--- a/drivers/rtc/rtc-pm8xxx.c
+++ b/drivers/rtc/rtc-pm8xxx.c
@@ -461,7 +461,6 @@ static const struct pm8xxx_rtc_regs pmk8350_regs = {
  */
 static const struct of_device_id pm8xxx_id_table[] = {
 	{ .compatible = "qcom,pm8921-rtc", .data = &pm8921_regs },
-	{ .compatible = "qcom,pm8018-rtc", .data = &pm8921_regs },
 	{ .compatible = "qcom,pm8058-rtc", .data = &pm8058_regs },
 	{ .compatible = "qcom,pm8941-rtc", .data = &pm8941_regs },
 	{ .compatible = "qcom,pmk8350-rtc", .data = &pmk8350_regs },

-- 
b4 0.10.1

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

* Re: [PATCH v5 0/2] arm: qcom: mdm9615: first round of bindings and DT fixes
  2022-11-08 12:02 [PATCH v5 0/2] arm: qcom: mdm9615: first round of bindings and DT fixes Neil Armstrong
  2022-11-08 12:02 ` [PATCH v5 1/2] dt-bindings: rtc: qcom-pm8xxx: document qcom,pm8921-rtc as fallback of qcom,pm8018-rtc Neil Armstrong
  2022-11-08 12:02 ` [PATCH v5 2/2] rtc: pm8xxx: drop unused pm8018 compatible Neil Armstrong
@ 2022-11-14 17:55 ` Alexandre Belloni
  2 siblings, 0 replies; 4+ messages in thread
From: Alexandre Belloni @ 2022-11-14 17:55 UTC (permalink / raw)
  To: Rob Herring, Konrad Dybcio, Krzysztof Kozlowski, Alessandro Zummo,
	Bjorn Andersson, Satya Priya, Neil Armstrong, Andy Gross
  Cc: linux-rtc, linux-arm-msm, Krzysztof Kozlowski, devicetree,
	linux-kernel

On Tue, 08 Nov 2022 13:02:52 +0100, Neil Armstrong wrote:
> This is a first round of trivial bindings & DT fixes for the MDM9615 platform.
> 
> This first round focuses on trivial changes, the remaining work will
> mainly be .txt to .yaml transition of old qcom pmic & co device bindings.
> 
> 

Applied, thanks!

[1/2] dt-bindings: rtc: qcom-pm8xxx: document qcom,pm8921-rtc as fallback of qcom,pm8018-rtc
      commit: 44b4bf1c7d8ffc398c69bbbb86e058d57f515563
[2/2] rtc: pm8xxx: drop unused pm8018 compatible
      commit: 56da3826fd9fcafc79b83d03922924fc2118a49c

Best regards,

-- 
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

end of thread, other threads:[~2022-11-14 17:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-08 12:02 [PATCH v5 0/2] arm: qcom: mdm9615: first round of bindings and DT fixes Neil Armstrong
2022-11-08 12:02 ` [PATCH v5 1/2] dt-bindings: rtc: qcom-pm8xxx: document qcom,pm8921-rtc as fallback of qcom,pm8018-rtc Neil Armstrong
2022-11-08 12:02 ` [PATCH v5 2/2] rtc: pm8xxx: drop unused pm8018 compatible Neil Armstrong
2022-11-14 17:55 ` [PATCH v5 0/2] arm: qcom: mdm9615: first round of bindings and DT fixes Alexandre Belloni

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