arm64: dts: qcom: Add gpio device node for pm8010

Add gpio device nodes in pm8010*.dtsi files for any consumers to be
able to use the GPIOs.

Signed-off-by: Fenglin Wu <fenglin.wu@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260507-pm8010_gpio-v1-3-3bce9da8d2ba@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
Fenglin Wu 2026-05-07 22:34:09 -07:00 committed by Bjorn Andersson
parent 2279111cca
commit 9f41cb88ad
2 changed files with 40 additions and 0 deletions

View File

@ -75,6 +75,16 @@ pm8010_m_e1_temp_alarm: temp-alarm@2400 {
interrupts = <0xc 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};
pm8010_m_e1_gpios: gpio@c000 {
compatible = "qcom,pm8010-gpio", "qcom,spmi-gpio";
reg = <0xc000>;
gpio-controller;
gpio-ranges = <&pm8010_m_e1_gpios 0 0 2>;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
};
};
pm8010_n_e1: pmic@d {
@ -89,5 +99,15 @@ pm8010_n_e1_temp_alarm: temp-alarm@2400 {
interrupts = <0xd 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};
pm8010_n_e1_gpios: gpio@c000 {
compatible = "qcom,pm8010-gpio", "qcom,spmi-gpio";
reg = <0xc000>;
gpio-controller;
gpio-ranges = <&pm8010_n_e1_gpios 0 0 2>;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
};
};
};

View File

@ -64,6 +64,16 @@ pm8010_m_temp_alarm: temp-alarm@2400 {
interrupts = <0xc 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};
pm8010_m_gpios: gpio@c000 {
compatible = "qcom,pm8010-gpio", "qcom,spmi-gpio";
reg = <0xc000>;
gpio-controller;
gpio-ranges = <&pm8010_m_gpios 0 0 2>;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
};
};
pm8010_n: pmic@d {
@ -78,5 +88,15 @@ pm8010_n_temp_alarm: temp-alarm@2400 {
interrupts = <0xd 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
#thermal-sensor-cells = <0>;
};
pm8010_n_gpios: gpio@c000 {
compatible = "qcom,pm8010-gpio", "qcom,spmi-gpio";
reg = <0xc000>;
gpio-controller;
gpio-ranges = <&pm8010_n_gpios 0 0 2>;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
};
};
};