Skip to content

Commit c99c95d

Browse files
swatagarkas User
authored andcommitted
FROMLIST: arm64: dts: qcom: monaco-evk: Enable GPIO expander interrupt for Monaco EVK
Enable PCA9538 expander as interrupt controller on Monaco EVK and configure the corresponding TLMM pins via pinctrl to operate as GPIO inputs with internal pull-ups. Link: https://lore.kernel.org/all/20260210155329.3044455-2-swati.agarwal@oss.qualcomm.com/ Signed-off-by: Swati Agarwal <swati.agarwal@oss.qualcomm.com>
1 parent 0e842c8 commit c99c95d

1 file changed

Lines changed: 77 additions & 0 deletions

File tree

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

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,48 +446,83 @@
446446
reg = <0x38>;
447447
#gpio-cells = <2>;
448448
gpio-controller;
449+
#interrupt-cells = <2>;
450+
interrupt-controller;
451+
interrupts-extended = <&tlmm 56 IRQ_TYPE_LEVEL_LOW>;
452+
pinctrl-0 = <&expander0_int>;
453+
pinctrl-names = "default";
449454
};
450455

451456
expander1: gpio@39 {
452457
compatible = "ti,tca9538";
453458
reg = <0x39>;
454459
#gpio-cells = <2>;
455460
gpio-controller;
461+
#interrupt-cells = <2>;
462+
interrupt-controller;
463+
interrupts-extended = <&tlmm 16 IRQ_TYPE_LEVEL_LOW>;
464+
pinctrl-0 = <&expander1_int>;
465+
pinctrl-names = "default";
456466
};
457467

458468
expander2: gpio@3a {
459469
compatible = "ti,tca9538";
460470
reg = <0x3a>;
461471
#gpio-cells = <2>;
462472
gpio-controller;
473+
#interrupt-cells = <2>;
474+
interrupt-controller;
475+
interrupts-extended = <&tlmm 95 IRQ_TYPE_LEVEL_LOW>;
476+
pinctrl-0 = <&expander2_int>;
477+
pinctrl-names = "default";
463478
};
464479

465480
expander3: gpio@3b {
466481
compatible = "ti,tca9538";
467482
reg = <0x3b>;
468483
#gpio-cells = <2>;
469484
gpio-controller;
485+
#interrupt-cells = <2>;
486+
interrupt-controller;
487+
interrupts-extended = <&tlmm 24 IRQ_TYPE_LEVEL_LOW>;
488+
pinctrl-0 = <&expander3_int>;
489+
pinctrl-names = "default";
470490
};
471491

472492
expander4: gpio@3c {
473493
compatible = "ti,tca9538";
474494
reg = <0x3c>;
475495
#gpio-cells = <2>;
476496
gpio-controller;
497+
#interrupt-cells = <2>;
498+
interrupt-controller;
499+
interrupts-extended = <&tlmm 96 IRQ_TYPE_LEVEL_LOW>;
500+
pinctrl-0 = <&expander4_int>;
501+
pinctrl-names = "default";
477502
};
478503

479504
expander5: gpio@3d {
480505
compatible = "ti,tca9538";
481506
reg = <0x3d>;
482507
#gpio-cells = <2>;
483508
gpio-controller;
509+
#interrupt-cells = <2>;
510+
interrupt-controller;
511+
interrupts-extended = <&tlmm 3 IRQ_TYPE_LEVEL_LOW>;
512+
pinctrl-0 = <&expander5_int>;
513+
pinctrl-names = "default";
484514
};
485515

486516
expander6: gpio@3e {
487517
compatible = "ti,tca9538";
488518
reg = <0x3e>;
489519
#gpio-cells = <2>;
490520
gpio-controller;
521+
#interrupt-cells = <2>;
522+
interrupt-controller;
523+
interrupts-extended = <&tlmm 52 IRQ_TYPE_LEVEL_LOW>;
524+
pinctrl-0 = <&expander6_int>;
525+
pinctrl-names = "default";
491526
};
492527
};
493528

@@ -633,6 +668,48 @@
633668
};
634669
};
635670

671+
expander0_int: expander0-int-state {
672+
pins = "gpio56";
673+
function = "gpio";
674+
bias-pull-up;
675+
};
676+
677+
expander1_int: expander1-int-state {
678+
pins = "gpio16";
679+
function = "gpio";
680+
bias-pull-up;
681+
};
682+
683+
expander2_int: expander2-int-state {
684+
pins = "gpio95";
685+
function = "gpio";
686+
bias-pull-up;
687+
};
688+
689+
expander3_int: expander3-int-state {
690+
pins = "gpio24";
691+
function = "gpio";
692+
bias-pull-up;
693+
};
694+
695+
expander4_int: expander4-int-state {
696+
pins = "gpio96";
697+
function = "gpio";
698+
bias-pull-up;
699+
};
700+
701+
expander5_int: expander5-int-state {
702+
pins = "gpio3";
703+
function = "gpio";
704+
bias-pull-up;
705+
};
706+
707+
expander6_int: expander6-int-state {
708+
pins = "gpio52";
709+
function = "gpio";
710+
bias-pull-up;
711+
};
712+
636713
pcie0_default_state: pcie0-default-state {
637714
wake-pins {
638715
pins = "gpio0";

0 commit comments

Comments
 (0)