Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp383212ybf; Wed, 26 Feb 2020 15:05:12 -0800 (PST) X-Google-Smtp-Source: APXvYqw3Oz3iBP9APv34O0n8wVCimyEhYbjpCyxlCWypv8Js8PTB1iRdOdMj8hzCZ57f1JURDPBd X-Received: by 2002:a05:6830:114c:: with SMTP id x12mr975617otq.324.1582758312487; Wed, 26 Feb 2020 15:05:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582758312; cv=none; d=google.com; s=arc-20160816; b=nZgpjp8A3Z5cTP2USRrQvJ4cIeLha3ZIrw0GbENuJPXaiM6buH4uXv3QDewR8VILSn dnCjNtEXCdpeBV6uRvKGrhXpU0f5LBHuxQIMCvc7Tjk4dboWBqfvMuP7DUwhAWOGOMFH xqTB1mENX7RRPP9t7/3zcyUIylJW83avJ0fwbuq73hDx63fPBJuSIJ03Vzr7AacDUU7I K/efq5eDV4d7S7jRAFDRkhoRUCcarshwANgwydsHaJ7GoCEyxHNR+mKvdZcl7RYsD3Sm ycNZKdAYCQndG6daXd/d5Lbfavur8Kk7SDvMvudDQTYthzAErVyfSK1rCA26rnW/LIHB 3vDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=j14U6e4SZ5/bLzKusf4O48IBiLZ4+5mU3b6iUsqR1xQ=; b=dien/WjJZ7+hhLb0X3vF8+q8vvjPDJ63YG0SE7mu39FFyYnjdiZjgerU243Ek2f2q6 d8EzdXCLiKuKxoNoNjx9yu6h6mMakKOCeLdfd0nJsZT3ciN/0PVlchytr17MTU+IdsA6 a1oswBXZBk4hMIWW/7w4Q6STARyuScm0M5mRHLFqVLY49lj1qPtUQBrmhKu4ZPH4Nlqr 9wJexzfVehhLDybojzrPGBSTzwOq138d0+MDwWRDgUo1ObqDJ0WzbKtCeXqhXqX2nhRo DR86mSP6sCkuzIdij3gt+ZBY+Elzg9SIW3Bpbvk567cPIGhng2FRRitypuo7Xsz29h6R JM9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tdROPMg7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x16si492218otp.184.2020.02.26.15.05.01; Wed, 26 Feb 2020 15:05:12 -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=@gmail.com header.s=20161025 header.b=tdROPMg7; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727994AbgBZXEI (ORCPT + 99 others); Wed, 26 Feb 2020 18:04:08 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39871 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727978AbgBZXEI (ORCPT ); Wed, 26 Feb 2020 18:04:08 -0500 Received: by mail-pf1-f195.google.com with SMTP id l7so124345pff.6; Wed, 26 Feb 2020 15:04:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=j14U6e4SZ5/bLzKusf4O48IBiLZ4+5mU3b6iUsqR1xQ=; b=tdROPMg7AEKdtwwE9QymwJ0g9qsWLn7bn2gtI6QlqMCrStrbzvnhTcqPFlkpLc6Can 8RTLdPjfGZAeoJHpu5b0cvuSfO/BrYa/6Xx6qJ/XR5W75q1+c9HjV9ymwkjG/qOhKPeq FcK/BeIYhOzShUtMi/FJWY+OWIZwvvwsKWlrRiS7AmjDD4EUQDxIU0cOCMxKciXZtLkj Omj3DRzVKWnOQ5v+M+sEXfQadRKvpQx/loMQdv3PrEegVlAO2t2HEieqUBid4OiTO3dy fpq6u6b9n2PfHN84+KRJd2jrw0UHJ5Qr8+PNSGcy7Jm0gOuCR84v+q77f+vaXeVPCgH4 7zSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=j14U6e4SZ5/bLzKusf4O48IBiLZ4+5mU3b6iUsqR1xQ=; b=CGL0Rs/F5hUEAi0ljbXSBWLg4BbD056phLWW21OrnCneKJohp5MYglkS9ED9s9qAsi FyB7WgYQ1UH/wLRAdv4zYsV5B6RCXS4FZa2YuvcfMUbTF+lStmRsu8HIQf5JIDgK4VrU vxQ+FSH2/Z+K6ejPMr4PyPXTgLWSo3oGyCN7GXrEmaBZw7iSiDRc5EbkXKS1e2hMBet+ Mp+UaWFOQgeXY4tUujYkiCw/Nj3xNeM3ZUrSQxb9t38z0UKyuOQ1oX+spfRl6Y9bqGld KCbkmf7UgPlZ7OzqtY0wD2ZwvJWwSACwf5974+J/FpQN+V8PmwYRJZmM8W4gmsDinY9t Oqcw== X-Gm-Message-State: APjAAAUccppkWCVlv7s89mkMTZ7v3SZV6YEBf8mwmEVrw8aLbnj/ikVK dKlAU4gf31telbXnrvpRW1g= X-Received: by 2002:a63:5b1e:: with SMTP id p30mr935911pgb.71.1582758247007; Wed, 26 Feb 2020 15:04:07 -0800 (PST) Received: from taoren-ubuntu-R90MNF91.thefacebook.com ([2620:10d:c090:500::7:5ebf]) by smtp.gmail.com with ESMTPSA id 3sm3912621pjg.27.2020.02.26.15.04.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2020 15:04:06 -0800 (PST) From: rentao.bupt@gmail.com To: Felipe Balbi , Greg Kroah-Hartman , Joel Stanley , Andrew Jeffery , Benjamin Herrenschmidt , 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 Cc: Tao Ren Subject: [PATCH v4 4/7] ARM: dts: aspeed-g6: add usb functions Date: Wed, 26 Feb 2020 15:03:43 -0800 Message-Id: <20200226230346.672-5-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200226230346.672-1-rentao.bupt@gmail.com> References: <20200226230346.672-1-rentao.bupt@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tao Ren Add USB components and according pin groups in aspeed-g6 dtsi. Signed-off-by: Tao Ren Reviewed-by: Andrew Jeffery --- 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>; -- 2.17.1