Linux-Rockchip Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add DTS for NanoPi R2S Plus
@ 2024-07-31 20:41 Sergey Bostandzhyan
  2024-07-31 20:41 ` [PATCH 1/2] arm64: dts: rockchip: Add DTS for FriendlyARM " Sergey Bostandzhyan
                   ` (2 more replies)
  0 siblings, 3 replies; 25+ messages in thread
From: Sergey Bostandzhyan @ 2024-07-31 20:41 UTC (permalink / raw)
  To: linux-rockchip; +Cc: heiko, Sergey Bostandzhyan

Hi,

I noticed, that a DTS for the R2S Plus is not yet available, while the
R2S is already there. The only difference is, that the Plus version has an
eMMC, so we can reuse the R2S definitions and only add an eMMC block, which
I copied from the DTS in the friendlyarm/uboot-rockchip repo.

I applied the same DTS changes to u-boot and tested u-boot 2024.04 with
kernel 6.6.35 on an R2S Plus which I have here and the eMMC became visible
and usable.

Kind regards,
Sergey


Sergey Bostandzhyan (2):
  arm64: dts: rockchip: Add DTS for FriendlyARM NanoPi R2S Plus
  dt-bindings: arm: rockchip: Add NanoPi R2S Plus

 .../devicetree/bindings/arm/rockchip.yaml     |  1 +
 arch/arm64/boot/dts/rockchip/Makefile         |  1 +
 .../dts/rockchip/rk3328-nanopi-r2s-plus.dts   | 31 +++++++++++++++++++
 3 files changed, 33 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts

-- 
2.20.1


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: [PATCH V2 0/2 RESEND] Add DTS for NanoPi R2S Plus
@ 2024-08-02 13:57 Bjoern A. Zeeb
  2024-08-02 14:19 ` Diederik de Haas
  0 siblings, 1 reply; 25+ messages in thread
From: Bjoern A. Zeeb @ 2024-08-02 13:57 UTC (permalink / raw)
  To: Sergey 'Jin' Bostandzhyan
  Cc: robh, krzk+dt, conor+dt, heiko, devicetree, linux-arm-kernel,
	linux-rockchip, linux-kernel

On Fri, 2 Aug 2024, Sergey 'Jin' Bostandzhyan wrote:

> Hi,
>
> On Fri, Aug 02, 2024 at 09:46:40AM +0000, Bjoern A. Zeeb wrote:
>>> I noticed, that a DTS for the R2S Plus is not yet available, while the
>>> R2S is already there. The only difference is, that the Plus version has an
>>> eMMC, so we can reuse the R2S definitions and only add an eMMC block, which
>>> I copied from the DTS in the friendlyarm/uboot-rockchip repo.
>>
>> The original has a
>> 	// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
>>
>> please don't lose the OR MIT as other projects outside Linux do use the
>> same dts files;  and the original r2s file also preserved it.
>
> Uhm... I am confused now, I copy-pasted the emmc block from this file:
> https://github.com/friendlyarm/uboot-rockchip/blob/nanopi4-v2017.09/arch/arm/dts/rk3328-nanopi-r2.dts#L7
>
> The header does not have the "OR MIT" in there, it's just
> "SPDX-License-Identifier:     GPL-2.0+" which is what I also copied
> over, together with the (c) part.
>
> The source which I was using is described in the commit message:
>
> The eMMC configuration for the DTS has been extracted and copied from
> rk3328-nanopi-r2.dts, v2017.09 branch from the friendlyarm/uboot-rockchip
> repository.
>
> Maybe you looked at a different branch? Shall I still add the "OR
> MIT" or leave it as in the original file which I copied it from?

That explains also why there's no sdmmc_ext/sdio bits...

See here for more:
https://github.com/friendlyarm/kernel-rockchip/blob/nanopi-r2-v6.1.y/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2-rev24.dts

My current believe is that rockchip/rk3328.dtsi needs the additional
 	sdmmc_ext: mmc@ff5f0000

block and the vendor setting for rk3328-nanopi-r2s-plus.dts
needs like:
        aliases {
                mmc0 = &sdmmc;
                mmc1 = &sdmmcext;
                mmc2 = &emmc;
        };

and also need

+&emmc {
+&sdmmc {
+&sdmmc_ext {
+&sdmmc0ext_clk {
+&sdmmc0ext_cmd {
+&sdmmc0ext_bus4 {
+&sdio_pwrseq {

but I don't do Linux a lot so I don't know the current state of art for
6.11 for each of the values there (I assume some need tweaking and
cleanup).

/bz

-- 
Bjoern A. Zeeb                                                     r15:7

_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2024-08-14 13:55 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-31 20:41 [PATCH 0/2] Add DTS for NanoPi R2S Plus Sergey Bostandzhyan
2024-07-31 20:41 ` [PATCH 1/2] arm64: dts: rockchip: Add DTS for FriendlyARM " Sergey Bostandzhyan
2024-07-31 20:41 ` [PATCH 2/2] dt-bindings: arm: rockchip: Add " Sergey Bostandzhyan
2024-08-01  8:10   ` Krzysztof Kozlowski
2024-08-01 17:57     ` [PATCH V2 0/2 RESEND] Add DTS for " Sergey Bostandzhyan
2024-08-01 17:57       ` [PATCH V2 1/2 RESEND] arm64: dts: rockchip: Add DTS for FriendlyARM " Sergey Bostandzhyan
2024-08-04  0:27         ` Daniel Golle
2024-08-05  8:59           ` Sergey 'Jin' Bostandzhyan
2024-08-10 19:11           ` Heiko Stübner
2024-08-14 11:21             ` Sergey 'Jin' Bostandzhyan
2024-08-14 11:30               ` Diederik de Haas
2024-08-14 11:34                 ` Diederik de Haas
2024-08-14 11:36             ` Heiko Stübner
2024-08-14 12:24               ` Sergey 'Jin' Bostandzhyan
2024-08-14 13:53               ` Heiko Stübner
2024-08-01 17:57       ` [PATCH V2 2/2 RESEND] dt-bindings: arm: rockchip: Add " Sergey Bostandzhyan
2024-08-06 17:24         ` Rob Herring (Arm)
2024-08-01 21:22       ` [PATCH V2 0/2 RESEND] Add DTS for " Heiko Stübner
2024-08-02  9:46       ` Bjoern A. Zeeb
2024-08-02 10:04         ` Sergey 'Jin' Bostandzhyan
2024-08-05 15:00       ` Rob Herring (Arm)
2024-08-01 18:05     ` [PATCH 2/2] dt-bindings: arm: rockchip: Add " Sergey 'Jin' Bostandzhyan
2024-08-01 15:29 ` [PATCH 0/2] Add DTS for " Rob Herring (Arm)
  -- strict thread matches above, loose matches on Subject: below --
2024-08-02 13:57 [PATCH V2 0/2 RESEND] " Bjoern A. Zeeb
2024-08-02 14:19 ` Diederik de Haas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox