From: "Heiko Stübner" <heiko@sntech.de>
To: Daniel Golle <daniel@makrotopia.org>,
Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH V2 1/2 RESEND] arm64: dts: rockchip: Add DTS for FriendlyARM NanoPi R2S Plus
Date: Sat, 10 Aug 2024 21:11:56 +0200 [thread overview]
Message-ID: <2309282.ZQ0cqP7t2B@diego> (raw)
In-Reply-To: Zq7LBqKVvVVVLg7a@makrotopia.org
Hi,
Am Montag, 5. August 2024, 10:59:35 CEST schrieb Sergey 'Jin' Bostandzhyan:
> On Sun, Aug 04, 2024 at 01:27:50AM +0100, Daniel Golle wrote:
> > On Thu, Aug 01, 2024 at 05:57:35PM +0000, Sergey Bostandzhyan wrote:
> > > 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..7b83090a2145
> > > --- /dev/null
> > > +++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
> > > @@ -0,0 +1,31 @@
> > > +// SPDX-License-Identifier: GPL-2.0+
> > > +/*
> > > + * (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>;
> >
> > I think it's worth adding
> >
> > mmc-hs200-1_8v;
> >
> >
> > I've tried getting the best speed possible and while HS400 with and
> > without enhanced strobe did NOT work, hs200 works just fine.
> > [ 0.459863] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
> > [ 0.460884] mmc_host mmc1: Bus speed (slot 0) = 150000000Hz (slot req 150000000Hz, actual 150000000HZ div = 0)
> > ...
> > [ 0.728220] dwmmc_rockchip ff520000.mmc: Successfully tuned phase to 194
> > [ 0.728940] mmc1: new HS200 MMC card at address 0001
> > [ 0.730774] mmcblk1: mmc1:0001 A3A551 28.9 GiB
> > [ 0.733262] mmcblk1: p1 p2
> > [ 0.734562] mmcblk1boot0: mmc1:0001 A3A551 4.00 MiB
> > [ 0.736818] mmcblk1boot1: mmc1:0001 A3A551 4.00 MiB
> > [ 0.738503] mmcblk1rpmb: mmc1:0001 A3A551 16.0 MiB, chardev (245:0)
> >
> > root@OpenWrt:/# hdparm -t /dev/mmcblk1
> >
> > /dev/mmcblk1:
> > Timing buffered disk reads: 342 MB in 3.00 seconds = 113.81 MB/sec
> >
> >
> > Without 'mmc-hs200-1_8v' property in DT the eMMC is detected as
> > [ 0.440465] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
> > [ 0.442032] mmc1: new high speed MMC card at address 0001
> > [ 0.444261] mmcblk1: mmc1:0001 A3A551 28.9 GiB
> > [ 0.447388] mmcblk1: p1 p2
> > [ 0.448744] mmcblk1boot0: mmc1:0001 A3A551 4.00 MiB
> > [ 0.451065] mmcblk1boot1: mmc1:0001 A3A551 4.00 MiB
> > [ 0.452871] mmcblk1rpmb: mmc1:0001 A3A551 16.0 MiB, chardev (245:0)
> >
> >
> > root@OpenWrt:/# hdparm -t /dev/mmcblk1
> >
> > /dev/mmcblk1:
> > Timing buffered disk reads: 134 MB in 3.03 seconds = 44.18 MB/sec
> >
> >
> > > + status = "okay";
> > > +};
> >
> > I'm right now trying to get SDIO RTL8822CS working, so far I'm out of luck,
> > but it can be added later once we got it working.
>
> would you be interested in taking over my attempted patches? Thing is,
> that I am a userspace guy who only copy-pasted some entries from
> FriendlyElec and things happened to work, but I really have no clue what I am
> doing when it comes to hardware and DTS. I see that some changes were suggested,
> not only by you above, but also by others earlier and I have little
> understanding of where I should be inserting what and how.
>
> At this point I think it would make more sense if someone who actually
> understands what they are doing would continue to tune the DTS :)
>
> So it'd be great if either you or anyone else would be willing to take
> over?
Though, a board devicetree is a nice way to get "your feet wet" in the
kernel :-) and for a lot of people scratching ones own itches gets them
started.
The devicetree is easy enough, also looks correct and you even got the
binding change correct - and you're the person with the actual board :-) .
Could you possibly test if the mmc-hs200-1_8v; property works for you?
Thanks a lot
Heiko
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
WARNING: multiple messages have this Message-ID (diff)
From: "Heiko Stübner" <heiko@sntech.de>
To: Daniel Golle <daniel@makrotopia.org>,
Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH V2 1/2 RESEND] arm64: dts: rockchip: Add DTS for FriendlyARM NanoPi R2S Plus
Date: Sat, 10 Aug 2024 21:11:56 +0200 [thread overview]
Message-ID: <2309282.ZQ0cqP7t2B@diego> (raw)
In-Reply-To: Zq7LBqKVvVVVLg7a@makrotopia.org
Hi,
Am Montag, 5. August 2024, 10:59:35 CEST schrieb Sergey 'Jin' Bostandzhyan:
> On Sun, Aug 04, 2024 at 01:27:50AM +0100, Daniel Golle wrote:
> > On Thu, Aug 01, 2024 at 05:57:35PM +0000, Sergey Bostandzhyan wrote:
> > > 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..7b83090a2145
> > > --- /dev/null
> > > +++ b/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s-plus.dts
> > > @@ -0,0 +1,31 @@
> > > +// SPDX-License-Identifier: GPL-2.0+
> > > +/*
> > > + * (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>;
> >
> > I think it's worth adding
> >
> > mmc-hs200-1_8v;
> >
> >
> > I've tried getting the best speed possible and while HS400 with and
> > without enhanced strobe did NOT work, hs200 works just fine.
> > [ 0.459863] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
> > [ 0.460884] mmc_host mmc1: Bus speed (slot 0) = 150000000Hz (slot req 150000000Hz, actual 150000000HZ div = 0)
> > ...
> > [ 0.728220] dwmmc_rockchip ff520000.mmc: Successfully tuned phase to 194
> > [ 0.728940] mmc1: new HS200 MMC card at address 0001
> > [ 0.730774] mmcblk1: mmc1:0001 A3A551 28.9 GiB
> > [ 0.733262] mmcblk1: p1 p2
> > [ 0.734562] mmcblk1boot0: mmc1:0001 A3A551 4.00 MiB
> > [ 0.736818] mmcblk1boot1: mmc1:0001 A3A551 4.00 MiB
> > [ 0.738503] mmcblk1rpmb: mmc1:0001 A3A551 16.0 MiB, chardev (245:0)
> >
> > root@OpenWrt:/# hdparm -t /dev/mmcblk1
> >
> > /dev/mmcblk1:
> > Timing buffered disk reads: 342 MB in 3.00 seconds = 113.81 MB/sec
> >
> >
> > Without 'mmc-hs200-1_8v' property in DT the eMMC is detected as
> > [ 0.440465] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 52000000Hz, actual 50000000HZ div = 0)
> > [ 0.442032] mmc1: new high speed MMC card at address 0001
> > [ 0.444261] mmcblk1: mmc1:0001 A3A551 28.9 GiB
> > [ 0.447388] mmcblk1: p1 p2
> > [ 0.448744] mmcblk1boot0: mmc1:0001 A3A551 4.00 MiB
> > [ 0.451065] mmcblk1boot1: mmc1:0001 A3A551 4.00 MiB
> > [ 0.452871] mmcblk1rpmb: mmc1:0001 A3A551 16.0 MiB, chardev (245:0)
> >
> >
> > root@OpenWrt:/# hdparm -t /dev/mmcblk1
> >
> > /dev/mmcblk1:
> > Timing buffered disk reads: 134 MB in 3.03 seconds = 44.18 MB/sec
> >
> >
> > > + status = "okay";
> > > +};
> >
> > I'm right now trying to get SDIO RTL8822CS working, so far I'm out of luck,
> > but it can be added later once we got it working.
>
> would you be interested in taking over my attempted patches? Thing is,
> that I am a userspace guy who only copy-pasted some entries from
> FriendlyElec and things happened to work, but I really have no clue what I am
> doing when it comes to hardware and DTS. I see that some changes were suggested,
> not only by you above, but also by others earlier and I have little
> understanding of where I should be inserting what and how.
>
> At this point I think it would make more sense if someone who actually
> understands what they are doing would continue to tune the DTS :)
>
> So it'd be great if either you or anyone else would be willing to take
> over?
Though, a board devicetree is a nice way to get "your feet wet" in the
kernel :-) and for a lot of people scratching ones own itches gets them
started.
The devicetree is easy enough, also looks correct and you even got the
binding change correct - and you're the person with the actual board :-) .
Could you possibly test if the mmc-hs200-1_8v; property works for you?
Thanks a lot
Heiko
next prev parent reply other threads:[~2024-08-10 19:12 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Sergey Bostandzhyan
2024-08-01 17:57 ` [PATCH V2 1/2 RESEND] arm64: dts: rockchip: Add DTS for FriendlyARM " Sergey Bostandzhyan
2024-08-01 17:57 ` Sergey Bostandzhyan
2024-08-04 0:27 ` Daniel Golle
2024-08-04 0:27 ` Daniel Golle
2024-08-05 8:59 ` Sergey 'Jin' Bostandzhyan
2024-08-05 8:59 ` Sergey 'Jin' Bostandzhyan
2024-08-10 19:11 ` Heiko Stübner [this message]
2024-08-10 19:11 ` Heiko Stübner
2024-08-14 11:21 ` Sergey 'Jin' Bostandzhyan
2024-08-14 11:21 ` Sergey 'Jin' Bostandzhyan
2024-08-14 11:30 ` Diederik de Haas
2024-08-14 11:30 ` Diederik de Haas
2024-08-14 11:34 ` Diederik de Haas
2024-08-14 11:34 ` Diederik de Haas
2024-08-14 11:36 ` Heiko Stübner
2024-08-14 11:36 ` Heiko Stübner
2024-08-14 12:24 ` Sergey 'Jin' Bostandzhyan
2024-08-14 12:24 ` Sergey 'Jin' Bostandzhyan
2024-08-14 13:53 ` Heiko Stübner
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-01 17:57 ` Sergey Bostandzhyan
2024-08-06 17:24 ` Rob Herring (Arm)
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-01 21:22 ` Heiko Stübner
2024-08-02 9:46 ` Bjoern A. Zeeb
2024-08-02 9:46 ` Bjoern A. Zeeb
2024-08-02 10:04 ` Sergey 'Jin' Bostandzhyan
2024-08-02 10:04 ` Sergey 'Jin' Bostandzhyan
2024-08-05 15:00 ` Rob Herring (Arm)
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-03 4:53 [PATCH V2 1/2 RESEND] arm64: dts: rockchip: Add DTS for FriendlyARM " kernel test robot
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=2309282.ZQ0cqP7t2B@diego \
--to=heiko@sntech.de \
--cc=conor+dt@kernel.org \
--cc=daniel@makrotopia.org \
--cc=devicetree@vger.kernel.org \
--cc=jin@mediatomb.cc \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=robh@kernel.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.