From patchwork Mon May 1 19:24:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 89156 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp142742vqo; Mon, 1 May 2023 12:39:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5NIaGq2veCqPzq59g1v6ZLmq+qP72BpNhAb1Y024S5AKe+XVOXCMeyM5exDPWBn/sN2Bum X-Received: by 2002:a05:6a20:158c:b0:f2:e399:b114 with SMTP id h12-20020a056a20158c00b000f2e399b114mr18331499pzj.1.1682969972962; Mon, 01 May 2023 12:39:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682969972; cv=none; d=google.com; s=arc-20160816; b=P5us62E7mPnS9vPZnwcqVpQRY9X0Mwcx7NEoO0dmCHPHeoLGhysrvaswPHB6BreZvJ sAfnG9i474DPZEjv1p6XKuCBGThzG1PXi3UB9yIhR6zri09WTvy6DG5dVP+Zs75/1NNU sYm+FLFHbM74RPppkGjlb8M1hJ7GLTiHbHAvnARg8M26H4OhLNNobKh9WlQ+scMs2191 9Gb5HSL2iBckNFZGOtMYlYXb9Yukz+RZJcoHropC9sZWHTm05wA89EBXTS7kHPTdWr3t YNRwWZA2cQx8TB/mJnHn6Aupf1mDNxwHq8EotwurpoQeGFPC4bfT6GI89+sVDIYddyHv Bazw== 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=jPsBIL7uoiC5DZZtXnqdAvBon8Zv1+SeehoREZW26xk=; b=IH+9bLoKMyguQJKN6MDc9Wj2V3UGQpxK3mi/tlpcIqaV02Xd/V1kZzyvubRMD1Q9QU KouQtpM/yWBG0uy/0hbNSO+WyXEq6onVSR3y8T2coWrAkjFeMeNyHWBUd3VzLaViQKFM cJnsB5CqdXvmJF4BRnQuzQFeRGETC7aLf2V0WaHK1ZVAtAIWcz8MlOuSIMl1lSfzdzOa aEglQ5vYzzrP3MR0dr6Q6bQg8dCSwWVpDMitcyOwAauD69SgdAMU6C2St/2s1Ho2rZUo XtzzCKdm2rYdVxr2EWGwcQBGJNNWTRHD2Gar4J6z9PVCVEzADlSag5UY1iz1emGh1bGG aaYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pgyknais; 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 205-20020a6303d6000000b0052504ae7539si23452076pgd.145.2023.05.01.12.39.18; Mon, 01 May 2023 12:39:32 -0700 (PDT) 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=pgyknais; 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 S233022AbjEATZB (ORCPT + 99 others); Mon, 1 May 2023 15:25:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233041AbjEATYw (ORCPT ); Mon, 1 May 2023 15:24:52 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B9F62724 for ; Mon, 1 May 2023 12:24:49 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-63b46186c03so3333637b3a.3 for ; Mon, 01 May 2023 12:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682969088; x=1685561088; 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=jPsBIL7uoiC5DZZtXnqdAvBon8Zv1+SeehoREZW26xk=; b=pgyknais4aRab1t8pmNSA0qMa1ozYTzChr8M7CXa8qRg2oxhzSom0qyDRFUJ+f1erU jZWydaadlr4eL0JdWMc8tqJ5wKlbdpQeg4PLXCoktQuIWrHCKRD20XTque+y+JSKGuVd 0rqW9+F0aB6RLb5TAj0tzkRIOBI7zgD/3TUzZjJ4iowAh305WiTQ5mv6TTpa6G1iBNPe 96pbLMZXYNNdZs7H695/hzZ9uQXKbSu4sVMieyscIO3VDG5CMGZ3xifchs+Llm2pDq1q icrjKjTUQVFkujL+u5xRdBNky0sIIdn/Nl+c/7i09p2rbIzBzWTtMN+pBB0kXl1BMKCj 3SEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682969088; x=1685561088; 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=jPsBIL7uoiC5DZZtXnqdAvBon8Zv1+SeehoREZW26xk=; b=EYOuXCeDoxI2q63nUpMh6700i13BJVrC/52nmRE5/5/g2ngwvy8kl92qoQQl9UoWch 2Vgqk7jy5Uo6s0xaE9AZzFn29aCQTwhacsk07yLL3QfCgvHaM1l8E6ACn/O5vywoTANT LNwimPmNoDbQ2ELhwuuW/0BV/y5oVOgvEGJhCDOfn0JG87ulxbKuu10XptJMFu6HkIH1 jNh6+4JsfPc1XWGxIVjACt/lDAIcPr/BuoAanFd6hIe9NnqtkFFihspNDXOmJkAZkNGZ CRxY/64tD2tlBEZPXmNmpLE8sJFdV/oIFpMKxH/Cw7PaDpXKaIzA9g4brnXV7l+dXnqy H76Q== X-Gm-Message-State: AC+VfDzHXC618gfoyT9yWBL+Z1vAfHtZZhqwQCn+1zY/coRWO7MIMdbe nrSPi3E+wfxpRUltyRm7XSK+ww== X-Received: by 2002:a05:6a20:3949:b0:f0:302a:ccdf with SMTP id r9-20020a056a20394900b000f0302accdfmr3932495pzg.52.1682969088010; Mon, 01 May 2023 12:24:48 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3b:58fa:39f6:37e1:bb9a:a094]) by smtp.gmail.com with ESMTPSA id 189-20020a6304c6000000b00513cc8c9597sm17459144pge.10.2023.05.01.12.24.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 12:24:47 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-phy@lists.infradead.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, kishon@kernel.org, vkoul@kernel.org, krzysztof.kozlowski+dt@linaro.org Subject: [PATCH v9 1/4] dt-bindings: phy: qcom,qmp-usb: Drop legacy bindings and move to newer one (SM6115 & QCM2290) Date: Tue, 2 May 2023 00:54:29 +0530 Message-Id: <20230501192432.1220727-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230501192432.1220727-1-bhupesh.sharma@linaro.org> References: <20230501192432.1220727-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,T_SCC_BODY_TEXT_LINE 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?1764721922181194646?= X-GMAIL-MSGID: =?utf-8?q?1764721922181194646?= 'qcom,msm8996-qmp-usb3-phy.yaml' defines bindings for several PHYs which predate USB -> USB+DP migration. Since SM6115 and QCM2290 nodes for USB QMP phy are being added to dtsi files by followup patches, move these bindings instead to the newer style 'qcom,sc8280xp-qmp-usb3-uni-phy.yaml' file. Since no device trees use these bindings presently, so we have no ABI breakages with this patch. Signed-off-by: Bhupesh Sharma --- .../phy/qcom,msm8996-qmp-usb3-phy.yaml | 27 ------------ .../phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml | 44 ++++++++++++++++--- 2 files changed, 39 insertions(+), 32 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-usb3-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-usb3-phy.yaml index e81a38281f8c..4c96dab5b9e3 100644 --- a/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-usb3-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-usb3-phy.yaml @@ -23,14 +23,12 @@ properties: - qcom,ipq8074-qmp-usb3-phy - qcom,msm8996-qmp-usb3-phy - qcom,msm8998-qmp-usb3-phy - - qcom,qcm2290-qmp-usb3-phy - qcom,sc7180-qmp-usb3-phy - qcom,sc8180x-qmp-usb3-phy - qcom,sdm845-qmp-usb3-phy - qcom,sdm845-qmp-usb3-uni-phy - qcom,sdx55-qmp-usb3-uni-phy - qcom,sdx65-qmp-usb3-uni-phy - - qcom,sm6115-qmp-usb3-phy - qcom,sm8150-qmp-usb3-phy - qcom,sm8150-qmp-usb3-uni-phy - qcom,sm8250-qmp-usb3-phy @@ -248,29 +246,6 @@ allOf: - const: phy - const: common - - if: - properties: - compatible: - contains: - enum: - - qcom,qcm2290-qmp-usb3-phy - - qcom,sm6115-qmp-usb3-phy - then: - properties: - clocks: - maxItems: 3 - clock-names: - items: - - const: cfg_ahb - - const: ref - - const: com_aux - resets: - maxItems: 2 - reset-names: - items: - - const: phy_phy - - const: phy - - if: properties: compatible: @@ -318,12 +293,10 @@ allOf: enum: - qcom,ipq6018-qmp-usb3-phy - qcom,ipq8074-qmp-usb3-phy - - qcom,qcm2290-qmp-usb3-phy - qcom,sc7180-qmp-usb3-phy - qcom,sc8180x-qmp-usb3-phy - qcom,sdx55-qmp-usb3-uni-phy - qcom,sdx65-qmp-usb3-uni-phy - - qcom,sm6115-qmp-usb3-phy - qcom,sm8150-qmp-usb3-uni-phy - qcom,sm8250-qmp-usb3-phy then: diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml index 16fce1038285..05335e6bbb58 100644 --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml @@ -16,7 +16,9 @@ description: properties: compatible: enum: + - qcom,qcm2290-qmp-usb3-phy - qcom,sc8280xp-qmp-usb3-uni-phy + - qcom,sm6115-qmp-usb3-phy reg: maxItems: 1 @@ -25,11 +27,7 @@ properties: maxItems: 4 clock-names: - items: - - const: aux - - const: ref - - const: com_aux - - const: pipe + maxItems: 4 power-domains: maxItems: 1 @@ -71,6 +69,42 @@ required: additionalProperties: false +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,qcm2290-qmp-usb3-phy + - qcom,sm6115-qmp-usb3-phy + then: + properties: + clocks: + maxItems: 4 + clock-names: + items: + - const: cfg_ahb + - const: ref + - const: com_aux + - const: pipe + + - if: + properties: + compatible: + contains: + enum: + - qcom,sc8280xp-qmp-usb3-uni-phy + then: + properties: + clocks: + maxItems: 4 + clock-names: + items: + - const: aux + - const: ref + - const: com_aux + - const: pipe + examples: - | #include From patchwork Mon May 1 19:24:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 89155 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp142320vqo; Mon, 1 May 2023 12:38:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Y3SXIqKW86sn2xzA7mDcdUxCUiek6u3esU9pwMbiYQZgOZgwdeKARVw2n0g9+f4Qt/wIF X-Received: by 2002:a17:90b:384c:b0:247:3374:bb34 with SMTP id nl12-20020a17090b384c00b002473374bb34mr15281663pjb.11.1682969909937; Mon, 01 May 2023 12:38:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682969909; cv=none; d=google.com; s=arc-20160816; b=MbIcgeKv3Kzui4dLvDIE/ewjdxQDw9z0z+7ttKzDjmL1/KF4RyKBwPA3Dkeh0e3eYm pwuFNkyoe/UO+jcoHfY8ItCp4VMIyIzg0JnzNXS6SxTJVw46AUnuJqiKOgYS1Tos6nXR EDpZBeoE612C14g2H/1bXrCZhkmE1yT7GG7fXemBiZ7A3xvpULvnlqktLaAL663lPKZr zbpED1mKQJl4+IHgd/sNFkeY5I8nWkB8sPBi5OOPteBujrXNpOlfTfY+JTC1cFEgApJ4 A0sabrWooWHQocsVsAcH4Iuu8ipS7Z+T3Ij0jugy6DjcxKEJExHC9apiPeqnu8J9RygK kYjQ== 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=TlCXSDngFh1SUws/NWCdUPB1ODSh3zOJ15r+LU+w194=; b=E1CXIVFT9iJmiB1UGjzVPqUKkknDTDP9myGH9uEWWGNlJ8PXmFW6Md14Y0fvVSXgGF s1Nwj85xldOiEGVwU3lLZV+OOpf66qzvfNkps3X285tPbR6hl4Kd61WTqtvHz0Tq4bsw MdUi6MgcPO38wX2gcZDgEASjnDJYtuaYvY/fZDnPSW4Oureu9VquqzgXHc7EEOMU2Ue4 bBZtVZ9oxOAFHtnFIPb0qbUTaYEYE3BIbdVJq2WF8Q8keu8HsZH90pXfxtXmSFcFSdRR 1V3So/BwOQNZKpCRmjqh50ApGMcx8uco4Y2px78djwOpi6JZwEY5LHq5b69qAPglaPSg oyNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="kJy/w/9s"; 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 205-20020a6303d6000000b0052504ae7539si23452076pgd.145.2023.05.01.12.38.15; Mon, 01 May 2023 12:38:29 -0700 (PDT) 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="kJy/w/9s"; 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 S232784AbjEATZF (ORCPT + 99 others); Mon, 1 May 2023 15:25:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232311AbjEATY7 (ORCPT ); Mon, 1 May 2023 15:24:59 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD97F26AE for ; Mon, 1 May 2023 12:24:53 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-63b620188aeso3373446b3a.0 for ; Mon, 01 May 2023 12:24:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682969093; x=1685561093; 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=TlCXSDngFh1SUws/NWCdUPB1ODSh3zOJ15r+LU+w194=; b=kJy/w/9szQMPPeJb7Nxpt4Sr/d8sLB88BocgsO82DII0hFd6BlyhxUgMvHWCanx7gN dmI6A2VoBSZHu8vCp4xdyj7Pe5tk9uVC+AUjhrqNNdatMP6YhkC77BLZ1bDGXkkcbR1T emSIe1huExaLDtbthYlR7cKTmAXbi4ctLLo+vv4487YcIedVXF7hOM/o+7//3GorqG7w hxpgN5OTnv9PbNlZlFaxqbKw4aa2rfV0jr55gnhU5GzLEXkOxdPVXc93grf9F6b0Afru 628hAtd+j/k0dWoPJS8oGebSBoSnPqQmWHr88SXhiHsuDYxWP3E01ErAT9EWATNRQ0AZ LOEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682969093; x=1685561093; 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=TlCXSDngFh1SUws/NWCdUPB1ODSh3zOJ15r+LU+w194=; b=S78y4xvBAFhclrpoAWdbOv7wcxsxIwxDg5/ASdeqUAXx/UDNGOWTseCxs2/fTvfNBp m+lRTmlR5dWpPBQaKO1x6a4JxrBoGJTKqU8pCjnlEbYOVDcbTiJPfnEC8oyHvryAt6mb tmb3wbZRFcMY8YZAfpslaZLXFKm+e6k3T5WDla7cBak5pIQplXTyuFwJ8GG9zgnIcth8 BD6MY+KaNPqFr+qm1SoDuUCEOTsd5N9AFNvOGqVfrZwsFipFE/CUi4Ml4DZuC5UXK0Ov g3ubVjW4D44EE5cnxhlARoB1RuQm8fEPRcOrJc77F8FLyl3luyRzS1jXEwmZPi6Y4eM/ EBog== X-Gm-Message-State: AC+VfDy5MFDdsAttlVn3/TVzAC5bs5WRJ0b+RMP8re+WMKYp0AV5LyoU H2hNkhnmHCMWhsum2T3mOgJeVQ== X-Received: by 2002:a05:6a00:c8c:b0:641:1f51:bae2 with SMTP id a12-20020a056a000c8c00b006411f51bae2mr19765157pfv.6.1682969092986; Mon, 01 May 2023 12:24:52 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3b:58fa:39f6:37e1:bb9a:a094]) by smtp.gmail.com with ESMTPSA id 189-20020a6304c6000000b00513cc8c9597sm17459144pge.10.2023.05.01.12.24.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 12:24:52 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-phy@lists.infradead.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, kishon@kernel.org, vkoul@kernel.org, krzysztof.kozlowski+dt@linaro.org Subject: [PATCH v9 2/4] phy: qcom-qmp-usb: add support for updated qcm2290 / sm6115 binding Date: Tue, 2 May 2023 00:54:30 +0530 Message-Id: <20230501192432.1220727-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230501192432.1220727-1-bhupesh.sharma@linaro.org> References: <20230501192432.1220727-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,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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?1764721856103350641?= X-GMAIL-MSGID: =?utf-8?q?1764721856103350641?= Add support for the new qcm2290 / sm6115 binding. The USB QMP phy on these devices supports 2 lanes. Also note that the binding now does not describe every register subregion and instead the driver holds the corresponding offsets. This also includes the PCS_MISC region. Signed-off-by: Bhupesh Sharma --- drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c index a49711c5a63d..aa143c081805 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c @@ -1414,6 +1414,10 @@ struct qmp_usb_offsets { u16 pcs_usb; u16 tx; u16 rx; + /* for PHYs with >= 2 lanes */ + u16 tx2; + u16 rx2; + u16 pcs_misc; }; /* struct qmp_phy_cfg - per-PHY initialization config */ @@ -1558,6 +1562,16 @@ static const char * const qmp_phy_vreg_l[] = { "vdda-phy", "vdda-pll", }; +static const struct qmp_usb_offsets qmp_usb_offsets_v3 = { + .serdes = 0, + .pcs = 0xc00, + .tx = 0x200, + .rx = 0x400, + .tx2 = 0x600, + .rx2 = 0x800, + .pcs_misc = 0xa00, +}; + static const struct qmp_usb_offsets qmp_usb_offsets_v5 = { .serdes = 0, .pcs = 0x0200, @@ -1922,6 +1936,8 @@ static const struct qmp_phy_cfg sm8350_usb3_uniphy_cfg = { static const struct qmp_phy_cfg qcm2290_usb3phy_cfg = { .lanes = 2, + .offsets = &qmp_usb_offsets_v3, + .serdes_tbl = qcm2290_usb3_serdes_tbl, .serdes_tbl_num = ARRAY_SIZE(qcm2290_usb3_serdes_tbl), .tx_tbl = qcm2290_usb3_tx_tbl, @@ -2497,6 +2513,12 @@ static int qmp_usb_parse_dt(struct qmp_usb *qmp) qmp->tx = base + offs->tx; qmp->rx = base + offs->rx; + if (cfg->lanes >= 2) { + qmp->tx2 = base + offs->tx2; + qmp->rx2 = base + offs->rx2; + qmp->pcs_misc = base + offs->pcs_misc; + } + qmp->pipe_clk = devm_clk_get(dev, "pipe"); if (IS_ERR(qmp->pipe_clk)) { return dev_err_probe(dev, PTR_ERR(qmp->pipe_clk), From patchwork Mon May 1 19:24:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 89154 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp136665vqo; Mon, 1 May 2023 12:26:03 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4BwLyE52ixZq7V/ysdLsPPB65pVayrg+NsBLQkBswSEOt1tFeAPO6+T9qcr3QzIWEHuRIs X-Received: by 2002:a17:902:f64b:b0:1a9:7cb3:70d1 with SMTP id m11-20020a170902f64b00b001a97cb370d1mr15327173plg.34.1682969162982; Mon, 01 May 2023 12:26:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682969162; cv=none; d=google.com; s=arc-20160816; b=W94X7tPbz6Ky56N8Lv3bMGjfGGkCuaYUxNLvLBg2v1I/Ec7eZ8lB65DGBgwAUoT4NC wSBHybKVIARh7Cby3HgKK9w01pxopstnKiCQ6XEU/rhRzjnsQK0QJnrSz5XCuVEbGQvM EunJWnfhbD1jC7kEMqxKuYblUQGXwHwcEA/d1VjSF3oprC9RyNQ9OxNgYYuaQ2GWVpx8 SjS4dBg3Hq0TWU70qALjvaof9aUhjBeAKj9VQmLPeTwYSeKhs4W7kcsb+7SQ1oY33q3f nEU3uw6z6e7rPzoenElBN/h4YQPLRN+j41MbsRYqFDOKzJGP1Am/QoPlbwfChw4bnbmS WWtQ== 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=o4KAh8wuSkuj+2XFnMn5E/sCgNnm5at5pl9Xs+VcK78=; b=wmwFUL/tFT6wFnaRjJGmI5GouycNCXniCXuTBnm34O/IONuhOlTndmT+muE+cvGjaI wbXSF1WsGYZWGKPNiW2q4QJF1G81gLvmNTOTyC8AF1mDwTE2A3zSD6Ibqs3OARfaua3e TrdxF38SdjvS31bn8XGarlHn954CUyrEF0/psYR4ctQRVpRqM9/9uta9OVBT8AoU+hAF n6NpeYbFgdv+0qYX1awLRUnIH4PCbR5hKMjT5Mbf35+OtAvtAsyr70jgMe37OfIqb7n8 bjlRhvHMlct/nK9/N0f4MeBlClu3EGO00jZRar7OKPeYCqgjNxdPVtJUHy879gect/u2 zd4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OSkZqpdC; 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 p11-20020a170902e74b00b001a1956e542dsi30049069plf.340.2023.05.01.12.25.47; Mon, 01 May 2023 12:26:02 -0700 (PDT) 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=OSkZqpdC; 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 S232805AbjEATZS (ORCPT + 99 others); Mon, 1 May 2023 15:25:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233028AbjEATZD (ORCPT ); Mon, 1 May 2023 15:25:03 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 899A82737 for ; Mon, 1 May 2023 12:24:58 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-64115e652eeso29012698b3a.0 for ; Mon, 01 May 2023 12:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682969098; x=1685561098; 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=o4KAh8wuSkuj+2XFnMn5E/sCgNnm5at5pl9Xs+VcK78=; b=OSkZqpdCuB5QWuNR04PgAmPEUjH9lrIt/8fHZtFsxK6vBVPRXLd4xCaiYatmE0t1lY sHJgTma5blWeCx9jiv6iZ/vhSVZEsJ1cnrrk+vVCAejaTAtI0yOoHjwSD1BslP0VbdTs hXxmXFB4z5xpaTEOzQDhnk/n+JNzBgqBl7u/VNha4MzUxTT62hSLc1wUylvtuy0En5FI jFWlLjbCJWgIq1JQNz8/HIbA6vetMbeWwdwl01MpUXYaMqLSvz36HTY5UbPTAU6SFWOd RrN+V3ohUtwO+3LheR6pnf+lLPzZ0SOIeyeTDXnxsFRREFFXch6oVdrbVrENEy4JP6bi xHoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682969098; x=1685561098; 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=o4KAh8wuSkuj+2XFnMn5E/sCgNnm5at5pl9Xs+VcK78=; b=VxDJ5toa0YgOzVdrFp3+HLvo8cYro99vAMlPQCMrxLm4dVc6EzOSI02vziajLZcRwT coUtysse2YTuSQlFm3xpl4UiC2vqRcPmVWjtkhlknvKCrVpqC3LrWFTFykIvJ/rZ/0yM iMkt4t5CqKwx9tnFoXTQwX65vZQMdFVmOLKQZW72VIDbQGotU8eTSB7dSeJEQuSS6HuH rPSU5J26Jx9yUc4F9rZX7VxFXTdSarwF1vA1vTVHlF62eEwfsiMZAGmbB1zcNP4oeMVP Zo/s4Ux8+B6MoFgqBY3k54FjXWKVngPaaHQrm5jaRyFV8+xop18CuluI6ZK0pQlsTHbX 4XoA== X-Gm-Message-State: AC+VfDz77SbHiJ7flzJInkyV6L0YZJFQr5X+Sc9igXKUCoIrt3kMyImP sCXW6B4BLRqZU0SKXvqPcoZknA== X-Received: by 2002:a05:6a20:4420:b0:f2:b0:68e8 with SMTP id ce32-20020a056a20442000b000f200b068e8mr21999070pzb.3.1682969097966; Mon, 01 May 2023 12:24:57 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3b:58fa:39f6:37e1:bb9a:a094]) by smtp.gmail.com with ESMTPSA id 189-20020a6304c6000000b00513cc8c9597sm17459144pge.10.2023.05.01.12.24.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 12:24:57 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-phy@lists.infradead.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, kishon@kernel.org, vkoul@kernel.org, krzysztof.kozlowski+dt@linaro.org Subject: [PATCH v9 3/4] arm64: dts: qcom: sm6115: Add USB SS qmp phy node Date: Tue, 2 May 2023 00:54:31 +0530 Message-Id: <20230501192432.1220727-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230501192432.1220727-1-bhupesh.sharma@linaro.org> References: <20230501192432.1220727-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,T_SCC_BODY_TEXT_LINE 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?1764721073025909726?= X-GMAIL-MSGID: =?utf-8?q?1764721073025909726?= Add USB superspeed qmp phy node to dtsi. Make sure that the various board dts files (which include sm4250.dtsi file) continue to work as intended. Signed-off-by: Bhupesh Sharma Reviewed-by: Dmitry Baryshkov --- .../boot/dts/qcom/sm4250-oneplus-billie2.dts | 3 ++ arch/arm64/boot/dts/qcom/sm6115.dtsi | 29 +++++++++++++++++-- .../boot/dts/qcom/sm6115p-lenovo-j606f.dts | 3 ++ 3 files changed, 33 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 a1f0622db5a0..75951fd439df 100644 --- a/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts +++ b/arch/arm64/boot/dts/qcom/sm4250-oneplus-billie2.dts @@ -242,6 +242,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 631ca327e064..21d00b0295a1 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -661,6 +661,31 @@ usb_hsphy: phy@1613000 { status = "disabled"; }; + usb_qmpphy: phy@1615000 { + compatible = "qcom,sm6115-qmp-usb3-phy"; + reg = <0x0 0x01615000 0x0 0x200>; + + clocks = <&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 = "cfg_ahb", + "ref", + "com_aux", + "pipe"; + + resets = <&gcc GCC_USB3_PHY_PRIM_SP0_BCR>, + <&gcc GCC_USB3PHY_PHY_PRIM_SP0_BCR>; + reset-names = "phy", "phy_phy"; + + #clock-cells = <0>; + clock-output-names = "usb3_phy_pipe_clk_src"; + + #phy-cells = <0>; + + status = "disabled"; + }; + qfprom@1b40000 { compatible = "qcom,sm6115-qfprom", "qcom,qfprom"; reg = <0x0 0x01b40000 0x0 0x7000>; @@ -1111,8 +1136,8 @@ usb_dwc3: usb@4e00000 { compatible = "snps,dwc3"; reg = <0x0 0x04e00000 0x0 0xcd00>; interrupts = ; - phys = <&usb_hsphy>; - phy-names = "usb2-phy"; + phys = <&usb_hsphy>, <&usb_qmpphy>; + phy-names = "usb2-phy", "usb3-phy"; iommus = <&apps_smmu 0x120 0x0>; snps,dis_u2_susphy_quirk; snps,dis_enblslpm_quirk; diff --git a/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts b/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts index ea3340d31110..81fdcaf48926 100644 --- a/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts +++ b/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts @@ -306,6 +306,9 @@ &usb { &usb_dwc3 { maximum-speed = "high-speed"; dr_mode = "peripheral"; + + phys = <&usb_hsphy>; + phy-names = "usb2-phy"; }; &usb_hsphy { From patchwork Mon May 1 19:24:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 89157 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp143257vqo; Mon, 1 May 2023 12:40:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4hG1iBMB425EDWZP3OthQG8f2jIPXhW6TXFgPfz5fKQY8Z48aLF9NSwgT36RMapqoiE5zt X-Received: by 2002:a05:6a20:4321:b0:ec:713f:3cb2 with SMTP id h33-20020a056a20432100b000ec713f3cb2mr19763020pzk.53.1682970047256; Mon, 01 May 2023 12:40:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682970047; cv=none; d=google.com; s=arc-20160816; b=ycSqiGEaWXic2j9qFkYf5sOhLOukXKva+/uiFIpNWndgWjkmcvbbpax0LX1AOPN5pV fnfCiyEk+vkpDLSWw2XNGwQSAy2fkT8e6xZjqdkhOL4bYohEEsug3IQrF4JHEi32WhpZ 6V5E/88P149EZ2BA7B5qfe+wvsYqGdmN5b8hDuAwR4i6whqrLIgmrwdzbui5FNl/nFYs 4deyMcyl3oeI3hsM0bIRZlPdeMHjeIDjjnAQkxY29YKRrROyihJFetxkEaW57PW0jgbA aSMarxrlL7IvEwZCnEuiaIhyATJNP2ddg6dzu0KDBAT+UCUikZn5fY0x2hxvNCS58Ixk cwzA== 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=G+pBeS9Hy93exDLsefkYuUxrFqOWBmhI2jVtFARaSEE=; b=cZ7U6LJ9ZeIcOfdBeQ8fk6LTgGBS2MqtBim4XKnW4hxEBaqPyWF6kiFQCqG87X2cDN ws/xgP3S2jit+oGyhzI++X50UeUEO5Hfa0d5WovyiLDRqHPFDeL7rjpBHZX+RaaPjRJN W9sPpBEA8cmZ+gGH4KTchpSatNZt1VhBCceADOjDJu/9fqJPj74qsBSGBXTnXc4bhsGo bzh4xIBdIs7SqOYaQQgqYZVwiAs2raH+zEQQljijW4O1p8A3wN3fubJwi7HHslAPf4tR iBGKrKc8HAa3VudXyVdKP0sMoYlDvFro+e/7/QXDjKxkOKQMcFSa5gdqmhQSb65ZRh4t I8kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AtgDoBpx; 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 205-20020a6303d6000000b0052504ae7539si23452076pgd.145.2023.05.01.12.40.32; Mon, 01 May 2023 12:40:47 -0700 (PDT) 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=AtgDoBpx; 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 S233217AbjEATZ2 (ORCPT + 99 others); Mon, 1 May 2023 15:25:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233045AbjEATZP (ORCPT ); Mon, 1 May 2023 15:25:15 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79E4A30D1 for ; Mon, 1 May 2023 12:25:03 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-63b60366047so2007829b3a.1 for ; Mon, 01 May 2023 12:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682969103; x=1685561103; 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=G+pBeS9Hy93exDLsefkYuUxrFqOWBmhI2jVtFARaSEE=; b=AtgDoBpxQSSDh44UdQty/vRuFhtjwIi1zEb7gyHEee8aUWm/K8YfYJM9CHrDpODjT0 TbBMQEPZ7HzEHk3F6D/+K3gIJOXGljPAQ+G+a8TDomSKajd+E8OaPNrV7JrKrsKrC5PI ExR3HZmpzOvSlLK5R9XcpI1WcHIHZ1/UDP/Jl1xaloym8h9kOmm0HaM7t0rnkfrYhnA+ 6XfpXA7JIsocxXAp/kZAjzeZYwa+5tBnPLP9kjJq1I6C40dRtKuEROkqpJQYJgjennxq J94v8LRftoRudirrGwZPcGMcCT2KcFIwsoqa1Ivbdg3t7jlqGgPq/S8uFPmG9Pa/YZrJ lF4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682969103; x=1685561103; 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=G+pBeS9Hy93exDLsefkYuUxrFqOWBmhI2jVtFARaSEE=; b=gg1f3kxCTZqONcXHhLzkERBpUkD/zeSOyBV30KEQF/l5uHMyCo+r433TOvw16yPTOc WHv/z/KOZbtlDckPLyP3GmDnlfQXBfJMI0a/RU7+bQpITgW4teqHqiOfQB+wWXrMgP0k 5xJnch0X+mscgV33nR2lZH+/rW3IcBnOqjpyYyapMfutoE36R6H0rxwSPY3ASkVhLr0j Qvv+vc6niHT0R+//IXyyEkOysIEouvVMkSkxMnAdlBVCnZN5aMvjhlaYvEMtN7o6GdAx mjXAtj+QU0saEA7gmm1oQdv4VGyEbms576sJsycYMqR5oiufeEvc5pc1JrrgTlwuNCK4 L3+g== X-Gm-Message-State: AC+VfDxuCk9BFUdhf267P5fHsy9zEiJU+lUcUSs0dNbcODlUospFlQsX cQ5O7FbPkJpQoTVGDMWDzlJN5w== X-Received: by 2002:a05:6a21:1584:b0:f0:b6e3:90f2 with SMTP id nr4-20020a056a21158400b000f0b6e390f2mr17699356pzb.13.1682969102858; Mon, 01 May 2023 12:25:02 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3b:58fa:39f6:37e1:bb9a:a094]) by smtp.gmail.com with ESMTPSA id 189-20020a6304c6000000b00513cc8c9597sm17459144pge.10.2023.05.01.12.24.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 12:25:02 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-phy@lists.infradead.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, kishon@kernel.org, vkoul@kernel.org, krzysztof.kozlowski+dt@linaro.org Subject: [PATCH v9 4/4] arm64: dts: qcom: qrb4210-rb2: Enable USB node Date: Tue, 2 May 2023 00:54:32 +0530 Message-Id: <20230501192432.1220727-5-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230501192432.1220727-1-bhupesh.sharma@linaro.org> References: <20230501192432.1220727-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,T_SCC_BODY_TEXT_LINE 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?1764722000438880471?= X-GMAIL-MSGID: =?utf-8?q?1764722000438880471?= Enable the USB controller and HS/SS PHYs on qrb4210-rb2 board. Signed-off-by: Bhupesh Sharma Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index dc80f0bca767..eae3024ce003 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -222,6 +222,30 @@ &uart4 { status = "okay"; }; +&usb { + status = "okay"; +}; + +&usb_dwc3 { + maximum-speed = "super-speed"; + dr_mode = "peripheral"; +}; + +&usb_hsphy { + vdd-supply = <&vreg_l4a_0p9>; + vdda-pll-supply = <&vreg_l12a_1p8>; + vdda-phy-dpdm-supply = <&vreg_l15a_3p128>; + + status = "okay"; +}; + +&usb_qmpphy { + vdda-phy-supply = <&vreg_l4a_0p9>; + vdda-pll-supply = <&vreg_l12a_1p8>; + + status = "okay"; +}; + &xo_board { clock-frequency = <19200000>; };