Message ID | 20240109-rk3399-spi-aliases-v1-0-2009e44e734a@theobroma-systems.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-20903-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp110333dyi; Tue, 9 Jan 2024 05:36:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFaurapIDO2L3IQ7jL1x+ra9mtaj9pBNP1VSUT9BLJvNcGT1UZ0eCEWXTqP3jCdzjltTpcQ X-Received: by 2002:a05:600c:827:b0:40e:4782:b127 with SMTP id k39-20020a05600c082700b0040e4782b127mr751138wmp.266.1704807388128; Tue, 09 Jan 2024 05:36:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704807388; cv=none; d=google.com; s=arc-20160816; b=F6A6cUqnA4DXAlFZByLDcF7eX6gWOU+c+OcLAjGJYTDy6vt+auQ9kot5LS6GP9hnox BFuQGfC2SVWozcc3T1l9/oz3LAKq3CbyyvywPfyMbSHIZuN9Ey5zq4ADLDlyVgnrhzlK vR+dp7nBjzqG7WUsKMgvOBrcdcy17CVuY3j1mmzkaIuoeiLKuQLKPcs6ExtPtbjJGVDx ILk31TwXZ8XSim+3cOhcQ178T4zZslnOJPbesm2x/ALIUy3cFSO71S+5iOF0bDu9DloY MkF95qrh3itFqXISmTFExT3gSFw5yo+sA/l9cUUPZW5EzCupiRujJgPM8p0ppr3ZOAhO mbjA== 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:message-id:date:subject:cc:to :from; bh=ETAyncXe/K68sWUWMufC33A5CGE8K1PR17tj9hTQuxs=; fh=/ZGS8iKMQJdyvpNQPOp99Plulbqv59sprB7vQmfIwpo=; b=Y9fmjGailD6539j6mvXrGuDBVKxxAhD4Ths+JR/VZzpzgcvOwCFiH3qhFMqMYanUkk xzuSdeHYi6hS8Q1qXXJXX3wIVl1g/IpiBw+l8oauiFJE31HAOuGYRIqP49RDvs2s9VNK 7t2Xn/W3pIt9wovActCCf1cMMHbBFjDiY9/NKFD1nvdr/HRzLGUf/m65hKv+8wiIETbR PcN8i0jkdtiKDDFWxg20dEf2aXnISlEIG+beCtkjgJtDyoQVY3lRjccu+GbNbI981DYL 7//UV2Uskv42++SMS0RILFkY2gihiJsox5/QodeOJ38OwVKRcUTW51ADPrIsUho7WoBG 7vog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-20903-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20903-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id xa14-20020a170907b9ce00b00a2af996aedesi784092ejc.710.2024.01.09.05.36.27 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 05:36:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-20903-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-20903-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-20903-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B94DA1F25283 for <ouuuleilei@gmail.com>; Tue, 9 Jan 2024 13:36:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B86039861; Tue, 9 Jan 2024 13:36:08 +0000 (UTC) Received: from smtp-bc0e.mail.infomaniak.ch (smtp-bc0e.mail.infomaniak.ch [45.157.188.14]) (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 7151C2206B 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-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4T8X4r2xfJzMpnRY; Tue, 9 Jan 2024 13:35:56 +0000 (UTC) Received: from unknown by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4T8X4q4PnjzMpnPk; Tue, 9 Jan 2024 14:35:55 +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 0/2] arm64: dts: rockchip: add SPI controller aliases to RK3399 Date: Tue, 9 Jan 2024 14:35:42 +0100 Message-ID: <20240109-rk3399-spi-aliases-v1-0-2009e44e734a@theobroma-systems.com> X-Mailer: git-send-email 2.43.0 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: 1787620111438300068 X-GMAIL-MSGID: 1787620111438300068 |
Series |
arm64: dts: rockchip: add SPI controller aliases to RK3399
|
|
Message
Quentin Schulz
Jan. 9, 2024, 1:35 p.m. UTC
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.
Helios64 is the only RK3399-based device that defined aliases for SPI
controllers, but since they are now in RK3399 main DTSI, let's remove
the duplication.
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
---
Quentin Schulz (2):
arm64: dts: rockchip: add spi controller aliases on rk3399
arm64: dts: rockchip: remove duplicate SPI aliases for helios64
arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts | 3 ---
arch/arm64/boot/dts/rockchip/rk3399.dtsi | 6 ++++++
2 files changed, 6 insertions(+), 3 deletions(-)
---
base-commit: 9f8413c4a66f2fb776d3dc3c9ed20bf435eb305e
change-id: 20240109-rk3399-spi-aliases-a2ce468a04a3
Best regards,
--
Quentin Schulz <quentin.schulz@theobroma-systems.com>
Comments
On 09/01/2024 14:35, Quentin Schulz wrote: > From: Quentin Schulz <quentin.schulz@theobroma-systems.com> > > 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. But that contradicts the point that board should define aliases for exposable interfaces. Sorry, that's a NAK. > > Cc: Quentin Schulz <foss+kernel@0leil.net> No need to Cc yourself... > Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> > --- Best regards, Krzysztof
Hi Krzysztof, Am Dienstag, 9. Januar 2024, 16:15:30 CET schrieb Krzysztof Kozlowski: > On 09/01/2024 14:35, Quentin Schulz wrote: > > From: Quentin Schulz <quentin.schulz@theobroma-systems.com> > > > > 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. > > But that contradicts the point that board should define aliases for > exposable interfaces. Sorry, that's a NAK. didn't we have this same discussion some weeks ago? ;-) . I.e. spi2 on Rockchip socs is called spi2 in _all_ SoC documentation, lines in _all_ schematics are also always called spi2_foo , so as before I really don't see any value in repeating the very same aliases in _every_ board. Same for i2c, uart . It is of course different for non-numerable interfaces - like the mmcX aliases - where the controller is named sdhci, sdmmc, sdio ... and similar cases. These get to stay in the board dts files of course. Heiko > > Cc: Quentin Schulz <foss+kernel@0leil.net> > > No need to Cc yourself... > > > Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> > > --- > > Best regards, > Krzysztof > >
On 2024-01-09 16:22, Heiko Stübner wrote: > Am Dienstag, 9. Januar 2024, 16:15:30 CET schrieb Krzysztof Kozlowski: >> On 09/01/2024 14:35, Quentin Schulz wrote: >> > From: Quentin Schulz <quentin.schulz@theobroma-systems.com> >> > >> > 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. >> >> But that contradicts the point that board should define aliases for >> exposable interfaces. Sorry, that's a NAK. > > didn't we have this same discussion some weeks ago? ;-) . > > I.e. spi2 on Rockchip socs is called spi2 in _all_ SoC documentation, > lines in _all_ schematics are also always called spi2_foo , so as > before > I really don't see any value in repeating the very same aliases in > _every_ board. > > Same for i2c, uart . Yes, and the RK356x SoC dtsi already defines the spiX aliases in the same way as Quentin proposed. Taking that as an additional example, the RK3399 dtsi can do the same. > It is of course different for non-numerable interfaces - like the mmcX > aliases - where the controller is named sdhci, sdmmc, sdio ... and > similar cases. These get to stay in the board dts files of course. > > > Heiko > >> > Cc: Quentin Schulz <foss+kernel@0leil.net> >> >> No need to Cc yourself... >> >> > Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> >> > --- >> >> Best regards, >> Krzysztof >> >> > > > > > > _______________________________________________ > Linux-rockchip mailing list > Linux-rockchip@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-rockchip
On 09/01/2024 16:22, Heiko Stübner wrote: > Hi Krzysztof, > > Am Dienstag, 9. Januar 2024, 16:15:30 CET schrieb Krzysztof Kozlowski: >> On 09/01/2024 14:35, Quentin Schulz wrote: >>> From: Quentin Schulz <quentin.schulz@theobroma-systems.com> >>> >>> 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. >> >> But that contradicts the point that board should define aliases for >> exposable interfaces. Sorry, that's a NAK. > > didn't we have this same discussion some weeks ago? ;-) . We could have and my feedback might be repeated every time someone does something against common policy or common sense without explaining it. > > I.e. spi2 on Rockchip socs is called spi2 in _all_ SoC documentation, This does not matter. > lines in _all_ schematics are also always called spi2_foo , so as before If you mean board schematics, then this matters. > I really don't see any value in repeating the very same aliases in > _every_ board. > > Same for i2c, uart . > The same as in all previous discussions: the board labels them and these should match the board labeling. https://lore.kernel.org/linux-rockchip/CAK8P3a25iYksubCnQb1-e5yj=crEsK37RB9Hn4ZGZMwcVVrG7g@mail.gmail.com/ https://lore.kernel.org/all/27455049.omNFrla0xU@wuerfel/ These are replies from your upstream maintainer, if you disagree with me. Best regards, Krzysztof