* [PATCH v3 0/3] Add DTS for NanoPi R2S Plus
@ 2024-08-14 17:00 Sergey Bostandzhyan
2024-08-14 17:00 ` [PATCH v3 1/3] arm64: dts: rockchip: Add DTS for FriendlyARM " Sergey Bostandzhyan
` (5 more replies)
0 siblings, 6 replies; 12+ messages in thread
From: Sergey Bostandzhyan @ 2024-08-14 17:00 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, heiko
Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
Sergey Bostandzhyan
Hi,
here is version 3 of the NanoPi R2S Plus patchset.
* a commit which adds mmc-hs200-1_8v in order to improve eMMC performance has
been included
* the licence header has been updated to the newer version, anw now includes
optional MIT licensing
Sergey Bostandzhyan (3):
arm64: dts: rockchip: Add DTS for FriendlyARM NanoPi R2S Plus
dt-bindings: arm: rockchip: Add NanoPi R2S Plus
arm64: dts: rockchip: improve eMMC speed on NanoPi R2S Plus
.../devicetree/bindings/arm/rockchip.yaml | 1 +
arch/arm64/boot/dts/rockchip/Makefile | 1 +
.../dts/rockchip/rk3328-nanopi-r2s-plus.dts | 32 +++++++++++++++++++
3 files changed, 34 insertions(+)
create mode 100644 arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
--
2.20.1
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v3 1/3] arm64: dts: rockchip: Add DTS for FriendlyARM NanoPi R2S Plus
2024-08-14 17:00 [PATCH v3 0/3] Add DTS for NanoPi R2S Plus Sergey Bostandzhyan
@ 2024-08-14 17:00 ` Sergey Bostandzhyan
2024-08-14 17:00 ` [PATCH v3 2/3] dt-bindings: arm: rockchip: Add " Sergey Bostandzhyan
` (4 subsequent siblings)
5 siblings, 0 replies; 12+ messages in thread
From: Sergey Bostandzhyan @ 2024-08-14 17:00 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, heiko
Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
Sergey Bostandzhyan
The R2S Plus is basically an R2S with additional eMMC.
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.
Signed-off-by: Sergey Bostandzhyan <jin@mediatomb.cc>
---
arch/arm64/boot/dts/rockchip/Makefile | 1 +
.../dts/rockchip/rk3328-nanopi-r2s-plus.dts | 31 +++++++++++++++++++
2 files changed, 32 insertions(+)
create mode 100644 arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile
index fda1b980eb4b..36258dc8dafd 100644
--- a/arch/arm64/boot/dts/rockchip/Makefile
+++ b/arch/arm64/boot/dts/rockchip/Makefile
@@ -20,6 +20,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-evb.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-nanopi-r2c.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-nanopi-r2c-plus.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-nanopi-r2s.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-nanopi-r2s-plus.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-orangepi-r1-plus.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-orangepi-r1-plus-lts.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-rock64.dtb
diff --git a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
new file mode 100644
index 000000000000..12eabdbf8fe8
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
@@ -0,0 +1,31 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * (C) Copyright 2018 FriendlyElec Computer Tech. Co., Ltd.
+ * (http://www.friendlyarm.com)
+ *
+ * (C) Copyright 2016 Rockchip Electronics Co., Ltd
+ */
+
+/dts-v1/;
+#include "rk3328-nanopi-r2s.dts"
+
+/ {
+ model = "FriendlyElec NanoPi R2S Plus";
+ compatible = "friendlyarm,nanopi-r2s-plus", "rockchip,rk3328";
+
+ aliases {
+ mmc1 = &emmc;
+ };
+};
+
+&emmc {
+ bus-width = <8>;
+ cap-mmc-highspeed;
+ supports-emmc;
+ disable-wp;
+ non-removable;
+ num-slots = <1>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
+ status = "okay";
+};
--
2.20.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v3 2/3] dt-bindings: arm: rockchip: Add NanoPi R2S Plus
2024-08-14 17:00 [PATCH v3 0/3] Add DTS for NanoPi R2S Plus Sergey Bostandzhyan
2024-08-14 17:00 ` [PATCH v3 1/3] arm64: dts: rockchip: Add DTS for FriendlyARM " Sergey Bostandzhyan
@ 2024-08-14 17:00 ` Sergey Bostandzhyan
2024-08-14 17:00 ` [PATCH v3 3/3] arm64: dts: rockchip: improve eMMC speed on " Sergey Bostandzhyan
` (3 subsequent siblings)
5 siblings, 0 replies; 12+ messages in thread
From: Sergey Bostandzhyan @ 2024-08-14 17:00 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, heiko
Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
Sergey Bostandzhyan
Add the NanoPi R2S Plus variant, which is an R2S with eMMC.
Signed-off-by: Sergey Bostandzhyan <jin@mediatomb.cc>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
---
Documentation/devicetree/bindings/arm/rockchip.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml
index 1ef09fbfdfaf..e3121d4eba18 100644
--- a/Documentation/devicetree/bindings/arm/rockchip.yaml
+++ b/Documentation/devicetree/bindings/arm/rockchip.yaml
@@ -216,6 +216,7 @@ properties:
- friendlyarm,nanopi-r2c
- friendlyarm,nanopi-r2c-plus
- friendlyarm,nanopi-r2s
+ - friendlyarm,nanopi-r2s-plus
- const: rockchip,rk3328
- description: FriendlyElec NanoPi4 series boards
--
2.20.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v3 3/3] arm64: dts: rockchip: improve eMMC speed on NanoPi R2S Plus
2024-08-14 17:00 [PATCH v3 0/3] Add DTS for NanoPi R2S Plus Sergey Bostandzhyan
2024-08-14 17:00 ` [PATCH v3 1/3] arm64: dts: rockchip: Add DTS for FriendlyARM " Sergey Bostandzhyan
2024-08-14 17:00 ` [PATCH v3 2/3] dt-bindings: arm: rockchip: Add " Sergey Bostandzhyan
@ 2024-08-14 17:00 ` Sergey Bostandzhyan
2024-08-16 6:51 ` Dragan Simic
2024-08-15 18:28 ` [PATCH v3 0/3] Add DTS for " Rob Herring (Arm)
` (2 subsequent siblings)
5 siblings, 1 reply; 12+ messages in thread
From: Sergey Bostandzhyan @ 2024-08-14 17:00 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, heiko
Cc: devicetree, linux-arm-kernel, linux-rockchip, linux-kernel,
Sergey Bostandzhyan
This change has been suggested by Daniel Golle during patch review,
adding mmc-hs200-1_8v; makes sure that eMMC gets detected as HS200
which improves it's performance.
Signed-off-by: Sergey Bostandzhyan <jin@mediatomb.cc>
---
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
index 12eabdbf8fe8..146b1da198b8 100644
--- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
@@ -23,6 +23,7 @@
cap-mmc-highspeed;
supports-emmc;
disable-wp;
+ mmc-hs200-1_8v;
non-removable;
num-slots = <1>;
pinctrl-names = "default";
--
2.20.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH v3 0/3] Add DTS for NanoPi R2S Plus
2024-08-14 17:00 [PATCH v3 0/3] Add DTS for NanoPi R2S Plus Sergey Bostandzhyan
` (2 preceding siblings ...)
2024-08-14 17:00 ` [PATCH v3 3/3] arm64: dts: rockchip: improve eMMC speed on " Sergey Bostandzhyan
@ 2024-08-15 18:28 ` Rob Herring (Arm)
2024-08-15 20:18 ` Heiko Stuebner
2024-08-25 16:28 ` m.plak
5 siblings, 0 replies; 12+ messages in thread
From: Rob Herring (Arm) @ 2024-08-15 18:28 UTC (permalink / raw)
To: Sergey Bostandzhyan
Cc: krzk+dt, linux-kernel, heiko, devicetree, conor+dt,
linux-arm-kernel, linux-rockchip
On Wed, 14 Aug 2024 17:00:45 +0000, Sergey Bostandzhyan wrote:
> Hi,
>
> here is version 3 of the NanoPi R2S Plus patchset.
>
> * a commit which adds mmc-hs200-1_8v in order to improve eMMC performance has
> been included
> * the licence header has been updated to the newer version, anw now includes
> optional MIT licensing
>
>
> Sergey Bostandzhyan (3):
> arm64: dts: rockchip: Add DTS for FriendlyARM NanoPi R2S Plus
> dt-bindings: arm: rockchip: Add NanoPi R2S Plus
> arm64: dts: rockchip: improve eMMC speed on NanoPi R2S Plus
>
> .../devicetree/bindings/arm/rockchip.yaml | 1 +
> arch/arm64/boot/dts/rockchip/Makefile | 1 +
> .../dts/rockchip/rk3328-nanopi-r2s-plus.dts | 32 +++++++++++++++++++
> 3 files changed, 34 insertions(+)
> create mode 100644 arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
>
> --
> 2.20.1
>
>
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y rockchip/rk3328-nanopi-r2s-plus.dtb' for 20240814170048.23816-1-jin@mediatomb.cc:
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dtb: hdmi@ff3c0000: interrupts: [[0, 35, 4], [0, 71, 4]] is too long
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-hdmi.yaml#
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dtb: /phy@ff430000: failed to match any schema with compatible: ['rockchip,rk3328-hdmi-phy']
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dtb: /clock-controller@ff440000: failed to match any schema with compatible: ['rockchip,rk3328-cru', 'rockchip,cru', 'syscon']
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dtb: /clock-controller@ff440000: failed to match any schema with compatible: ['rockchip,rk3328-cru', 'rockchip,cru', 'syscon']
arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dtb: mmc@ff520000: Unevaluated properties are not allowed ('num-slots', 'supports-emmc' were unexpected)
from schema $id: http://devicetree.org/schemas/mmc/rockchip-dw-mshc.yaml#
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v3 0/3] Add DTS for NanoPi R2S Plus
2024-08-14 17:00 [PATCH v3 0/3] Add DTS for NanoPi R2S Plus Sergey Bostandzhyan
` (3 preceding siblings ...)
2024-08-15 18:28 ` [PATCH v3 0/3] Add DTS for " Rob Herring (Arm)
@ 2024-08-15 20:18 ` Heiko Stuebner
2024-08-15 23:26 ` Sergey 'Jin' Bostandzhyan
2024-08-25 16:28 ` m.plak
5 siblings, 1 reply; 12+ messages in thread
From: Heiko Stuebner @ 2024-08-15 20:18 UTC (permalink / raw)
To: Sergey Bostandzhyan, krzk+dt, conor+dt, robh
Cc: Heiko Stuebner, devicetree, linux-kernel, linux-arm-kernel,
linux-rockchip
On Wed, 14 Aug 2024 17:00:45 +0000, Sergey Bostandzhyan wrote:
>
> here is version 3 of the NanoPi R2S Plus patchset.
>
> * a commit which adds mmc-hs200-1_8v in order to improve eMMC performance has
> been included
> * the licence header has been updated to the newer version, anw now includes
> optional MIT licensing
>
> [...]
Applied, thanks!
[1/3] arm64: dts: rockchip: Add DTS for FriendlyARM NanoPi R2S Plus
commit: b8c02878292200ebb5b4a8cfc9dbf227327908bd
[2/3] dt-bindings: arm: rockchip: Add NanoPi R2S Plus
commit: e68b29cb711e80b1bd50366c5cdf8310c9ac24f3
[3/3] arm64: dts: rockchip: improve eMMC speed on NanoPi R2S Plus
... I've folded this commit into the first patch
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v3 0/3] Add DTS for NanoPi R2S Plus
2024-08-15 20:18 ` Heiko Stuebner
@ 2024-08-15 23:26 ` Sergey 'Jin' Bostandzhyan
0 siblings, 0 replies; 12+ messages in thread
From: Sergey 'Jin' Bostandzhyan @ 2024-08-15 23:26 UTC (permalink / raw)
To: Heiko Stuebner
Cc: krzk+dt, conor+dt, robh, devicetree, linux-kernel,
linux-arm-kernel, linux-rockchip
On Thu, Aug 15, 2024 at 10:18:45PM +0200, Heiko Stuebner wrote:
> On Wed, 14 Aug 2024 17:00:45 +0000, Sergey Bostandzhyan wrote:
> >
> > here is version 3 of the NanoPi R2S Plus patchset.
> >
> > * a commit which adds mmc-hs200-1_8v in order to improve eMMC performance has
> > been included
> > * the licence header has been updated to the newer version, anw now includes
> > optional MIT licensing
> >
> > [...]
>
> Applied, thanks!
Awesome, thank you for the guidance and for staying with me on this! :)
Kind regards,
Sergey
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v3 3/3] arm64: dts: rockchip: improve eMMC speed on NanoPi R2S Plus
2024-08-14 17:00 ` [PATCH v3 3/3] arm64: dts: rockchip: improve eMMC speed on " Sergey Bostandzhyan
@ 2024-08-16 6:51 ` Dragan Simic
2024-08-16 10:10 ` Sergey 'Jin' Bostandzhyan
2024-08-16 10:16 ` Heiko Stübner
0 siblings, 2 replies; 12+ messages in thread
From: Dragan Simic @ 2024-08-16 6:51 UTC (permalink / raw)
To: Sergey Bostandzhyan
Cc: robh, krzk+dt, conor+dt, heiko, devicetree, linux-arm-kernel,
linux-rockchip, linux-kernel
Hello Sergey,
On 2024-08-14 19:00, Sergey Bostandzhyan wrote:
> This change has been suggested by Daniel Golle during patch review,
> adding mmc-hs200-1_8v; makes sure that eMMC gets detected as HS200
> which improves it's performance.
Describing who suggested the patch in the patch description looks
out of place. Instead, you should add a Suggested-by tag, whose
purpose is exactly to describe who suggested the patch.
> Signed-off-by: Sergey Bostandzhyan <jin@mediatomb.cc>
> ---
> arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
> b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
> index 12eabdbf8fe8..146b1da198b8 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
> +++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
> @@ -23,6 +23,7 @@
> cap-mmc-highspeed;
> supports-emmc;
> disable-wp;
> + mmc-hs200-1_8v;
> non-removable;
> num-slots = <1>;
> pinctrl-names = "default";
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v3 3/3] arm64: dts: rockchip: improve eMMC speed on NanoPi R2S Plus
2024-08-16 6:51 ` Dragan Simic
@ 2024-08-16 10:10 ` Sergey 'Jin' Bostandzhyan
2024-08-16 10:16 ` Heiko Stübner
1 sibling, 0 replies; 12+ messages in thread
From: Sergey 'Jin' Bostandzhyan @ 2024-08-16 10:10 UTC (permalink / raw)
To: Dragan Simic, heiko
Cc: robh, krzk+dt, conor+dt, devicetree, linux-arm-kernel,
linux-rockchip, linux-kernel
Hi,
On Fri, Aug 16, 2024 at 08:51:40AM +0200, Dragan Simic wrote:
> On 2024-08-14 19:00, Sergey Bostandzhyan wrote:
> >This change has been suggested by Daniel Golle during patch review,
> >adding mmc-hs200-1_8v; makes sure that eMMC gets detected as HS200
> >which improves it's performance.
>
> Describing who suggested the patch in the patch description looks
> out of place. Instead, you should add a Suggested-by tag, whose
> purpose is exactly to describe who suggested the patch.
thank you for the pointer, I guess I missed that, I generally had a hard time to
come to grips with the hole process as there are so many details and nuances.
Heiko, I guess it is too late to fix that now, sine you wrote that the
patch has been applied?
Kind regards,
Sergey
> >---
> > arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts | 1 +
> > 1 file changed, 1 insertion(+)
> >
> >diff --git a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
> >b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
> >index 12eabdbf8fe8..146b1da198b8 100644
> >--- a/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
> >+++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
> >@@ -23,6 +23,7 @@
> > cap-mmc-highspeed;
> > supports-emmc;
> > disable-wp;
> >+ mmc-hs200-1_8v;
> > non-removable;
> > num-slots = <1>;
> > pinctrl-names = "default";
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v3 3/3] arm64: dts: rockchip: improve eMMC speed on NanoPi R2S Plus
2024-08-16 6:51 ` Dragan Simic
2024-08-16 10:10 ` Sergey 'Jin' Bostandzhyan
@ 2024-08-16 10:16 ` Heiko Stübner
1 sibling, 0 replies; 12+ messages in thread
From: Heiko Stübner @ 2024-08-16 10:16 UTC (permalink / raw)
To: Dragan Simic, Sergey 'Jin' Bostandzhyan
Cc: robh, krzk+dt, conor+dt, devicetree, linux-arm-kernel,
linux-rockchip, linux-kernel
Am Freitag, 16. August 2024, 12:10:18 CEST schrieb Sergey 'Jin' Bostandzhyan:
> Hi,
>
> On Fri, Aug 16, 2024 at 08:51:40AM +0200, Dragan Simic wrote:
> > On 2024-08-14 19:00, Sergey Bostandzhyan wrote:
> > >This change has been suggested by Daniel Golle during patch review,
> > >adding mmc-hs200-1_8v; makes sure that eMMC gets detected as HS200
> > >which improves it's performance.
> >
> > Describing who suggested the patch in the patch description looks
> > out of place. Instead, you should add a Suggested-by tag, whose
> > purpose is exactly to describe who suggested the patch.
>
> thank you for the pointer, I guess I missed that, I generally had a hard time to
> come to grips with the hole process as there are so many details and nuances.
>
> Heiko, I guess it is too late to fix that now, sine you wrote that the
> patch has been applied?
correct ... and also folded into the first devicetree patch.
So no worries :-) .
Heiko
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v3 0/3] Add DTS for NanoPi R2S Plus
2024-08-14 17:00 [PATCH v3 0/3] Add DTS for NanoPi R2S Plus Sergey Bostandzhyan
` (4 preceding siblings ...)
2024-08-15 20:18 ` Heiko Stuebner
@ 2024-08-25 16:28 ` m.plak
2024-08-26 9:12 ` Sergey 'Jin' Bostandzhyan
5 siblings, 1 reply; 12+ messages in thread
From: m.plak @ 2024-08-25 16:28 UTC (permalink / raw)
To: Sergey Bostandzhyan
Cc: robh, krzk+dt, conor+dt, heiko, devicetree, linux-arm-kernel,
linux-rockchip, linux-kernel, cnsztl
Hello Sergey,
On 14 Aug 2024, at 19:00, Sergey Bostandzhyan <jin@mediatomb.cc> wrote:
> here is version 3 of the NanoPi R2S Plus patchset.
Thanks! I was just experimenting with a patch for that board.
eMMC:
A close cousin of that board, the NanoPi R2C Plus, similarly adds eMMC to
its base version, R2C.
R2C Plus is already supported by rk3328-nanopi-r2c-plus.dts.
The r2c-plus DTS file differs slightly from your patch.
Would it not be better to use the same fragment for both r2s-plus and r2c-plus?
Or even place the eMMC activation in a shared dtsi file?
I’ve compared the two and the friendlyelec kernel (not u-boot) sources.
your patch does not contain these lines from r2c-plus:
vmmc-supply = <&vcc_io_33>;
vqmmc-supply = <&vcc18_emmc>;
mmc-ddr-1_8v;
your patch adds these lines that are not in r2c-plus:
supports-emmc;
disable-wp;
num-slots = <1>;
r2c-plus has a line that is in rk3328.dtsi already:
max-frequency = <150000000>;
the friendlyelec kernel sources also add:
no-sd;
From the description in the mmc-controller binding documentation, I believe
disable-wp should not be used. The description for no-sd I find confusing.
Can't find num-slots and supports-emmc there.
The RK3288 datasheet does not mention support for DDR mode, so mmc-ddr-1_8v
surprises me a bit. The datasheet does explicitly mention that HS400 is _not_
supported.
USB:
Another change with the Plus version of the R2S is that the USB 2.0 port that
used to be wired to the ethernet chip now is used for an external USB port.
I don’t have the hardware here (yet), so can't test if that USB 2.0 and the
USB 3.0 work independently or need to be explicitly separated.
refs:
Documentation/devicetree/bindings/mmc/mmc-controller.yaml
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v3 0/3] Add DTS for NanoPi R2S Plus
2024-08-25 16:28 ` m.plak
@ 2024-08-26 9:12 ` Sergey 'Jin' Bostandzhyan
0 siblings, 0 replies; 12+ messages in thread
From: Sergey 'Jin' Bostandzhyan @ 2024-08-26 9:12 UTC (permalink / raw)
To: m.plak
Cc: robh, krzk+dt, conor+dt, heiko, devicetree, linux-arm-kernel,
linux-rockchip, linux-kernel, cnsztl
Hi,
On Sun, Aug 25, 2024 at 06:28:44PM +0200, m.plak@icloud.com wrote:
> On 14 Aug 2024, at 19:00, Sergey Bostandzhyan <jin@mediatomb.cc> wrote:
> > here is version 3 of the NanoPi R2S Plus patchset.
>
>
> Thanks! I was just experimenting with a patch for that board.
>
>
> eMMC:
>
> A close cousin of that board, the NanoPi R2C Plus, similarly adds eMMC to
> its base version, R2C.
>
> R2C Plus is already supported by rk3328-nanopi-r2c-plus.dts.
>
> The r2c-plus DTS file differs slightly from your patch.
> Would it not be better to use the same fragment for both r2s-plus and r2c-plus?
> Or even place the eMMC activation in a shared dtsi file?
thank you for the additional review and testing!
If you followed the thread, then you probably know that I was way over my head
here, as I operate soleley in user space :) I was building a Yocto image for this
board for one of my clients and I figured I'll try to submit something that was
already present in the FriendlyElec repos and which worked for me and with the
help and guidance from Heiko and others we managed to get it in, which concluded
my kernel adventure.
It'll be great if you or anyone else is willing to continue from this starting
point if further improvements are needed, because I unfortunately do not have the
capacity for it - I am happy if hardware "just works" and
very much appreciate the abstraction APIs that the kernel provides to folks like
me :)
> I’ve compared the two and the friendlyelec kernel (not u-boot) sources.
> your patch does not contain these lines from r2c-plus:
> vmmc-supply = <&vcc_io_33>;
> vqmmc-supply = <&vcc18_emmc>;
> mmc-ddr-1_8v;
>
> your patch adds these lines that are not in r2c-plus:
> supports-emmc;
> disable-wp;
> num-slots = <1>;
>
> r2c-plus has a line that is in rk3328.dtsi already:
> max-frequency = <150000000>;
>
> the friendlyelec kernel sources also add:
> no-sd;
>
>
> From the description in the mmc-controller binding documentation, I believe
> disable-wp should not be used. The description for no-sd I find confusing.
> Can't find num-slots and supports-emmc there.
>
> The RK3288 datasheet does not mention support for DDR mode, so mmc-ddr-1_8v
> surprises me a bit. The datasheet does explicitly mention that HS400 is _not_
> supported.
The mmc-ddr-1_8v change was suggested during review and I was asked to test if it
works and improves the eMMC speed (it did). Back then I have asked if someone who
knows what they are doing could take over, because I honestly have no clue
what these things do on hardware level and what the implications here are.
I was not let off the hook though, so I have just followed the instructions
of the reviewers. If it is not in the datasheed, then perhaps this line should
be removed after all?
> USB:
>
> Another change with the Plus version of the R2S is that the USB 2.0 port that
> used to be wired to the ethernet chip now is used for an external USB port.
> I don’t have the hardware here (yet), so can't test if that USB 2.0 and the
> USB 3.0 work independently or need to be explicitly separated.
Good to know that there may be an issue, to be honest I did not test USB
explicitly, but both ethernet ports work. I did not modify anything in that
regard anyway, since the R2S (non Plus) version was in the kernel already and
I just copy-pasted the eMMC lines from the FriendlyElec devicetree on top of that
to get eMMC to show up.
We only needed ethernet and eMMC to work on the R2S Plus, so we did not test
anything besides that.
I still have the hardware here, so I could quickly test a thing or two if
needed, just please make sure to e-mail me directly as I have already unsubscribed
from the mailing lists.
Kind regards,
Sergey
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2024-08-26 9:14 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-14 17:00 [PATCH v3 0/3] Add DTS for NanoPi R2S Plus Sergey Bostandzhyan
2024-08-14 17:00 ` [PATCH v3 1/3] arm64: dts: rockchip: Add DTS for FriendlyARM " Sergey Bostandzhyan
2024-08-14 17:00 ` [PATCH v3 2/3] dt-bindings: arm: rockchip: Add " Sergey Bostandzhyan
2024-08-14 17:00 ` [PATCH v3 3/3] arm64: dts: rockchip: improve eMMC speed on " Sergey Bostandzhyan
2024-08-16 6:51 ` Dragan Simic
2024-08-16 10:10 ` Sergey 'Jin' Bostandzhyan
2024-08-16 10:16 ` Heiko Stübner
2024-08-15 18:28 ` [PATCH v3 0/3] Add DTS for " Rob Herring (Arm)
2024-08-15 20:18 ` Heiko Stuebner
2024-08-15 23:26 ` Sergey 'Jin' Bostandzhyan
2024-08-25 16:28 ` m.plak
2024-08-26 9:12 ` Sergey 'Jin' Bostandzhyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).