Message ID | 20231108191652.1118155-1-a-bhatia1@ti.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:270e:b0:429:e9f3:4b66 with SMTP id gl14csp1147332vqb; Wed, 8 Nov 2023 11:17:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IFyYsGTnn9Duyf8gzXlRN3BjtabosRcct96XehikM/71R71qg18JhnLJcid9AXlCeoVpLrw X-Received: by 2002:a05:6a20:e11b:b0:181:219f:4a6a with SMTP id kr27-20020a056a20e11b00b00181219f4a6amr3757564pzb.49.1699471048705; Wed, 08 Nov 2023 11:17:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699471048; cv=none; d=google.com; s=arc-20160816; b=Xi8RoFaaidHZ3I2VbQAY/DVObpELd33ea2UlH7fjwCedYTWr1umKfV7ErOY/EwtmFH 5cBRqFnCI8+cDhR5c+MSRxItQJt3Pxe5JpBUPxuXglePsOLuJxkkgg1E5dFGNa356vb/ T8m5UaRoB9/yP0iEv+L1Z/Nmnij4y/bp5rKQzqL0tvtMYQGUhTkYJ33YUUvRGny0lLfh zNBE1TDzt1Oh5pDYTt9AaHmHCGw0TG6mqTk5QuxaMLIUF4UYwu6HZ+gWwHrh236I4bOe +J2bK8gz0jfjSIK8X1emrXflhPJrxpqUYyRn0FEmkIncZ/hvAyQJzWzxJjLnLAWfm92Y wlUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NMhYGXJRyOK/yzQfDKagVg0su+ebpTginWly+7LsBDA=; fh=JeA48DPF7Wx560vzOfceXcZXsOLMzYxxCVaPGrWLBKc=; b=jYDsMj7xsNPXMpBThbdRZ8XtS0r35HOVmbR+TxQ4/NLeubaBj5O5g9Nu3UQWARvPaq kgkpxaZA/Bwtf1Yfk/DJ6Rfn6GAokf2SqztjynC65krYAx1eAr1LxvfOjICedY7LoUM8 KrIpbTNpuBuwWsfvYVmsDnZ0kwR+c1sYaY0ueDA295k1ZYSYRN2OLJiQiboeBHoRUcJp cWVsXt5baO/xKVgGwEDZszVPOiWaBwSTX+5wPk38e/HSb0QqIRQ5Ctjy77DWoHjb1INT vZKMyjiAbRKMCDO0ubPCNJXcD8yqksqIKOzeUDvwuauM8U4cNL+hrTh3+aHBO0Mhb560 8TCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=n57j9mLx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id c20-20020a62e814000000b0069023e4bcb4si12524863pfi.114.2023.11.08.11.17.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 11:17:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=n57j9mLx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 47ACB81E1B65; Wed, 8 Nov 2023 11:17:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231628AbjKHTRI (ORCPT <rfc822;jaysivo@gmail.com> + 32 others); Wed, 8 Nov 2023 14:17:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230017AbjKHTRH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Nov 2023 14:17:07 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36D8B210E; Wed, 8 Nov 2023 11:17:05 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3A8JGr3r027277; Wed, 8 Nov 2023 13:16:53 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1699471013; bh=NMhYGXJRyOK/yzQfDKagVg0su+ebpTginWly+7LsBDA=; h=From:To:CC:Subject:Date; b=n57j9mLx7kBwMLmZcHXynZptwXhnaBT1KK049dboFjRttixqNEI+7BvSM4iSFkj4M GHz9kk8PjaeVcKU/HdFDg7WB5v+HgAz9Qidtsr2RLcij4cV6navDBUF7ONSa7TiJNh AUAdH+5MD+abuvPaABMCz3zCb2Y/xwvCJxhFjk7U= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3A8JGr3i053833 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 8 Nov 2023 13:16:53 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 8 Nov 2023 13:16:53 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 8 Nov 2023 13:16:53 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3A8JGqQQ030283; Wed, 8 Nov 2023 13:16:53 -0600 From: Aradhya Bhatia <a-bhatia1@ti.com> To: Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>, Tero Kristo <kristo@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org> CC: Devicetree List <devicetree@vger.kernel.org>, Linux Kernel List <linux-kernel@vger.kernel.org>, Linux ARM Kernel List <linux-arm-kernel@lists.infradead.org>, Devarsh Thakkar <devarsht@ti.com>, Jai Luthra <j-luthra@ti.com>, Aradhya Bhatia <a-bhatia1@ti.com> Subject: [PATCH] arm64: dts: ti: k3-am62a7-sk: Add interrupt support for IO Expander Date: Thu, 9 Nov 2023 00:46:52 +0530 Message-ID: <20231108191652.1118155-1-a-bhatia1@ti.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 08 Nov 2023 11:17:26 -0800 (PST) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782024554104288559 X-GMAIL-MSGID: 1782024554104288559 |
Series |
arm64: dts: ti: k3-am62a7-sk: Add interrupt support for IO Expander
|
|
Commit Message
Aradhya Bhatia
Nov. 8, 2023, 7:16 p.m. UTC
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 line #23, of the SoC.
Add interrupt information for the IO Expander 1 (exp1).
Also add pinmux info of main gpio 1, line #23.
Signed-off-by: Aradhya Bhatia <a-bhatia1@ti.com>
---
Notes:
- HDMI display on AM62A7 is not in the mainline yet. All the patches,
including this one, required to enable HDMI display and HPD on
AM62A7 SK-EVM, can be found on my github fork in the branch
"next_am62a-v3"[0].
[0]: https://github.com/aradhya07/linux-ab/tree/next_am62a-v3
arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)
base-commit: 2220f68f4504aa1ccce0fac721ccdb301e9da32f
Comments
Hi Aradhya, On Nov 09, 2023 at 00:46:52 +0530, Aradhya Bhatia wrote: > 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 line #23, of the SoC. > > Add interrupt information for the IO Expander 1 (exp1). > Also add pinmux info of main gpio 1, line #23. > > Signed-off-by: Aradhya Bhatia <a-bhatia1@ti.com> Reviewed-by: Jai Luthra <j-luthra@ti.com> > --- > > Notes: > > - HDMI display on AM62A7 is not in the mainline yet. All the patches, > including this one, required to enable HDMI display and HPD on > AM62A7 SK-EVM, can be found on my github fork in the branch > "next_am62a-v3"[0]. > > [0]: https://github.com/aradhya07/linux-ab/tree/next_am62a-v3 > > arch/arm64/boot/dts/ti/k3-am62a7-sk.dts | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts > index 8f64ac2c7568..560dad02ef62 100644 > --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts > +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts > @@ -274,6 +274,12 @@ AM62AX_IOPAD(0x08c, PIN_OUTPUT, 2) /* (K19) GPMC0_WEn.MCASP1_AXR0 */ > 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 { > @@ -407,6 +413,12 @@ exp1: gpio@22 { > 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", > > base-commit: 2220f68f4504aa1ccce0fac721ccdb301e9da32f > -- > 2.42.0 >
Hi Aradhya Bhatia, On Thu, 09 Nov 2023 00:46:52 +0530, Aradhya Bhatia wrote: > 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 line #23, of the SoC. > > Add interrupt information for the IO Expander 1 (exp1). > Also add pinmux info of main gpio 1, line #23. > > [...] I have applied the following to branch ti-k3-dts-next on [1]. Thank you! [1/1] arm64: dts: ti: k3-am62a7-sk: Add interrupt support for IO Expander commit: e57ba268254bda25a3ddca8b7971d6ad8277e2d8 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent up the chain during the next merge window (or sooner if it is a relevant bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. [1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts index 8f64ac2c7568..560dad02ef62 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk.dts @@ -274,6 +274,12 @@ AM62AX_IOPAD(0x08c, PIN_OUTPUT, 2) /* (K19) GPMC0_WEn.MCASP1_AXR0 */ 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 { @@ -407,6 +413,12 @@ exp1: gpio@22 { 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",