Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4936083pxv; Tue, 29 Jun 2021 20:48:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQ2Pl4fJd26kTPlJT4lDfpYVBsbPeFNOTQZlHqqLVEKS3Wuhy2xwygUdwHW+sgxfYefspT X-Received: by 2002:a92:b703:: with SMTP id k3mr1255392ili.32.1625024912099; Tue, 29 Jun 2021 20:48:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625024912; cv=none; d=google.com; s=arc-20160816; b=opZRSbdGUdhgtHnFBDC6WgVAFheWg6puIOQmIUxKt7fzlp2oJDqYYisArHXcs4qvOx adfuKLkWK/byiLeqSdDPcp+WhEDsWY8PkOla0AF8Ekt4rnwZrMdO4NwMwPyW1ivLM4k+ Eizu1f1/JfjWAqnsqs3t+Q9iyBgdAgdCt/OnRlKasm8/5ThYI1TZk1gYqe0NH5SsdOcf Hl7cEkAqwd7sNVGXAaPlni7W49FqWExM3R89PYUtypn7biWvwvcmiVbRqvVbLgMqR2Fr Q9Pa/YrNpQVUBMQ6494FPSTPZsji+KQ4KsBRBT9RXBNr8n9wjm6D/PNl2bONBBDIf+zn QtsQ== 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=lk4v2x/QqDg9VeTcKEZY8wInplQhrFZZd/r+aGJnAFE=; b=cqDhVnu3z8w/ohzCLZl87UO9PtjKKr6PqWapqLDf35QrVBuquJjU/c1VvutITcFSfa hCny/5QamqZRWgVSYIVchL7zMljkJIQ5PtTd8vcBKwsloPCjhE89UgzbOuPhCUBTXbsv UUCt8iHwzpbYnTSkHvjtyoqeHpVdd2s4z7dGzkXRqms0ymgBsGSH7ekoBw9A4gvcdjTN eRKQwfU5MsEa57vK6yD2Fc0ljKEPb8+uA9T6Cz7PRmp1zarZ5NXaZNZTfljMIfppmaAx dB3Q0XyAstO1VwAku+LzhbaMtulMOSfoLd6lDRvmxJX5BHkAIii9K1sYaVZKMm408vpK aOPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BOV8t7Az; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j16si20131079ioo.11.2021.06.29.20.48.18; Tue, 29 Jun 2021 20:48:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BOV8t7Az; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233233AbhF3Dtr (ORCPT + 99 others); Tue, 29 Jun 2021 23:49:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233390AbhF3Dtp (ORCPT ); Tue, 29 Jun 2021 23:49:45 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47062C061766 for ; Tue, 29 Jun 2021 20:47:16 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id a2so884476pgi.6 for ; Tue, 29 Jun 2021 20:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lk4v2x/QqDg9VeTcKEZY8wInplQhrFZZd/r+aGJnAFE=; b=BOV8t7AzM2wz4Ui9hC87plXuwzN/9OUESDD9ui6f2etys72uYRQxd9QzqIapcvoj0d YLpBlqfFiDdJaixGI1hJZ/JfUttrnjpJ0/n08ekyK7bSC2t2meLJRvQwCmq9LsclMXOv EkNkEKilwg9La2NBhQy0XForS09WdYZySL7TWpcKDzQ9COZ8GQ5IIoRnZkFFLKqTLdi/ weAY1DW+RfaU2zslHX5i59e/oShIb/LQNt77PnyOSnW/RiRsmOe/57SMZCcD8digGKVs uj1naRqfQLa/Kk69QcZrP1L4bJFjlnnqfdzwZBuCRHk4ipMCeU2x0+YTYlhJsGtxZJBP QUuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lk4v2x/QqDg9VeTcKEZY8wInplQhrFZZd/r+aGJnAFE=; b=Au/T4fDKSgVophqquVVoxwqXZGjf0RhxZ2YQqKziWP4w5SxNi72Kt7W1Rn9nGxOgaP 2dZKot/urrNpnQaPhGw/Ga2waY8KIRXgMQt0iLh7qIG23qw/zeAMncktYGcJZZNJYLc2 EKXTQ8ZuvgMgCDxy25ZUICMJMmrKH9D5e0owzr+HgTfyBLD9N5bzb7UZGJU3sKY6CZMg ZT2t0+PN1EDouMTSP0hdkyKPkCHlTPZTp45of/BJyWfKoNMhEdMMVfdhJhVu7FGR8w/w iiY4STJyNZ4vvPDov0YFS/2hgMxSnSaEssrUJWnU7hGCELq4EQEg8f7zfcOhBmG61Mu7 XFBQ== X-Gm-Message-State: AOAM531iHHs3fBNI9gICkwzp50hokBFBx+THaR4CZBBhOnWBt6MZumCM s6FTcNwrA/NULwG7eWVrpzDX X-Received: by 2002:a05:6a00:1741:b029:303:3cc2:b44a with SMTP id j1-20020a056a001741b02903033cc2b44amr33890245pfc.19.1625024835754; Tue, 29 Jun 2021 20:47:15 -0700 (PDT) Received: from localhost.localdomain ([120.138.13.102]) by smtp.gmail.com with ESMTPSA id j15sm19565081pfh.194.2021.06.29.20.47.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Jun 2021 20:47:15 -0700 (PDT) From: Manivannan Sadhasivam To: kishon@ti.com, lorenzo.pieralisi@arm.com, bhelgaas@google.com, robh@kernel.org Cc: devicetree@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, hemantk@codeaurora.org, smohanad@codeaurora.org, bjorn.andersson@linaro.org, sallenki@codeaurora.org, skananth@codeaurora.org, vpernami@codeaurora.org, vbadigan@codeaurora.org, Manivannan Sadhasivam Subject: [PATCH v5 1/3] dt-bindings: pci: Add devicetree binding for Qualcomm PCIe EP controller Date: Wed, 30 Jun 2021 09:16:51 +0530 Message-Id: <20210630034653.10260-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210630034653.10260-1-manivannan.sadhasivam@linaro.org> References: <20210630034653.10260-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add devicetree binding for Qualcomm PCIe EP controller used in platforms like SDX55. The EP controller is based on the Designware core with Qualcomm specific wrappers. Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/pci/qcom,pcie-ep.yaml | 160 ++++++++++++++++++ 1 file changed, 160 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml b/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml new file mode 100644 index 000000000000..9110d33809cd --- /dev/null +++ b/Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml @@ -0,0 +1,160 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/qcom,pcie-ep.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm PCIe Endpoint Controller binding + +maintainers: + - Manivannan Sadhasivam + +allOf: + - $ref: "pci-ep.yaml#" + +properties: + compatible: + 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 + + reg-names: + items: + - const: parf + - const: dbi + - const: elbi + - const: atu + - const: addr_space + - const: mmio + + 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 + - description: PCIe Sleep clock + - description: PCIe Reference clock + + clock-names: + items: + - const: aux + - const: cfg + - const: bus_master + - const: bus_slave + - const: slave_q2a + - const: sleep + - const: ref + + qcom,perst-regs: + description: Reference to a syscon representing TCSR followed by the two + offsets within syscon for Perst enable and Perst separation + enable registers + $ref: "/schemas/types.yaml#/definitions/phandle-array" + items: + minItems: 3 + maxItems: 3 + + interrupts: + items: + - description: PCIe Global interrupt + - description: PCIe Doorbell interrupt + + interrupt-names: + items: + - const: global + - const: doorbell + + reset-gpios: + description: GPIO that is being used as PERST# input signal + maxItems: 1 + + wake-gpios: + description: GPIO that is being used as WAKE# output signal + maxItems: 1 + + resets: + maxItems: 1 + + reset-names: + const: core + + power-domains: + maxItems: 1 + + phys: + maxItems: 1 + + phy-names: + const: pciephy + + num-lanes: + default: 2 + +required: + - compatible + - reg + - reg-names + - clocks + - clock-names + - qcom,perst-regs + - interrupts + - interrupt-names + - reset-gpios + - resets + - reset-names + - power-domains + +unevaluatedProperties: false + +examples: + - | + #include + #include + #include + pcie_ep: pcie-ep@40000000 { + compatible = "qcom,sdx55-pcie-ep"; + reg = <0x01c00000 0x3000>, + <0x40000000 0xf1d>, + <0x40000f20 0xc8>, + <0x40001000 0x1000>, + <0x40002000 0x1000>, + <0x01c03000 0x3000>; + reg-names = "parf", "dbi", "elbi", "atu", "addr_space", + "mmio"; + + 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_CLK>; + clock-names = "aux", "cfg", "bus_master", "bus_slave", + "slave_q2a", "sleep", "ref"; + + qcom,perst-regs = <&tcsr 0xb258 0xb270>; + + interrupts = , + ; + interrupt-names = "global", "doorbell"; + reset-gpios = <&tlmm 57 GPIO_ACTIVE_HIGH>; + 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"; + }; -- 2.25.1