From patchwork Fri Dec 1 16:58:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Heiko_St=C3=BCbner?= X-Patchwork-Id: 13476177 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 55017C4167B for ; Fri, 1 Dec 2023 16:58:26 +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:References:In-Reply-To: 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: List-Owner; bh=W5JR9WV7vWYLeHAoZVGSMv/LtFGxjE41wMIPrYQaneI=; b=J+Kide7EhlXXXQ pXgnV+4W2AuM4rr+srLjlQSva/l6zKrKsNDdAlG16ta8f1cP0PJ+dWUuGqsQRh8RoMOlfINYpJrkd KYo0SkjyfDvL/0XT2NOzG1IFgdwf+KSj47Fr1/Xp06IXVxM7EFiqKEoHv3Cj+CWi991ki2XrdFRYP HHPun0Zu6itBALfAFMtc73SrkYA7BQ//CXv2XmFvOqvKqLZJ571C2uqFHYrhCQX0quKOLIUetDmTl YGRej5eNwP/yvC6rbiarHMJOLWYR9GIWK0UbQJYXCiu+Aj5exjWAtoTfgvJp7Z6CDj0ShBxSg8Ux/ TnbG6cAEufA70Zjam9Xw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r96qK-00EGRQ-09; Fri, 01 Dec 2023 16:58:20 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r96qF-00EGOD-2x; Fri, 01 Dec 2023 16:58:18 +0000 Received: from i53875b61.versanet.de ([83.135.91.97] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r96qD-0001Os-Ev; Fri, 01 Dec 2023 17:58:13 +0100 From: Heiko Stuebner To: linux-rockchip@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, quentin.schulz@theobroma-systems.com, heiko@sntech.de, Heiko Stuebner Subject: [PATCH 3/4] arm64: dts: rockchip: add rk3588 gpio aliases to soc dtsi Date: Fri, 1 Dec 2023 17:58:09 +0100 Message-Id: <20231201165810.334212-4-heiko@sntech.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231201165810.334212-1-heiko@sntech.de> References: <20231201165810.334212-1-heiko@sntech.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231201_085815_989579_5790F659 X-CRM114-Status: GOOD ( 12.08 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Heiko Stuebner The gpio controllers on rk3588 are named gpio0 - gpio4. Board schematics also use these exact numbers and we want those names to also reflect in the OS devices because everything else would just cause confusion. Userspace gpio access is a thing afterall. So instead of having each board repeating their list of gpio aliases move them to the soc dtsi, as previous Rockchip soc like the rk356x do already. Signed-off-by: Heiko Stuebner --- arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi index 47512c39e55a..a59407466746 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi @@ -19,6 +19,11 @@ / { #size-cells = <2>; aliases { + gpio0 = &gpio0; + gpio1 = &gpio1; + gpio2 = &gpio2; + gpio3 = &gpio3; + gpio4 = &gpio4; i2c0 = &i2c0; i2c1 = &i2c1; i2c2 = &i2c2;