[PATCH v1 10/10] arm: dts: mt7623: add USB nodes

Chunfeng Yun chunfeng.yun at mediatek.com
Mon Aug 17 05:02:23 CEST 2020


On Sun, 2020-08-16 at 10:24 +0200, Frank Wunderlich wrote:
> From: Frank Wunderlich <frank-w at public-files.de>
> 
> This adds USB nodes for MT7623/BPI-R2
> 
> Signed-off-by: Frank Wunderlich <frank-w at public-files.de>
> ---
>  arch/arm/dts/mt7623.dtsi                 | 46 ++++++++++++++++++++++++
>  arch/arm/dts/mt7623n-bananapi-bpi-r2.dts | 16 +++++++++
>  2 files changed, 62 insertions(+)
> 
> diff --git a/arch/arm/dts/mt7623.dtsi b/arch/arm/dts/mt7623.dtsi
> index 0452889ef8..e753e08545 100644
> --- a/arch/arm/dts/mt7623.dtsi
> +++ b/arch/arm/dts/mt7623.dtsi
> @@ -352,6 +352,52 @@
>  		};
>  	};
>  
> +	usb1: usb at 1a1c0000 {
> +		compatible = "mediatek,mt7623-xhci", "mediatek,mtk-xhci";
> +		reg = <0x1a1c0000 0x1000>, <0x1a1c4700 0x0100>;
> +		reg-names = "mac", "ippc";
> +		power-domains = <&scpsys MT7623_POWER_DOMAIN_HIF>;
> +		clocks = <&hifsys CLK_HIFSYS_USB0PHY>, <&topckgen CLK_TOP_ETHIF_SEL>;
> +		clock-names = "sys_ck", "ref_ck";
> +		phys = <&u2port0 PHY_TYPE_USB2>, <&u3port0 PHY_TYPE_USB3>;
> +		status = "disabled";
> +	};
> +
> +	u3phy1: usb-phy1 at 1a1c4000 {
after change usb-phy1 as usb-phy

Reveiwed-by Chunfeng Yun <chunfeng.yun at mediatek.com>

Thanks

> +		compatible = "mediatek,mt7623-tphy", "mediatek,generic-tphy-v1";
> +
> +		reg = <0x1a1c4000 0x0700>;
> +		#address-cells = <1>;
> +		#size-cells = <1>;
> +		ranges;
> +		status = "disabled";
> +
> +		u2port0: usb-phy at 1a1c4800 {
> +			reg = <0x1a1c4800 0x0100>;
> +			#phy-cells = <1>;
> +			clocks = <&topckgen CLK_TOP_USB_PHY48M>;
> +			clock-names = "ref";
> +		};
> +
> +		u3port0: usb-phy at 1a1c4900 {
> +			reg = <0x1a1c4900 0x0700>;
> +			#phy-cells = <1>;
> +			clocks = <&clk26m>;
> +			clock-names = "ref";
> +		};
> +	};
> +
> +	usb2: usb at 1a240000 {
> +		compatible = "mediatek,mt7623-xhci", "mediatek,mtk-xhci";
> +		reg = <0x1a240000 0x1000>, <0x1a244700 0x0100>;
> +		reg-names = "mac", "ippc";
> +		power-domains = <&scpsys MT7623_POWER_DOMAIN_HIF>;
> +		clocks = <&hifsys CLK_HIFSYS_USB1PHY>, <&topckgen CLK_TOP_ETHIF_SEL>;
> +		clock-names = "sys_ck", "ref_ck";
> +		phys = <&u2port1 PHY_TYPE_USB2>, <&u3port1 PHY_TYPE_USB3>;
> +		status = "disabled";
> +	};
> +
>  	u3phy2: usb-phy at 1a244000 {
>  		compatible = "mediatek,generic-tphy-v1";
>  		reg = <0x1a244000 0x0700>;
> diff --git a/arch/arm/dts/mt7623n-bananapi-bpi-r2.dts b/arch/arm/dts/mt7623n-bananapi-bpi-r2.dts
> index bcedcf20f1..ef07369627 100644
> --- a/arch/arm/dts/mt7623n-bananapi-bpi-r2.dts
> +++ b/arch/arm/dts/mt7623n-bananapi-bpi-r2.dts
> @@ -248,3 +248,19 @@
>  	pinctrl-0 = <&uart2_pins_a>;
>  	status = "okay";
>  };
> +
> +&usb1 {
> +	status = "okay";
> +};
> +
> +&u3phy1 {
> +	status = "okay";
> +};
> +
> +&usb2 {
> +	status = "okay";
> +};
> +
> +&u3phy2 {
> +	status = "okay";
> +};



More information about the U-Boot mailing list