From patchwork Sun May 28 00:10:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rudraksha Gupta X-Patchwork-Id: 13257745 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 smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 15DBAC7EE2F for ; Sun, 28 May 2023 00:10:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) id EE7C2C4339B; Sun, 28 May 2023 00:10:56 +0000 (UTC) Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id F008BC433D2; Sun, 28 May 2023 00:10:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.kernel.org F008BC433D2 Authentication-Results: smtp.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qt1-f176.google.com with SMTP id d75a77b69052e-3f6c2f2de19so19864871cf.0; Sat, 27 May 2023 17:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685232654; x=1687824654; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yxL0PbJXvl5Whcio0hte+d8fY5qOd/JOohZDFbRWZJ4=; b=ZZf0VXNqrJ97iOah24XtxGRQ+EiZBEv589J8AQxLmizYrOXqjWvRuI1qkByCN07IVg YpSc2FTzEqgjYOj4s2rWC0kTI3gu3BZqUEEC4oiI+QL8MTiDCZICcWwB5LBAHv8+O8Zq 5fLej0veV/XEhL4Awp5YJJp+N7kGlOKT7WMIWTZ9l8vRLOHyjmCAbvH9YArUSQLtEP4s +80BBmax7JvN62XBiebRvyFP5Durzlbi0byoEWdWVeb5iZzmCiiGV8q4LR+ucld6DATW ZtRUeHrptU9KL4zrrz6lJ98lO3BhY7XGM+3xTiHfdn+LWSUiKGW/G3c2woApdZi3PG9g /JaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685232654; x=1687824654; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yxL0PbJXvl5Whcio0hte+d8fY5qOd/JOohZDFbRWZJ4=; b=j2eLWi/Qqclk3w6PfGnnivXl21r5VmBbW2VvV64gHjHGItJ10NS5a3JVSPp22ORXmL tVjYw7uLzYB4BCnQhi6eq1VQPU23gl9/ctAlQLrVJ2bQsyBKey+zjPpMTmsbvYCsWi9o mNA4dXpLsyXSLhBUGaY+3RYxVQyiotNB4sLpNT1I91C0Tz/+hPUnmBfcDPG3RPT902Pr SLvVghDfbNmui54qzVctnwpDbalO11Hi0+3M5dsyUkHkPvH3KWPvUzmLqhBNeH+8adha Ib+HFZeeQDJ3rxSwaS16d6BIn0DpKMRRktzRwThslAvM+buDvdViIIOvE2wcncsiZbK0 DHSg== X-Gm-Message-State: AC+VfDyU89SzpL5Bwsl+MQ8PpA4inrpKZ1USgOQek0lTMNMKs9VlnofD zDUnuYk8c6DhOtWNd6owzu8gWjNOUyaurw== X-Google-Smtp-Source: ACHHUZ4mTky6H6gxephaGU2QhnztmGVpYXtr5/SkPNW9dzvCvbbUFQbGWkK6HsQWQcF8UfBgZgrl2Q== X-Received: by 2002:ac8:5795:0:b0:3f7:fd1f:9e4c with SMTP id v21-20020ac85795000000b003f7fd1f9e4cmr6901176qta.2.1685232653901; Sat, 27 May 2023 17:10:53 -0700 (PDT) Received: from Latitude-E6420.mynetworksettings.com ([2600:4040:2007:9800:28b2:2867:6311:b7d0]) by smtp.gmail.com with ESMTPSA id t18-20020ac865d2000000b003f6a7ab1450sm2518454qto.30.2023.05.27.17.10.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 May 2023 17:10:53 -0700 (PDT) From: Rudraksha Gupta List-Id: To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Arnd Bergmann , Olof Johansson , soc@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Rudraksha Gupta Subject: [PATCH v2 3/4] ARM: dts: qcom: msm8960: Add USB node Date: Sat, 27 May 2023 20:10:08 -0400 Message-Id: <20230528001010.47868-4-guptarud@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230527040905.stmnoshkdqgiaex6@ripper> References: <20230527040905.stmnoshkdqgiaex6@ripper> MIME-Version: 1.0 Add the required nodes to support USB on the MSM8960 SoC. As it's very similar to the APQ8064 SoC, the nodes are almost identical Add a label to sleep_clk for the USB node to reference Signed-off-by: Rudraksha Gupta --- arch/arm/boot/dts/qcom-msm8960.dtsi | 35 ++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-msm8960.dtsi b/arch/arm/boot/dts/qcom-msm8960.dtsi index 2a668cd535cc..b11e606440cd 100644 --- a/arch/arm/boot/dts/qcom-msm8960.dtsi +++ b/arch/arm/boot/dts/qcom-msm8960.dtsi @@ -3,6 +3,7 @@ #include #include +#include #include #include #include @@ -71,7 +72,7 @@ pxo_board: pxo_board { clock-output-names = "pxo_board"; }; - sleep_clk { + sleep_clk: sleep_clk { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <32768>; @@ -370,5 +371,37 @@ gsbi1_spi: spi@16080000 { status = "disabled"; }; }; + + usb1: usb@12500000 { + compatible = "qcom,ci-hdrc"; + reg = <0x12500000 0x200>, + <0x12500200 0x200>; + interrupts = ; + clocks = <&gcc USB_HS1_XCVR_CLK>, <&gcc USB_HS1_H_CLK>; + clock-names = "core", "iface"; + assigned-clocks = <&gcc USB_HS1_XCVR_CLK>; + assigned-clock-rates = <60000000>; + resets = <&gcc USB_HS1_RESET>; + reset-names = "core"; + phy_type = "ulpi"; + ahb-burst-config = <0>; + phys = <&usb_hs1_phy>; + phy-names = "usb-phy"; + status = "disabled"; + #reset-cells = <1>; + + ulpi { + usb_hs1_phy: phy { + compatible = "qcom,usb-hs-phy-msm8960", + "qcom,usb-hs-phy"; + clocks = <&sleep_clk>, <&cxo_board>; + clock-names = "sleep", "ref"; + resets = <&usb1 0>; + reset-names = "por"; + #phy-cells = <0>; + }; + }; + }; + }; };