From patchwork Wed Jul 24 12:58:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13740944 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 B4D10C3DA61 for ; Wed, 24 Jul 2024 13:03:16 +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=AP3CmACjx9MeO5iBgbOcdKE6AYaFx62FwXf2X5MMjfQ=; b=v7aBzQeKorSstUou8/V8C+dRVI tVsOL+BxY5ZWTNaooY4utz2RGpspkWZ4Sd+9CJpTVftrOnRMkSg03bN667epHMOOwiccYSPh7O40P OB6XHcoeWnF6o5v1bexDryekcB+ENXUGdVGE1AvSFxN3AdCYqSnnuBYvYmcDksyn27ZnbqYkn8YeY FXJ5mofBead+hzVanu+RdE7b8/Qdx6u/xMIr48PQxwicA6V11GFJ7ERCesDaX0LB7ZbktqYJQCkTj N7FLsQgt9UgwuWvLY0RrVs6HP21ukgUyo3Zeik97sZmRpd8YgEtovgj01UntgUUaJfd72CzrKocaQ vXIe7D+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sWbe2-0000000FNsr-2puC; Wed, 24 Jul 2024 13:03:02 +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 1sWbaa-0000000FMXG-0rJY for linux-arm-kernel@lists.infradead.org; Wed, 24 Jul 2024 12:59:30 +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=1721825968; x=1753361968; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AP3CmACjx9MeO5iBgbOcdKE6AYaFx62FwXf2X5MMjfQ=; b=R1sePdXzFUl7wMogxEuz8Qf1Gq7aKfO3xLp4QKmb05yd5gmjpUAIKtp5 AABOANPYgk24KlgcyEUe4OTnsh6dy8Eb8wBySYYn9FhP4Gcv5RrVPyoZn sqwHG7S2aW6mDJzDBc3MpuCh0aDupkhKGDBNGH5yYT94qbLJpiFoazHCY gGhUwi6itehRn+MDld5vUcX+qmLhvdlV1rlYBhUaYiCvCH/MA9M5dt15U OCbgOme0Nz+UWQEP2s6Sl9y9je+R4u0NKYxRpG6iIiDCDR2oY82H4VxAg R9RYBfARlLiP2h8G1WtaC0RwGs7pHvgP5os4CuGW5EUNId3Df6MohUINg Q==; X-CSE-ConnectionGUID: VZ9N35euSle9PhVeAVvcwQ== X-CSE-MsgGUID: cb+yLvb9Sw6u1vNHVyfAHQ== X-IronPort-AV: E=Sophos;i="6.09,232,1716242400"; d="scan'208";a="38058831" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 24 Jul 2024 14:59:26 +0200 X-CheckPoint: {66A0FAAE-13-6C016D47-F93F7C64} X-MAIL-CPID: 8620C7E233D5AD188CB2F30B8FA624C8_0 X-Control-Analysis: str=0001.0A782F26.66A0FAAE.0100,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 6BB8F1633F3; Wed, 24 Jul 2024 14:59:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1721825965; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=AP3CmACjx9MeO5iBgbOcdKE6AYaFx62FwXf2X5MMjfQ=; b=TnPwgI35Bj9TyxNUDW3YmnVCR+yh9CTohVmvry6k40Kijos9L9fNWwHLod35H7bwsTFP82 WmsL5TJYdosyQgNZ+Mq7Wng3f5qONJD6KwbkxkgrYn1hY401wolbEqyyWn2pLHAPSahpbA YxRNEG1hbv49/YUcyc/Wuki0eW1aeqhTw5494nu0HL/jp7xbIGG2HRazHZcwgyuUmQswra XAgKmv9dPtgvoUP5QaV5sjr8IBxwoiNWk2Tq4ahlzRK4dduQiP9bNAwuwLJwMERvrmzwYs WqkeNXut7CET9fiPT9zhdCrPuRd3C52yYyJT+jxIcvJ9R5xk4fr2BzGMPk9zug== From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Alexander Stein 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 Subject: [PATCH 09/14] arm64: dts: freescale: imx93-tqma9352-mba93xxla: add GPIO line names Date: Wed, 24 Jul 2024 14:58:56 +0200 Message-Id: <20240724125901.1391698-10-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240724125901.1391698-1-alexander.stein@ew.tq-group.com> References: <20240724125901.1391698-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-20240724_055928_577825_3F018E98 X-CRM114-Status: GOOD ( 10.07 ) 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 a8870544514f..b9a22d6c1de2 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"; };