Add initial DT support for Qualcomm SPMI PMIC devices
Subsystems (2)
cover Add initial DT support for Qualcomm SPMI PMIC devices
Following set of patches add initial DT support for PMIC devices found on recent Quqalcomm chipsets. Details for SPMI bus and PMIC arbiter could be found here [1].
Regards,
Ivan
[1] http://lwn.net/Articles/564637/
Ivan T. Ivanov (3):
ARM: dts: qcom: Add SPMI PMIC Arbiter nodes for APQ8084 and MSM8974
ARM: dts: qcom: Add 8x74 chipset SPMI PMIC's nodes
ARM: dts: qcom: Add APQ8084 chipset SPMI PMIC's nodes
arch/arm/boot/dts/qcom-apq8074-dragonboard.dts | 2 ++ arch/arm/boot/dts/qcom-apq8084-ifc6540.dts | 1 + arch/arm/boot/dts/qcom-apq8084-mtp.dts | 1 + arch/arm/boot/dts/qcom-apq8084.dtsi | 16 ++++++++++++++++ arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dts | 2 ++ arch/arm/boot/dts/qcom-msm8974.dtsi | 16 ++++++++++++++++ arch/arm/boot/dts/qcom-pm8841.dtsi | 18 ++++++++++++++++++ arch/arm/boot/dts/qcom-pm8941.dtsi | 18 ++++++++++++++++++ arch/arm/boot/dts/qcom-pma8084.dtsi | 18 ++++++++++++++++++ 9 files changed, 92 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-pm8841.dtsi create mode 100644 arch/arm/boot/dts/qcom-pm8941.dtsi create mode 100644 arch/arm/boot/dts/qcom-pma8084.dtsi
--
1.9.1
PATCH 1/3 ARM: dts: qcom: Add SPMI PMIC Arbiter nodes for APQ8084 and MSM8974
Add SPMI PMIC Arbiter configuration nodes for APQ8084 and MSM8974.
--- arch/arm/boot/dts/qcom-apq8084.dtsi | 16 ++++++++++++++++ arch/arm/boot/dts/qcom-msm8974.dtsi | 16 ++++++++++++++++ 2 files changed, 32 insertions(+)
arch/arm/boot/dts/qcom-apq8084.dtsi +16 -0
@@ -226,5 +226,21 @@ clock-names = "core", "iface"; status = "disabled"; }; + + spmi_bus: spmi at fc4cf000 { + compatible = "qcom,spmi-pmic-arb"; + reg-names = "core", "intr", "cnfg"; + reg = <0xfc4cf000 0x1000>, + <0xfc4cb000 0x1000>, + <0xfc4ca000 0x1000>; + interrupt-names = "periph_irq"; + interrupts = <0 190 0>; + qcom,ee = <0>; + qcom,channel = <0>; + #address-cells = <2>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <4>; + }; }; };
arch/arm/boot/dts/qcom-msm8974.dtsi +16 -0
@@ -247,5 +247,21 @@ #address-cells = <1>; #size-cells = <0>; }; + + spmi_bus: spmi at fc4cf000 { + compatible = "qcom,spmi-pmic-arb"; + reg-names = "core", "intr", "cnfg"; + reg = <0xfc4cf000 0x1000>, + <0xfc4cb000 0x1000>, + <0xfc4ca000 0x1000>; + interrupt-names = "periph_irq"; + interrupts = <0 190 0>; + qcom,ee = <0>; + qcom,channel = <0>; + #address-cells = <2>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <4>; + }; }; };
--
1.9.1
PATCH 2/3 ARM: dts: qcom: Add 8x74 chipset SPMI PMIC's nodes
In reply to Ivan T. IvanovPM8841 and PM8941 have 2 SPMI devices per physical package. Add their configuration nodes and include them in boards which are using 8x74 based chipset.
--- arch/arm/boot/dts/qcom-apq8074-dragonboard.dts | 2 ++ arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dts | 2 ++ arch/arm/boot/dts/qcom-pm8841.dtsi | 18 ++++++++++++++++++ arch/arm/boot/dts/qcom-pm8941.dtsi | 18 ++++++++++++++++++ 4 files changed, 40 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-pm8841.dtsi create mode 100644 arch/arm/boot/dts/qcom-pm8941.dtsi
arch/arm/boot/dts/qcom-apq8074-dragonboard.dts +2 -0
@@ -1,4 +1,6 @@ #include "qcom-msm8974.dtsi" +#include "qcom-pm8841.dtsi" +#include "qcom-pm8941.dtsi" / { model = "Qualcomm APQ8074 Dragonboard";
arch/arm/boot/dts/qcom-msm8974-sony-xperia-honami.dts +2 -0
@@ -1,4 +1,6 @@ #include "qcom-msm8974.dtsi" +#include "qcom-pm8841.dtsi" +#include "qcom-pm8941.dtsi" / { model = "Sony Xperia Z1";
arch/arm/boot/dts/qcom-pm8841.dtsi new file +18 -0
@@ -0,0 +1,18 @@ +#include <dt-bindings/spmi/spmi.h> + +&spmi_bus { + + usid4: pm8841 at 4 { + compatible = "qcom,spmi-pmic"; + reg = <0x4 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; + + usid5: pm8841 at 5 { + compatible = "qcom,spmi-pmic"; + reg = <0x5 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +};
arch/arm/boot/dts/qcom-pm8941.dtsi new file +18 -0
@@ -0,0 +1,18 @@ +#include <dt-bindings/spmi/spmi.h> + +&spmi_bus { + + usid0: pm8941 at 0 { + compatible ="qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; + + usid1: pm8941 at 1 { + compatible ="qcom,spmi-pmic"; + reg = <0x1 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +};
--
1.9.1
PATCH 3/3 ARM: dts: qcom: Add APQ8084 chipset SPMI PMIC's nodes
In reply to Ivan T. IvanovPMA8084 have 2 SPMI devices per physical package. Add their configuration nodes and include them in boards which are using AQP8084 based chipset.
--- arch/arm/boot/dts/qcom-apq8084-ifc6540.dts | 1 + arch/arm/boot/dts/qcom-apq8084-mtp.dts | 1 + arch/arm/boot/dts/qcom-pma8084.dtsi | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-pma8084.dtsi
arch/arm/boot/dts/qcom-apq8084-ifc6540.dts +1 -0
@@ -1,4 +1,5 @@ #include "qcom-apq8084.dtsi" +#include "qcom-pma8084.dtsi" / { model = "Qualcomm APQ8084/IFC6540";
arch/arm/boot/dts/qcom-apq8084-mtp.dts +1 -0
@@ -1,4 +1,5 @@ #include "qcom-apq8084.dtsi" +#include "qcom-pma8084.dtsi" / { model = "Qualcomm APQ 8084-MTP";
arch/arm/boot/dts/qcom-pma8084.dtsi new file +18 -0
@@ -0,0 +1,18 @@ +#include <dt-bindings/spmi/spmi.h> + +&spmi_bus { + + usid0: pma8084 at 0 { + compatible = "qcom,spmi-pmic"; + reg = <0x0 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; + + usid1: pma8084 at 1 { + compatible = "qcom,spmi-pmic"; + reg = <0x1 SPMI_USID>; + #address-cells = <1>; + #size-cells = <0>; + }; +};
--
1.9.1
Quoted 7 lines · Ivan T. Ivanov
Following set of patches add initial DT support for PMIC devices found on recent Quqalcomm chipsets. Details for SPMI bus and PMIC arbiter could be found here [1].
Regards,
Ivan
Quoted 7 lines
[1] http://lwn.net/Articles/564637/
Ivan T. Ivanov (3):
ARM: dts: qcom: Add SPMI PMIC Arbiter nodes for APQ8084 and MSM8974
ARM: dts: qcom: Add 8x74 chipset SPMI PMIC's nodes
ARM: dts: qcom: Add APQ8084 chipset SPMI PMIC's nodes
Looks good.
Regards,
Bjorn
Quoted 16 lines · Bjorn Andersson
Quoted 7 lines · Ivan T. Ivanov
Following set of patches add initial DT support for PMIC devices found on recent Quqalcomm chipsets. Details for SPMI bus and PMIC arbiter could be found here [1].
Regards,
IvanQuoted 7 lines
[1] http://lwn.net/Articles/564637/
Ivan T. Ivanov (3):
ARM: dts: qcom: Add SPMI PMIC Arbiter nodes for APQ8084 and MSM8974
ARM: dts: qcom: Add 8x74 chipset SPMI PMIC's nodes
ARM: dts: qcom: Add APQ8084 chipset SPMI PMIC's nodes
Quoted 4 lines
Looks good.
Reviewed-by Bjorn Andersson andersson at sonymobile.com>
Thank you.
Any other comments? Kumar?
Regards,
Ivan
Quoted 4 lines · Ivan T. Ivanov
Following set of patches add initial DT support for PMIC devices found on recent Quqalcomm chipsets. Details for SPMI bus and PMIC arbiter could be found here [1].
Looks fine.
Signature · 3 lines
Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 3 lines · Ivan T. Ivanov
Following set of patches add initial DT support for PMIC devices found on recent Quqalcomm chipsets. Details for SPMI bus and PMIC arbiter could be found here [1].
Can you please put the specific compatible strings for the pmic model into the nodes in addition to the generic "qcom,spmi-pmic"? We may want to have regmap config tables in the future that describe the cache/read/write abilities of the regsiters. If all we have is the generic binding then we don't have a way to populate these tables. Unless the plan there is to use the revid registers?
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Hi Stephan,
Sorry for delayed answer.
Quoted 5 lines · Stephen Boyd
Quoted 3 lines · Ivan T. Ivanov
Following set of patches add initial DT support for PMIC devices found on recent Quqalcomm chipsets. Details for SPMI bus and PMIC arbiter could be found here [1].
Quoted 7 lines
Can you please put the specific compatible strings for the pmic model into the nodes in addition to the generic "qcom,spmi-pmic"? We may want to have regmap config tables in the future that describe the cache/read/write abilities of the regsiters. If all we have is the generic binding then we don't have a way to populate these tables. Unless the plan there is to use the revid registers?
I would really like that we can use "revid" registers, but I don't know...
Quoted 1 line
From what I can see usually in one physical PMIC chip they
are 2 USID devices.
I can successfully discover following USID's on APQ8074 boards:
pmic-spmi 0-00: qcom,pm8941-v1.0 detected
pmic-spmi 0-01: qcom,pm8941-v1.0 detected
pmic-spmi 0-04: qcom,pm8841-v0.0 detected
pmic-spmi 0-05: qcom,pm8841-v0.0 detected
Unfortunately on PM8916 only one device is detected, with USID 0. But they should be two, judging by downstream DTS files, right?
pmic-spmi 0-00: qcom,pm8916-v0.0 detected
pmic-spmi 0-01: unknown device
For communication with PM8916 I am using recent patches from Gilad [1]. Maybe there are still some issues with these patches, which can cause this behavior or PM8916 just didn't have these registers for USID 1?
Regards,
Ivan
Quoted 37 lines · Ivan T. Ivanov
Hi Stephan,
Sorry for delayed answer.
Quoted 5 lines · Stephen Boyd
Quoted 3 lines · Ivan T. Ivanov
Following set of patches add initial DT support for PMIC devices found on recent Quqalcomm chipsets. Details for SPMI bus and PMIC arbiter could be found here [1].
Quoted 7 lines
Can you please put the specific compatible strings for the pmic model into the nodes in addition to the generic "qcom,spmi-pmic"? We may want to have regmap config tables in the future that describe the cache/read/write abilities of the regsiters. If all we have is the generic binding then we don't have a way to populate these tables. Unless the plan there is to use the revid registers?
I would really like that we can use "revid" registers, but I don't know...
From what I can see usually in one physical PMIC chip they are 2 USID devices.
I can successfully discover following USID's on APQ8074 boards:
pmic-spmi 0-00: qcom,pm8941-v1.0 detected
pmic-spmi 0-01: qcom,pm8941-v1.0 detected
pmic-spmi 0-04: qcom,pm8841-v0.0 detected
pmic-spmi 0-05: qcom,pm8841-v0.0 detectedUnfortunately on PM8916 only one device is detected, with USID 0. But they should be two, judging by downstream DTS files, right?
pmic-spmi 0-00: qcom,pm8916-v0.0 detected
pmic-spmi 0-01: unknown device
Quoted 6 lines
For communication with PM8916 I am using recent patches from Gilad [1]. Maybe there are still some issues with these patches, which can cause this behavior or PM8916 just didn't have these registers for USID 1?
Regards,
Ivan
Hmm... do you have 4 total rev-id nodes on apq8074? I only see one rev-id node per pmic (2 total), so I'm a little lost how the correct pmic version is detected on the 0-01 and 0-05 devices in your example above. Maybe I've missed something though, I'll have to check in a few hours when I'm in the office.
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Quoted 41 lines · Stephen Boyd
Quoted 40 lines · Ivan T. Ivanov
Hi Stephen,
Sorry for delayed answer.
Quoted 5 lines · Stephen Boyd
Quoted 3 lines · Ivan T. Ivanov
Following set of patches add initial DT support for PMIC devices found on recent Quqalcomm chipsets. Details for SPMI bus and PMIC arbiter could be found here [1].
Quoted 7 lines
Can you please put the specific compatible strings for the pmic model into the nodes in addition to the generic "qcom,spmi-pmic"? We may want to have regmap config tables in the future that describe the cache/read/write abilities of the regsiters. If all we have is the generic binding then we don't have a way to populate these tables. Unless the plan there is to use the revid registers?
I would really like that we can use "revid" registers, but I don't know...
From what I can see usually in one physical PMIC chip they are 2 USID devices.
I can successfully discover following USID's on APQ8074 boards:
pmic-spmi 0-00: qcom,pm8941-v1.0 detected
pmic-spmi 0-01: qcom,pm8941-v1.0 detected
pmic-spmi 0-04: qcom,pm8841-v0.0 detected
pmic-spmi 0-05: qcom,pm8841-v0.0 detectedUnfortunately on PM8916 only one device is detected, with USID 0. But they should be two, judging by downstream DTS files, right?
pmic-spmi 0-00: qcom,pm8916-v0.0 detected
pmic-spmi 0-01: unknown deviceFor communication with PM8916 I am using recent patches from Gilad [1]. Maybe there are still some issues with these patches, which can cause this behavior or PM8916 just didn't have these registers for USID 1?
Quoted 7 lines
Quoted 2 lines
Regards,
IvanHmm... do you have 4 total rev-id nodes on apq8074? I only see one rev-id node per pmic (2 total), so I'm a little lost how the correct pmic version is detected on the 0-01 and 0-05 devices in your example above.
Same confusion here. I am using this[1] patch to read revision info.
Address at offset 0x105 for USID 0,1 on PM8914 and USID 4,5 on PM8841 contains 0x51, which denotes them as PMIC's, so patch assumes that rest of the registers have to contain valid version values.
Regards,
Ivan
Re: [PATCH 1/3] ARM: dts: qcom: Add SPMI PMIC Arbiter nodes for APQ8084 and MSM8974
In reply to Ivan T. IvanovHi Ivan,
Quoted 41 lines · Ivan T. Ivanov
Add SPMI PMIC Arbiter configuration nodes for APQ8084 and MSM8974.
Signed-off-by Ivan T. Ivanov <[email protected]>--- arch/arm/boot/dts/qcom-apq8084.dtsi | 16 ++++++++++++++++ arch/arm/boot/dts/qcom-msm8974.dtsi | 16 ++++++++++++++++ 2 files changed, 32 insertions(+)arch/arm/boot/dts/qcom-apq8084.dtsi +15
-0@@ -226,5 +226,21 @@ clock-names = "core", "iface"; status = "disabled"; }; + + spmi_bus: spmi at fc4cf000 { + compatible = "qcom,spmi-pmic-arb"; + reg-names = "core", "intr", "cnfg"; + reg = <0xfc4cf000 0x1000>, + <0xfc4cb000 0x1000>, + <0xfc4ca000 0x1000>; + interrupt-names = "periph_irq"; + interrupts = <0 190 0>;> + qcom,ee = <0>; + qcom,channel = <0>; + #address-cells = <2>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <4>; + }; }; };arch/arm/boot/dts/qcom-msm8974.dtsi +0
-0@@ -247,5 +247,21 @@ #address-cells = <1>; #size-cells = <0>; };
arch/arm/boot/dts/qcom-msm8974.dtsi line 259
Quoted 10 lines
arch/arm/boot/dts/qcom-msm8974.dtsi +9
-0+ + spmi_bus: spmi at fc4cf000 { + compatible = "qcom,spmi-pmic-arb"; + reg-names = "core", "intr", "cnfg"; + reg = <0xfc4cf000 0x1000>, + <0xfc4cb000 0x1000>, + <0xfc4ca000 0x1000>; + interrupt-names = "periph_irq"; + interrupts = <0 190 0>;
The final value in this interrupts property means IRQ_TYPE_NONE.
A WARN_ON() was added early this year to complain about use ofIRQ_TYPE_NONE: 83a86fbb5b56 "irqchip/gic: Loudly complain about the use of IRQ_TYPE_NONE", resulting in many warnings spewing forth when I boot an APQ8074 Dragonboard. I am trying to determine whether the warning is overly aggressive, or whether the IRQ TYPE is incorrectly specified for the spmi node.
The interrupt-parent for the spmi node is intc: interrupt-controller at f9000000, which has compatible = "qcom,msm-qgic2". I do not know the architecture or implementation of this interrupt controller. Is an IRQ_TYPE_NONE valid in this case, or should a specific type be provided?
Thanks!
-Frank
Quoted 17 lines
arch/arm/boot/dts/qcom-msm8974.dtsi +7
-0+ qcom,ee = <0>; + qcom,channel = <0>; + #address-cells = <2>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <4>; + }; };};
--
1.9.1--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 1/3] ARM: dts: qcom: Add SPMI PMIC Arbiter nodes for APQ8084 and MSM8974
Hi All,
The email for Ivan is no longer valid. Can anyone else help me with my question?
Thanks,
Frank
Quoted 95 lines · Frank Rowand
Hi Ivan,
Quoted 41 lines · Ivan T. Ivanov
Add SPMI PMIC Arbiter configuration nodes for APQ8084 and MSM8974.
Signed-off-by Ivan T. Ivanov <[email protected]>--- arch/arm/boot/dts/qcom-apq8084.dtsi | 16 ++++++++++++++++ arch/arm/boot/dts/qcom-msm8974.dtsi | 16 ++++++++++++++++ 2 files changed, 32 insertions(+)arch/arm/boot/dts/qcom-apq8084.dtsi +15
-0@@ -226,5 +226,21 @@ clock-names = "core", "iface"; status = "disabled"; }; + + spmi_bus: spmi at fc4cf000 { + compatible = "qcom,spmi-pmic-arb"; + reg-names = "core", "intr", "cnfg"; + reg = <0xfc4cf000 0x1000>, + <0xfc4cb000 0x1000>, + <0xfc4ca000 0x1000>; + interrupt-names = "periph_irq"; + interrupts = <0 190 0>;> + qcom,ee = <0>; + qcom,channel = <0>; + #address-cells = <2>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <4>; + }; }; };arch/arm/boot/dts/qcom-msm8974.dtsi +0
-0@@ -247,5 +247,21 @@ #address-cells = <1>; #size-cells = <0>; };arch/arm/boot/dts/qcom-msm8974.dtsi line 259
Quoted 10 lines
arch/arm/boot/dts/qcom-msm8974.dtsi +9
-0+ + spmi_bus: spmi at fc4cf000 { + compatible = "qcom,spmi-pmic-arb"; + reg-names = "core", "intr", "cnfg"; + reg = <0xfc4cf000 0x1000>, + <0xfc4cb000 0x1000>, + <0xfc4ca000 0x1000>; + interrupt-names = "periph_irq"; + interrupts = <0 190 0>;The final value in this interrupts property means
IRQ_TYPE_NONE.A
WARN_ON()was added early this year to complain about use ofIRQ_TYPE_NONE:83a86fbb5b56"irqchip/gic: Loudly complain about the use ofIRQ_TYPE_NONE", resulting in many warnings spewing forth when I boot an APQ8074 Dragonboard. I am trying to determine whether the warning is overly aggressive, or whether the IRQ TYPE is incorrectly specified for the spmi node.The interrupt-parent for the spmi node is intc: interrupt-controller at
f9000000, which has compatible = "qcom,msm-qgic2". I do not know the architecture or implementation of this interrupt controller. Is anIRQ_TYPE_NONEvalid in this case, or should a specific type be provided?Thanks!
-Frank
Quoted 12 lines
arch/arm/boot/dts/qcom-msm8974.dtsi +7
-0+ qcom,ee = <0>; + qcom,channel = <0>; + #address-cells = <2>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <4>; + }; };};
--
1.9.1Quoted 5 lines
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html.
Re: [PATCH 1/3] ARM: dts: qcom: Add SPMI PMIC Arbiter nodes for APQ8084 and MSM8974
In reply to Frank RowandQuoted 19 lines · Frank Rowand
arch/arm/boot/dts/qcom-apq8084.dtsi line 237
Quoted 9 lines
arch/arm/boot/dts/qcom-apq8084.dtsi +8
-0+ spmi_bus: spmi at fc4cf000 { + compatible = "qcom,spmi-pmic-arb"; + reg-names = "core", "intr", "cnfg"; + reg = <0xfc4cf000 0x1000>, + <0xfc4cb000 0x1000>, + <0xfc4ca000 0x1000>; + interrupt-names = "periph_irq"; + interrupts = <0 190 0>;The final value in this interrupts property means
IRQ_TYPE_NONE.A
WARN_ON()was added early this year to complain about use ofIRQ_TYPE_NONE:83a86fbb5b56"irqchip/gic: Loudly complain about the use ofIRQ_TYPE_NONE", resulting in many warnings spewing forth when I boot an APQ8074 Dragonboard. I am trying to determine whether the warning is overly aggressive, or whether the IRQ TYPE is incorrectly specified for the spmi node.
Quoted 5 lines
The interrupt-parent for the spmi node is intc: interrupt-controller at
f9000000, which has compatible = "qcom,msm-qgic2". I do not know the architecture or implementation of this interrupt controller. Is anIRQ_TYPE_NONEvalid in this case, or should a specific type be provided?
No, IRQ_TYPE_NONE isn't valid and the WARN_ON() is reasonable.
Please change it to IRQ_TYPE_LEVEL_HIGH. And while you're at it, replace the first 0 with GIC_SPI.
If you have more of these warnings you can most likely look at e.g. msm8916 (arm64) to find the right flags.
Regards,
Bjorn
Re: [PATCH 1/3] ARM: dts: qcom: Add SPMI PMIC Arbiter nodes for APQ8084 and MSM8974
Quoted 26 lines · Bjorn Andersson
Quoted 19 lines · Frank Rowand
arch/arm/boot/dts/qcom-apq8084.dtsi line 237
Quoted 9 lines
arch/arm/boot/dts/qcom-apq8084.dtsi +8
-0+ spmi_bus: spmi at fc4cf000 { + compatible = "qcom,spmi-pmic-arb"; + reg-names = "core", "intr", "cnfg"; + reg = <0xfc4cf000 0x1000>, + <0xfc4cb000 0x1000>, + <0xfc4ca000 0x1000>; + interrupt-names = "periph_irq"; + interrupts = <0 190 0>;The final value in this interrupts property means
IRQ_TYPE_NONE.A
WARN_ON()was added early this year to complain about use ofIRQ_TYPE_NONE:83a86fbb5b56"irqchip/gic: Loudly complain about the use ofIRQ_TYPE_NONE", resulting in many warnings spewing forth when I boot an APQ8074 Dragonboard. I am trying to determine whether the warning is overly aggressive, or whether the IRQ TYPE is incorrectly specified for the spmi node.Quoted 5 lines
The interrupt-parent for the spmi node is intc: interrupt-controller at
f9000000, which has compatible = "qcom,msm-qgic2". I do not know the architecture or implementation of this interrupt controller. Is anIRQ_TYPE_NONEvalid in this case, or should a specific type be provided?
Quoted 8 lines
No,
IRQ_TYPE_NONEisn't valid and theWARN_ON()is reasonable.Please change it to
IRQ_TYPE_LEVEL_HIGH. And while you're at it, replace the first 0 withGIC_SPI.If you have more of these warnings you can most likely look at e.g. msm8916 (arm64) to find the right flags.
Thanks, I'll create a patch.