Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3371986pxk; Mon, 5 Oct 2020 08:07:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeKaO2dsu/avdCJFeVLZzZpE7uvywQovj1Hozg2H1PD108StyQR2NadJluGYymfGN0O8Sk X-Received: by 2002:a17:906:4993:: with SMTP id p19mr130428eju.277.1601910422292; Mon, 05 Oct 2020 08:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601910422; cv=none; d=google.com; s=arc-20160816; b=O+FRZFuAsPbhF0Y2Dxr8KHXljPquJRza1iRG/Rc3/cPg/9E/25hPio+iRjDDTdNtUF XGxrx3HmwL1J63mbg00jzPGWPIUiX+obp5gg8AMmjU22iIVG/GXq3vuZl55AIwB7WxLj sjpEp1ZLKcteP6crOiVfQkM7vHlYl0Ob7Hkj/GdK+FAe/MWvlygGFA5EgILOBNBHofZP uPexMHmZH+dP17H+B8RSi7fyTC1maVu6a/InFLoPGyTqHPOqTqGZKlrXToIld0qBB6+t H2Fq5xp4MikClD1DIqdJ7E/qfBWl6mxWKggl1sxpQZCi1BvswmnmU23rer3PYg/wUN1+ rRDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VLyV+gEvPdXBCfQzavVLm7qZZj9wcK92N6joqP0d7ec=; b=iROQnNQOEXmF2ynrcbM9d78zAbH4tyIefIs4zrU9e6eKhvztC4/Jm5vbgqumE7SdZ1 V6EKlxVunEflXzdultu3m+AOubaGUT92yo2Rox+qyt1owhgu3aRGPjb1MlXLJf/X2LOz xk/oxQk5TNSUloDeq1cGewdxWMK6l1efeg7XRJicUa8lolRH/nqBWVcW+/ZB23ZcpdO1 dDZvM1ToOYwjRljSr4RxLrojICOLxvX82XWdiD+hk3AtaGS4mYfg7hyT0pyF6G0xxWPb aAoN4f5EgpkkBhWOYH9o075kQ+wzIx22kBpk5vCmQ1FjGmc5FgvVALnqBiXag2AM6VWY VgSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ca90qH7q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u22si7761438ejr.188.2020.10.05.08.06.38; Mon, 05 Oct 2020 08:07:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ca90qH7q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726934AbgJEPDx (ORCPT + 99 others); Mon, 5 Oct 2020 11:03:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726680AbgJEPDr (ORCPT ); Mon, 5 Oct 2020 11:03:47 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EB83C0613A8; Mon, 5 Oct 2020 08:03:46 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id z1so9965896wrt.3; Mon, 05 Oct 2020 08:03:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VLyV+gEvPdXBCfQzavVLm7qZZj9wcK92N6joqP0d7ec=; b=Ca90qH7qwNVnnXiFq9UP0drNlhAOkpSo+bHv6QU4SPKptDSLg75aWFeVCrt1ziJVtR UyPbOvVF/Ey8hq1+HYmZ/XgIF1p7iMcRVPmRfjU5JjjVfvnvTwD076ixdNun0EPkrs8T BlxyzJ78FVoPwe/VVVnae6tXIZ9mq7eq13HhSOB1PWcLIAZwyiQychKQ66oXbhebGoR7 XSVphzi6sgXyUpg6PS3/mfWoyixxtgru2ewc1kXZ/v4dqssPo/4FHdg2sz2HMEj2xcRo 2MU6FaYY55Ha7xRUU1/NBpp+0bYbDGrVYf7rZguUjHJy/T2aGm8c2V99U3JnA5hFni9o eKgQ== 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=VLyV+gEvPdXBCfQzavVLm7qZZj9wcK92N6joqP0d7ec=; b=Sdd4dDELULb8ArFzYWPLSEJWrHHsx7tMX+kUWKwBKqzwDpiqRvyM9QmF+U65nirv0M 9T5Ar0eTS3Az7pM6ZipVVXHMcikV7g7iwzNcmsp8QKX+AfKCbV8ZN1ocFWZPfuXABIJi 7wWipzaDjjuI0Hhj6fX31xJPBO60mHRPqNyj7YvzRxEpUMJL3+LqDjz97uY/WVu5rLJ2 1j1xWWUw+rMrQgywFpM3j+55zv3RcVPZxkc7Es7ywCyDhq0ISltRjy7Uue03U+SYT5d4 Ouo6jeoTSEX8pXjWorot48BRhGBLdTJIX/U/aKJ8e3H/9Fqqt6QSNEpZjb8Lrwzl73KA oJmg== X-Gm-Message-State: AOAM531qS6hYpyy0HcurwyQHEEdB/itOW8lKVzNAGLIoy/xYuCWPtrsM cVGZtU7LkxwenNmE8JV5gc0= X-Received: by 2002:a5d:5146:: with SMTP id u6mr19202726wrt.255.1601910225188; Mon, 05 Oct 2020 08:03:45 -0700 (PDT) Received: from localhost.localdomain (abab191.neoplus.adsl.tpnet.pl. [83.6.165.191]) by smtp.googlemail.com with ESMTPSA id c132sm4662wmf.25.2020.10.05.08.03.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2020 08:03:44 -0700 (PDT) From: Konrad Dybcio To: konradybcio@gmail.com Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/11] arm64: dts: qcom: msm8994: Add USB support Date: Mon, 5 Oct 2020 17:03:09 +0200 Message-Id: <20201005150313.149754-10-konradybcio@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201005150313.149754-1-konradybcio@gmail.com> References: <20201005150313.149754-1-konradybcio@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a very basic dwc3 configuration (no PHYs yet), but it works. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/msm8994.dtsi | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8994.dtsi b/arch/arm64/boot/dts/qcom/msm8994.dtsi index 65089d7670f6..8612a11c3584 100644 --- a/arch/arm64/boot/dts/qcom/msm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8994.dtsi @@ -282,6 +282,37 @@ frame@f9028000 { }; }; + usb3: usb@f92f8800 { + compatible = "qcom,msm8996-dwc3", "qcom,dwc3"; + reg = <0xf92f8800 0x400>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + clocks = <&gcc GCC_USB30_MASTER_CLK>, + <&gcc GCC_SYS_NOC_USB3_AXI_CLK>, + <&gcc GCC_USB30_SLEEP_CLK>, + <&gcc GCC_USB30_MOCK_UTMI_CLK>; + clock-names = "core", "iface", "sleep", "mock_utmi", "ref", "xo"; + + assigned-clocks = <&gcc GCC_USB30_MOCK_UTMI_CLK>, + <&gcc GCC_USB30_MASTER_CLK>; + assigned-clock-rates = <19200000>, <120000000>; + + power-domains = <&gcc USB30_GDSC>; + qcom,select-utmi-as-pipe-clk; + + dwc3@f9200000 { + compatible = "snps,dwc3"; + reg = <0xf9200000 0xcc00>; + interrupts = <0 131 IRQ_TYPE_LEVEL_HIGH>; + snps,dis_u2_susphy_quirk; + snps,dis_enblslpm_quirk; + maximum-speed = "high-speed"; + dr_mode = "peripheral"; + }; + }; + sdhc1: sdhci@f9824900 { compatible = "qcom,sdhci-msm-v4"; reg = <0xf9824900 0x1a0>, <0xf9824000 0x800>; -- 2.28.0