From patchwork Tue Nov 1 10:29:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=2E_Neusch=C3=A4fer?= X-Patchwork-Id: 621187 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF414FA373D for ; Tue, 1 Nov 2022 10:29:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229756AbiKAK3i (ORCPT ); Tue, 1 Nov 2022 06:29:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229511AbiKAK3g (ORCPT ); Tue, 1 Nov 2022 06:29:36 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04FDF19022; Tue, 1 Nov 2022 03:29:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1667298568; bh=llVHE5GLaohYprJdz/Wwa2hAREpdRRrX0D42e625sXg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=kxfAziLxH9jY+uvFYguQT8bTyevy1B7N/nvWp1213fySxSnfWXaAScGRAVmhQiRUs 4UFflRdhWz1veWantwUenFxZIe0QiysD9M2It6HzTCTENR/d+EayeuGJcdu1qnDkNQ fwAnlF2DqtSjVUP18hiko72NIOtSwneCq9ZXDqYULOLYpwl1l9EgtDXpA1QsYfu2tC WfXGpRtW2QLIHFyPrheBi9Q/a+l8sC1wpKTQbmMXZpn9X8QSSKBFTy+Gf3v09+9PXP ldnYl+34DL2ryW2DchPgzve42nb8l8PxoVXbut3U+BHdPDEa7FE9ZZggHzOprIJYL+ VeOFfhWGJZQHw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from probook ([95.223.44.31]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M89Kr-1ov1SN2twx-005MKc; Tue, 01 Nov 2022 11:29:28 +0100 From: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= To: openbmc@lists.ozlabs.org, linux-gpio@vger.kernel.org Cc: =?utf-8?q?Jonathan_Neusch=C3=A4fer?= , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: dts: nuvoton,wpcm450-supermicro-x9sci-ln4f: Add GPIO line names Date: Tue, 1 Nov 2022 11:29:16 +0100 Message-Id: <20221101102916.440526-1-j.neuschaefer@gmx.net> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:PUE/KizgL9d9cQnhr7IpsrDX/mCGPfE/BdLnY3pG7aED8M8rCbT JL0ZTn3+gSbB9ypsqvR75mGyfq3XpfN1GU/JMK1fTMDHAIKKbk0/gq9YNObUsk2odPOT2tx IpssYqTkBxVO+4yggXqrFLZK03nQzRf5YV0Xcusg/SheiaBQe/OxvQKn+dC36i4KR25K6j4 Itre+bb4C3f0rQ77qNbUg== UI-OutboundReport: notjunk:1;M01:P0:/Tv77Y5Rs5k=;Dn3sWwI3bi+sanQVb4PzkD0REVH D6Pdg4T2BtnfJeFg3JxXLmV7aVQsHCN5OjBdh9R9oNmrQrkn/NEEhQzTmefuirc9SyD62HuuS 6nlcz0AlIB+T4GjnJmcG32lklfBUw0cZSVr/oLptkk+9NtNACH08G85aBdFceSx5ns7KkJ4FN l02DPmrNFMeCiI9TjPKo3Q2vjjE+LuH0+GVXkF3KFN6mJjk6DYNSXze4VNRSgmJY3fGz4pGSU Do5kOBRb1zj3gkflXaJJbjAWapClDzdOxEBLzm5oyN1CgpWUnpJSMieJxFDrFp5RiTeeDjUy1 owybtIcmDEfivAatf2DbkCy3la/aJEwrithKcTHsUOhsEdVs1cpsHAMGaBqAar7A5gfQ+WpXg Ej3Jmjb/2nWFOxzhKXEmf6g0iDmvMXJ+zrR9Mnl7lT6KFXU26baAx0Fxf/bsnNob9q0Hq9RHO GlAGnJ9jeMtYvUFEFT/4IElv23Fgp4BJPkrOzWbLxQ4fCgdidAickI2vweDjJKxHTOyU3hjYi /FNg4G1eZnZVhOxTDI+CWHemAduglmvzQg18doaQXbBldt/HPbSzdmvPcjZKkFUNUo8g5MFPF 7WeWPnDIc31nhAb+ZEEPeT+Rax14MJ2EdRuDXUL2SgKQoPocgrQSZpqS8hoohsBnlfrcNBJxJ hAKmLWQ/GwmW83JghPmOhV9ckb6ysWNplobbFPmAmGlgj4UHn5mNqNUd/eiaixBENmWomUnhA BTALrNKrPlUymFFuCuo/kGs8D9XrV6G+QYsdfIrwV/+Qoiq3z68FhDpB2OBjTUr+YCsTm40S/ vkjH4Eqpl5jb19hzEEuh3RgrXJ56oGjlHg93j7u7V1GTD5w1Am7dszRy09qfZ+vCfuysraWWL mwThlmjBUyEjP4qrCbg7VzfsX+vsPlKAd9gfLfuBkqxexRk4jyXaz1U6fSzMy6JkMHWiZHI2T G+AthDT6mAmKXF/9GMCFxDdUh6I= Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org To make gpioinfo output more useful and enable gpiofind usage, add line names for GPIOs where the function is known. This patch follows the naming convention defined for OpenBMC, as much as possible: https://github.com/openbmc/docs/blob/master/designs/device-tree-gpio-naming.md Signed-off-by: Jonathan Neuschäfer Reviewed-by: Joel Stanley --- .../nuvoton-wpcm450-supermicro-x9sci-ln4f.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.35.1 diff --git a/arch/arm/boot/dts/nuvoton-wpcm450-supermicro-x9sci-ln4f.dts b/arch/arm/boot/dts/nuvoton-wpcm450-supermicro-x9sci-ln4f.dts index 26fed97f8ff4a..d4472ffdac928 100644 --- a/arch/arm/boot/dts/nuvoton-wpcm450-supermicro-x9sci-ln4f.dts +++ b/arch/arm/boot/dts/nuvoton-wpcm450-supermicro-x9sci-ln4f.dts @@ -58,6 +58,24 @@ heartbeat { }; }; +&gpio0 { + gpio-line-names = + /* 0 */ "", "host-reset-control-n", "", "", "", "", "", "", + /* 8 */ "", "", "", "", "power-chassis-control-n", "", "uid-button", ""; +}; + +&gpio1 { + gpio-line-names = + /* 0 */ "", "", "", "", "led-heartbeat", "", "", "led-uid", + /* 8 */ "", "", "", "", "", "", "", ""; +}; + +&gpio4 { + gpio-line-names = + /* 0 */ "", "", "", "", "", "", "", "", + /* 8 */ "", "", "", "", "", "", "", "power-chassis-good"; +}; + &pinctrl { key_pins: mux-keys { groups = "gspi", "sspi";