From patchwork Tue Apr 4 16:48:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devi Priya X-Patchwork-Id: 79247 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp22288vqo; Tue, 4 Apr 2023 09:51:55 -0700 (PDT) X-Google-Smtp-Source: AKy350ZXHnvPhxfgIJ6g20k8jMCPerF0o7ybZwmSxMdpl21rltVJ3dKKBsranAHset6xxz3/DCPs X-Received: by 2002:a17:902:e84e:b0:1a2:8c7e:f315 with SMTP id t14-20020a170902e84e00b001a28c7ef315mr4226202plg.21.1680627115414; Tue, 04 Apr 2023 09:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680627115; cv=none; d=google.com; s=arc-20160816; b=j9+ytHT5LqoaCUkLKhkw/lmVljsX33IhRY+D6mLPzNle3GTJLUWx6G5++NJzJY44zu uYDi5kse7qmn1QaDGTKxvsiIuMuwdc8lvlabyN4SqgU0T5jr9kILTYveJiSrJ/99R6Qa 9D+xQ0HF5C3H0qovCGFx+JOh4S/C/JyczEcR32GKdrbE9ITFtncPKZqdC6b2lnc5FJuA nGWyImlJwaJ3sXFkVhDssQNeX4faeO3R/T42XVDQ+4sDLpH0Zs9+aCFy64zc1xQV0R63 WYW3LXQY3gvUuFLYQe8rRFc3dAol1zEtoThueC584lFfl6Si/9+aWdwN7QZvgBLPGmd5 8lAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=e0fSuuA73GGlcGHFB9Zwl/wxWwihDnVzwLdYbIQgd3c=; b=xUbKj7fndIOy8/na2EXvYEc1sWCxlkUBiu19d7Wc630UOeXZwedKeXrctKSpquIzNP s/MakBAXSwqWeljbhbIMIAoUU3LkFX8jftBkCHSn71GyPh2lj7fKLnvkTQtYeJXcKiEL g38qecGPZ5hFugsh1Vcv935Mb3CxvQUQhH8fFgQ8WJVlfokLgOdgRKZ2uYhyfWfaIZDs EpVDHabZ+Ew8k85KTehySgunkmDyMjTezgI2bFL6kcs8rHM6q2LtvbbNLxWyhjYCYGy7 +5EpROZ3AE+/uIGT4TI5yGDulS6y57dqQK6ssWT54GI54wzsZ2DlSOlkufJVNdB6Kisk iw9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=pKGwbVMm; 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=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j184-20020a638bc1000000b00513579041bfsi10576659pge.636.2023.04.04.09.51.41; Tue, 04 Apr 2023 09:51:55 -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=@quicinc.com header.s=qcppdkim1 header.b=pKGwbVMm; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231477AbjDDQtj (ORCPT + 99 others); Tue, 4 Apr 2023 12:49:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230026AbjDDQtg (ORCPT ); Tue, 4 Apr 2023 12:49:36 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 114551BC0; Tue, 4 Apr 2023 09:49:29 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 334Eddav016917; Tue, 4 Apr 2023 16:49:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=e0fSuuA73GGlcGHFB9Zwl/wxWwihDnVzwLdYbIQgd3c=; b=pKGwbVMm+VxLJvFyWBEZEq945a/SGeg25AfCmSmQGh/jssU6R2WHvkhl5vtvJmiQzcNF yDvXxI/e4vPVuOc/ulj7HUmMUmBo7zRK+Kp5vF+9J5RsGKkhuZ/Q8ju2+5mt/trdHebS f2NLDtcgrvwJdplGHnQcvbAislSvP4/r9C95H8eAKxW96/aFaNsQB3NLGbJfmL0zRbyz 3s/29DXE6xNQND1hXeoOqxMhtDAxuRkIVffK18WZFY81zUNYg19HEeeNJVwBKt5tdpED gGO5N5a7vNn+mTn91qzBMNl6W3NhStYeC9wq7nZJF7mlV8CGOCtecRk90MbAp7HlPQT7 Qg== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3prnusgdcp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Apr 2023 16:49:19 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 334GnInP014886 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 4 Apr 2023 16:49:18 GMT Received: from devipriy-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Tue, 4 Apr 2023 09:49:09 -0700 From: Devi Priya To: , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Subject: [PATCH V2 3/9] dt-bindings: phy: qcom,qmp-pcie: Add ipq9574 bindings Date: Tue, 4 Apr 2023 22:18:22 +0530 Message-ID: <20230404164828.8031-4-quic_devipriy@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230404164828.8031-1-quic_devipriy@quicinc.com> References: <20230404164828.8031-1-quic_devipriy@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: YCQ2KFB693c5E8m78CmuUYIWgXlHJad- X-Proofpoint-ORIG-GUID: YCQ2KFB693c5E8m78CmuUYIWgXlHJad- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-04_08,2023-04-04_05,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 impostorscore=0 suspectscore=0 bulkscore=0 mlxscore=0 clxscore=1015 malwarescore=0 mlxlogscore=999 adultscore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304040155 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,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?1762265257911695090?= X-GMAIL-MSGID: =?utf-8?q?1762265257911695090?= Add bindings for the PCIe QMP PHYs found on IPQ9574 Signed-off-by: Devi Priya --- Changes in V2: - Added the ipq9574 bindings here as the phy nodes in the DT are modified to follow the latest style (without child node) .../phy/qcom,sc8280xp-qmp-pcie-phy.yaml | 103 ++++++++++++++---- 1 file changed, 84 insertions(+), 19 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml index a0407fc79563..6ea442c1378b 100644 --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml @@ -16,6 +16,8 @@ description: properties: compatible: enum: + - qcom,ipq9574-qmp-gen3x1-pcie-phy + - qcom,ipq9574-qmp-gen3x2-pcie-phy - qcom,sc8280xp-qmp-gen3x1-pcie-phy - qcom,sc8280xp-qmp-gen3x2-pcie-phy - qcom,sc8280xp-qmp-gen3x4-pcie-phy @@ -34,13 +36,7 @@ properties: clock-names: minItems: 5 - items: - - const: aux - - const: cfg_ahb - - const: ref - - const: rchng - - const: pipe - - const: pipediv2 + maxItems: 6 power-domains: maxItems: 1 @@ -51,9 +47,7 @@ properties: reset-names: minItems: 1 - items: - - const: phy - - const: phy_nocsr + maxItems: 2 vdda-phy-supply: true @@ -84,11 +78,8 @@ required: - reg - clocks - clock-names - - power-domains - resets - reset-names - - vdda-phy-supply - - vdda-pll-supply - "#clock-cells" - clock-output-names - "#phy-cells" @@ -128,13 +119,58 @@ allOf: clocks: maxItems: 5 clock-names: - maxItems: 5 - else: + items: + - const: aux + - const: cfg_ahb + - const: ref + - const: rchng + - const: pipe + + - if: + properties: + compatible: + contains: + enum: + - qcom,sc8280xp-qmp-gen3x1-pcie-phy + - qcom,sc8280xp-qmp-gen3x2-pcie-phy + - qcom,sc8280xp-qmp-gen3x4-pcie-phy + then: properties: clocks: minItems: 6 clock-names: - minItems: 6 + items: + - const: aux + - const: cfg_ahb + - const: ref + - const: rchng + - const: pipe + - const: pipediv2 + + - if: + properties: + compatible: + contains: + enum: + - qcom,ipq9574-qmp-gen3x1-pcie-phy + - qcom,ipq9574-qmp-gen3x2-pcie-phy + then: + properties: + clocks: + maxItems: 5 + clock-names: + items: + - const: aux + - const: cfg_ahb + - const: anoc_lane + - const: snoc_lane + - const: pipe + resets: + maxItems: 2 + reset-names: + items: + - const: phy + - const: common - if: properties: @@ -147,13 +183,42 @@ allOf: resets: minItems: 2 reset-names: - minItems: 2 - else: + items: + - const: phy + - const: phy_nocsr + + - if: + properties: + compatible: + contains: + enum: + - qcom,sc8280xp-qmp-gen3x1-pcie-phy + - qcom,sc8280xp-qmp-gen3x2-pcie-phy + - qcom,sc8280xp-qmp-gen3x4-pcie-phy + - qcom,sm8350-qmp-gen3x1-pcie-phy + - qcom,sm8550-qmp-gen3x2-pcie-phy + + then: properties: resets: maxItems: 1 reset-names: - maxItems: 1 + items: + - const: phy + + - if: + not: + properties: + compatible: + contains: + enum: + - qcom,ipq9574-qmp-gen3x1-pcie-phy + - qcom,ipq9574-qmp-gen3x2-pcie-phy + then: + required: + - power-domains + - vdda-phy-supply + - vdda-pll-supply examples: - |