Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp358222pxj; Thu, 24 Jun 2021 00:28:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzInAFXpRsZp7VrwV5qDUCDDMh0tgzmUWwWWx5XwEL4XguThGjzaqo/EZT68Z601qOGcqy X-Received: by 2002:a17:907:ea6:: with SMTP id ho38mr3857097ejc.435.1624519714178; Thu, 24 Jun 2021 00:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624519714; cv=none; d=google.com; s=arc-20160816; b=itFqKoes+v5H9zTOF9r9Ivc5xvyjvR9J4RrBSSnyY1C7qtKTa6jcE5wW/jGtlXELAa JlvATU5MjkA/InF5cXDO4UThQAhyioadWczaLu7gRT53a1Rusj9zhhwEztnqOxb/9WTN dT0hCtptgSvdCgLfuPzwQHWqicd6Qd1mSeiPDyhqzFELhyJqDkZ6ud9zS966uzfGBzom 3hYicMvWW6a2+MEJXNYpoO4HGRURVOyKWGWRGrqXvgYt1TkTW0hzf5Nt6vyhD8jnxlQU dMVTQa6a5Vo3PtqnnZdsKquQ9l/PkvllrfSuffd9raQrKZQKu5R3SU1bMI653nFA7EIi 6vIA== 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=tWZZNEsBa+VqLgAo3Gq7gGJkOgFpuMHXPqwDUNtQh38RRivCt4h309azmhvDx2Wnmz ahKbG7TNAIXRK2nAjWZYXBjO7UStk7Tvs55izE4wj+5rsuh6b2gNCBGmdW2LMDnrAzj/ /+UOHfZ8279tOGB8tx0NXRWIQchsdAvuRJYVq+BD1E9ubKRPLVjgdMlYRNrjoWF07NO8 CSUAr/8nnfkj/wjJ6XaJC68xOyl5OOIW+SoE3DVwSfuDRkK/VPkifSopZIC6C5bRkpDw KtD9BAtFbI4xDpmoMD4NQ8UN8F79Xhh6gMKPpsJTMUyis6ZDdgFsaP4JxCiso2+5t1V0 82YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lfu5YojM; 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 bx23si1903991ejc.170.2021.06.24.00.28.10; Thu, 24 Jun 2021 00:28:34 -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=lfu5YojM; 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 S231589AbhFXH2Q (ORCPT + 99 others); Thu, 24 Jun 2021 03:28:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231579AbhFXH2P (ORCPT ); Thu, 24 Jun 2021 03:28:15 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6575EC061756 for ; Thu, 24 Jun 2021 00:25:56 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id t13so3979927pgu.11 for ; Thu, 24 Jun 2021 00:25:56 -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=lfu5YojMQmTHg3gKbBaPNCodpOHG+crgoh1W87Qqgd1bef2YmU+vyoXa619lt/HQWt X6tedtfe/oxIG/7AD277TrVM2HuXMC6IgFqqbvGvi3DKzF7Sz2qKkG1xVwi83VbhDkfc sgGzPrlCCOjg4+iaxz+eBQnvSP0rpf+kCyDFdXZyKLb4vKsJhOAXKUeAHHSkD2qGwQWa 9QcjVMgr2P6YeD3y1jSs7GrT0KS1BYLII/7M9IhrH9njIApm3paW4FQPvXbdiz/QUZ2c lCCRLXFE14FrmrdZMa3iMrii1B+mdoFNmMZpXRRw0yyrGv+s1h/q6hS/hmF5qrVOamnt tsoA== 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=AdwRWpCk3Tj2nJ3sTLX3/qtoY9w1KOAd0pK5Xr8n47clVJ40t9nY5o3Fmv9bysqDU2 /BMhJDGzhdPklNUlPXRh1gKfWRhV+JiNwHQqr+e0FUI/isUoUB0doPie12WlzCOsAs7I anaQfjEVBU5tgcL1Yl3PsTDyuXlYZQnk+gs0fyR9B+qJrtr2IFfGjx5L2rT468boSh65 RZ76+8IjfKAvCvwS/oyKH2BLFG1I12fxtXR8GeVIWqq0TdLI667+LM8DilMikchznRO3 h1KU4wzrPVxK8bqIClhcAbBJ1a8C90F+KYC+JYP+3imhpf8pNDsWXMbTkLFPEfHONmUF NRjA== X-Gm-Message-State: AOAM532NxbGXJ4Tka9WBcmzkYZVfToqVkYJ2okz99mcV7ePZcIaLPbOE 2VUAG/VrU+eLPfBjf2+B3hbJ X-Received: by 2002:a65:610c:: with SMTP id z12mr3570736pgu.453.1624519555883; Thu, 24 Jun 2021 00:25:55 -0700 (PDT) Received: from localhost.localdomain ([120.138.12.173]) by smtp.gmail.com with ESMTPSA id g13sm1923802pfv.65.2021.06.24.00.25.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jun 2021 00:25:55 -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 v4 1/3] dt-bindings: pci: Add devicetree binding for Qualcomm PCIe EP controller Date: Thu, 24 Jun 2021 12:55:32 +0530 Message-Id: <20210624072534.21191-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210624072534.21191-1-manivannan.sadhasivam@linaro.org> References: <20210624072534.21191-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