Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5808463rdb; Wed, 13 Dec 2023 23:08:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEm9u3dGYwt9qqVs9LCreBXKoueCvKtsFTHtaO85kGMDtJoWuxO1+2+ScRgVTtWbOsxkFSb X-Received: by 2002:a17:90a:8990:b0:286:79b0:2f42 with SMTP id v16-20020a17090a899000b0028679b02f42mr7131675pjn.0.1702537687980; Wed, 13 Dec 2023 23:08:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702537687; cv=none; d=google.com; s=arc-20160816; b=wrSxGHlHfwrkq4Z3ObYMaW37uoKexBQFaRhPd7e5m5GN3A6PTqSTwl9eyhnRcltwTS dgVd/RAP/waYSePHFCPqwXOKEx6+sH4vTy94He9CryVcHVg0/YlhllRXgQvTjtqLZulQ LuqjyT2Ee7VT5Snw083t7+3zEujW03SGHiwPzX0qreahZ9QLfDsRL+iX9/kata+lQGB4 4nJxz/OVHiWPgu1nJTqLNqiokKnTFpO8TujMSds/deqKv9wQWgfQM3vM+JJLn0RthS+Q AJLRgocgGoX3x5dHo1t9cqGjqxRfbAR7/ncvbRIcClO3a4m4Dq7LCLC/e32GolrbN6YI RtPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:dkim-signature:mime-version; bh=YeV7T88snl53RFgpuP4C5JHNb6hLjpYKE/XnNP2YYbo=; fh=eLZJFk9TEF5Rf29RPe/obFFSAiY3P5IBGx6GFn+Ak4Y=; b=iMFDO0TcmcZnBzK1qbGJP1ADpH4qUb8iW7/1brzQcGAA8+ln10DpLSY4Q2S2/ds9qi Y7A+z9t0ulBb+jl/b0lLxBgCcfHlAbn7WDB+f6jMWH3xmeJOhsM9MigkmxRfcf6C3kL0 W8WKfeWRmUP6s1odt3/eY4RFKN8ki0AjHWgzJanMY885CiGfs++Wqo5N8WKExw8Mkcb0 x88pBoy/WcwSXuxJOQb7K3enfbBtz9U3pxEsQLJKReMLonvbTtHEADaC6kc79I2eG6Vb DmG9lJ/RNBHMiauARCgRdzoSkzGQAE9K5lX7pvlPB0JuSg5teR5K8nRsguGrmJBZJWiT jIUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=jjnrRkZ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id d17-20020a17090ad3d100b00286f1a85b64si12085532pjw.77.2023.12.13.23.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 23:08:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=jjnrRkZ7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0BBD88029C46; Wed, 13 Dec 2023 23:08:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234337AbjLNHHr (ORCPT + 99 others); Thu, 14 Dec 2023 02:07:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjLNHHq (ORCPT ); Thu, 14 Dec 2023 02:07:46 -0500 Received: from mail.manjaro.org (mail.manjaro.org [116.203.91.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13C2DBD; Wed, 13 Dec 2023 23:07:51 -0800 (PST) MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1702537669; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YeV7T88snl53RFgpuP4C5JHNb6hLjpYKE/XnNP2YYbo=; b=jjnrRkZ7xobzuw20PCR8x87LIc5aCuTeZvPA1ATgp61Ob8c/IHBiA3KpL7OlX/A5FEMTBK eUtLAKy3AaB3m7DXp+U5mWfZU5UoqzIkqiJvYEJXMDEsJFwB8qzpeu3R9CLSeuL8gvZWsi Q2DlKKoADIRC8eLLfY6DNzI6PQW3t4Xk6k5nmOE+i5CskTn7KMG4zrHWlXg9UFg/6Pl1SF +AYG/kYPYVJ2iq86dHc46/1Vsj+qlUv0itifPkOC67ubwBkoPlcOSbV9QEcFqr0MhE8Kt4 8sfMjNtvC6spnDRu3IBRAA2ZM9J/2itTShoEjzXI+C+1T8SA4GWtI2DKMTfMFw== Date: Thu, 14 Dec 2023 08:07:48 +0100 From: Dragan Simic To: Trevor Woerner Cc: linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: Re: [PATCH v2] arm64: rockchip: dts: rk3328-rock-pi-e: add gpio-line-names In-Reply-To: <20231213160556.14424-1-twoerner@gmail.com> References: <20231213160556.14424-1-twoerner@gmail.com> Message-ID: <62a0261fba6aecf5b28c4c55eb38ea51@manjaro.org> X-Sender: dsimic@manjaro.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=dsimic@manjaro.org smtp.mailfrom=dsimic@manjaro.org X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Dec 2023 23:08:07 -0800 (PST) On 2023-12-13 17:05, Trevor Woerner wrote: > Add names to the pins of the general-purpose expansion header as given > in the Radxa GPIO page[1] following the conventions in the kernel > documentation[2] to make it easier for users to correlate the pins with > functions when using utilities such as 'gpioinfo'. > > Signed-off-by: Trevor Woerner > --- > changes in v2: > - fix subject from "amd64..." to "arm64..." > --- > .../boot/dts/rockchip/rk3328-rock-pi-e.dts | 53 +++++++++++++++++++ > 1 file changed, 53 insertions(+) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts > b/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts > index 018a3a5075c7..3169c0854061 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3328-rock-pi-e.dts > @@ -388,3 +388,56 @@ &usbdrd3 { > &usb_host0_ehci { > status = "okay"; > }; > + > +&gpio0 { > + gpio-line-names = > + /* GPIO0_A0 - A7 */ > + "", "", "", "", "", "", "", "", > + /* GPIO0_B0 - B7 */ > + "", "", "", "", "", "", "", "", > + /* GPIO0_C0 - C7 */ > + "", "", "", "", "", "", "", "", > + /* GPIO0_D0 - D7 */ > + "", "", "", "pin-15 [GPIO0_D3]", "", "", "", ""; > +}; > + > +&gpio1 { > + gpio-line-names = > + /* GPIO1_A0 - A7 */ > + "", "", "", "", "", "", "", "", > + /* GPIO1_B0 - B7 */ > + "", "", "", "", "", "", "", "", > + /* GPIO1_C0 - C7 */ > + "", "", "", "", "", "", "", "", > + /* GPIO1_D0 - D7 */ > + "", "", "", "", "pin-07 [GPIO1_D4]", "", "", ""; > +}; > + > +&gpio2 { > + gpio-line-names = > + /* GPIO2_A0 - A7 */ > + "pin-08 [GPIO2_A0]", "pin-10 [GPIO2_A1]", "pin-11 [GPIO2_A2]", > + "pin-13 [GPIO2-A3]", "pin-27 [GPIO2_A4]", "pin-28 [GPIO2_A5]", > + "pin-33 [GPIO2_A6]", "", > + /* GPIO2_B0 - B7 */ > + "", "", "", "", "pin-26 [GPIO2_B4]", "", "", "pin-36 [GPIO2_B7]", > + /* GPIO2_C0 - C7 */ > + "pin-32 [GPIO2_C0]", "pin-35 [GPIO2_C1]", "pin-12 [GPIO2_C2]", > + "pin-38 [GPIO2_C3]", "pin-29 [GPIO2_C4]", "pin-31 [GPIO2_C5]", > + "pin-37 [GPIO2_C6]", "pin-40 [GPIO2_C7]", > + /* GPIO2_D0 - D7 */ > + "", "", "", "", "", "", "", ""; > +}; > + > +&gpio3 { > + gpio-line-names = > + /* GPIO3_A0 - A7 */ > + "pin-23 [GPIO3_A0]", "pin-19 [GPIO3_A1]", "pin-21 [GPIO3_A2]", > + "", "pin-03 [GPIO3_A4]", "", "pin-05 [GPIO3_A6]", "", > + /* GPIO3_B0 - B7 */ > + "pin-24 [GPIO3_B0]", "", "", "", "", "", "", "", > + /* GPIO3_C0 - C7 */ > + "", "", "", "", "", "", "", "", > + /* GPIO3_D0 - D7 */ > + "", "", "", "", "", "", "", ""; > +}; The formatting should be a bit different, i.e. all lines following "gpio-line-names =" and providing the value should be indented one tab position further.