[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0de0f505-5858-4ea6-85a7-4c386ac205e9@rock-chips.com>
Date: Wed, 31 Dec 2025 16:12:33 +0800
From: Ye Zhang <ye.zhang@...k-chips.com>
To: Krzysztof Kozlowski <krzk@...nel.org>,
Linus Walleij <linus.walleij@...aro.org>, Heiko Stuebner <heiko@...ech.de>
Cc: Bartosz Golaszewski <brgl@...ev.pl>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, linux-gpio@...r.kernel.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org,
tao.huang@...k-chips.com
Subject: Re: [PATCH v4 7/7] ARM: dts: rockchip: rk3506: Add pinctrl and rmio
dtsi for rk3506
在 2025/12/28 18:37, Krzysztof Kozlowski 写道:
> On 27/12/2025 12:49, Ye Zhang wrote:
>> + /omit-if-no-ref/
>> + rm_io28_touch_key_in6: rm-io28-touch-key-in6 {
>> + rockchip,pins =
>> + <1 RK_PC3 7 &pcfg_pull_none>;
>> + rockchip,rmio-pins =
>> + <0 28 49>;
>> + };
>> +
>> + /omit-if-no-ref/
>> + rm_io28_touch_key_in7: rm-io28-touch-key-in7 {
>> + rockchip,pins =
>> + <1 RK_PC3 7 &pcfg_pull_none>;
>> + rockchip,rmio-pins =
>> + <0 28 50>;
>> + };
>> +
>> + /omit-if-no-ref/
>> + rm_io28_sai0_mclk: rm-io28-sai0-mclk {
>> + rockchip,pins =
>> + <1 RK_PC3 7 &pcfg_pull_none>;
>> + rockchip,rmio-pins =
>> + <0 28 51>;
>> + };
>> +
>> + /omit-if-no-ref/
>> + rm_io28_sai0_sclk: rm-io28-sai0-sclk {
>> + rockchip,pins =
>> + <1 RK_PC3 7 &pcfg_pull_none>;
>> + rockchip,rmio-pins =
>> + <0 28 52>;
>> + };
>> +
>> + /omit-if-no-ref/
>> + rm_io28_sai0_lrck: rm-io28-sai0-lrck {
>> + rockchip,pins =
>> + <1 RK_PC3 7 &pcfg_pull_none>;
>> + rockchip,rmio-pins =
>> + <0 28 53>;
>> + };
>> +
>> + /omit-if-no-ref/
>> + rm_io28_sai0_sdi0: rm-io28-sai0-sdi0 {
>> + rockchip,pins =
>> + <1 RK_PC3 7 &pcfg_pull_none>;
>> + rockchip,rmio-pins =
>> + <0 28 54>;
>> + };
> Why are you defining all pins? This is wrong, your driver has to do it,
> not DTS. All these definitions when not used are just pointless.
>
This file is auto-generated to provide a complete set of RMIO
configurations. Our intention is to offer a generic library for all
future board developers, so they can simply pick the needed nodes by
phandle without manually looking up register values in the datasheet
every time. This improves usability and standardization.
We also used the /omit-if-no-ref/ tag, so this will strictly not
increase the size of the compiled DTB binary at all.
Could you please reconsider if this approach is acceptable given the
usability benefits?
If you still consider the ~25k lines of source code bloat unacceptable
for upstream, we will have to drop this generic dtsi file and let users
manually define only the required nodes when adding board support.
Best regards,
Ye Zhang
Powered by blists - more mailing lists