From patchwork Mon Aug 19 12:03:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13768284 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 E5E97C5320E for ; Mon, 19 Aug 2024 12:10:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=0SlXCCw4Mb+wJuWMy9mCBZ3oqJ3u01WKvVCVP+AX2bk=; b=s3M9vs8f9+YbHBt77x6Rk7F+rH 4OpxIS+ddzi4NdF85sdhr2+s44L0fkUv9yPaGoXhb2VTX1f2wAP3i3Arf70ZgxGsUzwcnnO0wLP6o PcqcLAE8HtJuez9iPrGme8fr4gUSvSZbEqnbffDt4dXOBZj6elbax02mNyBDn7ch62tPl7fZvFhRl fRgCFxDIkR6xmsyKJbimf3uErRETFV4rVI8/LiDCqY8yJunxRqjRqfDUKs2MIfvAsnUSkgt74QKuM mb+b5eBt2uaSKqS+gSykXRWfB1lPF/qz+f2N+WQ4dp+AvQlogibKmkS8ZMoROyYZuasNKfRSHoaWF r+FUZmbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sg1Dg-00000001NZc-0Ldi; Mon, 19 Aug 2024 12:10:44 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sg17V-00000001LEu-2mBg for linux-arm-kernel@lists.infradead.org; Mon, 19 Aug 2024 12:04:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1724069061; x=1755605061; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0SlXCCw4Mb+wJuWMy9mCBZ3oqJ3u01WKvVCVP+AX2bk=; b=IHmuLZT9kg69G2cqEqSiYl+aArSipyWgxCtNnN4Ek4S/bu9YoZM7ocuz ZtdWH4L+lXRAE4fz8aldfOsOkNOXi6d86cfGtQiKy5PVZX1Amin4TKl48 mSKZMitFKJNrj5Bwo3lO0onfyXvwLjQOPeWzN29bvsZpW/3PXbOAfOr8v jFiT3irKLF1PRPYcIVtnXEdy9Kh4ZXXXja+7CAWTCywyEnZSnZooiJShg 9WfRxtNlea69uCEN31fjEm+gLLbElKHJwTRwq5gFdGLrxwvvZprFHBDwp diNrbnQsd/IQyIPkot3/Q+qsOKHfcamBdRDO8yqaJcQSYiriGfDnnoWa3 A==; X-CSE-ConnectionGUID: B7+aeSK4R3CEr/4qs/fr+w== X-CSE-MsgGUID: Br1r+I6eQVm482yVQYFs9w== X-IronPort-AV: E=Sophos;i="6.10,159,1719871200"; d="scan'208";a="38467134" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 19 Aug 2024 14:04:21 +0200 X-CheckPoint: {66C334C4-26-FF00FE11-F2A862FD} X-MAIL-CPID: 2425E8545625AC393F4300E139099ADB_5 X-Control-Analysis: str=0001.0A782F1F.66C334C5.0050,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id DC5801688FD; Mon, 19 Aug 2024 14:04:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1724069056; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=0SlXCCw4Mb+wJuWMy9mCBZ3oqJ3u01WKvVCVP+AX2bk=; b=kmmytZUD1pExS6UZm6J8BMNTV8oQ1tsxKtUUAsE7up9qFT6vbmIJYU1BSijT99lNBuNNwa 4XJ6GCqGYt+tln1SCUMnvH5+/pM7GViDx2xuGEe0u4JyDzSfkH2194wV+VYomItP5yayRr 3MonDSL1G2tUrsyIcbVHQwUFeD0ehyte7mlgxuptA4ebdFbE6SOo4vOjhgOEycXAOVm5rC sLaw2Artak+T66EnXbXMfqjJCwFbJa53kNaJ4LACdGrtzcSTxr0WX0TDsa871/u5lO47Sz 62N6iKeTbz5sVy7qcf6kv5afaWDWhKElyyNO1wjVx0XCLfE7joh7fsYpWjnNgg== From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Markus Niebel , linux@ew.tq-group.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alexander Stein , Peng Fan Subject: [PATCH v2 08/14] arm64: dts: freescale: imx93-tqma9352-mba93xxla: add GPIO line names Date: Mon, 19 Aug 2024 14:03:22 +0200 Message-Id: <20240819120328.229622-9-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240819120328.229622-1-alexander.stein@ew.tq-group.com> References: <20240819120328.229622-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240819_050422_130162_C9E937FF X-CRM114-Status: UNSURE ( 9.45 ) X-CRM114-Notice: Please train this message. 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 From: Markus Niebel Provide GPIO line names for userspace usage, e.g. libgpiod. While at it, correct the line-name property for ENET[1,2]_INT# gpio hog and LCD_BLT_EN. Signed-off-by: Markus Niebel Signed-off-by: Alexander Stein Reviewed-by: Peng Fan --- .../freescale/imx93-tqma9352-mba93xxla.dts | 55 ++++++++++++++++++- 1 file changed, 52 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla.dts b/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla.dts index 643d006fbf8fd..3f8726180bba2 100644 --- a/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla.dts +++ b/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla.dts @@ -209,6 +209,16 @@ &flexcan2 { }; &gpio1 { + gpio-line-names = + /* 00 */ "", "", "USB_C_ALERT#", "PMIC_IRQ#", + /* 04 */ "", "", "", "", + /* 08 */ "", "", "", "BM2_TEMP_EVENT_MOD#", + /* 12 */ "PEX_INT#", "", "RTC_EVENT#", "", + /* 16 */ "", "", "", "", + /* 20 */ "", "", "", "", + /* 24 */ "", "", "", "", + /* 28 */ "", "", "", ""; + expander-irq-hog { gpio-hog; gpios = <12 GPIO_ACTIVE_LOW>; @@ -227,21 +237,60 @@ rtc-irq-hog { &gpio2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio2>; + + gpio-line-names = + /* 00 */ "", "", "", "", + /* 04 */ "", "", "", "AFE_RESET#", + /* 08 */ "AFE_SYNC", "AFE_DRDY", "MIPI_CSI_TRIGGER", "MIPI_CSI_SYNC", + /* 12 */ "", "", "", "", + /* 16 */ "X1_19", "X1_29", "X1_25", "X1_21", + /* 20 */ "X1_23", "X1_17", "", "", + /* 24 */ "AFE_INT#", "", "X1_15", "", + /* 28 */ "", "", "", ""; }; &gpio3 { + gpio-line-names = + /* 00 */ "SD2_CD#", "", "", "", + /* 04 */ "", "", "", "SD2_RST#", + /* 08 */ "", "", "", "", + /* 12 */ "", "", "", "", + /* 16 */ "", "", "", "", + /* 20 */ "", "", "", "", + /* 24 */ "", "", "ENET1_INT#", "ENET2_INT#", + /* 28 */ "", "", "", ""; + ethphy-eqos-irq-hog { gpio-hog; gpios = <26 GPIO_ACTIVE_LOW>; input; - line-name = "ENET0_IRQ#"; + line-name = "ENET1_INT#"; }; ethphy-fec-irq-hog { gpio-hog; gpios = <27 GPIO_ACTIVE_LOW>; input; - line-name = "ENET1_IRQ#"; + line-name = "ENET2_INT#"; + }; +}; + +&gpio4 { + gpio-line-names = + /* 00 */ "", "", "", "", + /* 04 */ "", "", "", "", + /* 08 */ "", "", "", "", + /* 12 */ "", "", "", "", + /* 16 */ "", "", "", "", + /* 20 */ "", "", "", "", + /* 24 */ "", "", "", "", + /* 28 */ "", "DP_INT", "", ""; + + dp-int-hog { + gpio-hog; + gpios = <29 GPIO_ACTIVE_LOW>; + input; + line-name = "DP_INT"; }; }; @@ -378,7 +427,7 @@ expander2: gpio@72 { #gpio-cells = <2>; vcc-supply = <®_3v3>; gpio-line-names = "LCD_RESET#", "LCD_PWR_EN", - "LCD_BL_EN", "DP_EN", + "LCD_BLT_EN", "DP_EN", "MIPI_CSI_EN", "MIPI_CSI_RST#", "USER_LED1", "USER_LED2"; };