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