From patchwork Sun Apr 9 20:09:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 81323 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1535054vqo; Sun, 9 Apr 2023 13:50:29 -0700 (PDT) X-Google-Smtp-Source: AKy350Zt2ict270WIrGHcWWHj5G62BtIs/qPbrPcqcNlxIYRdixFfJ6hJxKB38uvhWgGcvKIxWOW X-Received: by 2002:a17:907:6d90:b0:93b:866:bafe with SMTP id sb16-20020a1709076d9000b0093b0866bafemr5845385ejc.56.1681073429181; Sun, 09 Apr 2023 13:50:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681073429; cv=none; d=google.com; s=arc-20160816; b=EKIRn/AbhBr74Y/BEAe/WhzYsseAWpeja682tPG4I5VYOWbPJsZvQAch9lo3TyRh8m 5JriEMGUNqh/171NH61LsoFyS7EwXo9e932qLvrtg/ABHCdvPlV5sfF9ZqQ+9jxHVJ6Z 1zjpcIws7rVVkuwB9e4qdz3hvkHH5NcSRhyqmY5eFtN4opIP/hJ6aDxvR4h4jwmqV+fG tks92T4oHwQdPC0D+2xJMKJS7+UtvlQL7x+trsxtYOX//EBD97Zke4DDMuYRtDbitgCR yz4LBNx+/j9XYUaOEU4JxlqLgAFeeDDEB8inBvqVu7VLdZOVBL+0TeiwhqI90EM3cKzV hJaw== 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=5wTaJuCyXlD00SHjLvnITgGqsWKx5b0Mb7VmDrRSn9I=; b=SuNgEoh3JYTCr8kCJbSoaJ35mi4h2YMdy/EiLnc/UpNWyQxIhE8/qufRNBxQp1BqKz vQmNmdZSPU7klYGvsLWz2D7kpHo0LHtS9WJRloE6dkHQq3cdERfI3GkJq9504PyfL6Gt z8IX/1555NVrHhFeSmsKBz+NvsYp659Y+Wkxq9PGQ/l60/0tYZCv+pI42bQI7nhuTYri RutOqm/N8gPcagnnPorsf+gM9vu/w3lHECTW/4ElWwoGi4n8cyf3zCNjHPjgtfj2mcYv 9MtNLiSxjEFxY0FIU0tQEpQLK8X8jX9UiGjxVTAje/MEWB05asqxOloJjsL1xNl6FiFn 5eTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QbaGXRBy; 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 s8-20020a170906a18800b00947b8677199si7550632ejy.287.2023.04.09.13.50.04; Sun, 09 Apr 2023 13:50: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=QbaGXRBy; 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 S229565AbjDIUJw (ORCPT + 99 others); Sun, 9 Apr 2023 16:09:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbjDIUJv (ORCPT ); Sun, 9 Apr 2023 16:09:51 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D60E53A94 for ; Sun, 9 Apr 2023 13:09:49 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id d22-20020a17090a111600b0023d1b009f52so5549371pja.2 for ; Sun, 09 Apr 2023 13:09:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681070989; 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=5wTaJuCyXlD00SHjLvnITgGqsWKx5b0Mb7VmDrRSn9I=; b=QbaGXRByQ8d+g0urjUhE9HkJFysukU8YzyzzMGS1vbIDOmlqMC5J1JwZEf2yXu8zl+ JVaikt8AdE/3X6LU4dcEw2Em4PQqNzBB7WSvAGJQ4a75VhtnZLKaFSAsz9DkNobaLCIe jA7pvISJKv/GOeIp+bIaH18j4gf9vuuyqyCAi0p3jN2RhPLI37BsCzIkuQ/okO0kkQWJ fJpkJfI1PmrnOoyJJcuCcOkPyntka6ekshhqc9woDxmxUX+m5shdLXNPOVORHzCRvoBo qdDyas5yrWwJMVPW6kOYviHJFZxI8Gzb8CiUlE0f4ZjtmeS3xPqCKpmJPYqeEn6erzZw HPaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681070989; 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=5wTaJuCyXlD00SHjLvnITgGqsWKx5b0Mb7VmDrRSn9I=; b=qbVfuNDiN8+BCbwZjG1FPCLIrPKh5GMbekBkzqnxITidj4iFAV3bsVShU6isItvENV G053qBw19cg9BM2T5fgKsmabu2NxxOD/Rjz9MUvJpRxMc+eG/WKpg+CMH9B01YwbvhUx iXCw+duPt4rFmALEfgI2I82lDCorIAY/DHOjJkffwwo/b/l05vexRIs5Vu/Ag35RKfu0 21q20S6Sp55Y4ueX5yeaRDuLqzq0xzSLAtwXxIkTq5sq184RYi6/vh6SxJVrsmVGEszQ OdzAKqwbALKgWIHX2Vr2BHoHiuyHuYT+oJkEZsiK6WUDQICL6IxBxv+Y5sBTKdVr0WjC 9hUw== X-Gm-Message-State: AAQBX9e/NZhIdM8kfEKMXUVrWUxBQ9mvf76T0seiQ0//tKvwKPE4YUOw 98bxU8hgC1zPMUPTlBI7tI113A== X-Received: by 2002:a17:903:2943:b0:1a4:f156:a1e3 with SMTP id li3-20020a170903294300b001a4f156a1e3mr5608966plb.58.1681070989187; Sun, 09 Apr 2023 13:09:49 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:6a11:8ba1:beba:def7:a4ae]) by smtp.gmail.com with ESMTPSA id ji21-20020a170903325500b001a5260a6e6csm2876304plb.206.2023.04.09.13.09.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Apr 2023 13:09:48 -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 v7 1/2] dt-bindings: phy: qcom,qmp-usb: Drop legacy bindings and move to newer one (SM6115 & QCM2290) Date: Mon, 10 Apr 2023 01:39:33 +0530 Message-Id: <20230409200934.2329297-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230409200934.2329297-1-bhupesh.sharma@linaro.org> References: <20230409200934.2329297-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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?1762733252111517810?= X-GMAIL-MSGID: =?utf-8?q?1762733252111517810?= '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 | 45 ++++++++++++++++--- 2 files changed, 40 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..aa16d50c7c4e 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,20 +16,20 @@ description: properties: compatible: enum: + - qcom,qcm2290-qmp-usb3-phy - qcom,sc8280xp-qmp-usb3-uni-phy + - qcom,sm6115-qmp-usb3-phy reg: maxItems: 1 clocks: + minItems: 3 maxItems: 4 clock-names: - items: - - const: aux - - const: ref - - const: com_aux - - const: pipe + minItems: 3 + maxItems: 4 power-domains: maxItems: 1 @@ -71,6 +71,41 @@ required: additionalProperties: false +allOf: + - 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 + + - 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 Sun Apr 9 20:09:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 81322 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1530615vqo; Sun, 9 Apr 2023 13:33:39 -0700 (PDT) X-Google-Smtp-Source: AKy350brSIrumW/xw6g5ANx80o1w5FFJ/uHH5/f01nJBcrzpqAKsc+0EmLh5uvVvasYHG2PdEVkN X-Received: by 2002:a05:6402:886:b0:504:ae78:89c5 with SMTP id e6-20020a056402088600b00504ae7889c5mr91005edy.28.1681072419068; Sun, 09 Apr 2023 13:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681072419; cv=none; d=google.com; s=arc-20160816; b=xXt6ITyLjUvjh37AaG7qRWdwGCBKP9TA5r1S+L0n0jzc52ZNUN9rL7rXv5/ylOpJBS 1WEOfgiFEYASuGNTgzy1jOpTy0V4Wz375sfpIvZlg7eVipQJAkW0oYtrTbomV0Jye1Zi wQIdFpYd6c5S0zGf7fupKUZoAmotGuBaS44iEVhkGlgrhztgHZPHtd2tYS9GNktFr7dP VW9eLgWaiLSSoEw30DeX8UpHyAXVNjdFZZMokO/jDtoLu0IUl/i/eEJQ8rgd6drT+OyH WWHvKrKAXh9iiliNMjfy0e5SDOxAtFPovAz6vcKsvRmDZutPuM0UK81ABNld4i26DrVb UmNQ== 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=yAwtHEa5KqJFCC2AgvvTNGFMxN3ooON05S1Vg8ohC/E=; b=JBk08+wk6tCu4Y8bcKpaUgFM8fMRZgj9fEHcaCrHglXp4Ybhm26BFKtXdTX7ZJ9R6O 4vvCUWihVZnCyNu8+SvbElkwyfNshRPprZOjjYnwIAapisW+h0sx1/6mkrGKvSqe915H ypY3MiZ/KUwKBELY6wcyPLmRfOQYxvbcLBPSjzOj+420mMKL8lfmWjEPkIhnam6RV63l lpYDbKEyGcdcaUokfNz7pPcfO2C59uuFv2GpX2gRE6QWqqNVsOth6ywtUtd7e5H8oR++ ACSYmg7OSK7GZnhbCb+VVOCH6jvmTZN+FK6Bj/LxTx0Ur/TCoP1+y2i6gmhXjlgyae5Z YGTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hr37uIbk; 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 l2-20020a17090612c200b0092533cf4684si7925905ejb.961.2023.04.09.13.33.05; Sun, 09 Apr 2023 13:33:39 -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=hr37uIbk; 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 S229576AbjDIUKC (ORCPT + 99 others); Sun, 9 Apr 2023 16:10:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbjDIUJ7 (ORCPT ); Sun, 9 Apr 2023 16:09:59 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A24043C25 for ; Sun, 9 Apr 2023 13:09:54 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id ke16so3028706plb.6 for ; Sun, 09 Apr 2023 13:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681070994; 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=yAwtHEa5KqJFCC2AgvvTNGFMxN3ooON05S1Vg8ohC/E=; b=hr37uIbkdRoyKgTwjnuniHrHqJI8LTFu7gG/d7oMIFwEyHcHYiCnMDlHeFRSfd8mJc vzSLDJWfquLauRDQOyKWV1r+jr26xLdDr6yZkBxidoLUDuWLvDBW946bQuydBMm6Uv/6 yg4DkgCk/uJgDIxVO40mx8xTwpFyJ3awjvSG7oMVivIqh8gTV3A9BqFXJVerYUJqJpkn jyDLKf2uwh7xWtvuh+iNh49O0tv0tFvgqsqzq3P62HOLIQypoinjRD38bcbgCgB5bwJe kHVe18Xo8EB6Rv1ka0XwCXFQ77wVUyyI0G1JHb823miiZIqJodLKpw3r0MHYPsFDVdlO xaMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681070994; 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=yAwtHEa5KqJFCC2AgvvTNGFMxN3ooON05S1Vg8ohC/E=; b=E7lAmwQ8+DPZklC/mjMA3yyP7XfBaHwWuf7KIVTDT9PaHtB8iQLryBtYiEYGo8VNnt Bc/HWmNnqITeDsMhyD+UwB1tdsng3JAd4HHe9POEur+q+1zxGxR1rnmKQCkZQdihGjdP EBIZM9Ak4u2Zuq3eMNe/+w4tprBISVm+Jy6tWUrHdusTzwYWuJxE2tEEr2iJUWQZuM/C LTRStJkGz+JeC3v0zdCdzkZVt3ST+5o9PzsLNeYQb26O/d9STREapMpumdzDXv5iaPGT nxqWxrUpnHIHpIZx6wkPwSrl807GbfTpICOYx1aa9qYY7KWjq+O+iAF0g8+J78Cwh8p/ 7MUQ== X-Gm-Message-State: AAQBX9d6UKSATIBTgSUE/+HCzzID94vsXBoA8DV9iRsuqeM48Z6byzbU mTb53muMb9Ssi7YgsDDLWoRZLQ== X-Received: by 2002:a17:902:d50b:b0:1a6:4532:1159 with SMTP id b11-20020a170902d50b00b001a645321159mr673plg.63.1681070993842; Sun, 09 Apr 2023 13:09:53 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:6a11:8ba1:beba:def7:a4ae]) by smtp.gmail.com with ESMTPSA id ji21-20020a170903325500b001a5260a6e6csm2876304plb.206.2023.04.09.13.09.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Apr 2023 13:09:53 -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 v7 2/2] arm64: dts: qcom: sm6115: Add USB SS qmp phy node Date: Mon, 10 Apr 2023 01:39:34 +0530 Message-Id: <20230409200934.2329297-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230409200934.2329297-1-bhupesh.sharma@linaro.org> References: <20230409200934.2329297-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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?1762732193066565686?= X-GMAIL-MSGID: =?utf-8?q?1762732193066565686?= 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 --- .../boot/dts/qcom/sm4250-oneplus-billie2.dts | 3 +++ arch/arm64/boot/dts/qcom/sm6115.dtsi | 27 +++++++++++++++++-- .../boot/dts/qcom/sm6115p-lenovo-j606f.dts | 3 +++ 3 files changed, 31 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 2505c815c65a..e9c5d5fd2672 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -651,6 +651,29 @@ 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>; + clock-names = "cfg_ahb", + "ref", + "com_aux"; + + 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>; @@ -1101,8 +1124,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_ssphy>; + 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 10c9d338446c..d60cc024749b 100644 --- a/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts +++ b/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts @@ -280,6 +280,9 @@ &usb { &usb_dwc3 { maximum-speed = "high-speed"; dr_mode = "peripheral"; + + phys = <&usb_hsphy>; + phy-names = "usb2-phy"; }; &usb_hsphy {