U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Kever Yang <kever.yang@rock-chips.com>
To: Jonas Karlman <jonas@kwiboo.se>, Simon Glass <sjg@chromium.org>,
	Philipp Tomsich <philipp.tomsich@vrull.eu>,
	Tom Rini <trini@konsulko.com>,
	Eugen Hristev <eugen.hristev@collabora.com>
Cc: u-boot@lists.denx.de
Subject: Re: [PATCH 13/16] rockchip: rk3588-rock-5b: Drop usb-typec node from u-boot.dtsi
Date: Tue, 7 May 2024 11:34:47 +0800	[thread overview]
Message-ID: <6ca7f30e-248e-4ab8-a9d9-e930d159a77d@rock-chips.com> (raw)
In-Reply-To: <20240504194346.2462489-14-jonas@kwiboo.se>


On 2024/5/5 03:43, Jonas Karlman wrote:
> The usb-typec related nodes and props added in the board u-boot.dtsi
> file has not yet landed in upstream Linux kernel DT, and they are not
> needed for U-Boot to use the USB Type-C port in peripheral mode.
>
> Remove superfluous usb-typec related nodes and props and replace them
> with a simple dr_mode and maximum-speed prop to cleanup the board
> u-boot.dtsi file.
>
> Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
> ---
>   arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 106 +-----------------------
>   1 file changed, 2 insertions(+), 104 deletions(-)
>
> diff --git a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
> index d6020ca790f6..69914f4ce183 100644
> --- a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
> @@ -4,32 +4,12 @@
>    */
>   
>   #include "rk3588-u-boot.dtsi"
> -#include <dt-bindings/usb/pd.h>
> -
> -/ {
> -	vcc12v_dcin: vcc12v-dcin-regulator {
> -		compatible = "regulator-fixed";
> -		regulator-name = "vcc12v_dcin";
> -		regulator-always-on;
> -		regulator-boot-on;
> -		regulator-min-microvolt = <12000000>;
> -		regulator-max-microvolt = <12000000>;
> -	};
> -};
>   
>   &fspim2_pins {
>   	bootph-pre-ram;
>   	bootph-some-ram;
>   };
>   
> -&pinctrl {
> -	usb {
> -		usbc0_int: usbc0-int {
> -			rockchip,pins = <3 RK_PB4 RK_FUNC_GPIO &pcfg_pull_none>;
> -		};
> -	};
> -};
> -
>   &sdhci {
>   	cap-mmc-highspeed;
>   	mmc-hs200-1_8v;
> @@ -76,26 +56,7 @@
>   };
>   
>   &usbdp_phy0 {
> -	orientation-switch;
> -	mode-switch;
> -	sbu1-dc-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
> -	sbu2-dc-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
>   	status = "okay";
> -
> -	port {
> -		#address-cells = <1>;
> -		#size-cells = <0>;
> -
> -		usbdp_phy0_typec_ss: endpoint@0 {
> -			reg = <0>;
> -			remote-endpoint = <&usbc0_ss>;
> -		};
> -
> -		usbdp_phy0_typec_sbu: endpoint@1 {
> -			reg = <1>;
> -			remote-endpoint = <&usbc0_sbu>;
> -		};
> -	};
>   };
>   
>   &usbdp_phy0_u3 {
> @@ -103,74 +64,11 @@
>   };
>   
>   &usb_host0_xhci {
> -	usb-role-switch;
> +	dr_mode = "peripheral";
> +	maximum-speed = "high-speed";
>   	status = "okay";
> -
> -	port {
> -		#address-cells = <1>;
> -		#size-cells = <0>;
> -
> -		usb_host0_xhci_drd_sw: endpoint {
> -			remote-endpoint = <&usbc0_hs>;
> -		};
> -	};
>   };
>   
>   &usb_host1_xhci {
>   	status = "okay";
>   };
> -
> -&i2c4 {
> -	pinctrl-names = "default";
> -	pinctrl-0 = <&i2c4m1_xfer>;
> -	status = "okay";
> -
> -	usbc0: usb-typec@22 {
> -		compatible = "fcs,fusb302";
> -		reg = <0x22>;
> -		interrupt-parent = <&gpio3>;
> -		interrupts = <RK_PB4 IRQ_TYPE_LEVEL_LOW>;
> -		pinctrl-names = "default";
> -		pinctrl-0 = <&usbc0_int>;
> -		vbus-supply = <&vcc12v_dcin>;
> -		status = "okay";
> -
> -		usb_con: connector {
> -			compatible = "usb-c-connector";
> -			label = "USB-C";
> -			data-role = "dual";
> -			power-role = "sink";
> -			try-power-role = "sink";
> -			op-sink-microwatt = <1000000>;
> -			sink-pdos =
> -				<PDO_FIXED(5000, 3000, PDO_FIXED_USB_COMM)>,
> -				<PDO_VAR(5000, 20000, 5000)>;
> -
> -			ports {
> -				#address-cells = <1>;
> -				#size-cells = <0>;
> -
> -				port@0 {
> -					reg = <0>;
> -					usbc0_hs: endpoint {
> -						remote-endpoint = <&usb_host0_xhci_drd_sw>;
> -					};
> -				};
> -
> -				port@1 {
> -					reg = <1>;
> -					usbc0_ss: endpoint {
> -						remote-endpoint = <&usbdp_phy0_typec_ss>;
> -					};
> -				};
> -
> -				port@2 {
> -					reg = <2>;
> -					usbc0_sbu: endpoint {
> -						remote-endpoint = <&usbdp_phy0_typec_sbu>;
> -					};
> -				};
> -			};
> -		};
> -	};
> -};

  reply	other threads:[~2024-05-07  3:35 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-04 19:42 [PATCH 00/16] rockchip: Migrate RK3308, RK3328, RK356x and RK3588 to OF_UPSTREAM Jonas Karlman
2024-05-04 19:42 ` [PATCH 01/16] rockchip: rk3308: Migrate " Jonas Karlman
2024-05-07  3:29   ` Kever Yang
2024-05-04 19:42 ` [PATCH 02/16] rockchip: rk3308: Remove redundant device tree files Jonas Karlman
2024-05-07  3:30   ` Kever Yang
2024-05-04 19:42 ` [PATCH 03/16] rockchip: rk3328: Migrate to OF_UPSTREAM Jonas Karlman
2024-05-07  3:32   ` Kever Yang
2024-05-04 19:42 ` [PATCH 04/16] rockchip: rk3328: Remove redundant device tree files Jonas Karlman
2024-05-07  3:32   ` Kever Yang
2024-05-04 19:42 ` [PATCH 05/16] rockchip: rk3399: Migrate to OF_UPSTREAM Jonas Karlman
2024-05-07  3:33   ` Kever Yang
2024-05-04 19:42 ` [PATCH 06/16] rockchip: rk3399: Remove redundant device tree files Jonas Karlman
2024-05-07  3:33   ` Kever Yang
2024-05-04 19:42 ` [PATCH 07/16] rockchip: rk356x: Add rk3568-u-boot.dtsi Jonas Karlman
2024-05-07  3:33   ` Kever Yang
2024-05-04 19:43 ` [PATCH 08/16] rockchip: rk356x: Migrate to OF_UPSTREAM Jonas Karlman
2024-05-07  3:33   ` Kever Yang
2024-05-04 19:43 ` [PATCH 09/16] rockchip: rk356x: Remove redundant device tree files Jonas Karlman
2024-05-04 20:51   ` Chris Morgan
2024-05-04 21:15     ` Jonas Karlman
2024-05-07  3:34   ` Kever Yang
2024-05-04 19:43 ` [PATCH 10/16] phy: rockchip: usbdp: Find phy-id from the io address Jonas Karlman
2024-05-07  3:34   ` Kever Yang
2024-05-04 19:43 ` [PATCH 11/16] phy: rockchip: usbdp: Drop rockchip_u3phy_uboot_init() Jonas Karlman
2024-05-07  3:34   ` Kever Yang
2024-05-04 19:43 ` [PATCH 12/16] phy: rockchip: usbdp: Adopt driver to work with upstream DT Jonas Karlman
2024-05-07  3:34   ` Kever Yang
2024-05-04 19:43 ` [PATCH 13/16] rockchip: rk3588-rock-5b: Drop usb-typec node from u-boot.dtsi Jonas Karlman
2024-05-07  3:34   ` Kever Yang [this message]
2024-05-04 19:43 ` [PATCH 14/16] rockchip: rk3588: Update USB3 related nodes in u-boot.dtsi Jonas Karlman
2024-05-07  7:20   ` Kever Yang
2024-05-04 19:43 ` [PATCH 15/16] rockchip: rk3588: Migrate to OF_UPSTREAM Jonas Karlman
2024-05-07  7:20   ` Kever Yang
2024-05-04 19:43 ` [PATCH 16/16] rockchip: rk3588: Remove redundant device tree files Jonas Karlman
2024-05-07  7:19   ` Kever Yang
2024-05-05  2:58 ` [PATCH 00/16] rockchip: Migrate RK3308, RK3328, RK356x and RK3588 to OF_UPSTREAM Dragan Simic

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=6ca7f30e-248e-4ab8-a9d9-e930d159a77d@rock-chips.com \
    --to=kever.yang@rock-chips.com \
    --cc=eugen.hristev@collabora.com \
    --cc=jonas@kwiboo.se \
    --cc=philipp.tomsich@vrull.eu \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox