From patchwork Mon Mar 26 21:17:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10308707 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 E1F7260212 for ; Mon, 26 Mar 2018 21:18:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE6532974D for ; Mon, 26 Mar 2018 21:18:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C2D97298C9; Mon, 26 Mar 2018 21:18:39 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham 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 73DC0298C6 for ; Mon, 26 Mar 2018 21:18:39 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=6Qz1PiHd95xGjfI8bpBYY3S/oH0Q487wggcIkMWylJU=; b=LY+C0/Qo/IjiCJwVTCJIC+s5Uw EsH6a8rdv+iD+TLynrOfGPJddrWKrzdvmk0f77HksOpWZAa9/ujd6cZz6cdpsOfy8yjNnmxNSoGE4 2GJ9mRPHt3eHGPqvMW7FjMaTuza7hzth53Qfweye09+ptmvOMSnQWbzGXC17AAMaBtilok06Tt8HZ 1C+IWKiJsX4J2/yBGVSXtRGugKl5bAJH2Aq7RzcWfiXuqiqBz84Tc8RnJLGrqkjCTTFgPFXD8fW8C g6rWCWGfpfPKHZaADhNoZvduOB9OogaomMf4XwfnZslBryWCoofJGa9uPP6ktuyHOx2wvtxssgIfo iMTbDdsA==; 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 1f0ZVk-0002JV-Pm; Mon, 26 Mar 2018 21:18:36 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f0ZVb-00029b-8J for linux-amlogic@lists.infradead.org; Mon, 26 Mar 2018 21:18:28 +0000 Received: by mail-wr0-x244.google.com with SMTP id d10so20313125wrf.3 for ; Mon, 26 Mar 2018 14:18:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=66QXKeCEFTJTjdhKYLOGNF2dACIL0Boy6Nx0LVn2vIY=; b=ZED1W0vEYNpO1hj3eNLNKGtF3VW0Sw/aI4SZ5QP2qduQKtJtTCqAHKy43Gln1QSVrE FuzujbyTaBWmHtx9rl9E3WuDlByZNHWtjEgodtZlbZTrnhruPDRE4pXQ5OK77Xd7YsK9 dXSlv8RfilYUA1yxxcaT2x85BSIimtNIWju88OHP62SZnL3ZpiwqklDq+uQQVaEMrt6j gFc4X7NT7rgA8Lp4WzNngSPl3+88X0fu8BV27r8OLgITBno9SCDQ8LUjbfuBiNZPUxvA 50tum0bQD5wyotpnuWUxeW1x96ONC4Od6dJbYsUX19RNt2MoC+OP+BDsygZjHwRG2ZOB FLVw== 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=66QXKeCEFTJTjdhKYLOGNF2dACIL0Boy6Nx0LVn2vIY=; b=TvxxyCMQv4iBJ5R2ucTJrMuxZDWBYOV4T6U90VKQ9Au4tqZH0ky4wtLUxTLf0i0xib gdyt8CFssHIlmBvjkNFeyLKhOyIKUrFr+cTbHhkqOmkF6B907OjF6H/938+cw4ui0jtg ZALr78hlHFDQ/rgN9xZ3sCpPItN2UUNmtxQuswo2Y0FSCQ8bhG7bSNN6Xtuux8ckAUYy KpECKIr9H7zj+orcHnTfJZkN5v1kInTSQzZAiHIG+T14Du6/874PE7WprCVgZZk3LAOz aYc8UffVbTvQ3GCGItK4j5/8wpIsqnaSaXyS8HEAW745cIo4V86KOzzq+HrMoqU+4WGR 4rQg== X-Gm-Message-State: AElRT7E29L/0sMcSnor8cooPFkiZ9CE7fFYRgJh5fTgKk9cgt0g/Hlm0 QX+ysA5hvOD1zfCtiuKD1ftn/QiR X-Google-Smtp-Source: AG47ELv0U1ncGITVyHpN5IH6YwOzU1cu33q27EIwCvygdIR8SJYylal4LRXcHfd5yGclpJlaZ6ux+g== X-Received: by 10.223.136.24 with SMTP id d24mr12674672wrd.127.1522099095428; Mon, 26 Mar 2018 14:18:15 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD741650468A1A7E01A883D6D.dip0.t-ipconnect.de. [2003:dc:d741:6504:68a1:a7e0:1a88:3d6d]) by smtp.googlemail.com with ESMTPSA id z3sm25025650wme.3.2018.03.26.14.18.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Mar 2018 14:18:14 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, carlo@caione.org Subject: [PATCH v2 2/7] ARM64: dts: meson-gxm: add GXM specific USB host configuration Date: Mon, 26 Mar 2018 23:17:43 +0200 Message-Id: <20180326211748.16488-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180326211748.16488-1-martin.blumenstingl@googlemail.com> References: <20180326211748.16488-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180326_141827_290669_3DE4D6EF X-CRM114-Status: GOOD ( 11.69 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Blumenstingl , yixun.lan@amlogic.com, narmstrong@baylibre.com MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The USB configuration on GXM is slightly different than on GXL. The dwc3 controller's internal hub has three USB2 ports (instead of 2 on GXL) along with a dedicated USB2 PHY for this port. However, it seems that there are no pins on GXM which would allow connecting the third port to a physical USB port. Passing the third PHY is required though, because without it none of the other USB ports is working (this seems to be a limitation of how the internal USB hub works, if one PHY is disabled then no USB port works). Signed-off-by: Martin Blumenstingl --- arch/arm64/boot/dts/amlogic/meson-gxm.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi index d076a7c425dd..247888d68a3a 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi @@ -80,6 +80,19 @@ }; }; +&apb { + usb2_phy2: phy@78040 { + compatible = "amlogic,meson-gxl-usb2-phy"; + #phy-cells = <0>; + reg = <0x0 0x78040 0x0 0x20>; + clocks = <&clkc CLKID_USB>; + clock-names = "phy"; + resets = <&reset RESET_USB_OTG>; + reset-names = "phy"; + status = "okay"; + }; +}; + &clkc_AO { compatible = "amlogic,meson-gxm-aoclkc", "amlogic,meson-gx-aoclkc"; }; @@ -100,3 +113,7 @@ &hdmi_tx { compatible = "amlogic,meson-gxm-dw-hdmi", "amlogic,meson-gx-dw-hdmi"; }; + +&dwc3 { + phys = <&usb3_phy>, <&usb2_phy0>, <&usb2_phy1>, <&usb2_phy2>; +};