Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp294058rdb; Fri, 6 Oct 2023 03:57:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEBwniI1RI4/mBI05pmWgWGLcGAIyh3swhOQdDT2Rh7CeJQdc0NytM4/esZxpz5se3Ixlb4 X-Received: by 2002:a05:6358:63a1:b0:134:e631:fd2b with SMTP id k33-20020a05635863a100b00134e631fd2bmr8952406rwh.0.1696589862344; Fri, 06 Oct 2023 03:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696589862; cv=none; d=google.com; s=arc-20160816; b=VM3J3wXd2JTlaeu5nWJXwVdWUBXLssqEaCBIM0+Q2/U0EDrQ2dtOQbYJCM6fhqKS11 tW717fjBb4f1wM4fzof9gR5TQ9ZS0DAgEOy2lgCUKv2ZZFgRf1S4BQ6sUKjAB1jQqxgD C0tbIVbWhA6zFR68jGZuIF1ejBUrfDgy/LUr7wa+zKCzhJPsa2jG6GCjd3s+ug089PQD dDeraG5hokd4Lo684GwbsgvTAhPTf82Bnb48xBHdu5PkwVB7jrdmRghkCKAGgBqJpZiB Kfy8opZuqV6AsK/QbWQxAHVaE3QD1x0ce8QCqDjXMqyqv1WPgP27jAgpWS0PwXhx9wQf g6gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=16WOAwcA//F2X32qWbJ0h5M8hDxQBzrHlKiLEKtagog=; fh=IFBcGXCFOBY/OY+xJrg3d37Ys9lfhCpiH2OV4nMfUcY=; b=xXPkD9J7NIdD9cUKxBXG05hLN9Y9HffQokH8hebRs0pLIXQt5ZgoZITLKshutylJWr TByC2GXflKkRfZcUtc54/dLjeXF7aSJdckQuTShBEaC0NVw1A3b96cKvhxZ7tRfXPH/a iuwcRPHcetmequstHIK+Wyvuu+tM/84bJopb3tIpa01oo50sXNxIzeiPFNtcj7NPNf1m DQpmHFB8+hHzavcN8H7F1iyKE1HBu5o6xez1z2/YDEZKl+vgosdU6QKhy9SGiVVqdv7U eAImqfBzLOXyiU/qdLZ9NdZCZZvyjKDJDLiIsc3tWdop1pqEPIQKVTpjlWHHCo0QTsK7 49Fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YGtYwH+d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id lo15-20020a170903434f00b001c5fca2e1besi3270294plb.15.2023.10.06.03.57.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 03:57:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YGtYwH+d; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 2755180ADF37; Fri, 6 Oct 2023 03:56:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231840AbjJFKz7 (ORCPT + 99 others); Fri, 6 Oct 2023 06:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231458AbjJFKz5 (ORCPT ); Fri, 6 Oct 2023 06:55:57 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B392583; Fri, 6 Oct 2023 03:55:50 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3969brZF000871; Fri, 6 Oct 2023 10:55:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=16WOAwcA//F2X32qWbJ0h5M8hDxQBzrHlKiLEKtagog=; b=YGtYwH+dCXSTCb2WZIehATyp3Cw4AM95fmjA8UxvHNexAq0pnUCVZUKSnjVNspKor2Vg 15e0F2BptnB+FZyESSQ52stIPHOiazavjs/YZxLl0APjjh/VU7mIeSg5l47pVNFAfSTm kO4ebQVQP0c5UsCqjmT8srbz8tWkjB+8x5GCoQubnAsHk3PgnGHvX9Sf98KJigTQAexN LPt4Fu+2dMaw2Y+0ceKMK3deUMPlqcYo3SilnTU3LxCSKfoI6b4YBWzdhNuqGMUeOCzO 48zgNsJmtH50KXo030AWYcc4faIjphOCPNHwY29PTl3CFT+JofHmIGXJ1gQDhemLEBqY ng== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tj0fphyp9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 06 Oct 2023 10:55:18 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 396AtHK3032401 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 6 Oct 2023 10:55:17 GMT Received: from [10.217.217.202] (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Fri, 6 Oct 2023 03:55:10 -0700 Message-ID: <28bf111f-b965-4d38-884b-bc3a0b68a6cc@quicinc.com> Date: Fri, 6 Oct 2023 16:24:59 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 1/5] dt-bindings: PCI: qcom-ep: Add support for SA8775P SoC To: Rob Herring , Mrinmay Sarkar CC: , , , , , , , , , , , , Bjorn Helgaas , "Lorenzo Pieralisi" , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Kishon Vijay Abraham I , Vinod Koul , , , , , , References: <1695218113-31198-1-git-send-email-quic_msarkar@quicinc.com> <1695218113-31198-2-git-send-email-quic_msarkar@quicinc.com> <20230921183850.GA762694-robh@kernel.org> Content-Language: en-US From: Shazad Hussain In-Reply-To: <20230921183850.GA762694-robh@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: XJETY3Fy8CUSuy_YoKF88CqC2RiHzOzy X-Proofpoint-GUID: XJETY3Fy8CUSuy_YoKF88CqC2RiHzOzy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-06_08,2023-10-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 priorityscore=1501 impostorscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 adultscore=0 mlxscore=0 mlxlogscore=934 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310060080 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 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 06 Oct 2023 03:56:17 -0700 (PDT) On 9/22/2023 12:08 AM, Rob Herring wrote: > On Wed, Sep 20, 2023 at 07:25:08PM +0530, Mrinmay Sarkar wrote: >> Add devicetree bindings support for SA8775P SoC. >> Define reg and interrupt per platform. >> >> Signed-off-by: Mrinmay Sarkar >> --- >> .../devicetree/bindings/pci/qcom,pcie-ep.yaml | 130 +++++++++++++++++---- >> 1 file changed, 108 insertions(+), 22 deletions(-) >> >> diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml >> index a223ce0..e860e8f 100644 >> --- a/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml >> +++ b/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml >> @@ -13,6 +13,7 @@ properties: >> compatible: >> oneOf: >> - enum: >> + - qcom,sa8775p-pcie-ep >> - qcom,sdx55-pcie-ep >> - qcom,sm8450-pcie-ep >> - items: >> @@ -20,29 +21,19 @@ properties: >> - const: qcom,sdx55-pcie-ep >> >> reg: >> - items: >> - - description: Qualcomm-specific PARF configuration registers >> - - description: DesignWare PCIe registers >> - - description: External local bus interface registers >> - - description: Address Translation Unit (ATU) registers >> - - description: Memory region used to map remote RC address space >> - - description: BAR memory region >> + minItems: 6 >> + maxItems: 7 >> >> reg-names: >> - items: >> - - const: parf >> - - const: dbi >> - - const: elbi >> - - const: atu >> - - const: addr_space >> - - const: mmio >> + minItems: 6 >> + maxItems: 7 > > Don't move these into if/then schemas. Then we are duplicating the > names, and there is no reason to keep them aligned for new compatibles. > > Rob Hi Rob, As we have one extra reg property (dma) required for sa8775p-pcie-ep, isn't it expected to be moved in if/then as per number of regs required. Anyways we would have duplication of some properties for new compatibles where the member numbers differs for a property. Are you suggesting to add the extra reg property (dma) in the existing reg and reg-names list, and add minItems/maxItems for all compatibles present in this file ? -Shazad