Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp322181rdb; Thu, 19 Oct 2023 05:48:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFEhP5iceVA7arXBnnkVZcU5Hf8QWuYQp+yB8NBzo8xLlJPmaChtS7UeDH+6IlcMX8cZ4Qn X-Received: by 2002:a17:90a:1984:b0:27d:10ab:2325 with SMTP id 4-20020a17090a198400b0027d10ab2325mr1858767pji.27.1697719710421; Thu, 19 Oct 2023 05:48:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697719710; cv=none; d=google.com; s=arc-20160816; b=uoViGO2KdU0UbrdFmLipPN7Vq3bKcVcRSTcCWVXZ012KS2djzQkyGrM+1QFPD2OVgE HSf9/89qfcCbXPosToIqNRtoGmAtqc5x/Uv/gEy1dhp33KCNBV77oo833Ts7r+LANuZG BUXzWXasvrz9fX/AJIENmHZMepp+ukfo+0gaAm/X0CyY4Q5xQD/2cng8ONMuBmGBeMmT 6AmflmwnaG2FwyuiIhcG4l2vZKsLCXu65c/iQH7HqkVIJLO2NoR60GcJClp8s0LWcKL6 KepznEhMP9M1v3sNMyVLwiAijNrI6aqFCpm+xmKkR1IKvaiRyVGicGM15KTf4l2tZfH5 CtmQ== 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:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=qFQDquaYrxbOhnZ4aFn7nGgZNpCtXxCsyNZ4tebC/bw=; fh=UjcYl+/jhgD86hXZsy8nJTHJ41KRWFmzPNaOaGw0tJk=; b=a9+GPYzpOFJ2D2QJAsyr/UJPR1t1HDwxDmpcDkrGGr8XUvTzBKqoXHkdz1pN2lZy4y 8Rr/6xJG+Qd47ZBf29wT4ajZFzelJOoeD9si+TRegDZqJzp6bYtxwSV/yb9SoO2LJTJG wQw/iq5FOKY5GAv/7NCt3INbRlyLB7qjUvBO1p9nKzWhi4VyTrrlqKI0wCwIfJuhs1eX 4tW3oURh4uJlkqzeeviXMbCX9oKRPA8cybXYjO7g2afwfSvg/J2Fz5KBNOlK0kdXK3HX 3alKDWwaRhloWs2iC/s4scf5UV4FnacOoQQlxtrz5bszyfFqWc50igGi3sbRZZn4MZz1 TJvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rXVceXsF; 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=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e11-20020a17090a804b00b00276671731e3si2134893pjw.136.2023.10.19.05.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 05:48:30 -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=@linaro.org header.s=google header.b=rXVceXsF; 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=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6051A822CF13; Thu, 19 Oct 2023 05:48:29 -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 S1345380AbjJSMs0 (ORCPT + 99 others); Thu, 19 Oct 2023 08:48:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345529AbjJSMsZ (ORCPT ); Thu, 19 Oct 2023 08:48:25 -0400 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D7F0114 for ; Thu, 19 Oct 2023 05:48:23 -0700 (PDT) Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-32dbbf3c782so446625f8f.1 for ; Thu, 19 Oct 2023 05:48:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697719701; x=1698324501; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qFQDquaYrxbOhnZ4aFn7nGgZNpCtXxCsyNZ4tebC/bw=; b=rXVceXsF4zOdZv6GwsAskDLofgzX3cXaF8Vk4zVTCpLIN8ZWXMJH8gSPcqe5yunAHg 2jsS/QSZBDKLuiwpS32GMMtdRN9/Y969qy0QWtyPFjPNfhbP+Yb6NSdKcfh2R0fYh2rS tHocg+MDVsXMAAHz/+oIB7RrdHsx2DikpepTDfvAFmfducGgn4ehyjDr3KmZ//LOyMvK JiRT67BgtoXcC9bzc1W0Xb2OmCUgkXI4q31ljK1vMq7aYvRsPfvOEoURp00iqRPhOjuc HJw/eFd5tu+aQbSF5O+ecSyiL8yXolw1aZDubdG0LOa+ap4MFjn430/8n/EItvEsyE30 ZKqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697719701; x=1698324501; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qFQDquaYrxbOhnZ4aFn7nGgZNpCtXxCsyNZ4tebC/bw=; b=OtVJKXECzvuEG38RFGhLnEfjxfCe1cRH3UQ53u6z2jdv5SqWeE4W/rSJiNAqhdsLox C3ntI5n7ugzHu00lxWKieQFzXqmCVANp4l26YbDa8vwbcYb0/3ToS2TtmvB28+QDhAQP ON2gJF72K3G7LuTG5r4hGG4jWDCiKi9YyxfofbxURQsc+KdDsjhgLoxaIDUHltOBGgMP 3jWj464u5vM0OTREmPOtDmfhk6N7vSEU5c8qdjly2PThGJuX365A72g7NUZkox4XoT8M eHu7UyZYfpcF+4f9EFXdHbbsWGgpCMaUtIeCALWshPH8ZraWPhfhHQFIXPxQj/xqXfyL Tb0A== X-Gm-Message-State: AOJu0YyTYLNlbTSbYx8CKVQNBzL05dbyWIbuf8gGyCmA2HmRVThqyek/ pYcw0rQtvEU+PhY9QF033rTMrg== X-Received: by 2002:adf:c685:0:b0:32d:c850:b4ba with SMTP id j5-20020adfc685000000b0032dc850b4bamr1570646wrg.31.1697719701354; Thu, 19 Oct 2023 05:48:21 -0700 (PDT) Received: from [192.168.1.20] ([178.197.218.126]) by smtp.gmail.com with ESMTPSA id l10-20020a1c790a000000b004063cced50bsm4304072wme.23.2023.10.19.05.48.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Oct 2023 05:48:20 -0700 (PDT) Message-ID: <1917c764-9356-4f6e-94d6-1c8a92f4d6a5@linaro.org> Date: Thu, 19 Oct 2023 14:48:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/5] dt-bindings: PCI: qcom-ep: Add support for SA8775P SoC Content-Language: en-US To: Mrinmay Sarkar , agross@kernel.org, andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, konrad.dybcio@linaro.org, mani@kernel.org Cc: quic_shazhuss@quicinc.com, quic_nitegupt@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, dmitry.baryshkov@linaro.org, robh@kernel.org, quic_krichai@quicinc.com, quic_vbadigan@quicinc.com, quic_parass@quicinc.com, Bjorn Helgaas , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Kishon Vijay Abraham I , Vinod Koul , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mhi@lists.linux.dev, linux-phy@lists.infradead.org References: <1697715430-30820-1-git-send-email-quic_msarkar@quicinc.com> <1697715430-30820-2-git-send-email-quic_msarkar@quicinc.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2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MRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <1697715430-30820-2-git-send-email-quic_msarkar@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 19 Oct 2023 05:48:29 -0700 (PDT) On 19/10/2023 13:37, Mrinmay Sarkar wrote: > Add devicetree bindings support for SA8775P SoC. It has DMA register > space and dma interrupt to support HDMA. > > Signed-off-by: Mrinmay Sarkar > --- > .../devicetree/bindings/pci/qcom,pcie-ep.yaml | 44 +++++++++++++++++++++- > 1 file changed, 42 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml > index a223ce0..7485248 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,6 +21,7 @@ properties: > - const: qcom,sdx55-pcie-ep > > reg: > + minItems: 6 > items: > - description: Qualcomm-specific PARF configuration registers > - description: DesignWare PCIe registers > @@ -27,8 +29,10 @@ properties: > - description: Address Translation Unit (ATU) registers > - description: Memory region used to map remote RC address space > - description: BAR memory region > + - description: DMA register space You need to constrain IO space in all other variants. > > reg-names: > + minItems: 6 > items: > - const: parf > - const: dbi > @@ -36,13 +40,14 @@ properties: > - const: atu > - const: addr_space > - const: mmio > + - const: dma > > clocks: > - minItems: 7 > + minItems: 5 > maxItems: 8 > > clock-names: > - minItems: 7 > + minItems: 5 > maxItems: 8 > > qcom,perst-regs: > @@ -57,14 +62,18 @@ properties: > - description: Perst separation enable offset > > interrupts: > + minItems: 2 > items: > - description: PCIe Global interrupt > - description: PCIe Doorbell interrupt > + - description: DMA interrupt > > interrupt-names: > + minItems: 2 > items: > - const: global > - const: doorbell > + - const: dma You need to constrain interrupts in all other variants. > > reset-gpios: > description: GPIO used as PERST# input signal > @@ -173,6 +182,37 @@ allOf: > - const: ddrss_sf_tbu > - const: aggre_noc_axi > > + - if: > + properties: > + compatible: > + contains: > + enum: > + - qcom,sa8775p-pcie-ep > + then: > + properties: > + reg: > + minItems: 7 As well: maxItems: 7 Otherwise any future update will for sure miss this and relax the reg. > + reg-names: > + minItems: 7 Ditto > + clocks: > + items: > + - description: PCIe Auxiliary clock > + - description: PCIe CFG AHB clock > + - description: PCIe Master AXI clock > + - description: PCIe Slave AXI clock > + - description: PCIe Slave Q2A AXI clock > + clock-names: > + items: > + - const: aux > + - const: cfg > + - const: bus_master > + - const: bus_slave > + - const: slave_q2a > + interrupts: > + minItems: 3 Ditto > + interrupt-names: > + minItems: 3 Ditto > + > unevaluatedProperties: false > > examples: Best regards, Krzysztof