From patchwork Sun Sep 11 13:41:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9325383 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BAD5B607D3 for ; Sun, 11 Sep 2016 13:41:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AF32028305 for ; Sun, 11 Sep 2016 13:41:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A38B428A7F; Sun, 11 Sep 2016 13:41:55 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21E8228305 for ; Sun, 11 Sep 2016 13:41:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932275AbcIKNlw (ORCPT ); Sun, 11 Sep 2016 09:41:52 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33835 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756159AbcIKNln (ORCPT ); Sun, 11 Sep 2016 09:41:43 -0400 Received: by mail-wm0-f65.google.com with SMTP id 199so2020993wma.1; Sun, 11 Sep 2016 06:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OG4JCxvwQYYQ4XHIn6aFUrvnc7RdLnXuzHEEQXVbDZI=; b=JGjMHehQ+/tUpG6dtSxCKIXqwyNt1IPBdp7+MWmPGau/kBv4NSQylEBarY8f4OyS4g LpALloCE+UOEMvgM7ylncsueXdzNpv0VaILwcWUrKmIoKovFthmYiqjImH+vj+nN3n8V sSaHD1t2Q9Iwj9axMDqnlZFn8AVZZaw+55XxAfT6CyrCmTiz9zohdEg7tU5poVpnv7KP iuiMhEWHUC99iQAbwxBiK6KMZk6jK3dQU2GgXQxH79MY/zvIx4YFj6uupkFgeVOkRlRW 3leuqt0O3e9E+O/PsQWeED+Tg8R9JTgm9ztazQwClqJADEFveC8J7yv48/IOu1XuYXI+ K+tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OG4JCxvwQYYQ4XHIn6aFUrvnc7RdLnXuzHEEQXVbDZI=; b=ile0Q3OO7HCfW1Zk/V+Tc7mFML2FJcw0goBnCyNUz1M/2fsUu6qS7y1ea9AswrZkLM YY/f7BUVKKArX9E0mUlXyH+Y6Q7tyXjP73eN70Dduy0N29fP3KhbCh5sF7noq9flZKem eDLl2gvZok3MStLBR/GUD041joFlrznamO+hieRnJTweqje2vRD8fibms4TkrxJMIlhj lPODaa68z9JoeiwCiA8Yt1LmifQPLVbaGHtHRpSFxpe2oNN8lWPXLblrQ8yrK5qAGqWr OoJr4JOwNrc843oQrewMEeYYk9sl1aFCcy9huUp57W/j/narQW3/zrF7h+AcTziA56CS z+Pg== X-Gm-Message-State: AE9vXwO6SYbf1HAOt4CiWXGvIXePHzpgFCkNbHlJG4y/89BU9dMj3g6UniMRFBmRM12hJw== X-Received: by 10.28.12.209 with SMTP id 200mr6185931wmm.118.1473601301683; Sun, 11 Sep 2016 06:41:41 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD3CB9604519CE50E19B62432.dip0.t-ipconnect.de. [2003:dc:d3cb:9604:519c:e50e:19b6:2432]) by smtp.googlemail.com with ESMTPSA id bc5sm13011223wjb.37.2016.09.11.06.41.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Sep 2016 06:41:40 -0700 (PDT) From: Martin Blumenstingl To: linux-clk@vger.kernel.org, linux-usb@vger.kernel.org, linux-amlogic@lists.infradead.org, jbrunet@baylibre.com, johnyoun@synopsys.com, kishon@ti.com, khilman@baylibre.com, carlo@caione.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, sboyd@codeaurora.org, mturquette@baylibre.com, will.deacon@arm.com, catalin.marinas@arm.com, gregkh@linuxfoundation.org, mark.rutland@arm.com, robh+dt@kernel.org, Martin Blumenstingl Subject: [PATCH v2 4/6] ARM64: meson-gxbb: add USB Nodes Date: Sun, 11 Sep 2016 15:41:09 +0200 Message-Id: <20160911134111.31141-5-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160911134111.31141-1-martin.blumenstingl@googlemail.com> References: <20160904213152.25837-1-martin.blumenstingl@googlemail.com> <20160911134111.31141-1-martin.blumenstingl@googlemail.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the nodes for the dwc2 USB controller and the related USB PHYs. Currently we force usb0 to host mode because OTG is currently not working in our PHY driver. Signed-off-by: Martin Blumenstingl Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index 2e8a3d9..30a8661 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -151,6 +151,25 @@ #size-cells = <2>; ranges; + usb0_phy: phy@c0000000 { + compatible = "amlogic,meson-gxbb-usb2-phy"; + #phy-cells = <0>; + reg = <0x0 0xc0000000 0x0 0x20>; + resets = <&reset RESET_USB_OTG>; + clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>; + clock-names = "usb_general", "usb"; + status = "disabled"; + }; + + usb1_phy: phy@c0000020 { + compatible = "amlogic,meson-gxbb-usb2-phy"; + #phy-cells = <0>; + reg = <0x0 0xc0000020 0x0 0x20>; + clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>; + clock-names = "usb_general", "usb"; + status = "disabled"; + }; + cbus: cbus@c1100000 { compatible = "simple-bus"; reg = <0x0 0xc1100000 0x0 0x100000>; @@ -496,6 +515,30 @@ }; }; + usb0: usb@c9000000 { + compatible = "amlogic,meson-gxbb-usb", "snps,dwc2"; + reg = <0x0 0xc9000000 0x0 0x40000>; + interrupts = ; + clocks = <&clkc CLKID_USB0_DDR_BRIDGE>; + clock-names = "otg"; + phys = <&usb0_phy>; + phy-names = "usb2-phy"; + dr_mode = "host"; + status = "disabled"; + }; + + usb1: usb@c9100000 { + compatible = "amlogic,meson-gxbb-usb", "snps,dwc2"; + reg = <0x0 0xc9100000 0x0 0x40000>; + interrupts = ; + clocks = <&clkc CLKID_USB1_DDR_BRIDGE>; + clock-names = "otg"; + phys = <&usb1_phy>; + phy-names = "usb2-phy"; + dr_mode = "host"; + status = "disabled"; + }; + ethmac: ethernet@c9410000 { compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac"; reg = <0x0 0xc9410000 0x0 0x10000