From: "Heiko Stübner" <heiko@sntech.de>
To: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Cc: linux-rockchip@lists.infradead.org,
Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Subject: Re: [PATCH v2 1/6] arm64: dts: rockchip: enable USB 2.0 on NanoPC-T6 LTS
Date: Wed, 21 Aug 2024 10:58:45 +0200 [thread overview]
Message-ID: <1975383.fIoEIV5pvu@diego> (raw)
In-Reply-To: <20240821-friendlyelec-nanopc-t6-lts-v2-1-e0138bb10042@linaro.org>
Am Mittwoch, 21. August 2024, 10:25:30 CEST schrieb Marcin Juszkiewicz:
> FriendlyELEC introduced new version of NanoPC-T6 SBC.
If this change is specific to the new "LTS" board variant, why is it in
the main board dts now?
I.e. with this change you enable it on _all_ NanoPC-T6 boards, even the
ones without those components?
Heiko
> MiniPCIe slot got removed and USB 2.0 configuration has changed.
> There are two external accessible ports and two ports on internal
> header.
>
> There is on-board USB hub which provides:
> - one external connector (bottom one)
> - two internal ports on pin header
> - m.2 E port
>
> Top USB 2.0 connector comes directly from SoC.
>
> Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
> ---
> arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts | 35 +++++++++++++++++++++++
> 1 file changed, 35 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
> index ad8e36a339dc..bf2c4427ad74 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
> +++ b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dts
> @@ -182,6 +182,20 @@ vdd_4g_3v3: vdd-4g-3v3-regulator {
> regulator-max-microvolt = <3300000>;
> vin-supply = <&vcc5v0_sys>;
> };
> +
> + vcc5v0_usb20_host: vcc5v0-usb20-host-regulator {
> + compatible = "regulator-fixed";
> + enable-active-high;
> + gpio = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>;
> + pinctrl-0 = <&usb20_host_pwren>;
> + pinctrl-names = "default";
> + regulator-always-on;
> + regulator-boot-on;
> + regulator-max-microvolt = <5000000>;
> + regulator-min-microvolt = <5000000>;
> + regulator-name = "vcc5v0_usb20_host";
> + vin-supply = <&vcc5v0_sys>;
> + };
> };
>
> &combphy0_ps {
> @@ -535,6 +549,10 @@ typec5v_pwren: typec5v-pwren {
> rockchip,pins = <1 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
> };
>
> + usb20_host_pwren: usb20-host-pwren {
> + rockchip,pins = <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
> + };
> +
> usbc0_int: usbc0-int {
> rockchip,pins = <0 RK_PD3 RK_FUNC_GPIO &pcfg_pull_up>;
> };
> @@ -911,6 +929,14 @@ &uart2 {
> status = "okay";
> };
>
> +&u2phy1 {
> + status = "okay";
> +};
> +
> +&u2phy1_otg {
> + status = "okay";
> +};
> +
> &u2phy2_host {
> phy-supply = <&vdd_4g_3v3>;
> status = "okay";
> @@ -928,6 +954,10 @@ &u2phy3 {
> status = "okay";
> };
>
> +&usbdp_phy1 {
> + status = "okay";
> +};
> +
> &usb_host0_ehci {
> status = "okay";
> };
> @@ -943,3 +973,8 @@ &usb_host1_ehci {
> &usb_host1_ohci {
> status = "okay";
> };
> +
> +&usb_host1_xhci {
> + dr_mode = "host";
> + status = "okay";
> +};
>
>
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2024-08-21 8:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-21 8:25 [PATCH v2 0/6] improve FriendlyELEC NanoPC-T6 a bit Marcin Juszkiewicz
2024-08-21 8:25 ` [PATCH v2 1/6] arm64: dts: rockchip: enable USB 2.0 on NanoPC-T6 LTS Marcin Juszkiewicz
2024-08-21 8:58 ` Heiko Stübner [this message]
2024-08-21 9:14 ` Marcin Juszkiewicz
2024-08-21 9:17 ` Dragan Simic
2024-08-21 8:25 ` [PATCH v2 2/6] arm64: dts: rockchip: define pinctl for SPI M1 Marcin Juszkiewicz
2024-08-21 8:25 ` [PATCH v2 3/6] arm64: dts: rockchip: enable SPI flash on NanoPC-T6 LTS Marcin Juszkiewicz
2024-08-21 8:59 ` Heiko Stübner
2024-08-21 9:17 ` Marcin Juszkiewicz
2024-08-21 9:50 ` Dragan Simic
2024-08-21 8:25 ` [PATCH v2 4/6] arm64: dts: rockchip: add IR-receiver to NanoPC-T6 Marcin Juszkiewicz
2024-08-21 8:25 ` [PATCH v2 5/6] arm64: dts: rockchip: enable GPU on NanoPC-T6 Marcin Juszkiewicz
2024-08-21 8:25 ` [PATCH v2 6/6] arm64: dts: rockchip: enable USB-C " Marcin Juszkiewicz
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=1975383.fIoEIV5pvu@diego \
--to=heiko@sntech.de \
--cc=linux-rockchip@lists.infradead.org \
--cc=marcin.juszkiewicz@linaro.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.