From: Dragan Simic <dsimic@manjaro.org>
To: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Cc: "Heiko Stübner" <heiko@sntech.de>, linux-rockchip@lists.infradead.org
Subject: Re: [PATCH v2 3/6] arm64: dts: rockchip: enable SPI flash on NanoPC-T6 LTS
Date: Wed, 21 Aug 2024 11:50:08 +0200 [thread overview]
Message-ID: <51ba5cc6819c268e266f2eef58b3ffd9@manjaro.org> (raw)
In-Reply-To: <5551c256-a21a-4914-b987-2cbe2eedb28f@linaro.org>
On 2024-08-21 11:17, Marcin Juszkiewicz wrote:
> On 21.08.2024 10:59, Heiko Stübner wrote:
>> Am Mittwoch, 21. August 2024, 10:25:32 CEST schrieb Marcin
>> Juszkiewicz:
>>> FriendlyELEC NanoPC-T6 LTS has 32MB of SPI flash on-board. On non-LTS
>>> boards this is optional chip.
>>>
>>> Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
>>> ---
>>> arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts | 14
>>> ++++++++++++++
>>> 1 file changed, 14 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
>>> b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
>>> index bf2c4427ad74..0f9df64dc1b1 100644
>>> --- a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
>>> +++ b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
>>> @@ -594,6 +594,20 @@ &sdmmc {
>>> status = "okay";
>>> };
>>> +&sfc {
>>> + pinctrl-names = "default";
>>> + pinctrl-0 = <&fspim1_pins>;
>>> + status = "okay";
>>> +
>>> + flash@0 {
>>> + compatible = "jedec,spi-nor";
>>> + reg = <0>;
>>> + spi-max-frequency = <104000000>;
>>> + spi-rx-bus-width = <4>;
>>> + spi-tx-bus-width = <1>;
>>> + };
>>> +};
>>> +
>>
>> same question as patch1. You enable this also on the non-LTS boards
>> now
>> that don't have this flash chip?
>
> non-LTS version of board has a space for this SPI chip so it can be
> populated either by vendor or by user. Any OS/firmware which touch SPI
> flash should (IMHO) check is chip present - DT tells where to look.
Ah, so it's like the Pine64 Rock64, for example, [1] which also comes
with unpopulated pads for the SPI chip. In that case, I'd agree that
adding the definitions to the non-LTS DT is fine.
[1]
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3328-rock64.dts?h=v6.11-rc4#n338
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2024-08-21 10:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-21 8:25 [PATCH v2 0/6] improve FriendlyELEC NanoPC-T6 a bit Marcin Juszkiewicz
2024-08-21 8:25 ` [PATCH v2 1/6] arm64: dts: rockchip: enable USB 2.0 on NanoPC-T6 LTS Marcin Juszkiewicz
2024-08-21 8:58 ` Heiko Stübner
2024-08-21 9:14 ` Marcin Juszkiewicz
2024-08-21 9:17 ` Dragan Simic
2024-08-21 8:25 ` [PATCH v2 2/6] arm64: dts: rockchip: define pinctl for SPI M1 Marcin Juszkiewicz
2024-08-21 8:25 ` [PATCH v2 3/6] arm64: dts: rockchip: enable SPI flash on NanoPC-T6 LTS Marcin Juszkiewicz
2024-08-21 8:59 ` Heiko Stübner
2024-08-21 9:17 ` Marcin Juszkiewicz
2024-08-21 9:50 ` Dragan Simic [this message]
2024-08-21 8:25 ` [PATCH v2 4/6] arm64: dts: rockchip: add IR-receiver to NanoPC-T6 Marcin Juszkiewicz
2024-08-21 8:25 ` [PATCH v2 5/6] arm64: dts: rockchip: enable GPU on NanoPC-T6 Marcin Juszkiewicz
2024-08-21 8:25 ` [PATCH v2 6/6] arm64: dts: rockchip: enable USB-C " Marcin Juszkiewicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51ba5cc6819c268e266f2eef58b3ffd9@manjaro.org \
--to=dsimic@manjaro.org \
--cc=heiko@sntech.de \
--cc=linux-rockchip@lists.infradead.org \
--cc=marcin.juszkiewicz@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.