Skip to contentSkip to conversation

arm64: dts: qcom: sdm845: add missing power-controller compatible

PATCH Applied David Heidelberg 3 participants 4 messages Dec 20, 2021 – Feb 1, 2022

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

PATCH 1/1 arm64: dts: qcom: sdm845: add missing power-controller compatible

dt-schema expect to have fallback compatible, which is now in-place.

Fixes warning generated by make qcom/sdm845-oneplus-fajita.dtb:
arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: power-controller@c300000: compatible: ['qcom,sdm845-aoss-qmp'] is too short
From schema: Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.yaml

---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sdm845.dtsi +1 -1
index 92ab4513a08b..dbdb4243499c 100644
@@ -4619,7 +4619,7 @@ aoss_reset: reset-controller@c2a0000 {
 		};
 
 		aoss_qmp: power-controller@c300000 {
-			compatible = "qcom,sdm845-aoss-qmp";
+			compatible = "qcom,sdm845-aoss-qmp", "qcom,aoss-qmp";
 			reg = <0 0x0c300000 0 0x100000>;
 			interrupts = <GIC_SPI 389 IRQ_TYPE_EDGE_RISING>;
 			mboxes = <&apss_shared 0>;
Signature · 1 line
2.34.1
#1 lore raw
Quoted 16 lines · David Heidelberg

dt-schema expect to have fallback compatible, which is now in-place.

Fixes warning generated by make qcom/sdm845-oneplus-fajita.dtb:
arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: power-controller@c300000: compatible: ['qcom,sdm845-aoss-qmp'] is too short
From schema: Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.yaml

---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sdm845.dtsi +0 -0
index 92ab4513a08b..dbdb4243499c 100644

arch/arm64/boot/dts/qcom/sdm845.dtsi aoss_reset: reset-controller@c2a0000 { · line 4622

Quoted 5 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +1 -1
@@ -4619,7 +4619,7 @@ aoss_reset: reset-controller@c2a0000 {
 		};
 
 		aoss_qmp: power-controller@c300000 {
-			compatible = "qcom,sdm845-aoss-qmp";
+			compatible = "qcom,sdm845-aoss-qmp", "qcom,aoss-qmp";

"qcom,sdm845-aoss-qmp" compatible is supported by the driver. So ideally we don't need a fallback here.

Is this something for DT backwards compatibility?

Thanks,
Mani

Quoted 6 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +0 -0
 			reg = <0 0x0c300000 0 0x100000>;
 			interrupts = <GIC_SPI 389 IRQ_TYPE_EDGE_RISING>;
 			mboxes = <&apss_shared 0>;
Signature · 1 line
2.34.1
#2 lore raw

It's more about how documentation is written. Documentation expect "specific compatible", "generic compatible" in that order. Of course it can be changed to allow also only specific compatible.

Also this syntax ensure that older kernel (without implemented device compatible/support) will try to work when new dts is used. Kernel can fallback to generic one compatible and code and device will still work, if the driver is generic enough to provide at least some basic support without knowing which exact device is handled.

If I missed some reason to use it, I guess Rob will correct me :)

David

-------- Původní zpráva --------
Odesílatel: Manivannan Sadhasivam <[email protected]>
Odesláno: 21. prosince 2021 6:58:45 UTC
Komu: David Heidelberg <[email protected]>
Kopie: Andy Gross <[email protected]>, Bjorn Andersson <[email protected]>, Rob Herring <[email protected]>, ~okias/[email protected], [email protected], [email protected], [email protected] Předmět: Re: [PATCH] arm64: dts: qcom: sdm845: add missing power-controller compatible

Quoted 16 lines · David Heidelberg

dt-schema expect to have fallback compatible, which is now in-place.

Fixes warning generated by make qcom/sdm845-oneplus-fajita.dtb:
arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: power-controller@c300000: compatible: ['qcom,sdm845-aoss-qmp'] is too short
From schema: Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.yaml

---
 arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sdm845.dtsi +0 -0
index 92ab4513a08b..dbdb4243499c 100644

arch/arm64/boot/dts/qcom/sdm845.dtsi aoss_reset: reset-controller@c2a0000 { · line 4622

Quoted 5 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +1 -1
@@ -4619,7 +4619,7 @@ aoss_reset: reset-controller@c2a0000 {
 		};
 
 		aoss_qmp: power-controller@c300000 {
-			compatible = "qcom,sdm845-aoss-qmp";
+			compatible = "qcom,sdm845-aoss-qmp", "qcom,aoss-qmp";

"qcom,sdm845-aoss-qmp" compatible is supported by the driver. So ideally we don't need a fallback here.

Is this something for DT backwards compatibility?

Thanks,
Mani

Quoted 6 lines
arch/arm64/boot/dts/qcom/sdm845.dtsi +0 -0
 			reg = <0 0x0c300000 0 0x100000>;
 			interrupts = <GIC_SPI 389 IRQ_TYPE_EDGE_RISING>;
 			mboxes = <&apss_shared 0>;
Signature · 1 line
2.34.1
#3 lore raw

Re: (subset) [PATCH] arm64: dts: qcom: sdm845: add missing power-controller compatible

In reply to David Heidelberg
Quoted 8 lines · David Heidelberg

dt-schema expect to have fallback compatible, which is now in-place.

Fixes warning generated by make qcom/sdm845-oneplus-fajita.dtb:
arch/arm64/boot/dts/qcom/sdm845-oneplus-fajita.dt.yaml: power-controller@c300000: compatible: ['qcom,sdm845-aoss-qmp'] is too short
From schema: Documentation/devicetree/bindings/soc/qcom/qcom,aoss-qmp.yaml

[...]

Applied, thanks!

[1/1] arm64: dts: qcom: sdm845: add missing power-controller compatible

      commit: 3b87b01d747386e0429996266c063d7700d9813e

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>