[PATCH v2 3/6] arm64: dts: rockchip: enable SPI flash on NanoPC-T6 LTS

Marcin Juszkiewicz marcin.juszkiewicz at linaro.org
Wed Aug 21 02:17:10 PDT 2024


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 at 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 at 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.






More information about the Linux-rockchip mailing list