Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1646508lqg; Sun, 3 Mar 2024 21:49:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW7g9LWj4lDoSKsG88p0dgBKyhxf/Hp+WoMvIp5j1ZDctUPnCzpApCqJxxLSl6hrc3RH5nu/AMb242UZ4djf1C/9bpR5YP6lpbFp9W6/g== X-Google-Smtp-Source: AGHT+IG+I1Dlwi7K2OtHWlnP/JjIROq4DBYSsAUls0qohx2Bth7THS572G/e5bSw0cjJYqxZvdA4 X-Received: by 2002:ae9:e40a:0:b0:788:1a65:ca4c with SMTP id q10-20020ae9e40a000000b007881a65ca4cmr6288263qkc.40.1709531392466; Sun, 03 Mar 2024 21:49:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709531392; cv=pass; d=google.com; s=arc-20160816; b=wJfRTvq++CzeXKxtYxzN8mlEJHR+emVYiqEEdoxB/sZl6219GlB3KirNadRpMhDOlM tDtm8urASVU4cNuuuV5OQ/zT+OArcsgUpq5u8sJSTWDKZl/7EuVY6shUAmYPOmU3mrUp v01WdmwXQdLocVznmni5rh4XiULD39gtV+Mm77ZxEiDAVEW6tcBBZKKyuH+FE2oiJgT+ NNLzLVRK+GKVcy4akVaxz449Rfx7wKYdJNVQM+/dUmFMEHsbCJwH6C+VnTve47PDoyes CBJqDgFCrsFjrHccvf8jdn4vCaCtEUz6LNsludEdLV+Zir3aq8woMRVPz4j1S15WDjXg 7kFQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eUCm3cHKUrzsBg+iebnTzHjVpJQ4bu98MP5OPl6dous=; fh=18PfpuGJHWcCMovD6R3BBkWr+SWbxlV+fO40Znw50tI=; b=Xlx0v5sAnpn2dnKToGST1SD3Lp/C8sHarTganKazUSUWlLXpCaPRM+gvmt0NmnY9bI 9YD4F2j/cwUFkxyoAL42hr+eqNAHxXS9BvSlx0rJ6RYGeyOddJlu+T+mi2GThg2+NVpX HiKa2EKJ4jotres7E8OBROUC7xXxJh6i6Bjq8Gd2Jn0Tr0+Is4cusrhbeuzAnaRrSZaH w2pzPnsplXhYOE1kYqdp8LClPrQ532h5Tyk1/wYnscAKROMv2X1gogOexUEMOvXH1Ss8 ii9MmUiUwtiPGYQIIPEe7KeD3wpGIos0+/wDeKLorjdYUiq0aNX4IjSZQ+8HK1prlAA3 sgnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="xW8T/5sS"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-90066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id g8-20020a05620a108800b0078826037963si1939574qkk.642.2024.03.03.21.49.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 21:49:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="xW8T/5sS"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-90066-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90066-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C3CBE1C20F7A for ; Mon, 4 Mar 2024 05:49:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 253A6C13D; Mon, 4 Mar 2024 05:49:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xW8T/5sS" Received: from mail-oi1-f174.google.com (mail-oi1-f174.google.com [209.85.167.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57A43BA3F for ; Mon, 4 Mar 2024 05:49:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709531382; cv=none; b=W+7gOXO3Fw769+jHpm4e83iulX70RkwjHGvd6LP/XrpG0YA9wkIfVBrXwMUtXWOF+CsxR0SYq5w9ttyQVgbaPm66ZFjkGBstT3PDNKcr9M/DrDVR/XRId2GeD6RuCPIIxzVw9fSZWfnrlLabdrIHAOcn/8Q2R6C9gAt/mXNMHZA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709531382; c=relaxed/simple; bh=0lWW9AfozQqKBDt6Ue4iDfWuXKOlKqj5H3BkAFd4JsI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=F/TRpnRFDp8e/5gvkBNNM6vAzTxb1o8XHihkUZQ5D6ZEHJm1jULHIKmXS7h/SnyQUuIVtBNDcEvSS2gwFiqMCQlKxC49QUT8s1SXHWApOj6wKrnjLhMWQEtKVwJGbCdtwHx1kukIp0e4dDW6Fi+2vAGL3TKwtg11gzvr7hiezDk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=xW8T/5sS; arc=none smtp.client-ip=209.85.167.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oi1-f174.google.com with SMTP id 5614622812f47-3c1ea5b42e7so587065b6e.2 for ; Sun, 03 Mar 2024 21:49:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709531379; x=1710136179; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=eUCm3cHKUrzsBg+iebnTzHjVpJQ4bu98MP5OPl6dous=; b=xW8T/5sSd9tSjpPLOEOdcQTshvw8nhP8AJzWHI/vhdp+l34IZdL1+69QSOfwxSjx90 /YyAGTsLnadLzgzX6ImgKBwl2YnJ/OV1+XzQcH8vuOKfdi3Fy9eu9HLhwpvUaKq4Pq21 pXtIDEHHqlLc2P+7TC/FFTn+WG2r1FXR9TORbD0f5YQ4OqFv6xfAiWQhaj5wjYTAGt0s +nCzAVG91cK07J1p/jOIHnG8V6ebOP8eZTfSq3zOaMhD0sYgzNDlKpg9vNneHI1LU6vg gcTnD9rxMdNlTr0ZUPyZpuAe8ie24uUR2eq4u+9bSbY9zmAWLABxo6si1hMiu9QXbg5t mBhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709531379; x=1710136179; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eUCm3cHKUrzsBg+iebnTzHjVpJQ4bu98MP5OPl6dous=; b=OKbZ/fUQvOMoIQenI8MzThQk9Z+OnSbxLTx27/KdJ91Mnq7Q13oK+0ex7pFoiRek1v hdbthRXVdvIto+ZFoRC7UAnbcFJpCEPB/UZkyFTd3gqIhdAYyb3KsvN1Nj35bUHnNHx5 firSXYIWH9AKNF+NQggkUd7YMPKtnCweDyZxIjs7+5ssodm+JSB8/A7396CeH2vA/CfI iiLd6RoPM2x9J+1AotG1DMxP7iZdivzkQYC36JPDyLe65IFvSD3IgKMM7pVqeoCYbloi ezXibVDzmX/pFjT/9RZtBpXDo3pWY18p+5RO2PmCALSfQ/jCZn7RVyam8/VeU9TJGUn6 J6Lw== X-Forwarded-Encrypted: i=1; AJvYcCXZdE9HrBB+sVkQTscDFSmW96oX7sMPYtYeaROGUcW57OboPdQYOom1T1uZGUlVGC1ePOvOYuH3oNWKbdbmJAecqR6ngMts9Cpdeg/H X-Gm-Message-State: AOJu0YyftjWNbVMpCjs4ZFXTaayLX4qavlOgmq0+hXhGfIGFvRp9mFtE 6CJW4fGNvTzdvv+mILGby8LFD9IbkVHgQe30VUBFNwK6FuRhMSoCJYGRtl4lOA== X-Received: by 2002:a05:6808:1782:b0:3c1:d903:fd40 with SMTP id bg2-20020a056808178200b003c1d903fd40mr8727895oib.55.1709531379437; Sun, 03 Mar 2024 21:49:39 -0800 (PST) Received: from thinkpad ([117.207.30.163]) by smtp.gmail.com with ESMTPSA id p23-20020aa78617000000b006e091a254adsm6480796pfn.30.2024.03.03.21.49.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 21:49:39 -0800 (PST) Date: Mon, 4 Mar 2024 11:19:32 +0530 From: Manivannan Sadhasivam To: Abel Vesa Cc: Bjorn Andersson , Konrad Dybcio , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Conor Dooley , linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v4 1/2] dt-bindings: PCI: qcom: Document the X1E80100 PCIe Controller Message-ID: <20240304054932.GB2647@thinkpad> References: <20240301-x1e80100-pci-v4-0-7ab7e281d647@linaro.org> <20240301-x1e80100-pci-v4-1-7ab7e281d647@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240301-x1e80100-pci-v4-1-7ab7e281d647@linaro.org> On Fri, Mar 01, 2024 at 06:59:01PM +0200, Abel Vesa wrote: > Add dedicated schema for the PCIe controllers found on X1E80100. > > Signed-off-by: Abel Vesa Acked-by: Manivannan Sadhasivam - Mani > --- > .../bindings/pci/qcom,pcie-x1e80100.yaml | 165 +++++++++++++++++++++ > 1 file changed, 165 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie-x1e80100.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie-x1e80100.yaml > new file mode 100644 > index 000000000000..1074310a8e7a > --- /dev/null > +++ b/Documentation/devicetree/bindings/pci/qcom,pcie-x1e80100.yaml > @@ -0,0 +1,165 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pci/qcom,pcie-x1e80100.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm X1E80100 PCI Express Root Complex > + > +maintainers: > + - Bjorn Andersson > + - Manivannan Sadhasivam > + > +description: > + Qualcomm X1E80100 SoC (and compatible) PCIe root complex controller is based on > + the Synopsys DesignWare PCIe IP. > + > +properties: > + compatible: > + const: qcom,pcie-x1e80100 > + > + reg: > + minItems: 5 > + maxItems: 6 > + > + reg-names: > + minItems: 5 > + items: > + - const: parf # Qualcomm specific registers > + - const: dbi # DesignWare PCIe registers > + - const: elbi # External local bus interface registers > + - const: atu # ATU address space > + - const: config # PCIe configuration space > + - const: mhi # MHI registers > + > + clocks: > + minItems: 7 > + maxItems: 7 > + > + clock-names: > + items: > + - const: aux # Auxiliary clock > + - const: cfg # Configuration clock > + - const: bus_master # Master AXI clock > + - const: bus_slave # Slave AXI clock > + - const: slave_q2a # Slave Q2A clock > + - const: noc_aggr # Aggre NoC PCIe AXI clock > + - const: cnoc_sf_axi # Config NoC PCIe1 AXI clock > + > + interrupts: > + minItems: 8 > + maxItems: 8 > + > + interrupt-names: > + items: > + - const: msi0 > + - const: msi1 > + - const: msi2 > + - const: msi3 > + - const: msi4 > + - const: msi5 > + - const: msi6 > + - const: msi7 > + > + resets: > + minItems: 1 > + maxItems: 2 > + > + reset-names: > + minItems: 1 > + items: > + - const: pci # PCIe core reset > + - const: link_down # PCIe link down reset > + > +allOf: > + - $ref: qcom,pcie-common.yaml# > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + #include > + > + soc { > + #address-cells = <2>; > + #size-cells = <2>; > + > + pcie@1c08000 { > + compatible = "qcom,pcie-x1e80100"; > + reg = <0 0x01c08000 0 0x3000>, > + <0 0x7c000000 0 0xf1d>, > + <0 0x7c000f40 0 0xa8>, > + <0 0x7c001000 0 0x1000>, > + <0 0x7c100000 0 0x100000>, > + <0 0x01c0b000 0 0x1000>; > + reg-names = "parf", "dbi", "elbi", "atu", "config", "mhi"; > + ranges = <0x01000000 0x0 0x00000000 0x0 0x60200000 0x0 0x100000>, > + <0x02000000 0x0 0x60300000 0x0 0x60300000 0x0 0x3d00000>; > + > + bus-range = <0x00 0xff>; > + device_type = "pci"; > + linux,pci-domain = <0>; > + num-lanes = <2>; > + > + #address-cells = <3>; > + #size-cells = <2>; > + > + clocks = <&gcc GCC_PCIE_4_AUX_CLK>, > + <&gcc GCC_PCIE_4_CFG_AHB_CLK>, > + <&gcc GCC_PCIE_4_MSTR_AXI_CLK>, > + <&gcc GCC_PCIE_4_SLV_AXI_CLK>, > + <&gcc GCC_PCIE_4_SLV_Q2A_AXI_CLK>, > + <&gcc GCC_CFG_NOC_PCIE_ANOC_NORTH_AHB_CLK>, > + <&gcc GCC_CNOC_PCIE_NORTH_SF_AXI_CLK>; > + clock-names = "aux", > + "cfg", > + "bus_master", > + "bus_slave", > + "slave_q2a", > + "noc_aggr", > + "cnoc_sf_axi"; > + > + dma-coherent; > + > + interrupts = , > + , > + , > + , > + , > + , > + , > + ; > + interrupt-names = "msi0", "msi1", "msi2", "msi3", > + "msi4", "msi5", "msi6", "msi7"; > + #interrupt-cells = <1>; > + interrupt-map-mask = <0 0 0 0x7>; > + interrupt-map = <0 0 0 1 &intc 0 0 0 149 IRQ_TYPE_LEVEL_HIGH>, /* int_a */ > + <0 0 0 2 &intc 0 0 0 150 IRQ_TYPE_LEVEL_HIGH>, /* int_b */ > + <0 0 0 3 &intc 0 0 0 151 IRQ_TYPE_LEVEL_HIGH>, /* int_c */ > + <0 0 0 4 &intc 0 0 0 152 IRQ_TYPE_LEVEL_HIGH>; /* int_d */ > + > + interconnects = <&pcie_noc MASTER_PCIE_4 0 &mc_virt SLAVE_EBI1 0>, > + <&gem_noc MASTER_APPSS_PROC 0 &cnoc_main SLAVE_PCIE_4 0>; > + interconnect-names = "pcie-mem", "cpu-pcie"; > + > + iommu-map = <0x0 &apps_smmu 0x1400 0x1>, > + <0x100 &apps_smmu 0x1401 0x1>; > + > + phys = <&pcie4_phy>; > + phy-names = "pciephy"; > + > + pinctrl-0 = <&pcie0_default_state>; > + pinctrl-names = "default"; > + > + power-domains = <&gcc GCC_PCIE_4_GDSC>; > + > + resets = <&gcc GCC_PCIE_4_BCR>; > + reset-names = "pci"; > + > + perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; > + wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; > + }; > + }; > > -- > 2.34.1 > -- மணிவண்ணன் சதாசிவம்