From patchwork Sat May 21 15:20:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 575329 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40D04C433EF for ; Sat, 21 May 2022 15:21:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355352AbiEUPVO (ORCPT ); Sat, 21 May 2022 11:21:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355381AbiEUPVE (ORCPT ); Sat, 21 May 2022 11:21:04 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBC0C64DB for ; Sat, 21 May 2022 08:21:01 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id f4so18748862lfu.12 for ; Sat, 21 May 2022 08:21:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GRnP0k72A6Rn/P6bIjVlTkWcKN2lm4vnrIO3tU5Omrk=; b=AFUSXGtB8lu2pPAa8udoMd5XTuIreIfhtZEBcUW2m6+0fEuHqjTuzuRn6qclUJ3K1e zmay8wx7mBaItAZUbRJgw2ftungZm5oTS6J9rDA9VqeBJBy2+b/jg1G8xNF7hPIhJNVZ lEy8P6pRlK396QIMxMZIyTKg29SYDRm+meZ1I/orUw9K8VZh+nfAjJUjsO4N3p2d8V7C vCPBmEjWlR/sS6oyNOFNoxktdBmf/tXX1xAmMwaqwqLYV31mvZ9p2kkXY7AA3Mf2y8Hv 9rif08qEvIyQGfp12qUEfl6WLhMWViMclKbkNuvWUZ69jBOLhNon8KBnTb4TEk3/uuw0 LVnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GRnP0k72A6Rn/P6bIjVlTkWcKN2lm4vnrIO3tU5Omrk=; b=kwi7a8G+VMDKswElFbK2F3Izt83LJxuYjlZUj0m3PZawNuFe/W1Agljc8+/jaaqsMK jX4angmNbF8et0MGQeEIkn4qlrtjK3rnqXQPzNveG8o5RwXAMTxatMgrtJ8P7c5xyhhN 5vHwTf3l+i5a9PHWPPbjHqioe/liqE4o5dIJjZVXRnKy4XUtCp3ZVY2Jnp66rsCiQNJr pzsztDtRgdFszlX+WIqwA4p9kMA8peXB9++EaqNWSwWAllKD3tuOQZK0Nfde7nnVWrZ1 bEoBP2RcrHc2qEyItrr2Hlv9Q4SH87CzLuBLLcEX6wXWi4XCqW7WCSQIAAFnzbfODuWv 3IjQ== X-Gm-Message-State: AOAM530DWOzDQ2LFG4bdO1rWqermBXUWDW/by8x3TJZH7IzwQQ637nr/ vNdMa+0s1cIQHprkU5huyN/QKw== X-Google-Smtp-Source: ABdhPJyuuHkY6QQaXpjnMTtwahK2Z8xKOhSZkLkI2uumSWw2Xg7eO7BA9BbG6h4Xd6MIsjzKpLLc/A== X-Received: by 2002:a05:6512:23aa:b0:477:cfc0:c1cf with SMTP id c42-20020a05651223aa00b00477cfc0c1cfmr7137894lfv.360.1653146460239; Sat, 21 May 2022 08:21:00 -0700 (PDT) Received: from eriador.lumag.spb.ru ([94.25.229.156]) by smtp.gmail.com with ESMTPSA id k8-20020a2e92c8000000b0024f3d1daeccsm739933ljh.84.2022.05.21.08.20.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 May 2022 08:20:59 -0700 (PDT) From: Dmitry Baryshkov To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Marijn Suijten Subject: [PATCH v6 06/11] arm64: dts: qcom: sdm630: add second (HS) USB host support Date: Sat, 21 May 2022 18:20:44 +0300 Message-Id: <20220521152049.1490220-7-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220521152049.1490220-1-dmitry.baryshkov@linaro.org> References: <20220521152049.1490220-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add DT entries for the second DWC3 USB host, which is limited to the USB2.0 (HighSpeed), and the corresponding QUSB PHY. Reviewed-by: Marijn Suijten Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sdm630.dtsi | 55 ++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm630.dtsi b/arch/arm64/boot/dts/qcom/sdm630.dtsi index eb8504e5735c..2b5dbc12bdf8 100644 --- a/arch/arm64/boot/dts/qcom/sdm630.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm630.dtsi @@ -1270,6 +1270,20 @@ qusb2phy0: phy@c012000 { status = "disabled"; }; + qusb2phy1: phy@c014000 { + compatible = "qcom,sdm660-qusb2-phy"; + reg = <0x0c014000 0x180>; + #phy-cells = <0>; + + clocks = <&gcc GCC_USB_PHY_CFG_AHB2PHY_CLK>, + <&gcc GCC_RX1_USB2_CLKREF_CLK>; + clock-names = "cfg_ahb", "ref"; + + resets = <&gcc GCC_QUSB2PHY_SEC_BCR>; + nvmem-cells = <&qusb2_hstx_trim>; + status = "disabled"; + }; + sdhc_2: sdhci@c084000 { compatible = "qcom,sdm630-sdhci", "qcom,sdhci-msm-v5"; reg = <0x0c084000 0x1000>; @@ -1375,6 +1389,47 @@ opp-384000000 { }; }; + usb2: usb@c2f8800 { + compatible = "qcom,sdm660-dwc3", "qcom,dwc3"; + reg = <0x0c2f8800 0x400>; + status = "disabled"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + clocks = <&gcc GCC_CFG_NOC_USB2_AXI_CLK>, + <&gcc GCC_USB20_MASTER_CLK>, + <&gcc GCC_USB20_MOCK_UTMI_CLK>, + <&gcc GCC_USB20_SLEEP_CLK>; + clock-names = "cfg_noc", "core", + "mock_utmi", "sleep"; + + assigned-clocks = <&gcc GCC_USB20_MOCK_UTMI_CLK>, + <&gcc GCC_USB20_MASTER_CLK>; + assigned-clock-rates = <19200000>, <60000000>; + + interrupts = ; + interrupt-names = "hs_phy_irq"; + + qcom,select-utmi-as-pipe-clk; + + resets = <&gcc GCC_USB_20_BCR>; + + usb2_dwc3: usb@c200000 { + compatible = "snps,dwc3"; + reg = <0x0c200000 0xc8d0>; + interrupts = ; + snps,dis_u2_susphy_quirk; + snps,dis_enblslpm_quirk; + + /* This is the HS-only host */ + maximum-speed = "high-speed"; + phys = <&qusb2phy1>; + phy-names = "usb2-phy"; + snps,hird-threshold = /bits/ 8 <0>; + }; + }; + mmcc: clock-controller@c8c0000 { compatible = "qcom,mmcc-sdm630"; reg = <0x0c8c0000 0x40000>;