Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5396653ybv; Mon, 17 Feb 2020 19:14:10 -0800 (PST) X-Google-Smtp-Source: APXvYqypoQGEgzQHOlVXJmvj0mgvo5n07ALahVImXb831pPRzg3/5eM30JpDtTK+NuvhX6OJtSpQ X-Received: by 2002:a05:6830:1498:: with SMTP id s24mr15377786otq.79.1581995649921; Mon, 17 Feb 2020 19:14:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581995649; cv=none; d=google.com; s=arc-20160816; b=LU3k7JtJ9mzgRCsQRKVzBW41kY6nAaJm9LS3242D7tvQBuNdTG0IvqNfbytQtht2Ea 2KSfMMpU8TQrXy/wt/vUa39YvRtFP/w0PdeMoDJOQ2ZGQXClp2II7HFn4AdFrZbrlkJS x9gipvKsNzRvPGHHQN/APHfVuJGmnikqBnBlFVeWe2LkejkyIuPmTtiZiMNag9ndzx+6 NUculi5BM/9/9kzS0fLVWkGtNU/0pAmGO6/xJVq0AborYELv/d2eMGvFQ8K2AveCqMBv wbl5ggGa2BrJo1nJ1f7xaFThtLQhQk4JlQ4SzvGBRP6xE88fupyOAukR6LQqj1/ADRve /aMA== 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=qzBJv/c87tJ9E1plY5163T6VkEXxbK0ZYhhxLHlrMLE=; b=IHChMjhg1A5wXqWGeAoiHIzAuojTjbRINo+QAl8HXqu0s993hZfqRquFjOh33RFjV5 neYYB2yQVCH9pv3MOef9J4j3TcxnpdBUxaAyE6xrP+p8dq6fSfyqH4Voz1FBSTjZi4Ah ji5gGxlr6g5F6nVhIQ0/zAeqrkcdXyjGQkn1o9Yne9MAVVlwbA7NB+Yi+fRw/a/CZr02 NKF86OJV+mITFqF+3iNrXtHv4cHXEM/3dVN2rWL7hLV/eQ4ENF91fxgVf4RNQQLVCdD0 L1DdDtDEfogiSwDigqXQ7ALpynXnQBVf6wJqK9BENDTdqvqyxAdzrLW3hsPJL0aYycY7 Arnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FTZID4yt; 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 m12si7032609oim.195.2020.02.17.19.13.58; Mon, 17 Feb 2020 19:14:09 -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=FTZID4yt; 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 S1726521AbgBRDNc (ORCPT + 99 others); Mon, 17 Feb 2020 22:13:32 -0500 Received: from mail-pj1-f66.google.com ([209.85.216.66]:34318 "EHLO mail-pj1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726245AbgBRDNb (ORCPT ); Mon, 17 Feb 2020 22:13:31 -0500 Received: by mail-pj1-f66.google.com with SMTP id f2so209965pjq.1; Mon, 17 Feb 2020 19:13:30 -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=qzBJv/c87tJ9E1plY5163T6VkEXxbK0ZYhhxLHlrMLE=; b=FTZID4ytvjTvEljA+QCwUpv0SqvOixrpKQlF0N5GhNGlE0E2VLwy4cG3RWBW/YuV5c fc6c5qXFRis84+zoVAS1qdcvGsxIOdlEphRTettCnAENWqtro6Cw7OgaQD+20MfDNF6R IMcqmqGS6Q9ruILfjyYyTi4rPnc20rgaK/uXW11mFnssgiR24cKxPhZrSm3ZttJvbQ0A 9DkNPunkKQGnz5Ws2Fld5v3IRjtvVgHvEUhZT405tP7KMtv20lxco0L2eEUgAyehcyC3 0Tz6Xa9d8M+qHdsrLTxQZmnfj025XEfLNiygFOGEiJEbnpsUpbonGryfqTXKUCR518nf W/jA== 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=qzBJv/c87tJ9E1plY5163T6VkEXxbK0ZYhhxLHlrMLE=; b=jDlCbv39lU3WgiBI4VTXytwD1kIKd8aNLN4HRSg340IWm12N3vWf7w6IY5mGF1WGN7 8a5qayPOKetT4XOLJw5Gf3uvFtBKiPgD+t7pIrjgnCTzrAxDZTtIjyB5KIhzxh3q9xyP SRPxfOaAQ0wNJN+dr+qaYbQqUzvFTfHHq44YkjQ1gOjADPr/rwgVOSbrJWpl0KfPXNvE pI9VncsucWWwbzkoGz+8XyWKwUdnMsyvxGtVDiAO9pFMY6/YwvvLpKAQYz0dRLQNDQp1 O4bdiaPmyt7B9gSe275sZ+wWeJrisgss6N/H2d7y9goZRVHHijur/80NUTt/LLkUAQPE UXGg== X-Gm-Message-State: APjAAAUDB8Sei3yJcPgFRRUdqAsBunheVjsQi+wQLzXjSUqJEPK1+43c v18BBdrP7sSF4cZSG+r1rxs= X-Received: by 2002:a17:90b:97:: with SMTP id bb23mr10944pjb.53.1581995610425; Mon, 17 Feb 2020 19:13:30 -0800 (PST) Received: from taoren-ubuntu-R90MNF91.thefacebook.com ([2620:10d:c090:180::6f94]) by smtp.gmail.com with ESMTPSA id b18sm1812595pfd.63.2020.02.17.19.13.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Feb 2020 19:13:29 -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 v3 3/5] ARM: dts: aspeed-g6: add usb functions Date: Mon, 17 Feb 2020 19:13:13 -0800 Message-Id: <20200218031315.562-4-rentao.bupt@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200218031315.562-1-rentao.bupt@gmail.com> References: <20200218031315.562-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 --- Changes in v3: - None. 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