qcom: spmi/ssbi gpio: correct gpio hogging
cover qcom: spmi/ssbi gpio: correct gpio hogging
Here are some patches that fix gpio hogging for all boards that use spmi-gpio and ssbi-gpio. These depend on the following two patches that were merged in 4.20-rc1:
commit 149a96047237 ("pinctrl: qcom: spmi-gpio: fix gpio-hog related boot issues")
commit 7ed078557738 ("pinctrl: qcom: ssbi-gpio: fix gpio-hog related boot issues")
I've already fixed pm8941 for the Nexus 5 and that fix is queued to go into v5.1 during this merge window:
https://lore.kernel.org/lkml/[email protected]/
Andy: You may want to consider submitting these post rc1 as a fix for v5.1 and possibly marking these for stable.
Brian Masney (8):
ARM: dts: qcom: apq8064: add gpio-ranges
ARM: dts: qcom: mdm9615: add gpio-ranges
ARM: dts: qcom: msm8660: add gpio-ranges
ARM: dts: qcom: pma8084: add gpio-ranges
arm64: dts: qcom: pm8005: add gpio-ranges
arm64: dts: qcom: pm8998: add gpio-ranges
arm64: dts: qcom: pmi8994: add gpio-ranges
arm64: dts: qcom: pmi8998: add gpio-ranges
arch/arm/boot/dts/qcom-apq8064.dtsi | 1 + arch/arm/boot/dts/qcom-mdm9615.dtsi | 1 + arch/arm/boot/dts/qcom-msm8660.dtsi | 1 + arch/arm/boot/dts/qcom-pma8084.dtsi | 1 + arch/arm64/boot/dts/qcom/pm8005.dtsi | 1 + arch/arm64/boot/dts/qcom/pm8998.dtsi | 1 + arch/arm64/boot/dts/qcom/pmi8994.dtsi | 1 + arch/arm64/boot/dts/qcom/pmi8998.dtsi | 1 + 8 files changed, 8 insertions(+)
Signature · 1 line
2.20.1
PATCH 1/8 ARM: dts: qcom: apq8064: add gpio-ranges
This adds the gpio-ranges property so that the GPIO pins are initialized by the GPIO framework and not pinctrl. This fixes a circular dependency between these two frameworks so GPIO hogging can be used on this board.
This was not tested on this particular hardware, however this same change was tested on qcom-pm8941 using a LG Nexus 5 (hammerhead) phone.
--- arch/arm/boot/dts/qcom-apq8064.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm/boot/dts/qcom-apq8064.dtsi +1 -0
@@ -714,6 +714,7 @@ interrupt-controller; #interrupt-cells = <2>; gpio-controller; + gpio-ranges = <&pm8921_gpio 0 0 44>; #gpio-cells = <2>; };
Signature · 1 line
2.20.1
PATCH 2/8 ARM: dts: qcom: mdm9615: add gpio-ranges
In reply to Brian MasneyThis adds the gpio-ranges property so that the GPIO pins are initialized by the GPIO framework and not pinctrl. This fixes a circular dependency between these two frameworks so GPIO hogging can be used on this board.
This was not tested on this particular hardware, however this same change was tested on qcom-pm8941 using a LG Nexus 5 (hammerhead) phone.
--- arch/arm/boot/dts/qcom-mdm9615.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm/boot/dts/qcom-mdm9615.dtsi +1 -0
@@ -326,6 +326,7 @@ interrupt-controller; #interrupt-cells = <2>; gpio-controller; + gpio-ranges = <&pmicgpio 0 0 6>; #gpio-cells = <2>; }; };
Signature · 1 line
2.20.1
PATCH 3/8 ARM: dts: qcom: msm8660: add gpio-ranges
In reply to Brian MasneyThis adds the gpio-ranges property so that the GPIO pins are initialized by the GPIO framework and not pinctrl. This fixes a circular dependency between these two frameworks so GPIO hogging can be used on this board.
This was not tested on this particular hardware, however this same change was tested on qcom-pm8941 using a LG Nexus 5 (hammerhead) phone.
--- arch/arm/boot/dts/qcom-msm8660.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm/boot/dts/qcom-msm8660.dtsi +1 -0
@@ -295,6 +295,7 @@ interrupt-controller; #interrupt-cells = <2>; gpio-controller; + gpio-ranges = <&pm8058_gpio 0 0 44>; #gpio-cells = <2>; };
Signature · 1 line
2.20.1
PATCH 4/8 ARM: dts: qcom: pma8084: add gpio-ranges
In reply to Brian MasneyThis adds the gpio-ranges property so that the GPIO pins are initialized by the GPIO framework and not pinctrl. This fixes a circular dependency between these two frameworks so GPIO hogging can be used on this board.
This was not tested on this particular hardware, however this same change was tested on qcom-pm8941 using a LG Nexus 5 (hammerhead) phone.
--- arch/arm/boot/dts/qcom-pma8084.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm/boot/dts/qcom-pma8084.dtsi +1 -0
@@ -31,6 +31,7 @@ compatible = "qcom,pma8084-gpio", "qcom,spmi-gpio"; reg = <0xc000>; gpio-controller; + gpio-ranges = <&pma8084_gpios 0 0 22>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>;
Signature · 1 line
2.20.1
PATCH 5/8 arm64: dts: qcom: pm8005: add gpio-ranges
In reply to Brian MasneyThis adds the gpio-ranges property so that the GPIO pins are initialized by the GPIO framework and not pinctrl. This fixes a circular dependency between these two frameworks so GPIO hogging can be used on this board.
This was not tested on this particular hardware, however this same change was tested on qcom-pm8941 using a LG Nexus 5 (hammerhead) phone.
--- arch/arm64/boot/dts/qcom/pm8005.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/pm8005.dtsi +1 -0
@@ -15,6 +15,7 @@ compatible = "qcom,pm8005-gpio", "qcom,spmi-gpio"; reg = <0xc000>; gpio-controller; + gpio-ranges = <&pm8005_gpio 0 0 4>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>;
Signature · 1 line
2.20.1
PATCH 6/8 arm64: dts: qcom: pm8998: add gpio-ranges
In reply to Brian MasneyThis adds the gpio-ranges property so that the GPIO pins are initialized by the GPIO framework and not pinctrl. This fixes a circular dependency between these two frameworks so GPIO hogging can be used on this board.
This was not tested on this particular hardware, however this same change was tested on qcom-pm8941 using a LG Nexus 5 (hammerhead) phone.
--- arch/arm64/boot/dts/qcom/pm8998.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/pm8998.dtsi +1 -0
@@ -93,6 +93,7 @@ compatible = "qcom,pm8998-gpio", "qcom,spmi-gpio"; reg = <0xc000>; gpio-controller; + gpio-ranges = <&pm8998_gpio 0 0 26>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>;
Signature · 1 line
2.20.1
PATCH 7/8 arm64: dts: qcom: pmi8994: add gpio-ranges
In reply to Brian MasneyThis adds the gpio-ranges property so that the GPIO pins are initialized by the GPIO framework and not pinctrl. This fixes a circular dependency between these two frameworks so GPIO hogging can be used on this board.
This was not tested on this particular hardware, however this same change was tested on qcom-pm8941 using a LG Nexus 5 (hammerhead) phone.
--- arch/arm64/boot/dts/qcom/pmi8994.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/pmi8994.dtsi +1 -0
@@ -14,6 +14,7 @@ compatible = "qcom,pmi8994-gpio", "qcom,spmi-gpio"; reg = <0xc000>; gpio-controller; + gpio-ranges = <&pmi8994_gpios 0 0 10>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>;
Signature · 1 line
2.20.1
PATCH 8/8 arm64: dts: qcom: pmi8998: add gpio-ranges
In reply to Brian MasneyThis adds the gpio-ranges property so that the GPIO pins are initialized by the GPIO framework and not pinctrl. This fixes a circular dependency between these two frameworks so GPIO hogging can be used on this board.
This was not tested on this particular hardware, however this same change was tested on qcom-pm8941 using a LG Nexus 5 (hammerhead) phone.
--- arch/arm64/boot/dts/qcom/pmi8998.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/qcom/pmi8998.dtsi +1 -0
@@ -13,6 +13,7 @@ compatible = "qcom,pmi8998-gpio", "qcom,spmi-gpio"; reg = <0xc000>; gpio-controller; + gpio-ranges = <&pmi8998_gpio 0 0 14>; #gpio-cells = <2>; interrupt-controller; #interrupt-cells = <2>;
Signature · 1 line
2.20.1
Quoted 2 lines · Brian Masney
Here are some patches that fix gpio hogging for all boards that use spmi-gpio and ssbi-gpio.
This series:
Thanks for your perseverance!
Yours,
Linus Walleij
Quoted 15 lines · Brian Masney
Here are some patches that fix gpio hogging for all boards that use spmi-gpio and ssbi-gpio. These depend on the following two patches that were merged in 4.20-rc1:
commit
149a96047237("pinctrl: qcom: spmi-gpio: fix gpio-hog related boot issues")commit
7ed078557738("pinctrl: qcom: ssbi-gpio: fix gpio-hog related boot issues")I've already fixed pm8941 for the Nexus 5 and that fix is queued to go into v5.1 during this merge window:
Quoted 8 lines
Andy: You may want to consider submitting these post rc1 as a fix for v5.1 and possibly marking these for stable.
Brian Masney (8):
ARM: dts: qcom: apq8064: add gpio-ranges
ARM: dts: qcom: mdm9615: add gpio-ranges
ARM: dts: qcom: msm8660: add gpio-ranges
ARM: dts: qcom: pma8084: add gpio-ranges
Looks like I missed the ARM patches before. All 8 picked up now, with Linus' r-b.
Thanks,
Bjorn
Quoted 18 lines
arm64: dts: qcom: pm8005: add gpio-ranges
arm64: dts: qcom: pm8998: add gpio-ranges
arm64: dts: qcom: pmi8994: add gpio-ranges
arm64: dts: qcom: pmi8998: add gpio-rangesarch/arm/boot/dts/qcom-apq8064.dtsi | 1 + arch/arm/boot/dts/qcom-mdm9615.dtsi | 1 + arch/arm/boot/dts/qcom-msm8660.dtsi | 1 + arch/arm/boot/dts/qcom-pma8084.dtsi | 1 + arch/arm64/boot/dts/qcom/pm8005.dtsi | 1 + arch/arm64/boot/dts/qcom/pm8998.dtsi | 1 + arch/arm64/boot/dts/qcom/pmi8994.dtsi | 1 + arch/arm64/boot/dts/qcom/pmi8998.dtsi | 1 + 8 files changed, 8 insertions(+)Signature · 1 line
2.20.1
Hi Bjorn,
Quoted 20 lines · Bjorn Andersson
Quoted 18 lines · Brian Masney
Here are some patches that fix gpio hogging for all boards that use spmi-gpio and ssbi-gpio. These depend on the following two patches that were merged in 4.20-rc1:
commit
149a96047237("pinctrl: qcom: spmi-gpio: fix gpio-hog related boot issues")commit
7ed078557738("pinctrl: qcom: ssbi-gpio: fix gpio-hog related boot issues")I've already fixed pm8941 for the Nexus 5 and that fix is queued to go into v5.1 during this merge window:
https://lore.kernel.org/lkml/[email protected]/
Andy: You may want to consider submitting these post rc1 as a fix for v5.1 and possibly marking these for stable.
Quoted 8 lines
Quoted 5 lines
Brian Masney (8):
ARM: dts: qcom: apq8064: add gpio-ranges
ARM: dts: qcom: mdm9615: add gpio-ranges
ARM: dts: qcom: msm8660: add gpio-ranges
ARM: dts: qcom: pma8084: add gpio-rangesLooks like I missed the ARM patches before. All 8 picked up now, with Linus' r-b.
Andy already picked these 8 patches up in his tree.
https://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git/log/?h=for-next
Brian
Quoted 29 lines · Brian Masney
Hi Bjorn,
Quoted 26 lines · Bjorn Andersson
Quoted 23 lines · Brian Masney
Here are some patches that fix gpio hogging for all boards that use spmi-gpio and ssbi-gpio. These depend on the following two patches that were merged in 4.20-rc1:
commit
149a96047237("pinctrl: qcom: spmi-gpio: fix gpio-hog related boot issues")commit
7ed078557738("pinctrl: qcom: ssbi-gpio: fix gpio-hog related boot issues")I've already fixed pm8941 for the Nexus 5 and that fix is queued to go into v5.1 during this merge window:
https://lore.kernel.org/lkml/[email protected]/
Andy: You may want to consider submitting these post rc1 as a fix for v5.1 and possibly marking these for stable.
Brian Masney (8):
ARM: dts: qcom: apq8064: add gpio-ranges
ARM: dts: qcom: mdm9615: add gpio-ranges
ARM: dts: qcom: msm8660: add gpio-ranges
ARM: dts: qcom: pma8084: add gpio-ranges
Quoted 7 lines
Quoted 2 lines
Looks like I missed the ARM patches before. All 8 picked up now, with Linus' r-b.
Andy already picked these 8 patches up in his tree.
https://git.kernel.org/pub/scm/linux/kernel/git/agross/linux.git/log/?h=for-next
Perfect. And I see that all 8 are included in Andy's pull request for 5.2
Regards,
Bjorn