Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5076162imb; Thu, 7 Mar 2019 07:15:04 -0800 (PST) X-Google-Smtp-Source: APXvYqycTVOKw2QBZE2VGefitrPnRQw41ruNHVx8lW42gxhrEiMINCe3axMlKpHBvMlkjpCRBDqR X-Received: by 2002:a63:d80b:: with SMTP id b11mr11790518pgh.168.1551971704096; Thu, 07 Mar 2019 07:15:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551971704; cv=none; d=google.com; s=arc-20160816; b=dFp2j6PzXFuGXIsYIAj8erFlCX34eLlrKuInq3IJSuu95D5M59PWn8y+XxU1naKOW4 ox/eOSqI8gMACd+8Guk1KIHeX6u4N4JIvwdLgvWaqvODWGw8vxwLVgeskrKwyK9OatGV uYgi2BJ4k7HtzdYwy6ur0uSZzTqrRBjzCusWfcGuURBV6T8nLipSOgz6WX9mjt3KJ7sv NK1WlETEGPSR1JDKjqWtyxQgTFc0AF4P9JRwJqqjsyLl2kzbynZ8R4p3qn59LVVlucWv UX0Gmxr1r3gPUm4XAYop1fPjJrwEfu/+2oQXzxG3t+7uaDbGVrRPtCvyNlN48vJC0UbH vCYA== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=WGl0+t6qc0DE+q8X5n35oktYj1wBnQw0GSdQfqfiPJ8=; b=lnGyk3+BCWS+LpBsnONFXUqm+6LdgIOrCTM8NC+k1iy57SyyxFoWtzR4rsM52m6KWT DTRsFHptqpAvZP3FyrSD3w+a/Eg0QRLT6B9jk6mPwT+zB8PzWXv7sF/7C9SHnDfttuCb eJ8E4ZND8H+bN7CIFad0amCYFoPw/CQ/74rfTYDPF4Dc3jVieF9FkdoOo3RwSYpnlzkG ZuKIixsVUZI+GOZ+2HKnNHpaI6yFYeaJ/bA++Tbmojb7lalXvP6xa/wFa/tZZpwcoQwt /paueutj2kAUvfEWhg9LFqn5ut9O1KUbfwu0tf+SIekmO+s3FhYChZDNxNM7PMBCKTyQ HPZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=drGqb91M; 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 k74si4479576pfb.32.2019.03.07.07.14.48; Thu, 07 Mar 2019 07:15:04 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=drGqb91M; 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 S1726536AbfCGPOL (ORCPT + 99 others); Thu, 7 Mar 2019 10:14:11 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:50477 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726234AbfCGPNv (ORCPT ); Thu, 7 Mar 2019 10:13:51 -0500 Received: by mail-wm1-f67.google.com with SMTP id x7so9637674wmj.0 for ; Thu, 07 Mar 2019 07:13:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WGl0+t6qc0DE+q8X5n35oktYj1wBnQw0GSdQfqfiPJ8=; b=drGqb91M6prHbc31ZNqryIhYO+lEpu3P6PVOQ7rx6c33cKiItjGaWL8jKkg37dEPlO hGk3FYXR0A/5BQwUKWxHg/D5bglImGYxhdgpmh/IGVMaVHCX7iH7o78vdd3KfAuKVjFg ewjRUTB9E8sGbKGJcQKvhJP3YavuOJ4iluM9NPe7YvAvZvtfKTTjer2TPBHdYOob2cRX YsJG3zZ6XMT2bASgExY0/UOxvunx7MVvw6Srd3e3YrmufepLdN5/zdMAzrcgVo7k4UIq 0rYOGmbqTDkh36ILevPpw+iPRW2d0SlVUyoch3yQ73gkq2LC56uLhj6F8OxkO+WO7hxC W6eg== 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:mime-version:content-transfer-encoding; bh=WGl0+t6qc0DE+q8X5n35oktYj1wBnQw0GSdQfqfiPJ8=; b=cb1S5Sty88m7UZOdnUo2jNCrVWBB/e5SwhOd5jDrwSdSTSBYrP6Grrf1PQQEK5KvDD pK3/O1Z/apUYnMhKqO4eZjPhhzmz1yV/czKASeku74gz0TwL4HttZVPAkbvuWTvBD8gn 0fgGyJNXJOylR5/3oz7eDVm4bKa+uZD4S5V/x85aMdpeYPcEWQF1HK7eRr+TUMIfwKJl EwRzYynj25QsDkABfMkfki2Et+EJ9mTu6R6XouYRn/N5IPuFmFbm63Mw/nsEYmvXE22K ZsWLukEe6jzC4iAAZcc2pbh1gQzGTXts1oIcsNG7rSnSUa8BAizzZZnFs7kOO+cSBJiV c6gg== X-Gm-Message-State: APjAAAVimg+8q6CkEaLk04SZZ8V5XtjcMC+eIgYjT21CUoupZaENPAgI p+THe+i4STOLwUqe7me6nCjAVg== X-Received: by 2002:a1c:751a:: with SMTP id o26mr6124150wmc.10.1551971630000; Thu, 07 Mar 2019 07:13:50 -0800 (PST) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id r15sm5756563wrt.37.2019.03.07.07.13.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Mar 2019 07:13:49 -0800 (PST) From: Neil Armstrong To: khilman@baylibre.com Cc: Neil Armstrong , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/9] arm64: dts: meson: g12a: Add G12A USB nodes Date: Thu, 7 Mar 2019 16:13:40 +0100 Message-Id: <20190307151342.7381-9-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190307151342.7381-1-narmstrong@baylibre.com> References: <20190307151342.7381-1-narmstrong@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds the nodes for the USB Complex found in the Amlogic G12A SoC. It includes the : - 2 USB2 PHYs - 1 USB3 + PCIE Combo PHY - the USB Glue with it's DWC2 and DWC3 sub-nodes Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 78 +++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 3bcddd412aa1..991883ea023c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -3,9 +3,13 @@ * Copyright (c) 2018 Amlogic, Inc. All rights reserved. */ +#include #include +#include +#include #include #include +#include / { compatible = "amlogic,g12a"; @@ -170,6 +174,26 @@ }; }; + usb2_phy0: phy@36000 { + compatible = "amlogic,g12a-usb2-phy"; + reg = <0x0 0x36000 0x0 0x2000>; + clocks = <&xtal>; + clock-names = "xtal"; + resets = <&reset RESET_USB_PHY20>; + reset-names = "phy"; + #phy-cells = <0>; + }; + + usb2_phy1: phy@3a000 { + compatible = "amlogic,g12a-usb2-phy"; + reg = <0x0 0x3a000 0x0 0x2000>; + clocks = <&xtal>; + clock-names = "xtal"; + resets = <&reset RESET_USB_PHY21>; + reset-names = "phy"; + #phy-cells = <0>; + }; + hiu: bus@3c000 { compatible = "simple-bus"; reg = <0x0 0x3c000 0x0 0x1400>; @@ -190,6 +214,18 @@ }; }; }; + + usb3_pcie_phy: phy@46000 { + compatible = "amlogic,g12a-usb3-pcie-phy"; + reg = <0x0 0x46000 0x0 0x2000>; + clocks = <&clkc CLKID_PCIE_PLL>; + clock-names = "ref_clk"; + resets = <&reset RESET_PCIE_PHY>; + reset-names = "phy"; + assigned-clocks = <&clkc CLKID_PCIE_PLL>; + assigned-clock-rates = <100000000>; + #phy-cells = <1>; + }; }; aobus: bus@ff800000 { @@ -353,6 +389,48 @@ status = "disabled"; }; }; + + usb: usb@ffe09000 { + status = "disabled"; + compatible = "amlogic,meson-g12a-usb-ctrl"; + reg = <0x0 0xffe09000 0x0 0xa0>; + interrupts = ; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + clocks = <&clkc CLKID_USB>; + resets = <&reset RESET_USB>; + + dr_mode = "otg"; + + phys = <&usb2_phy0>, <&usb2_phy1>, + <&usb3_pcie_phy PHY_TYPE_USB3>; + phy-names = "usb2-phy0", "usb2-phy1", "usb3-phy0"; + + dwc2: usb@ff400000 { + compatible = "amlogic,meson-g12a-usb", "snps,dwc2"; + reg = <0x0 0xff400000 0x0 0x40000>; + interrupts = ; + clocks = <&clkc CLKID_USB1_DDR_BRIDGE>; + clock-names = "ddr"; + phys = <&usb2_phy1>; + dr_mode = "peripheral"; + g-rx-fifo-size = <192>; + g-np-tx-fifo-size = <128>; + g-tx-fifo-size = <128 128 16 16 16>; + status = "disabled"; + }; + + dwc3: usb@ff500000 { + compatible = "snps,dwc3"; + reg = <0x0 0xff500000 0x0 0x100000>; + interrupts = ; + dr_mode = "host"; + snps,dis_u2_susphy_quirk; + snps,quirk-frame-length-adjustment; + }; + }; }; timer { -- 2.20.1