Message ID | 20240109-rk3399-spi-aliases-v1-2-2009e44e734a@theobroma-systems.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-20904-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp110390dyi; Tue, 9 Jan 2024 05:36:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFSL+jXFrho3ThnfZT+GKVsH+gZ9Vov4pIMwg+6URVp3u4n+r93RVus2J3hZsSq83JGKLzB X-Received: by 2002:ac8:7dd3:0:b0:429:916d:57b1 with SMTP id c19-20020ac87dd3000000b00429916d57b1mr987638qte.45.1704807393932; Tue, 09 Jan 2024 05:36:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704807393; cv=none; d=google.com; s=arc-20160816; b=UldKQgYaCdE8kPm2nzeYtay78S/EzrJqwh4QuW6fBJt6yQGynEy4eY1j5KGC3HE3Zf M8WOXf4ki/26E7bGCiK+CvTZaMGHmwnqO4sCmpc95z5tu5j7RAsacPypV9OpiJL6ixb+ jxLMVgOJvrfqdJo86g6j4WKPekDiPZyeQCFHw+oiB7EHsQSH3Y5ctd/VFggx+A48j7jX i+mHaEM9tlTwHa1wGx+R+rn2vdZdFF1G2ywU1Nx4ccfrqRMuzkiAgAvNgcsnJFRkyvFM SgHXvKaXaTZHZO0Z2vh5goq67yNYPFjKgbqPnDZ89uLXBHVrJy0UCkSTjBSRxSEgvqiM 7R8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=/YInGJbvIF/xDRq2+6M+z3Tu5pNBT14bKZpS6qeqsGQ=; fh=/ZGS8iKMQJdyvpNQPOp99Plulbqv59sprB7vQmfIwpo=; b=Rg3JwJUwEQdsZQDKiZkF7mzn4qfO3ucZ8el1FIdHXOvt+4jmJGcbNjocU85Qei8F8z O7v0F6iSrUZ7na7SD67Xdr+KLdbHENboAheBbRKaNOxK1qZq/0ac6md6ZZXLuzjiCrC2 RzsMcAvdMu3IFkxvtWOSW6rHD3SeG5MbE1NrSHvyaxYKWqkRTU9dbf1mssWD2tYdkLXg sledbtMp0H9y+ZGONarstNbXSNqaR6KjR7BxSqMUpsjEHxbjQpFlyC0Oc4Fgj9aPr4iV q6kbo8FpBbOEGj8a4o5n4gY70iGRdJod92099CiNzR4+qaJtGmARtDbVfrA/TdDhV0vK LtJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-20904-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20904-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w19-20020a05622a135300b004299e275ad5si2132580qtk.481.2024.01.09.05.36.33 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 05:36:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20904-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-20904-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20904-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B82731C2321A for <ouuuleilei@gmail.com>; Tue, 9 Jan 2024 13:36:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9A933987B; Tue, 9 Jan 2024 13:36:08 +0000 (UTC) Received: from smtp-bc0b.mail.infomaniak.ch (smtp-bc0b.mail.infomaniak.ch [45.157.188.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4F0F38F9E for <linux-kernel@vger.kernel.org>; Tue, 9 Jan 2024 13:36:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=0leil.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=0leil.net Received: from smtp-2-0000.mail.infomaniak.ch (unknown [10.5.36.107]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4T8X4s3hdRzMqB7W; Tue, 9 Jan 2024 13:35:57 +0000 (UTC) Received: from unknown by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4T8X4r6qsSzMpnPh; Tue, 9 Jan 2024 14:35:56 +0100 (CET) From: Quentin Schulz <foss+kernel@0leil.net> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Heiko Stuebner <heiko@sntech.de> Cc: Quentin Schulz <foss+kernel@0leil.net>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Quentin Schulz <quentin.schulz@theobroma-systems.com> Subject: [PATCH 2/2] arm64: dts: rockchip: remove duplicate SPI aliases for helios64 Date: Tue, 9 Jan 2024 14:35:44 +0100 Message-ID: <20240109-rk3399-spi-aliases-v1-2-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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.12.4 Content-Transfer-Encoding: quoted-printable X-Infomaniak-Routing: alpha X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787620118070291691 X-GMAIL-MSGID: 1787620118070291691 |
Series |
arm64: dts: rockchip: add SPI controller aliases to RK3399
|
|
Commit Message
Quentin Schulz
Jan. 9, 2024, 1:35 p.m. UTC
From: Quentin Schulz <quentin.schulz@theobroma-systems.com> An earlier commit defined an alias for all SPI controllers found on the RK3399, so there's no need to duplicate the aliases in helios64's device tree. Cc: Quentin Schulz <foss+kernel@0leil.net> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> --- arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts | 3 --- 1 file changed, 3 deletions(-) -- 2.43.0
Comments
On 09/01/2024 14:35, Quentin Schulz wrote: > From: Quentin Schulz <quentin.schulz@theobroma-systems.com> > > An earlier commit defined an alias for all SPI controllers found on the > RK3399, so there's no need to duplicate the aliases in helios64's device > tree. That's not what we want. Boards should define aliases for what is available, according to the board labeling. Best regards, Krzysztof
Am Dienstag, 9. Januar 2024, 16:16:15 CET schrieb Krzysztof Kozlowski: > On 09/01/2024 14:35, Quentin Schulz wrote: > > From: Quentin Schulz <quentin.schulz@theobroma-systems.com> > > > > An earlier commit defined an alias for all SPI controllers found on the > > RK3399, so there's no need to duplicate the aliases in helios64's device > > tree. > > That's not what we want. Boards should define aliases for what is > available, according to the board labeling. and the board labeling for spi2 has always been spi2-miso, spi2-miso etc. In the last 10 years of doing Rockchip stuff, I haven't seen any schematic doing it differently.
On 09/01/2024 16:23, Heiko Stübner wrote: > Am Dienstag, 9. Januar 2024, 16:16:15 CET schrieb Krzysztof Kozlowski: >> On 09/01/2024 14:35, Quentin Schulz wrote: >>> From: Quentin Schulz <quentin.schulz@theobroma-systems.com> >>> >>> An earlier commit defined an alias for all SPI controllers found on the >>> RK3399, so there's no need to duplicate the aliases in helios64's device >>> tree. >> >> That's not what we want. Boards should define aliases for what is >> available, according to the board labeling. > > and the board labeling for spi2 has always been spi2-miso, spi2-miso etc. > In the last 10 years of doing Rockchip stuff, I haven't seen any schematic > doing it differently. OK, this could be a case... but then you add aliases for things which are not labeled on the board. Let's bring Arnd again: https://lore.kernel.org/linux-rockchip/CAK8P3a0ALgbhTVJ7t3XRXALs9vBM=XBvkGhNKXxB+QTepo-3AQ@mail.gmail.com/ Best regards, Krzysztof
Hi Krzysztof, [I'll limit myself to this thread, as we're essentially discussing the same in both] Am Dienstag, 9. Januar 2024, 20:14:38 CET schrieb Krzysztof Kozlowski: > On 09/01/2024 16:23, Heiko Stübner wrote: > > Am Dienstag, 9. Januar 2024, 16:16:15 CET schrieb Krzysztof Kozlowski: > >> On 09/01/2024 14:35, Quentin Schulz wrote: > >>> From: Quentin Schulz <quentin.schulz@theobroma-systems.com> > >>> > >>> An earlier commit defined an alias for all SPI controllers found on the > >>> RK3399, so there's no need to duplicate the aliases in helios64's device > >>> tree. > >> > >> That's not what we want. Boards should define aliases for what is > >> available, according to the board labeling. > > > > and the board labeling for spi2 has always been spi2-miso, spi2-miso etc. > > In the last 10 years of doing Rockchip stuff, I haven't seen any schematic > > doing it differently. > > OK, this could be a case... but then you add aliases for things which > are not labeled on the board. On the other hand, we did this dance last year for some other SoCs. And having to repeat the same list of never-changing aliases for every board was a sore spot for a lot of people it seemed. Most boards follow the reference schematics quite closely afterall. Like very shortly after the last discussion I got patches moving the aliases to their then agreed upon position. (numeric busses in the soc dtsi, everything else in board dts). And back in november we ended with [0] - Krzysztof saying that "it is just generic guideline, so up to Heiko what to do with it" ;-) . I also made sure to send the changes upwards way before christmas to give soc maintainers time to complain if needed and especially did point out that change in my pull request text [1] ;-) . Heiko > Let's bring Arnd again: > https://lore.kernel.org/linux-rockchip/CAK8P3a0ALgbhTVJ7t3XRXALs9vBM=XBvkGhNKXxB+QTepo-3AQ@mail.gmail.com/ [0] https://lore.kernel.org/linux-rockchip/7b8a830d-42d0-4220-b9fe-3f5fff43e74d@linaro.org/ [1] https://patchwork.kernel.org/project/linux-soc/patch/3535836.iIbC2pHGDl@phil/
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts index 1eb287a3f8c03..d664ac18a941e 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts @@ -21,9 +21,6 @@ / { aliases { mmc0 = &sdmmc; mmc1 = &sdhci; - spi1 = &spi1; - spi2 = &spi2; - spi5 = &spi5; }; avdd_0v9_s0: avdd-0v9-s0 {