Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5795332rdb; Wed, 13 Dec 2023 22:30:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQrGC3U6pjoBBIWa/elIkr0SLNp1comhQy9lszSnP36gXwzVepaZRZiNk/QUYEPwleukbm X-Received: by 2002:a05:6808:3021:b0:3b8:5e9a:b2bd with SMTP id ay33-20020a056808302100b003b85e9ab2bdmr11810031oib.15.1702535448159; Wed, 13 Dec 2023 22:30:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702535448; cv=none; d=google.com; s=arc-20160816; b=daz7bKPAmOnAPIUQf/dYCQsA/2RjmLgLsaF54tdUPpXdVgR/MmVztjq6Hxqhhqjyr2 oOJODcS7+wJeaDTO1Xg0O95WPwgjkWQY0cIJud6X6HNKy0eWZUi6NycCUsPrnyBA/H8x bj54elYb8tds1bmnoS2kyT1KNfAQjdcaFtKhWGmGYL8b9RrR7bBTUYd2Oo8fusTlqTBV uRM6CNoijvMllomjLskofb8Hqq2hoO8Ye1LBq2IR8mhQxJhuH4qGr9P8/s2E/ONX6swS /1MxM9l3UA4rhjNP7sZlc3Ib910HpeKIf2zlVuCiVCsJwp9wrNccKu4DP+RgpseDlKxU nDzA== 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=A6PPmlLB6gn91AEx4ASsMIEO3od95Y+EsLFhvi3krTo=; fh=Rt0kLJa5uw2v8+a6QLzz/XrrVhh9NAe/gnPEpTFc420=; b=o3Y5cCsxJCBgb1QAtwCemZKOiiSIN8ioHe+OhvH5uHAinFY/nMf65//2EgRq6Zcdeh 2MwzOPAcwJl8tVh5ATzMxi53tMorAceMP5Tl5rWKyGiDWMXijMWApICbUylN4xD3AjAI yLpPhkTLbRk+A5xO5X0+uiIpEz4JbRfvP/ogd52osgzLwQV7Vjfr/6x7qTYlGGLyXTo4 0kWck1wo0AsZVSgZhcwQyivWJYZjGlIxoxanPZXxcQ1pTVk7HsXOpjf4kl+haCh1wL+S jrFQ/Ao7OP1S7SHPlJHN0KkdO47ISFHhP69/IZ0T0RdpaJ0vjQ81iyxhUSnRKk7Fh2XK hDwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WMvSVRkh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id q24-20020a170902bd9800b001d04e2f99b1si10779369pls.513.2023.12.13.22.30.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 22:30:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WMvSVRkh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5D47A805BCB6; Wed, 13 Dec 2023 22:30:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235581AbjLNGaE (ORCPT + 99 others); Thu, 14 Dec 2023 01:30:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235579AbjLNG3u (ORCPT ); Thu, 14 Dec 2023 01:29:50 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92E67133; Wed, 13 Dec 2023 22:29:55 -0800 (PST) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BE2hRdd016504; Thu, 14 Dec 2023 06:29:47 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-transfer-encoding:content-type; s= qcppdkim1; bh=A6PPmlLB6gn91AEx4ASsMIEO3od95Y+EsLFhvi3krTo=; b=WM vSVRkhY+9Nqp49J1t0bk8Ccbe8Oer98IB+UHjpjlL1D2HrCpFu/ciRDJglUahox/ 3yrWSb72K/f8ss15f/XeucynIKC4V1ehhPTLGX31uDGQCTbRkzv2eJ8fsIC+LC90 aCxTYefN1zZytTJYSrlnNeKDMC/3djtxRUo02xohPDR2hEjDProCVIEcXaq7tzDc 04epe0D0nPjYG6L9yhal/dlpT11yGnvU/o12AOOp/8dXdhDqf3liW/SvO+yFmTDt FXcU7ROJ1jeqn9k1CWORi0Bl7h16H6/sfaL+Jws9e2Urk7riedDcHvule8x2LGK9 NSDcHcfOTqcDhcI1a9/g== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3uyq2trkm5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Dec 2023 06:29:46 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3BE6Tjr2016549 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Dec 2023 06:29:45 GMT Received: from hu-ipkumar-blr.qualcomm.com (10.80.80.8) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Wed, 13 Dec 2023 22:29:38 -0800 From: Praveenkumar I To: , , , , , , , , , , , , , , , , , , , , , CC: , , , Subject: [PATCH 05/10] dt-bindings: phy: qcom,uniphy-pcie: Add ipq5332 bindings Date: Thu, 14 Dec 2023 11:58:42 +0530 Message-ID: <20231214062847.2215542-6-quic_ipkumar@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231214062847.2215542-1-quic_ipkumar@quicinc.com> References: <20231214062847.2215542-1-quic_ipkumar@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: FQgD7QvKKfjwdfvvusR2OiHsobtaDXDq X-Proofpoint-ORIG-GUID: FQgD7QvKKfjwdfvvusR2OiHsobtaDXDq X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 phishscore=0 clxscore=1015 mlxlogscore=999 priorityscore=1501 lowpriorityscore=0 malwarescore=0 suspectscore=0 bulkscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312140039 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Dec 2023 22:30:28 -0800 (PST) Qualcomm IPQ5332 has single-lane and dual-lane PCIe UNIPHY with Gen 3 support. This UNIPHY is similar to the one found on Qualcomm IPQ5018. Hence add the bindings in qcom,uniphy-pcie. Clocks and resets are different for IPQ5332. Update the bindings to support both IPQ5018 and IPQ5332. Signed-off-by: Praveenkumar I --- This patch depends on the below series which adds PCIe support in Qualcomm IPQ5018 https://lore.kernel.org/all/20231003120846.28626-1-quic_nsekar@quicinc.com/ .../bindings/phy/qcom,uniphy-pcie-28lp.yaml | 65 +++++++++++++++++-- 1 file changed, 58 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/qcom,uniphy-pcie-28lp.yaml b/Documentation/devicetree/bindings/phy/qcom,uniphy-pcie-28lp.yaml index 6b2574f9532e..205eaec2291e 100644 --- a/Documentation/devicetree/bindings/phy/qcom,uniphy-pcie-28lp.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,uniphy-pcie-28lp.yaml @@ -20,19 +20,20 @@ properties: maxItems: 1 clocks: - maxItems: 1 + minItems: 1 + maxItems: 4 clock-names: - items: - - const: pipe_clk + minItems: 1 + maxItems: 4 resets: - maxItems: 2 + minItems: 2 + maxItems: 3 reset-names: - items: - - const: phy - - const: phy_phy + minItems: 2 + maxItems: 3 "#phy-cells": const: 0 @@ -54,6 +55,56 @@ required: - "#clock-cells" - clock-output-names +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,ipq5018-uniphy-pcie-gen2x1 + - qcom,ipq5018-uniphy-pcie-gen2x2 + then: + properties: + clocks: + minItems: 1 + maxItems: 1 + clock-names: + items: + - const: pipe_clk + resets: + minItems: 2 + maxItems: 2 + reset-name: + items: + - const: phy + - const: phy_phy + + - if: + properties: + compatible: + contains: + enum: + - qcom,ipq5332-uniphy-pcie-gen3x1 + - qcom,ipq5332-uniphy-pcie-gen3x2 + then: + properties: + clocks: + minItems: 4 + maxItems: 4 + clock-names: + items: + - const: pipe + - const: lane_m + - const: lane_s + - const: phy_ahb + resets: + minItems: 2 + maxItems: 2 + reset-name: + items: + - const: phy + - const: phy_ahb + additionalProperties: false examples: -- 2.34.1