Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp640615ybf; Wed, 26 Feb 2020 20:11:39 -0800 (PST) X-Google-Smtp-Source: APXvYqwBFjz4SJV0sjwgTVSf612eV46i+zqCxVcLA+uBc7amPSx7rjugcYMR3aITG98qbmPtGj72 X-Received: by 2002:aca:5746:: with SMTP id l67mr1914875oib.60.1582776698889; Wed, 26 Feb 2020 20:11:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582776698; cv=none; d=google.com; s=arc-20160816; b=rvN+tp6Rcfls7hzIEUVTt/AnBR19f3aggyJ11sPM1Cz0uTpKOWjvPwrtnYP9aDkJDM 3bntco9uMOlf+6NBR9HH4+ursqJgiiWm3YPZwgUzNhZUkN0tITbHBEB8HG0i3JTYtCt5 W8eVee1Ey18VHeX03sxZRDZnDwpiLwr0DRxwScCiPRbMMsOGQYt+8I92jHDsljd8pxT5 rK22CydFpFCP1kEQZqNdc++2dddM96HCFClcmYPdnKXEJiqFUvwbHC09+PNN0EEjLh4Z SJEXMD9ywX84exvChRX71K3SmgntPZ+JtwkIruV88BZYMLSLfbAVmHn2aM1qkXGN0sed 5NrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:to:from:subject:message-id; bh=h3APZz9SBnZTHoM3rN6FzZB+Smvmf+6R/L8iLPrsIes=; b=puTP4lsp+iz2bLfKlnAjdXbyxKMUI7K5y8+jqBlY+stL/9xAHCWor5hXS0QICsCDSM NH0MQ9reLXKCezUlV5eBbxMnzvreJtbo0MphD1WlUOObf/AsgiN327FNApzVKgJz47ka CnUm+IsVZNSbySZDx3b8CnsgOFM6MFH6rk2w5qUai3yydr0lmDKILQ8NuT/nBIiZQnuq wHNR5mVTTVXfMr6K9ouPJCz/Qq4ercJjoZFxiJXApSqP6vOShhjCgiQ7gjFoa06TDFvR zrLaKsD80KsfJwepy/Ab5MtNIWaEIv6S2zFtDD4ITwgolX9MeqbI7zVNrBMDfSCOk0VT qefw== ARC-Authentication-Results: i=1; mx.google.com; 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 s9si678631oij.78.2020.02.26.20.11.26; Wed, 26 Feb 2020 20:11:38 -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; 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 S1728364AbgB0ELE (ORCPT + 99 others); Wed, 26 Feb 2020 23:11:04 -0500 Received: from kernel.crashing.org ([76.164.61.194]:36614 "EHLO kernel.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727735AbgB0ELE (ORCPT ); Wed, 26 Feb 2020 23:11:04 -0500 Received: from localhost (gate.crashing.org [63.228.1.57]) (authenticated bits=0) by kernel.crashing.org (8.14.7/8.14.7) with ESMTP id 01R4AMqA022487 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 26 Feb 2020 22:10:25 -0600 Message-ID: <7a210c19a7793b925275dbd8392e3c1ef538b229.camel@kernel.crashing.org> Subject: Re: [PATCH v4 4/7] ARM: dts: aspeed-g6: add usb functions From: Benjamin Herrenschmidt To: rentao.bupt@gmail.com, Felipe Balbi , Greg Kroah-Hartman , Joel Stanley , Andrew Jeffery , Chunfeng Yun , Colin Ian King , Stephen Boyd , Rob Herring , Mark Rutland , linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, taoren@fb.com Date: Thu, 27 Feb 2020 15:10:21 +1100 In-Reply-To: <20200226230346.672-5-rentao.bupt@gmail.com> References: <20200226230346.672-1-rentao.bupt@gmail.com> <20200226230346.672-5-rentao.bupt@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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>;