From patchwork Mon Jan 6 15:37:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Marko X-Patchwork-Id: 11319539 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BE53C1395 for ; Mon, 6 Jan 2020 15:38:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9D92F2146E for ; Mon, 6 Jan 2020 15:38:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=sartura-hr.20150623.gappssmtp.com header.i=@sartura-hr.20150623.gappssmtp.com header.b="C20l4lKX" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726467AbgAFPiw (ORCPT ); Mon, 6 Jan 2020 10:38:52 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:36473 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726296AbgAFPiw (ORCPT ); Mon, 6 Jan 2020 10:38:52 -0500 Received: by mail-wm1-f68.google.com with SMTP id p17so15722383wma.1 for ; Mon, 06 Jan 2020 07:38:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sartura-hr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2FYYv2CkjElFAYjDohnfSrEmf3CiiM23ViUusDP3kSQ=; b=C20l4lKXKCjMnwIlhBHsxZTIhwPAqQEpjzZsWBlvXfmUD13gmSuvlTD4s3WNjlQkU8 7xUNJB61mtpDNfsfum0G8M53bSD045ml8lh4pBFsfU2+gMg5uEpGpfR0vDgD7uobEWjb sZmupj2uAfPcuVXbRdPwRNRYsjZGceJz0hngRPioolG6FZ+kat0curTcX+n3hyFR+U/6 8u1y8YCYW5fe83vye0neWwRCWw0L75EdWZVOAgRSVroyqUajqM1hRsYaMFgWzUw42lI2 39Mh9F4jkDCUyfJ7rSLVfSwErUZVWhXBWzsdu2mW0rKP8kaE/ne3BQiaFvNnn0POUleQ JSiQ== 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=2FYYv2CkjElFAYjDohnfSrEmf3CiiM23ViUusDP3kSQ=; b=Jno3lA6cwZqAqf4TbpaEcWV8yh7wAbGdhx2p7riz/oOjUzvEpP/+k3OTdjnUyYE5KL rl7wp2MYjQ2tMCC3ywC+URmBqESD/h9q2yuHPwOcsIBg4rY560VhiSLtZsucblCZLCK7 FatAppaDx8uTwj8AEusQLYnUdOOcjGZ54Qb+cR7Ek9HrDzYqfeS9JxoY3oFETe9cpB7a Qh8UmFQIIbXvdoqnYFllLfTEI1+7YwGSdgSeBX6x3PsCHMFkOtO4zU5GybDNP161Mf/Y 1JUCR/MXp6+8z3jJ2vzFOdwgbL64T6NhhUat+yZUqpTsnndf3Ej7pIp0Di2REKvkUBGx yW3w== X-Gm-Message-State: APjAAAXZmnTstwq+YT7rJuFvpzYHQJzfvRY8X+xy63amzGGuGZ/fyE4v f1+XVc3qYruvutz8lwxoPUSkSA== X-Google-Smtp-Source: APXvYqxDTAyLqKnxLxeHPAhIQHHtRe96agxiW8LBy+g9XDUiNlhDDG4asTpQdrKAtWjHSOoOUOMhJg== X-Received: by 2002:a7b:cc09:: with SMTP id f9mr35662575wmh.71.1578325129768; Mon, 06 Jan 2020 07:38:49 -0800 (PST) Received: from localhost.localdomain (93-137-254-179.adsl.net.t-com.hr. [93.137.254.179]) by smtp.googlemail.com with ESMTPSA id o1sm72661346wrn.84.2020.01.06.07.38.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 07:38:49 -0800 (PST) From: Robert Marko To: agross@kernel.org, linux-arm-msm@vger.kernel.org Cc: John Crispin , Robert Marko , Luka Perkov Subject: [PATCH v2 3/3] ARM: dts: qcom: ipq4019: add USB devicetree nodes Date: Mon, 6 Jan 2020 16:37:14 +0100 Message-Id: <20200106153711.1282414-3-robert.marko@sartura.hr> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200106153711.1282414-1-robert.marko@sartura.hr> References: <20200106153711.1282414-1-robert.marko@sartura.hr> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: John Crispin Since we now have driver for the USB PHY, lets add the necessary nodes to DTSI. Signed-off-by: John Crispin Tested-by: Robert Marko Cc: Luka Perkov --- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 20 +++++ arch/arm/boot/dts/qcom-ipq4019.dtsi | 74 +++++++++++++++++++ 2 files changed, 94 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi b/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi index 418f9a022336..2ee5f05d5a43 100644 --- a/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi +++ b/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi @@ -109,5 +109,25 @@ wifi@a800000 { status = "ok"; }; + + usb3_ss_phy: ssphy@9a000 { + status = "ok"; + }; + + usb3_hs_phy: hsphy@a6000 { + status = "ok"; + }; + + usb3: usb3@8af8800 { + status = "ok"; + }; + + usb2_hs_phy: hsphy@a8000 { + status = "ok"; + }; + + usb2: usb2@60f8800 { + status = "ok"; + }; }; }; diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi index b6e5203a210b..18e9c639514c 100644 --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi @@ -564,5 +564,79 @@ "legacy"; status = "disabled"; }; + + usb3_ss_phy: ssphy@9a000 { + compatible = "qcom,usb-ss-ipq4019-phy"; + #phy-cells = <0>; + reg = <0x9a000 0x800>; + reg-names = "phy_base"; + resets = <&gcc USB3_UNIPHY_PHY_ARES>; + reset-names = "por_rst"; + status = "disabled"; + }; + + usb3_hs_phy: hsphy@a6000 { + compatible = "qcom,usb-hs-ipq4019-phy"; + #phy-cells = <0>; + reg = <0xa6000 0x40>; + reg-names = "phy_base"; + resets = <&gcc USB3_HSPHY_POR_ARES>, <&gcc USB3_HSPHY_S_ARES>; + reset-names = "por_rst", "srif_rst"; + status = "disabled"; + }; + + usb3@8af8800 { + compatible = "qcom,dwc3"; + reg = <0x8af8800 0x100>; + #address-cells = <1>; + #size-cells = <1>; + clocks = <&gcc GCC_USB3_MASTER_CLK>, + <&gcc GCC_USB3_SLEEP_CLK>, + <&gcc GCC_USB3_MOCK_UTMI_CLK>; + clock-names = "master", "sleep", "mock_utmi"; + ranges; + status = "disabled"; + + dwc3@8a00000 { + compatible = "snps,dwc3"; + reg = <0x8a00000 0xf8000>; + interrupts = ; + phys = <&usb3_hs_phy>, <&usb3_ss_phy>; + phy-names = "usb2-phy", "usb3-phy"; + dr_mode = "host"; + }; + }; + + usb2_hs_phy: hsphy@a8000 { + compatible = "qcom,usb-hs-ipq4019-phy"; + #phy-cells = <0>; + reg = <0xa8000 0x40>; + reg-names = "phy_base"; + resets = <&gcc USB2_HSPHY_POR_ARES>, <&gcc USB2_HSPHY_S_ARES>; + reset-names = "por_rst", "srif_rst"; + status = "disabled"; + }; + + usb2@60f8800 { + compatible = "qcom,dwc3"; + reg = <0x60f8800 0x100>; + #address-cells = <1>; + #size-cells = <1>; + clocks = <&gcc GCC_USB2_MASTER_CLK>, + <&gcc GCC_USB2_SLEEP_CLK>, + <&gcc GCC_USB2_MOCK_UTMI_CLK>; + clock-names = "master", "sleep", "mock_utmi"; + ranges; + status = "disabled"; + + dwc3@6000000 { + compatible = "snps,dwc3"; + reg = <0x6000000 0xf8000>; + interrupts = ; + phys = <&usb2_hs_phy>; + phy-names = "usb2-phy"; + dr_mode = "host"; + }; + }; }; };