Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp570994rwr; Fri, 5 May 2023 01:23:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6/g4DLM/Q6zwuSQ5H0Ed7u/4Co96VIYnJTCUUoJ/O8XpfTHyqRKo7Z4KC77c1nykNVeXDC X-Received: by 2002:a05:6a20:ad9b:b0:fa:fc3f:32bd with SMTP id dd27-20020a056a20ad9b00b000fafc3f32bdmr700461pzb.28.1683275039424; Fri, 05 May 2023 01:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683275039; cv=none; d=google.com; s=arc-20160816; b=B22zz/YEV0tBTTFycZ/bVEnS9kNi++4tKPb0I7DPbD/ipn614at5j1hQvAuUJkxca0 CNBZkJvoOvZjMSY7DHywt8xki3aa/n5s2HfVGK2S4ir9gYw06euRRcnJ2+TWB8wcYuGM zFlRzc1bXXUD88tunIrzhy0f3kBuEeP/xIF971jOCLb5jqEF48nCympVbNcxo208WrSM r+JwY0Z+j0TzT9IWEnD/ms4H+78y/x0VV6rUnV2WUpr119FwuyPNf+uG3Y/XBAVkIzeO yrNjASnD7WEDTDLXoTwcOUc8mcPQ/E2zAwNnGQ0raY7Y1HWsA+39kipzpHJ25JA7cAKK PBzg== 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=1JLRUk9mraChiCFPZku+MBORGJ4yn8N7zTaKNT9/EoE=; b=zLuD1x1nYQBG/T4jrkGxkiOscMAd5gJ+xQDL8U2esKZuzkygegU5dYkb78dJoz5zhk 6tc/qOIZycfU4+dyGMSlfh219rMigJOfspOCoAHARchzhgwUU/czG2bH2cidJQPvVZx2 gd+lsBdItVCdeuP7RLiGoQw1tWsKdW0EC9xClBEC+d5sgj69g9H3x7CExMOAvW8vAf5P Fm8IhWzhmQYcTI8tnuvilqIuoVY4RS491eODRWA/iMx+IdapFVmg0tYLHlx4R/fIF079 cHM5TxPIRkAktZP4vM+LcAfmfcEQqg2B9SUT4oeq1fe/x4uCKjEIbH9NGxJcI1PlXeUn uDvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=V8ABBXDh; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a63700e000000b0052c37cb5116si1577238pgc.435.2023.05.05.01.23.45; Fri, 05 May 2023 01:23:59 -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=V8ABBXDh; 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 S231256AbjEEIW5 (ORCPT + 99 others); Fri, 5 May 2023 04:22:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231271AbjEEIWY (ORCPT ); Fri, 5 May 2023 04:22:24 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19A3818873; Fri, 5 May 2023 01:22:23 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3457SFPV017748; Fri, 5 May 2023 08:22:17 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=1JLRUk9mraChiCFPZku+MBORGJ4yn8N7zTaKNT9/EoE=; b=V8ABBXDhS/DJ0S5No7a1hAfjHw69vtufe0pvcPNkCa5TwjEfQtSfz0o/O+ESS0kDS6Do lcKK1KJaZM7nIBDYVJmqfK5w/IJ5pt0UlV7iWzTjJHpuESEGXy5mfcsc6qa/Rt9oprR6 DTwR5VRWzcIT4WMcmXF1xOlUojMzgbuxQRgh3budw7ndumA7HIICE3dhap4P9LNjBAMA XH2JxYL6VimPZhtdcMgZK5qXrVyMGe9pHIqnEwNVx+CF1XljPGgtOhgwSp93fwOqySuA fO2dE1G0eoeuLToGVI9Jg0zqjO/cqG1gtvaNoNl5V58NtePHkr51WFx43esPhuVm8onX yQ== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qcmm391fc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 05 May 2023 08:22:17 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3458MG2n016121 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 5 May 2023 08:22:16 GMT Received: from varda-linux.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Fri, 5 May 2023 01:22:10 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , , , CC: Varadarajan Narayanan Subject: [PATCH v10 2/9] dt-bindings: phy: qcom,qmp-usb: Add IPQ9574 USB3 PHY Date: Fri, 5 May 2023 13:05:03 +0530 Message-ID: <10b8b06f133c72415a609e6bc6595424712e029e.1683183860.git.quic_varada@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: Q_VHvv_BQruYlcRvIyO0PX3NvFT_uwZL X-Proofpoint-GUID: Q_VHvv_BQruYlcRvIyO0PX3NvFT_uwZL 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-05-04_15,2023-05-04_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 mlxscore=0 priorityscore=1501 impostorscore=0 adultscore=0 malwarescore=0 suspectscore=0 phishscore=0 clxscore=1015 bulkscore=0 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305050069 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 * Add dt-bindings for USB3 PHY found on Qualcomm IPQ9574 * Making power-domains as optional since IPQ9574 doesn't have GDSCs Signed-off-by: Varadarajan Narayanan --- Changes in v10: - Remove maxItems for clocks as it is present in top level Changes in v9: - Move 'allOf' to the correct position Changes in v8: - Update clock names for ipq9574 Changes in v6: - Made power-domains optional Note: In the earlier patch sets, had used the (legacy) specification available in qcom,msm8996-qmp-usb3-phy.yaml. Moved to newer specification in qcom,sc8280xp-qmp-usb3-uni-phy.yaml --- .../phy/qcom,sc8280xp-qmp-usb3-uni-phy.yaml | 41 ++++++++++++++++++---- 1 file changed, 35 insertions(+), 6 deletions(-) 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 16fce10..6982ac3 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,6 +16,7 @@ description: properties: compatible: enum: + - qcom,ipq9574-qmp-usb3-phy - qcom,sc8280xp-qmp-usb3-uni-phy reg: @@ -25,11 +26,7 @@ properties: maxItems: 4 clock-names: - items: - - const: aux - - const: ref - - const: com_aux - - const: pipe + maxItems: 4 power-domains: maxItems: 1 @@ -60,7 +57,6 @@ required: - reg - clocks - clock-names - - power-domains - resets - reset-names - vdda-phy-supply @@ -69,6 +65,39 @@ required: - clock-output-names - "#phy-cells" +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,ipq9574-qmp-usb3-phy + then: + properties: + clock-names: + items: + - const: aux + - const: ref + - const: cfg_ahb + - 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 + additionalProperties: false examples: -- 2.7.4