Skip to content

Commit 9a97e1f

Browse files
committed
FROMLIST: arm64: dts: qcom: lemans-evk: Enable GPIO expander interrupt for Lemans EVK
Enable PCA9538 expander as interrupt controller on Lemans EVK and configure the corresponding TLMM pins via pinctrl to operate as GPIO inputs with internal pull-ups. Link: https://lore.kernel.org/all/20260210125348.2800846-2-swati.agarwal@oss.qualcomm.com/ Signed-off-by: Swati Agarwal <swati.agarwal@oss.qualcomm.com>
1 parent 09fa276 commit 9a97e1f

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/lemans-evk.dts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,27 +651,47 @@
651651
reg = <0x38>;
652652
#gpio-cells = <2>;
653653
gpio-controller;
654+
#interrupt-cells = <2>;
655+
interrupt-controller;
656+
interrupts-extended = <&tlmm 138 IRQ_TYPE_LEVEL_LOW>;
657+
pinctrl-0 = <&expander0_int>;
658+
pinctrl-names = "default";
654659
};
655660

656661
expander1: gpio@39 {
657662
compatible = "ti,tca9538";
658663
reg = <0x39>;
659664
#gpio-cells = <2>;
660665
gpio-controller;
666+
#interrupt-cells = <2>;
667+
interrupt-controller;
668+
interrupts-extended = <&tlmm 19 IRQ_TYPE_LEVEL_LOW>;
669+
pinctrl-0 = <&expander1_int>;
670+
pinctrl-names = "default";
661671
};
662672

663673
expander2: gpio@3a {
664674
compatible = "ti,tca9538";
665675
reg = <0x3a>;
666676
#gpio-cells = <2>;
667677
gpio-controller;
678+
#interrupt-cells = <2>;
679+
interrupt-controller;
680+
interrupts-extended = <&tlmm 139 IRQ_TYPE_LEVEL_LOW>;
681+
pinctrl-0 = <&expander2_int>;
682+
pinctrl-names = "default";
668683
};
669684

670685
expander3: gpio@3b {
671686
compatible = "ti,tca9538";
672687
reg = <0x3b>;
673688
#gpio-cells = <2>;
674689
gpio-controller;
690+
#interrupt-cells = <2>;
691+
interrupt-controller;
692+
interrupts-extended = <&tlmm 39 IRQ_TYPE_LEVEL_LOW>;
693+
pinctrl-0 = <&expander3_int>;
694+
pinctrl-names = "default";
675695
};
676696

677697
eeprom@50 {
@@ -920,6 +940,30 @@
920940
};
921941
};
922942

943+
expander0_int: expander0-int-state {
944+
pins = "gpio138";
945+
function = "gpio";
946+
bias-pull-up;
947+
};
948+
949+
expander1_int: expander1-int-state {
950+
pins = "gpio19";
951+
function = "gpio";
952+
bias-pull-up;
953+
};
954+
955+
expander2_int: expander2-int-state {
956+
pins = "gpio139";
957+
function = "gpio";
958+
bias-pull-up;
959+
};
960+
961+
expander3_int: expander3-int-state {
962+
pins = "gpio39";
963+
function = "gpio";
964+
bias-pull-up;
965+
};
966+
923967
pcie0_default_state: pcie0-default-state {
924968
clkreq-pins {
925969
pins = "gpio1";

0 commit comments

Comments
 (0)