arm64: dts: ti: k3-am62a7-sk: Add interrupt support for IO Expander
authorAradhya Bhatia <a-bhatia1@ti.com>
Wed, 8 Nov 2023 19:16:52 +0000 (00:46 +0530)
committerNishanth Menon <nm@ti.com>
Mon, 4 Dec 2023 18:17:08 +0000 (12:17 -0600)
The Hot Plug Detect (HPD) signal for the HDMI display travels from the
on-board HDMI connector, through the IO Expander 1, and finally to the
main_gpio1 GPIO 23, of the SoC.

Add interrupt information for the IO Expander 1 (exp1) along with the
relevant pinmux.

Signed-off-by: Aradhya Bhatia <a-bhatia1@ti.com>
Reviewed-by: Jai Luthra <j-luthra@ti.com>
Link: https://lore.kernel.org/r/20231108191652.1118155-1-a-bhatia1@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
arch/arm64/boot/dts/ti/k3-am62a7-sk.dts

index 8f64ac2c7568cbb0d5210e158a9849d0483b811b..560dad02ef62eb390fbb0d870db291ca8e77c340 100644 (file)
                        AM62AX_IOPAD(0x084, PIN_INPUT, 2) /* (L18) GPMC0_ADVn_ALE.MCASP1_AXR2 */
                >;
        };
+
+       main_gpio1_ioexp_intr_pins_default: main-gpio1-ioexp-intr-default-pins {
+               pinctrl-single,pins = <
+                       AM62AX_IOPAD(0x01d4, PIN_INPUT, 7) /* (C15) UART0_RTSn.GPIO1_23 */
+               >;
+       };
 };
 
 &mcu_pmx0 {
                reg = <0x22>;
                gpio-controller;
                #gpio-cells = <2>;
+               interrupt-parent = <&main_gpio1>;
+               interrupts = <23 IRQ_TYPE_EDGE_FALLING>;
+               interrupt-controller;
+               #interrupt-cells = <2>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&main_gpio1_ioexp_intr_pins_default>;
 
                gpio-line-names = "GPIO_CPSW2_RST", "GPIO_CPSW1_RST",
                                   "BT_EN_SOC", "MMC1_SD_EN",