.../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
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
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
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>
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#
© 2016 - 2026 Red Hat, Inc.