Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp719239ybf; Wed, 26 Feb 2020 21:54:54 -0800 (PST) X-Google-Smtp-Source: APXvYqyJOYaeOmo2aX8uYj/UlGs+VE3Wd7YTv4nBUUnNnp2s5gLhpPhaHqOduyMGaipV9poj7lP2 X-Received: by 2002:a05:6830:139a:: with SMTP id d26mr2084908otq.75.1582782894339; Wed, 26 Feb 2020 21:54:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582782894; cv=none; d=google.com; s=arc-20160816; b=gVIp0PmDNJF+ObPxLge3pC12KKEJ9AOSODSIRGQ9u6U87j6u2/bunPeQOx4YCLBMSA rCt4SKfBypOMlT4b9LiXm9BtP8EZDbmCo3RaRCKzPIrZ8ouvh2+eHXO6NAxaygugeT8e 0mWTl/W5DwZ0s+MQCKt9CYh3qF0nQqX2Ym/76lpkAU6SNZGly9ZSqULTTNWPErVMjQsa DU8QDOU4F3GkqwTlBfrT1nUKRpyprgUsfeypIa+jC0RFYi2zesiEoeGfC2PCQN3Um3E5 dO2fw2WZ0qTq2ATk6DIr7/DJezBpS9SHr030h9KHqSLhbNE71x/eDVrj1fEEgumVopdt ZMpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=JG6Di4Gll3ra/P/kq24/31+1wa1Oo6M8vrUkvuZY4ls=; b=ioayGjIhitSw5J3N2WA0qriLix1jnnphUqxWn1/UfOAbLrgDneS4untPMlnysR4qIE LUGv2HusuFcPv7oLyxeEZOpNwoM4rfNNxO+ydvX8emEAMTLlvPDcm4oeUS/V7MOVeY57 /6H9dmxMmmvFaL+u8XjPNUjXGdoDDF3SSuUVcg/+JoV5KlmflgrYbsOvWjLSOgL8hidX buEqsE4VKB95t7vGp+F5KwgqlRiH6C9qiIHS7LpWePeHhqfYZv11roS0qC2NNGQTtGgO u6vfbwBpFqncgkpUXWvV/TqJqRryRchZhEqux7V/zGGErWDdrQUz8TgvmoA+rqt1KPbI 4YhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b="dtw6/+Ad"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m25si996878otn.208.2020.02.26.21.54.42; Wed, 26 Feb 2020 21:54:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b="dtw6/+Ad"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727367AbgB0Fyc (ORCPT + 99 others); Thu, 27 Feb 2020 00:54:32 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:46411 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725943AbgB0Fyb (ORCPT ); Thu, 27 Feb 2020 00:54:31 -0500 Received: by mail-qt1-f196.google.com with SMTP id i14so1410851qtv.13; Wed, 26 Feb 2020 21:54:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JG6Di4Gll3ra/P/kq24/31+1wa1Oo6M8vrUkvuZY4ls=; b=dtw6/+Ad0LCrN8QWEFAr0Kq717Kpi210ws5TZRsscrzkH6qznd71bIsRibeXXIii7H D9H+5XIcpLvVvDFTfJZyUFQkXPWDmnnbywN7tCgCoP3uFWYPIJOLw3tjCyM+8ShSd5xf eb1LJyIBbg3qkOzNsCiwLkZI6M0Uep7JPbw2A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JG6Di4Gll3ra/P/kq24/31+1wa1Oo6M8vrUkvuZY4ls=; b=CjM3w/o6knTVIJlZP6iCbnwLjElIJIZ/be7t78LMbu0Rq7QxS2orb9aTTN4EN1xAU8 lZGGUrox0WfyeUFDxtbVgj5Zu+VFCXeONO3d2QNqLj0IIPCep46B99bvDBeUhsodcMqj 1ttPL8bRnX0yHn+4TIsb4RUFZrWw/eB4zVePh8S/65FBNquBrv9ZP36e7ko9z3VkCNZY 2/7/PnjLGcpFrHTwll+ygWRX5A4XUGatC4dUtf+Q4dV1LCCEvkCpjRGlmQbioAkrEb48 /qXIkQDSEzuqCIG+BUr7KnYpZDJmvxLlrrfPVW294DH56doEzYofr3+DLQ+xH8fyz0Bk eHXg== X-Gm-Message-State: APjAAAVhuvlmSfJWbtX5xfnb90RyCBti53EOY6jxOh3RTDdunW+lfdz5 U5eAH/R4TREN1uTd01wmQV+kSP0cLxuLLfkQMCQ= X-Received: by 2002:ac8:4244:: with SMTP id r4mr2803245qtm.169.1582782870414; Wed, 26 Feb 2020 21:54:30 -0800 (PST) MIME-Version: 1.0 References: <20200226230346.672-1-rentao.bupt@gmail.com> <20200226230346.672-5-rentao.bupt@gmail.com> <7a210c19a7793b925275dbd8392e3c1ef538b229.camel@kernel.crashing.org> In-Reply-To: <7a210c19a7793b925275dbd8392e3c1ef538b229.camel@kernel.crashing.org> From: Joel Stanley Date: Thu, 27 Feb 2020 05:54:19 +0000 Message-ID: Subject: Re: [PATCH v4 4/7] ARM: dts: aspeed-g6: add usb functions To: Benjamin Herrenschmidt Cc: Tao Ren , Felipe Balbi , Greg Kroah-Hartman , Andrew Jeffery , Chunfeng Yun , Colin Ian King , Stephen Boyd , Rob Herring , Mark Rutland , linux-usb@vger.kernel.org, Linux ARM , linux-aspeed , devicetree , Linux Kernel Mailing List , OpenBMC Maillist , Tao Ren Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 27 Feb 2020 at 04:10, Benjamin Herrenschmidt wrote: > > On Wed, 2020-02-26 at 15:03 -0800, rentao.bupt@gmail.com wrote: > > From: Tao Ren > > > > Add USB components and according pin groups in aspeed-g6 dtsi. > > > > Signed-off-by: Tao Ren > > Reviewed-by: Andrew Jeffery > > Acked-by: Benjamin Herrenschmidt Reviewed-by: Joel Stanley I will take this patch through the aspeed tree for 5.7. Cheers, Joel > > > --- > > No change in v3/v4. > > Changes in v2: > > - added port/endpoint properties for vhub dt node. > > > > arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi | 25 +++++++++++++ > > arch/arm/boot/dts/aspeed-g6.dtsi | 45 > > ++++++++++++++++++++++++ > > 2 files changed, 70 insertions(+) > > > > diff --git a/arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi > > b/arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi > > index 045ce66ca876..7028e21bdd98 100644 > > --- a/arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi > > +++ b/arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi > > @@ -1112,6 +1112,31 @@ > > groups = "UART9"; > > }; > > > > + pinctrl_usb2ah_default: usb2ah_default { > > + function = "USB2AH"; > > + groups = "USBA"; > > + }; > > + > > + pinctrl_usb2ad_default: usb2ad_default { > > + function = "USB2AD"; > > + groups = "USBA"; > > + }; > > + > > + pinctrl_usb2bh_default: usb2bh_default { > > + function = "USB2BH"; > > + groups = "USBB"; > > + }; > > + > > + pinctrl_usb2bd_default: usb2bd_default { > > + function = "USB2BD"; > > + groups = "USBB"; > > + }; > > + > > + pinctrl_usb11bhid_default: usb11bhid_default { > > + function = "USB11BHID"; > > + groups = "USBB"; > > + }; > > + > > pinctrl_vb_default: vb_default { > > function = "VB"; > > groups = "VB"; > > diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi > > b/arch/arm/boot/dts/aspeed-g6.dtsi > > index 796976d275e1..0a29b3b57a9d 100644 > > --- a/arch/arm/boot/dts/aspeed-g6.dtsi > > +++ b/arch/arm/boot/dts/aspeed-g6.dtsi > > @@ -245,6 +245,51 @@ > > status = "disabled"; > > }; > > > > + ehci0: usb@1e6a1000 { > > + compatible = "aspeed,ast2600-ehci", "generic- > > ehci"; > > + reg = <0x1e6a1000 0x100>; > > + interrupts = ; > > + clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>; > > + pinctrl-names = "default"; > > + pinctrl-0 = <&pinctrl_usb2ah_default>; > > + status = "disabled"; > > + }; > > + > > + ehci1: usb@1e6a3000 { > > + compatible = "aspeed,ast2600-ehci", "generic- > > ehci"; > > + reg = <0x1e6a3000 0x100>; > > + interrupts = ; > > + clocks = <&syscon ASPEED_CLK_GATE_USBPORT2CLK>; > > + pinctrl-names = "default"; > > + pinctrl-0 = <&pinctrl_usb2bh_default>; > > + status = "disabled"; > > + }; > > + > > + uhci: usb@1e6b0000 { > > + compatible = "aspeed,ast2600-uhci", "generic- > > uhci"; > > + reg = <0x1e6b0000 0x100>; > > + interrupts = ; > > + #ports = <2>; > > + clocks = <&syscon ASPEED_CLK_GATE_USBUHCICLK>; > > + status = "disabled"; > > + /* > > + * No default pinmux, it will follow EHCI, use > > an > > + * explicit pinmux override if EHCI is not > > enabled. > > + */ > > + }; > > + > > + vhub: usb-vhub@1e6a0000 { > > + compatible = "aspeed,ast2600-usb-vhub"; > > + reg = <0x1e6a0000 0x350>; > > + interrupts = ; > > + clocks = <&syscon ASPEED_CLK_GATE_USBPORT1CLK>; > > + aspeed,vhub-downstream-ports = <7>; > > + aspeed,vhub-generic-endpoints = <21>; > > + pinctrl-names = "default"; > > + pinctrl-0 = <&pinctrl_usb2ad_default>; > > + status = "disabled"; > > + }; > > + > > apb { > > compatible = "simple-bus"; > > #address-cells = <1>; >