From patchwork Thu Dec 15 09:45:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 33562 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp250671wrn; Thu, 15 Dec 2022 01:48:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf4RJhlk4PzxIp3PlbbUuSeRh7tB8mL+9mkM9Xs1c00z3c64je6BSIxSKxwHQtlp4iVHKMAK X-Received: by 2002:a17:906:f843:b0:7ae:8194:7e06 with SMTP id ks3-20020a170906f84300b007ae81947e06mr23267494ejb.56.1671097721577; Thu, 15 Dec 2022 01:48:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671097721; cv=none; d=google.com; s=arc-20160816; b=tLhLsvLOQ4NM1QCyG1ziJ5uPar0cDi4abHG3tZD8Z1YqcjfQjl5qVSLNQ2aPPLD88y Kipfiv0mtgW5U6OCTtM66hG+dDxuhe/slhduinth2N6OtLdIJS1linTx1tCyJ4qM7QlB qP7Wch3Fx86pfv+N7tU34/JKIwxS89Qq0Kx+smX0yK7fOJfXueoGfURCIgI0Os+ogVnc TODzy5mGaPIM1OhvUduRUout42s1vtogadpLAi5IOHGbvb+NycbQDp68StZ5L4AzU+1V cUBilH9oGbrbmP38wzLCRwtCK/KNbUQf8Vsd81CZUPqitwivDeR0KTH5j9da72/LHquf mhZg== 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=xfisaX1yRNC7eLaChTG8lYX6QtvwXvGxy+CVBHfkvYY=; b=eLTHg2u/lc+QfDNNnT7pcuKnYbNt5uNibovuHtcVVJCxBe+ybesPQLggXzXinoizip 6MNcfC0mCLPxThLwR5aIXHp9NltiOGipCqvGtR1puxwOebrVJTVhTim4pT292iWJkdD5 HoCDXrQWNeH+nBMNCMkWiqZMtXpDGq2EqFBb/k0MwuP5xCEoL/kRPMT6kV7jl1maQmwY 9b1WR6obGq/kXv9iEbXQIWv+p8dx9shidQ3AdUKDdbJAybMZlBBqp01RzDx2ZS/TeNgP fJRtZk1MiErtRZy7pSJ+SLUnHFw1fmb0xYhsiUz5otViyt4VZz5kUcAM8nmiumyZfBcx Ealg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EEqLm2S7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m13-20020a056402430d00b0046a7ad0bb17si16756421edc.586.2022.12.15.01.48.17; Thu, 15 Dec 2022 01:48:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EEqLm2S7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230144AbiLOJqB (ORCPT + 99 others); Thu, 15 Dec 2022 04:46:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230133AbiLOJpx (ORCPT ); Thu, 15 Dec 2022 04:45:53 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3378A2634 for ; Thu, 15 Dec 2022 01:45:52 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id 3-20020a17090a098300b00219041dcbe9so2141658pjo.3 for ; Thu, 15 Dec 2022 01:45:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=xfisaX1yRNC7eLaChTG8lYX6QtvwXvGxy+CVBHfkvYY=; b=EEqLm2S7EqL3///kF/8ooxf8kcKH6HQg+q06nqDxz18j62Hl2358QbO6sMZqZVwJ4/ G7UM9JUmlSyr7cYFB7lLPAzQjbg9Se8ykqWYoChXMXp5eHcpiEU/ou/HdsnB/R7pbYYL nxo3hBgLJrw5VeixPoJrpZGGw12Q5hL7t/OVUWdD3YlR3g1C7exuo7dOFkDgZ3XgDH6l I/EmDFIj1oJBbrd+05ySpglLn5j0vACZRzSAkAxKK8jRiEPsCc5UDKLiNr0P8wLAfW+9 C8mWCpqAdLUwOLvtAkBg6jWNdadWDHXpU9CO5u81RKI0RyBBlUIr+g7ncUDbixip+6nd dYBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=xfisaX1yRNC7eLaChTG8lYX6QtvwXvGxy+CVBHfkvYY=; b=xcEs8wSg5X5ABDDeupluH3Qix8nCTwAM/ngMilu9mUyqJS4NxKZSuPjoB4xRnY1dFx M8oUZBDm0W0mFPmxs+NbC72/LRW+UmmPsu96yx0GO6RepFq19QJh1EhoirYFaO2u2zNK T0MpTyvG4Se6TlCmBJB7pqd2cjve4/x8e5DByaCOQhJZQxOIWBfHioe0hJkkrlwkBKuR g0NzNp4QNO6noohJntOGucn/OCU5+LBExwF6AoQANPrLZ3x52Pyl/e9Q9YsI2sEarHtA teivSg9uG6iPNGaK6UDBZLr81+5L/yZW2S8OLynF4P0KcPlV5PIfvyOkpvWXf5JAcfkc 4BNg== X-Gm-Message-State: ANoB5pmVvjfyfpErGohSUuBgkjXNPd5fHx3AD52fX0Rd5desJq3qEHBA OTtY3zZpwSe3g5s6BaWBmE0k+A== X-Received: by 2002:a17:902:6b46:b0:18f:a820:1811 with SMTP id g6-20020a1709026b4600b0018fa8201811mr13125455plt.31.1671097551597; Thu, 15 Dec 2022 01:45:51 -0800 (PST) Received: from localhost.localdomain ([2401:4900:1c5f:4e45:ae49:8018:6d22:e5b4]) by smtp.gmail.com with ESMTPSA id b5-20020a170902650500b0018971fba556sm3342646plk.139.2022.12.15.01.45.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Dec 2022 01:45:51 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, konrad.dybcio@linaro.org, andersson@kernel.org Subject: [PATCH v3 1/3] arm64: dts: qcom: sm6115: Cleanup USB node's label Date: Thu, 15 Dec 2022 15:15:30 +0530 Message-Id: <20221215094532.589291-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221215094532.589291-1-bhupesh.sharma@linaro.org> References: <20221215094532.589291-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752272964375884216?= X-GMAIL-MSGID: =?utf-8?q?1752272964375884216?= There is only one USB controller present on SM6115 / SM4250 Qualcomm SoC, so drop the numbering used with USB node's label names in the dtsi and the related sm4250-oneplus-billie2.dts. Reviewed-by: Konrad Dybcio Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts | 4 ++-- arch/arm64/boot/dts/qcom/sm6115.dtsi | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts b/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts index a3f1c7c41fd73..fa57f4bf58256 100644 --- a/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts +++ b/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts @@ -225,11 +225,11 @@ &ufs_mem_phy { status = "okay"; }; -&usb_1 { +&usb { status = "okay"; }; -&usb_1_hsphy { +&usb_hsphy { vdd-supply = <&vreg_l4a>; vdda-pll-supply = <&vreg_l12a>; vdda-phy-dpdm-supply = <&vreg_l15a>; diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index 572bf04adf906..b5f7480c2e713 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -565,7 +565,7 @@ gcc: clock-controller@1400000 { #power-domain-cells = <1>; }; - usb_1_hsphy: phy@1613000 { + usb_hsphy: phy@1613000 { compatible = "qcom,sm6115-qusb2-phy"; reg = <0x01613000 0x180>; #phy-cells = <0>; @@ -991,7 +991,7 @@ spi5: spi@4a94000 { }; }; - usb_1: usb@4ef8800 { + usb: usb@4ef8800 { compatible = "qcom,sm6115-dwc3", "qcom,dwc3"; reg = <0x04ef8800 0x400>; #address-cells = <1>; @@ -1019,11 +1019,11 @@ usb_1: usb@4ef8800 { qcom,select-utmi-as-pipe-clk; status = "disabled"; - usb_1_dwc3: usb@4e00000 { + usb_dwc3: usb@4e00000 { compatible = "snps,dwc3"; reg = <0x04e00000 0xcd00>; interrupts = ; - phys = <&usb_1_hsphy>; + phys = <&usb_hsphy>; phy-names = "usb2-phy"; iommus = <&apps_smmu 0x120 0x0>; snps,dis_u2_susphy_quirk; From patchwork Thu Dec 15 09:45:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 33564 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp251118wrn; Thu, 15 Dec 2022 01:49:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf4C1co9pvk2ohPjNcP+LHWvZF1dHXIMtFf+6oU8VihALYssQILujM67VRmNWLwIv4XqryWg X-Received: by 2002:a05:6402:884:b0:46c:8a01:7494 with SMTP id e4-20020a056402088400b0046c8a017494mr24369587edy.37.1671097791774; Thu, 15 Dec 2022 01:49:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671097791; cv=none; d=google.com; s=arc-20160816; b=n5Ytq1rj/imeiaCAvOezWWTzVPHRzzRp/nXaVtdVAbJ5EQQF5Q4tGtcGQEjnWhN+UB suY3Aon+aiAsTAb/6Zb/bL5s+EshD+1QK6haAXUJyEVVDIycJ9N34RaWiUEBw9t9XgXg 46DmNtm6oT2y4FohUbS5iiiF0g31h/pD4c11BK1s/DFEKUu7kBU5RLnIhP2/w2xNioBr +AgMBOiCMDQtD+Lj1roEXUvlSrG7j/fVpb+5sWVNGu8uY/hFmiGLXGQ32QT+PRZdDfMt igVtN9rhh97J8j8KY2Xl2WSJxcddkseWqUfpkacWRmQehXb64t5OT3cQ3j6wHow5pDwn 93Tw== 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=iXo7ON+W+HqSzfMLSf0nu5/9om0aVHW6nmyC6DVkBmI=; b=FaQKaP6p9QNTgufNtV/UylAyEyO3D6Brq1kSK8MBXCphgJ5dWLM8fZr3CLRivzvbn7 IA+57j2NWQAY/SWdAf9E4If4ZNH920EsvHx8ca1jrZXvQ/J2Z7DeouHg4sV13KbRw7oO B+akgr8VBfkoZZFdZyo076ENPdaEvX17fVlohCQCTopDU2kOpu/YmgEYrUFs8uBawD9V EA/cuQNJHhpEGVXU+vdilRG0kHVgxktb/2Z7gXB/P4PJP6ibh6M+32JvGE3Rd4Z57Vjc sYZLqHzWHphx8NJ+g6GNYakK9iMPf0gUz46saNZDE9UX24YSoUO7/p10oIHTFIpATc23 nutw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dZA28vUG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a23-20020a056402169700b0046799762e48si13557821edv.437.2022.12.15.01.49.27; Thu, 15 Dec 2022 01:49:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dZA28vUG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230203AbiLOJq1 (ORCPT + 99 others); Thu, 15 Dec 2022 04:46:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229480AbiLOJqT (ORCPT ); Thu, 15 Dec 2022 04:46:19 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CAA9DFF4 for ; Thu, 15 Dec 2022 01:45:56 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id t2so6293984ply.2 for ; Thu, 15 Dec 2022 01:45:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=iXo7ON+W+HqSzfMLSf0nu5/9om0aVHW6nmyC6DVkBmI=; b=dZA28vUGIdi/CiCSP2VYFhfx23LWLuegyKCalwVTHGro5WZFLR17OKfUhcbXGA5Ioi 7RSjXdP1A2r9Owi30lSohWAyKNuPGn7omsSCW6fF8atrOEubFTCJ0NQaBqG4e+gE2OiT BIowE0P946MCGwn9AMw9B4VeLtgqjKeSY66zc2exXj/Dd4jlLT4o9IhJbhQLXDUVp8U/ cylC0FgvcipHZiGtXJXbKR5KyiJawqQZ/Ech4REWzjDj8XuvNIZxJVLwZmrC6DQnutnq bLnhfj78gsuuXbltmyi7cAYEKDYQERYzuOGkUvsxjcEUeemepDmZ8BzBCdLHDOGSUGEU 8N7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=iXo7ON+W+HqSzfMLSf0nu5/9om0aVHW6nmyC6DVkBmI=; b=kFWBt5DherIJ/eHcO/W9TPuZ9gt1iTjU0aLFnRkwqRKNmv01XM4+QQIvkIhSqXM235 /sNSgVx4P+r8WVfbXB0W6Gxsx6jP36J+Ca804HV0Rmn22G7mdfgFkkPdkbFBKvuNshB2 fq7O95/mjs95/1T4Dg9rFzBLf4fImNyUcy4fcblRK/hmUAIYzuRp5LqjWEuY1gpS4Vtj tqnp57zmPWlLo0DMntINEIMXBHqOXe6JRhjhj3zpurx0VzXQ/mT+XtprexXI4X80s5Cv 6iWKWCX/rKCz0l8a2X1JD1S12wvxvmLRJ4dhf8EQ9vEW8d3jJaSlXOTAMzVvaR9+ZlKa kTSw== X-Gm-Message-State: ANoB5pnsYj16Q+TAOMKsSMvBWhshONYAHrGNYKnzGCUBQurO1ThZxWmE UpIeNSByuJuTIi+o3YNQlrLOxg== X-Received: by 2002:a17:902:ce04:b0:189:323d:df17 with SMTP id k4-20020a170902ce0400b00189323ddf17mr31042344plg.67.1671097555587; Thu, 15 Dec 2022 01:45:55 -0800 (PST) Received: from localhost.localdomain ([2401:4900:1c5f:4e45:ae49:8018:6d22:e5b4]) by smtp.gmail.com with ESMTPSA id b5-20020a170902650500b0018971fba556sm3342646plk.139.2022.12.15.01.45.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Dec 2022 01:45:55 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, konrad.dybcio@linaro.org, andersson@kernel.org Subject: [PATCH v3 2/3] arm64: dts: qcom: sm6115: Move USB node's 'maximum-speed' and 'dr_mode' properties to dts Date: Thu, 15 Dec 2022 15:15:31 +0530 Message-Id: <20221215094532.589291-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221215094532.589291-1-bhupesh.sharma@linaro.org> References: <20221215094532.589291-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752273038097914297?= X-GMAIL-MSGID: =?utf-8?q?1752273038097914297?= Normally the 'maximum-speed' and 'dr_mode' properties of a USB controller + port is dependent on the type of the ports, regulators and mode change interrupt routing available on the board(s). So, move the same from the sm6115 dtsi file to respective board file(s). Reviewed-by: Konrad Dybcio Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts | 5 +++++ arch/arm64/boot/dts/qcom/sm6115.dtsi | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts b/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts index fa57f4bf58256..3f39f25e0721e 100644 --- a/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts +++ b/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts @@ -229,6 +229,11 @@ &usb { status = "okay"; }; +&usb_dwc3 { + maximum-speed = "high-speed"; + dr_mode = "peripheral"; +}; + &usb_hsphy { vdd-supply = <&vreg_l4a>; vdda-pll-supply = <&vreg_l12a>; diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index b5f7480c2e713..e4ce135264f3d 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -1031,8 +1031,6 @@ usb_dwc3: usb@4e00000 { snps,has-lpm-erratum; snps,hird-threshold = /bits/ 8 <0x10>; snps,usb3_lpm_capable; - maximum-speed = "high-speed"; - dr_mode = "peripheral"; }; }; From patchwork Thu Dec 15 09:45:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 33563 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp251012wrn; Thu, 15 Dec 2022 01:49:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf5AO1IiyNKV5PXe+yJmlN1xzBz13MhDPqm3e7/85qlImY2vNzpUgjsD/FHG38U5xEBDcTm4 X-Received: by 2002:a17:906:474f:b0:7b2:7a42:3e43 with SMTP id j15-20020a170906474f00b007b27a423e43mr23145799ejs.23.1671097777932; Thu, 15 Dec 2022 01:49:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671097777; cv=none; d=google.com; s=arc-20160816; b=N8YuiVJsKABBfYgo4DFEH/hMiRe2lT6j0hbGMfU/dR3+wFuKef1/6j0DBY7huH6Py+ kA0HFCMd+8oDT/V7fxtVj1hn5gizvf67yqJIdqqqsaA73pRJ7hm5PCr65F6vulRKP4m4 rVb7RH3334Y860ZRcikIJpBFcj73yJDOW3aW4TIxc+w0eENljiAHbblrWFBlie1odOIM HZubfNdr8nIfU5StdDEyZ53TwJ1wOqQYKy4G0X74beqh25yybgW81n5DQcEOmEi0Hm2f 9yjKXFX45EsnXk57FkSeTXH51vu2625OG4COBteSP+0W4Eypsd+i7x/oU7L5p+vtCBFv MO5A== 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=L50HRpx0Z4Or/BORkdatF6BNkaDTInB60seuiVz4K7k=; b=BIKo9veC+C3OOYY4wpQ4oTG3wTY9cASMJhN8AbrKrvKs4oQuS/MLtfKMNxY26FVqSI +mHaMs5f0CKPmm4By4WjRRw/jYH1YB4FLWZpUkVfImLbZdjS+vcuY0EzDLlX8hD+3Cf6 jjSCbXzXLl8ijxfv80+FbSBED8KgZ8hUX+uSAfEM0+OESYRT77JHXKXIkDlIrjL27nKw r7+0l7EzIVqXQjoB2KuaVSm8fmjqFEwzSMFY+bNNPnh5UPHEqJMpXNbSKy+EKpKq2CJH NtBmOUhZpu5f25pRHbyL9pauoXdGCtlzTbcUDC7aGYlmAAG4AIPcEEjLq23IAZk1tW6J zMGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eHUz+FEG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji7-20020a170907980700b0078df1c345dcsi16105909ejc.535.2022.12.15.01.49.14; Thu, 15 Dec 2022 01:49:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eHUz+FEG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230149AbiLOJqa (ORCPT + 99 others); Thu, 15 Dec 2022 04:46:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230171AbiLOJqU (ORCPT ); Thu, 15 Dec 2022 04:46:20 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE17E764D for ; Thu, 15 Dec 2022 01:46:00 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id 4so6293320plj.3 for ; Thu, 15 Dec 2022 01:46:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=L50HRpx0Z4Or/BORkdatF6BNkaDTInB60seuiVz4K7k=; b=eHUz+FEGp2fVVH+Epxc0EYziMmf7juDRQflCBwdhUpuT8+aLM/DrgOrdTHsEIOf0aG 0qyInRYvYmx8uRSOWCxBWyd/0ShUM2Z8iwcaqfd01TQt68ENktqNY22FoMJvWQMQqW1L UGoU6ZxNXvs6QvNU28q0p6In8bxEGa9v9oU5TUcYMoXaWlGcwTUqU5zRsZBVc/CN2L/W XCADRV9v64/J48tgjdsbRVG5D1fE9y4sJdS5vfwFuypt3w4z3k7HaAmyF4esXneP3FqS sJrpMd12vpq/h0+7Ca0a5wxTa6XVxRlV+odBrVWW1bP7Xj2o+24cTX6Wh9S4tHDOkpZP Abgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=L50HRpx0Z4Or/BORkdatF6BNkaDTInB60seuiVz4K7k=; b=gIsJoJ5uv+jeCdtCTPWRnijRh6UdXQ8jJupAmnFGksE0Heola1vNn7P0Mc0eAuO/Bd oiL499xt0L5nsh+EISM3HZkR9lPsP4SzMKYHKsVQxWHXYHg1jEjAdBhCX7ldLGR+J/YS wmF10AIQcRxljJ9MhWaVcMlQvqGIZ1p29uq51HkvNrqLhXr9CdcixPLV4Gzd5Iu4zjAN tt3Ok/VR7IEvbBH8kYEg+uvkRKT78zXFPOQRg8Vrs6ghmiK2kOTdVk2p4Rn29s/c1T/A q/+nyGTWHaLh8RtESdV7xSEIGN9MfaxY6CQ2MSP0YtM4oO8/GPVJTtdqk9jv++CX+L/P coNg== X-Gm-Message-State: ANoB5pk5qVqnfyHVLDdcNl/doMQbgBYgkwqgIhF+M5WOVSsybG3saHbU C9a8PmvBg8vYFgx6w2R05P3Ntg== X-Received: by 2002:a17:902:d58a:b0:189:a11e:9995 with SMTP id k10-20020a170902d58a00b00189a11e9995mr28985586plh.13.1671097559571; Thu, 15 Dec 2022 01:45:59 -0800 (PST) Received: from localhost.localdomain ([2401:4900:1c5f:4e45:ae49:8018:6d22:e5b4]) by smtp.gmail.com with ESMTPSA id b5-20020a170902650500b0018971fba556sm3342646plk.139.2022.12.15.01.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Dec 2022 01:45:59 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski@linaro.org, konrad.dybcio@linaro.org, andersson@kernel.org Subject: [PATCH v3 3/3] arm64: dts: qcom: sm6115: Add USB SS qmp phy node Date: Thu, 15 Dec 2022 15:15:32 +0530 Message-Id: <20221215094532.589291-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221215094532.589291-1-bhupesh.sharma@linaro.org> References: <20221215094532.589291-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752273023364534876?= X-GMAIL-MSGID: =?utf-8?q?1752273023364534876?= Add USB superspeed qmp phy node to dtsi. Make sure that the oneplus board dts (which includes the sm4250.dtsi) continues to work as intended. Signed-off-by: Bhupesh Sharma --- .../boot/dts/qcom/sm4250-oneplus-billie2.dts | 3 ++ arch/arm64/boot/dts/qcom/sm6115.dtsi | 37 ++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts b/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts index 3f39f25e0721e..4f0d65574448b 100644 --- a/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts +++ b/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts @@ -232,6 +232,9 @@ &usb { &usb_dwc3 { maximum-speed = "high-speed"; dr_mode = "peripheral"; + + phys = <&usb_hsphy>; + phy-names = "usb2-phy"; }; &usb_hsphy { diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index e4ce135264f3d..030763187cc3f 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -579,6 +579,39 @@ usb_hsphy: phy@1613000 { status = "disabled"; }; + usb_qmpphy: phy@1615000 { + compatible = "qcom,sm6115-qmp-usb3-phy"; + reg = <0x01615000 0x200>; + clocks = <&gcc GCC_USB3_PRIM_PHY_COM_AUX_CLK>, + <&gcc GCC_USB3_PRIM_CLKREF_CLK>, + <&gcc GCC_AHB2PHY_USB_CLK>; + clock-names = "com_aux", + "ref", + "cfg_ahb"; + resets = <&gcc GCC_USB3_PHY_PRIM_SP0_BCR>, + <&gcc GCC_USB3PHY_PHY_PRIM_SP0_BCR>; + reset-names = "phy", "phy_phy"; + status = "disabled"; + #clock-cells = <1>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + usb_ssphy: phy@1615200 { + reg = <0x01615200 0x200>, + <0x01615400 0x200>, + <0x01615c00 0x400>, + <0x01615600 0x200>, + <0x01615800 0x200>, + <0x01615a00 0x100>; + #phy-cells = <0>; + #clock-cells = <1>; + clocks = <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>; + clock-names = "pipe0"; + clock-output-names = "usb3_phy_pipe_clk_src"; + }; + }; + qfprom@1b40000 { compatible = "qcom,sm6115-qfprom", "qcom,qfprom"; reg = <0x01b40000 0x7000>; @@ -1023,8 +1056,8 @@ usb_dwc3: usb@4e00000 { compatible = "snps,dwc3"; reg = <0x04e00000 0xcd00>; interrupts = ; - phys = <&usb_hsphy>; - phy-names = "usb2-phy"; + phys = <&usb_hsphy>, <&usb_ssphy>; + phy-names = "usb2-phy", "usb3-phy"; iommus = <&apps_smmu 0x120 0x0>; snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk;