From patchwork Thu Mar 7 15:13:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10843135 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8A78B1575 for ; Thu, 7 Mar 2019 15:16:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 743BE2B7B1 for ; Thu, 7 Mar 2019 15:16:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 683B32F333; Thu, 7 Mar 2019 15:16:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 12C1C2B7B1 for ; Thu, 7 Mar 2019 15:16:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pRYW4iQW966un2EOa8xi8ipQSPPRmDYtL84LUW9jNZ4=; b=Mo5nOk2PTiHv20 IlU3kpn9uJwKqhsXWDwu/lnFyzQomEVUt6zt+Uw4XNXA8FXSxjqopU0mTGaS00Y2LDFxbvvldNJBE fwSnM5ZnMAqLCYAd62INcF57Fm/BYaZuo72zhGvc81f+m61T1+bJYB1fuILfjrtRGH1j4dzGbU+bs LbMHk0SyP07wl+kBx0DLlEaBht6tcjyF1K7wts3+68KnnT/LOIbjnnEqKdQUjwaBJp8HvGHPKfR9p YSRBvWSGu1fkFYmJTAe6PpYqLowY0mUEtw9f9wsO+FSSuTEUXEh9UIcEIY2hT1dE1apN3hQrxiAH/ IpbWue7X4A7ewFa9MhBg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1ukV-0007MT-2B; Thu, 07 Mar 2019 15:15:55 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1uiV-0003U6-T1 for linux-arm-kernel@lists.infradead.org; Thu, 07 Mar 2019 15:14:04 +0000 Received: by mail-wm1-x342.google.com with SMTP id f3so9688095wmj.4 for ; Thu, 07 Mar 2019 07:13:51 -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=JakgNn6n5yCwvPCxjOMMxL+RtfE2kd4OlIEtcwutxV48ma+hhgHKg8j5kIsyoaS+tE nySsRe4gNoWjP1Kj1cCl7TZKJPho8U3X/drVHadTRxguvsooz6RnG+WUJ1YJT2h4bOsf nD67SLcHoB4DufMUQi/nKXeV+tAQ5zFBG/WxYwBLElt8aI1guGBlA0X06b9Npe/y1iM8 iAVTwvh6dyAjJ+cQmffrkW1z4BqAGpLZkIMFs3ylile/XrkTmfcAY+8ctm++L6mXaQpP ktzBvlaWsMQSphotPsXrAQuCHCawS8MZlVhAYucIsCR+yGH2/u6eqzi4V2uTpql7tm+1 Nm7A== X-Gm-Message-State: APjAAAXYk0RHxS7ZeU/sr2YpVLH0GuQ0CD3vVRH/nbUSik6odUX7tUid MVWzd21WgAe959iwx/K4RDniWw== X-Google-Smtp-Source: APXvYqy/T9v8I2sGM64jbUlJ2r4vGKb02JpwRzKX1BZDhCug/VA6xzbzq89DkWmJ05q8gysfyGZEQA== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190307_071352_294676_FDB25A0B X-CRM114-Status: GOOD ( 13.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Reviewed-by: Martin Blumenstingl --- 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 {