Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3B4CC678D4 for ; Mon, 6 Mar 2023 10:34:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229839AbjCFKej (ORCPT ); Mon, 6 Mar 2023 05:34:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbjCFKe0 (ORCPT ); Mon, 6 Mar 2023 05:34:26 -0500 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EEAB4ED1 for ; Mon, 6 Mar 2023 02:33:56 -0800 (PST) Received: by mail-lf1-x136.google.com with SMTP id s22so12031357lfi.9 for ; Mon, 06 Mar 2023 02:33:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678098831; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=fmNRtS1CEm/uDJzkZ1f0BSKkMD9Q2wcT/CCsCEbkRXo=; b=vpkphbcn8JxWHostX65DzWcaioJMJjJxtqgqUmN+BfoPj/JO3H6Af9oldV3ww5LSx9 nPmPI/kGHLbB6Zaq2mYY1uMpkypiSDMBEtK1w47b0LLlW/VO3G4/aLHfiEZOM9EZimUg CAWorAbKBcwAMZqXJk9AekHjHBh4jbPVfams4KJt6BOjW74GYEeBNv0TEfWAKes6D5oc jZzcKH3P+x+9m1C6mFU6GQC3RnNL7KR5yJI60b10NUzyuq51AromlCw8tQYH1TRDXimj Q9d3aEqQ1hyJE1q4a0vSl7R3ax3Ee7n0jtqawZcOqekvBqXzgURqdIHqLEPBwRG0+Sg5 Y2dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678098831; h=content-transfer-encoding:in-reply-to: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=fmNRtS1CEm/uDJzkZ1f0BSKkMD9Q2wcT/CCsCEbkRXo=; b=IhTHVKUlhXBs6xv1b0xVh953KDidU173mk4eWu5oleHOSYu3iT4DliBGK23wwi3SiD 3DN0Ul8s2fx0VfTPz9+u9cHmMWCNUIrAdcH3gRkxMqwGMBGQiqo4WnIglYxUcJHOghPw Tg5tqg8QliabJjh06N9Jy2cxhMsJSwS85xydHRg7azAo5VAxVUXUqNPSWVNoWl3Hwayw 9tmAxzwKBt4L6orBZ8a3AOOFQq36qpk0V0VeSVvhFyDd/oD1cmi/TeAV7KEgh8Es+KTR K0YCSBjxEQXzWnHgFg8TDa2O5kbVKB2NmqzfoORSt1AX3+ppHtBgrqCLD2LWT7oE4o1V POMw== X-Gm-Message-State: AO0yUKUvrDHabEbKILt2nm48Y2duPusIZenNceqpc+unIVob7/UmbDWl dP2xERWJM1iMDyH1i/Y4xCskWA== X-Google-Smtp-Source: AK7set8J/UC3DP97b37EjZFmtBAby/nDZ357HvRL72wE8lshsG+rWFJfF0d/XlxV/i2Iv+S1t1+AsQ== X-Received: by 2002:a19:ae13:0:b0:4e1:13fa:bf07 with SMTP id f19-20020a19ae13000000b004e113fabf07mr2975436lfc.43.1678098831607; Mon, 06 Mar 2023 02:33:51 -0800 (PST) Received: from [192.168.1.101] (abym99.neoplus.adsl.tpnet.pl. [83.9.32.99]) by smtp.gmail.com with ESMTPSA id q15-20020a2e968f000000b00295b2e08b90sm1610795lji.65.2023.03.06.02.33.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Mar 2023 02:33:51 -0800 (PST) Message-ID: Date: Mon, 6 Mar 2023 11:33:49 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 4/6] ARM: dts: qcom: sdx65: Add support for PCIe EP Content-Language: en-US To: Rohit Agarwal , agross@kernel.org, andersson@kernel.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mani@kernel.org, lpieralisi@kernel.org, kw@linux.com, bhelgaas@google.com, manivannan.sadhasivam@linaro.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org References: <1678080302-29691-1-git-send-email-quic_rohiagar@quicinc.com> <1678080302-29691-5-git-send-email-quic_rohiagar@quicinc.com> From: Konrad Dybcio In-Reply-To: <1678080302-29691-5-git-send-email-quic_rohiagar@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6.03.2023 06:25, Rohit Agarwal wrote: > Add support for PCIe Endpoint controller on the Qualcomm SDX65 platform. > > Signed-off-by: Rohit Agarwal > --- > arch/arm/boot/dts/qcom-sdx65.dtsi | 44 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 44 insertions(+) > > diff --git a/arch/arm/boot/dts/qcom-sdx65.dtsi b/arch/arm/boot/dts/qcom-sdx65.dtsi > index 246290d..93ea94e 100644 > --- a/arch/arm/boot/dts/qcom-sdx65.dtsi > +++ b/arch/arm/boot/dts/qcom-sdx65.dtsi > @@ -11,6 +11,7 @@ > #include > #include > #include > +#include > > / { > #address-cells = <1>; > @@ -292,6 +293,44 @@ > status = "disabled"; > }; > > + pcie_ep: pcie-ep@1c00000 { > + compatible = "qcom,sdx65-pcie-ep", "qcom,sdx55-pcie-ep"; > + reg = <0x01c00000 0x3000>, > + <0x40000000 0xf1d>, > + <0x40000f20 0xa8>, > + <0x40001000 0x1000>, > + <0x40200000 0x100000>, > + <0x01c03000 0x3000>; The indentation here seems incorrect. The kernel uses 8-wide tabs. > + reg-names = "parf", "dbi", "elbi", "atu", "addr_space", > + "mmio"; Please turn this into a vertical list, like this: "parf", "dbi", ... > + > + qcom,perst-regs = <&tcsr 0xb258 0xb270>; > + > + clocks = <&gcc GCC_PCIE_AUX_CLK>, > + <&gcc GCC_PCIE_CFG_AHB_CLK>, > + <&gcc GCC_PCIE_MSTR_AXI_CLK>, > + <&gcc GCC_PCIE_SLV_AXI_CLK>, > + <&gcc GCC_PCIE_SLV_Q2A_AXI_CLK>, > + <&gcc GCC_PCIE_SLEEP_CLK>, > + <&gcc GCC_PCIE_0_CLKREF_EN>; The indentation here seems incorrect. > + clock-names = "aux", "cfg", "bus_master", "bus_slave", > + "slave_q2a", "sleep", "ref"; Please turn this into a vertical list too. > + > + interrupts = , > + ; The indentation seems off here. Konrad > + interrupt-names = "global", "doorbell"; > + reset-gpios = <&tlmm 57 GPIO_ACTIVE_LOW>; > + wake-gpios = <&tlmm 53 GPIO_ACTIVE_LOW>; > + resets = <&gcc GCC_PCIE_BCR>; > + reset-names = "core"; > + power-domains = <&gcc PCIE_GDSC>; > + phys = <&pcie0_lane>; > + phy-names = "pciephy"; > + max-link-speed = <3>; > + num-lanes = <2>; > + status = "disabled"; > + }; > + > pcie0_phy: phy@1c07000 { > compatible = "qcom,sdx65-qmp-pcie-phy"; > reg = <0x01c07000 0x1e4>; > @@ -330,6 +369,11 @@ > #hwlock-cells = <1>; > }; > > + tcsr: syscon@1fcb000 { > + compatible = "qcom,sdx65-tcsr", "syscon"; > + reg = <0x01fc0000 0x1000>; > + }; > + > remoteproc_mpss: remoteproc@4080000 { > compatible = "qcom,sdx55-mpss-pas"; > reg = <0x04080000 0x4040>;