From nobody Mon Feb 9 07:06:25 2026 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 9E425C7EE29 for ; Tue, 6 Jun 2023 17:29:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232951AbjFFR31 (ORCPT ); Tue, 6 Jun 2023 13:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236780AbjFFR3Y (ORCPT ); Tue, 6 Jun 2023 13:29:24 -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 AE6F010F8 for ; Tue, 6 Jun 2023 10:29:22 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4f4b384c09fso7842966e87.3 for ; Tue, 06 Jun 2023 10:29:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686072561; x=1688664561; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=IvhUCWqhjH2YSf2YunHhXS1OL+PniFV2PkQ2fk5acEE=; b=ah5L2IOyvfN+HotLxMNe7BPm6sUI9o5tYTZRB/Efba8HRvDIanv68Y2s0A1eGZryAq /nsqy91+nhdQ+SPdl6iw15JeC7XMzxuek51STCGxJZDQAF1jB7s2aNA0e9g+DhTpmXNd +ySgDqXSGTEJj2qgAI04LFn9k8Sil5vqSh2kTBlVIsLi58xLdCjB2Zr43OUbkeGO+YMm tDoG6soUGULMLp76hZQcxfQJI0oQa7bPewoAVoLftgl5cscQgh6N0YXDrkUhAG3c8m++ 3tXi2ZAn0E9B0S1yoFJihyB+AwmPWLoFePZXqGp5ZRr2K+yFJg7EalB4c1aJCzS2K7eA eyIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686072561; x=1688664561; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IvhUCWqhjH2YSf2YunHhXS1OL+PniFV2PkQ2fk5acEE=; b=IIji0nEjL6iRPcZ+lFXbXYFaNf0sjyo73bD59YcIEtfExgLvoFPaeKJJUjau/NlbTI 47SZxdDw6Oiz6d5T4FD77b9yzhrIyEmdcSQC5Z/rPZLn+TpGOV702VWeSp3lLavTylF9 boGx8XOY5UbToNr+JCAoRGYyJv9chPsdDsoOF1OOCiqHbJ1KBuSCmHGes6eap1F8c16z JK+j1+wmXkdSq5g6UH4Ez/EMdidijvC/tenpifVra9w8pN/rxWGHT1LaNojdjqYpIx7c 0wpZmd5Z4GaJkiFFMZLH1Nv9M6lQ+/uBlcsltDIhbhCKZ7ZE2kt+zmkAlzZKj36L0uGW 4bgQ== X-Gm-Message-State: AC+VfDwV2J5axOgDRNN3w5cKIS9qaGJQ8SUgXCJmMljK7SXQfYq99SXo 5RrqbK5MgeSORDrfXkWqLGw8tQ== X-Google-Smtp-Source: ACHHUZ6KLn/LzWrKYDOD2Ach3mSJTKKV0/vpFLcmeIp4vVd8G2qoeIttJ3jCH5OQuVWGNqYM/e25sw== X-Received: by 2002:ac2:46f9:0:b0:4f6:3677:553 with SMTP id q25-20020ac246f9000000b004f636770553mr1267448lfo.38.1686072560900; Tue, 06 Jun 2023 10:29:20 -0700 (PDT) Received: from [192.168.1.101] (abyl150.neoplus.adsl.tpnet.pl. [83.9.31.150]) by smtp.gmail.com with ESMTPSA id y4-20020a05651c020400b002ab1536377fsm1884219ljn.105.2023.06.06.10.29.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 10:29:20 -0700 (PDT) From: Konrad Dybcio Date: Tue, 06 Jun 2023 19:29:19 +0200 Subject: [PATCH] arm64: dts: qcom: qcm2290: Add USB3 PHY MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20230606-topic-qcm2290_usb3-v1-1-3e8fbcb89088@linaro.org> X-B4-Tracking: v=1; b=H4sIAO5sf2QC/x2N0QrCMAwAf2Xk2UDNWLH+ioikNXWB2c3GiTD27 xYf7+C4DUyqisG526DKR03n0uB46CCNXB6Cem8M5Kh33nl8z4smfKUnUXC31WKPQ/YnphAGzh5 aGNkEY+WSxpaWdZqaXKpk/f5Pl+u+/wAwVtjWeQAAAA== To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1686072559; l=2128; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=AkMqnuWaPJkCWdsPFrwJlwWzF/mTmk/8kpPTns9s3nI=; b=kig3KlbpKeoUjT3Jf+ujcsgfVhZWjBtl0iM/EnPZsdV/V/gyJoGPM0G8DItA5hUQS9w278qcb PrrBU/3a8ffAWD+d2Q/o+wF2eAOIDNT2f3O5A/vfsxggnAlaspwkG7I X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Describe the USB3 PHY and hook it up to the USB3 controller. Signed-off-by: Konrad Dybcio --- The corresponding patch enabling in on RB1 will be posted after the regulator situation gets resolved. It is confirmed working with a totally hacked-up regulator setup though.. --- arch/arm64/boot/dts/qcom/qcm2290.dtsi | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qcm2290.dtsi b/arch/arm64/boot/dts/qc= om/qcm2290.dtsi index b29bc4e4b837..1a02faacedda 100644 --- a/arch/arm64/boot/dts/qcom/qcm2290.dtsi +++ b/arch/arm64/boot/dts/qcom/qcm2290.dtsi @@ -577,6 +577,32 @@ usb_hsphy: phy@1613000 { status =3D "disabled"; }; =20 + usb_qmpphy: phy@1615000 { + compatible =3D "qcom,qcm2290-qmp-usb3-phy"; + reg =3D <0x0 0x01615000 0x0 0x1000>; + + clocks =3D <&gcc GCC_AHB2PHY_USB_CLK>, + <&gcc GCC_USB3_PRIM_CLKREF_CLK>, + <&gcc GCC_USB3_PRIM_PHY_COM_AUX_CLK>, + <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>; + clock-names =3D "cfg_ahb", + "ref", + "com_aux", + "pipe"; + + resets =3D <&gcc GCC_USB3_PHY_PRIM_SP0_BCR>, + <&gcc GCC_USB3PHY_PHY_PRIM_SP0_BCR>; + reset-names =3D "phy", + "phy_phy"; + + #clock-cells =3D <0>; + clock-output-names =3D "usb3_phy_pipe_clk_src"; + + #phy-cells =3D <0>; + + status =3D "disabled"; + }; + qfprom@1b44000 { compatible =3D "qcom,qcm2290-qfprom", "qcom,qfprom"; reg =3D <0x0 0x01b44000 0x0 0x3000>; @@ -1001,8 +1027,8 @@ usb_dwc3: usb@4e00000 { compatible =3D "snps,dwc3"; reg =3D <0x0 0x04e00000 0x0 0xcd00>; interrupts =3D ; - phys =3D <&usb_hsphy>; - phy-names =3D "usb2-phy"; + phys =3D <&usb_hsphy>, <&usb_qmpphy>; + phy-names =3D "usb2-phy", "usb3-phy"; iommus =3D <&apps_smmu 0x120 0x0>; snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk; --- base-commit: 6db29e14f4fb7bce9eb5290288e71b05c2b0d118 change-id: 20230606-topic-qcm2290_usb3-5f68a2995af6 Best regards, --=20 Konrad Dybcio