From patchwork Tue Jan 9 13:35:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 13514949 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 F38A3C47073 for ; Tue, 9 Jan 2024 13:36:38 +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=upBCjWgGmqLBvMiqaBOB0ZHKgUJ1zTFYax5qOYNXkVI=; b=PdQZyG0WSqtPCT r71idw4GzkRVCuHfAHxhtND1G9M6WIDbufpkEeH9c5gQQ4KsgiNnrc01KUdqNr/8qxJ9O0b1XIJBj rQxMavODBhHSoebCbA7EJuLrYj9AeVKss/oNs/NkoU+eOd3XE3lce3qT31cMZwZPiRpa8JQvL+jkY /dphU4zsPjRqY9J9dR2pjtKp1//uiy530POg4b9A2t8NXrP2ahs4PXILDLsX+LCr/PbEM5AW1ES3n wlR/z/KaGikrQyKvpCHQRrbYQWO4cWHsNtClS9iymZPKuC390D+hzE+Z+6JA8XwjpEfyXoI/9Sn29 D/0bv0ljwppYc1NJd0bQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rNCH4-008O0h-1r; Tue, 09 Jan 2024 13:36:10 +0000 Received: from smtp-8faa.mail.infomaniak.ch ([2001:1600:4:17::8faa]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rNCGx-008NxS-1I for linux-arm-kernel@lists.infradead.org; Tue, 09 Jan 2024 13:36:06 +0000 Received: from smtp-2-0000.mail.infomaniak.ch (unknown [10.5.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4T8X4r6stQzMqKGF; Tue, 9 Jan 2024 13:35:56 +0000 (UTC) Received: from unknown by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4T8X4r2wzbzMppDb; Tue, 9 Jan 2024 14:35:56 +0100 (CET) From: Quentin Schulz To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: Quentin Schulz , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Quentin Schulz Subject: [PATCH 1/2] arm64: dts: rockchip: add spi controller aliases on rk3399 Date: Tue, 9 Jan 2024 14:35:43 +0100 Message-ID: <20240109-rk3399-spi-aliases-v1-1-2009e44e734a@theobroma-systems.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240109-rk3399-spi-aliases-v1-0-2009e44e734a@theobroma-systems.com> References: <20240109-rk3399-spi-aliases-v1-0-2009e44e734a@theobroma-systems.com> MIME-Version: 1.0 X-Mailer: b4 0.12.4 X-Infomaniak-Routing: alpha X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240109_053603_600811_851E5D74 X-CRM114-Status: UNSURE ( 6.77 ) 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: Quentin Schulz There are 6 SPI controllers on RK3399 and they are all numbered in the TRM, so let's add the appropriate aliases to the main DTSI so that any RK3399-based board doesn't need to define the aliases themselves to benefit from stable SPI indices in userspace. Cc: Quentin Schulz Signed-off-by: Quentin Schulz --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index da0dfb237f853..7b04ba526fd59 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -34,6 +34,12 @@ aliases { serial2 = &uart2; serial3 = &uart3; serial4 = &uart4; + spi0 = &spi0; + spi1 = &spi1; + spi2 = &spi2; + spi3 = &spi3; + spi4 = &spi4; + spi5 = &spi5; }; cpus {