From patchwork Wed Nov 8 19:16:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aradhya Bhatia X-Patchwork-Id: 13450485 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0D877C4332F for ; Wed, 8 Nov 2023 19:17:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=aZvb6SX/WbpYz6DZ0HNUrzrvy5d+Cd/q5oWWNtACZwQ=; b=c0JXXWWk83x3LC JUZ1xSa7PfFwFmXUVuZJvofhCKGkiumjDL0ZmQB+4vvtw/+CH1G2SVS7Ctk08Krp7BpIduh6qGJ4O pUf3UWgLyLSaQBbUAooktruqRz1dt9cuwZXULi7igN95Mkry5uywljJzNjfXid/QrjXRyv8mkfDGE 6wI3QDiTjRQoFAEKoLY8BirZETItwaYw0YTUOOyQpwnOK/7f6y4qiarpGfObHaQ40gozix4P8k5JS MGpeLoNGqXWhoplxX6oYMjHxtXJxU+ll5CV509DlCpOJ4Si1UlEjeoEX7cDYkd6VezgKN0SyuHw4p euoOQ8rbfjdILs+RvKTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r0o30-004bI8-1E; Wed, 08 Nov 2023 19:17:06 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r0o2w-004bHa-2k for linux-arm-kernel@lists.infradead.org; Wed, 08 Nov 2023 19:17:04 +0000 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 To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Devicetree List , Linux Kernel List , Linux ARM Kernel List , Devarsh Thakkar , Jai Luthra , Aradhya Bhatia 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 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231108_111703_079315_38101D60 X-CRM114-Status: GOOD ( 12.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Jai Luthra --- 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 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",