Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp237884pxf; Wed, 31 Mar 2021 23:05:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywGW5CgRDgzWjik2lDczcm9cE7j34NGBJSqtgnEej0NUj6158SO/eq0WXStk/5FNaa5osf X-Received: by 2002:a50:ee95:: with SMTP id f21mr8078594edr.130.1617257102911; Wed, 31 Mar 2021 23:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617257102; cv=none; d=google.com; s=arc-20160816; b=UvxbaJycRgWNXCItY9bNvsUTRpwA3W91HsFCzJmwu8EWeb5+raEgYEb9yYvIxF5d0c lSUqQyrnwcRQ+mIZVeRTGrTzudnFJrfRD1D7yzcelWqrV4w6LG1482o6IjvFRgS3v8Nb FYC6kSlma2Pi/6jyuUAhRs/G1M6kL0Qk99cVKJRS9CeorALk6wezfRMGyMprj47w818P YXumepYiM8f4SBF0l9PVZTJoYC0ApKqiqiwULPRXI9y+T2L4fYSJIqbl9vQo2MxCiKk2 CqhxbjUrYUuH8CCHH7HYNBECi8FC9YOD5W4Qzmt8qVSsPK10Ah+jYremnHX9xZXZUGRj aDOg== 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:to:from :dkim-signature; bh=dzHWDiN1Wjk8roHrncU6culKFNwJPo7qFVNBejhbdf4=; b=NiKW53w7qaYLvU9uAc05R0DRQHrgF4lzgAge/AtDE5Ndrm+rAGrpLj3W0X+zCcswia RzbwcN30mFLTM+VGSzgSeUONTw4jFzIAV+13WoCGTowKjSKHM93eDt9TiG+W0/UZuB3g j2zUVvwiFJwHtnkMl+rutc+xxUfAdi+dh30fi5nGz25VTvZcNCt1DlqvOIUKf7yAz1TD 23sX6LOl2Q6QQ+4Ee9b8wyqrP1xQgGjMMlPiszzhp3nCg5qiNboxnupX+luSZA4cXJcJ TpHk90Zx8YQe66I/Q1ybfPuJCwce9bmE675Vm68ObT6NaRG5oA2uXII1lLoXi+A5kXnN Y+TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=k8eR6Vtk; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ce20si3506714edb.34.2021.03.31.23.04.40; Wed, 31 Mar 2021 23:05:02 -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=@sifive.com header.s=google header.b=k8eR6Vtk; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233557AbhDAGCB (ORCPT + 99 others); Thu, 1 Apr 2021 02:02:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233353AbhDAGBR (ORCPT ); Thu, 1 Apr 2021 02:01:17 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51CCFC0613E6 for ; Wed, 31 Mar 2021 23:01:17 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id v8so461694plz.10 for ; Wed, 31 Mar 2021 23:01:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=dzHWDiN1Wjk8roHrncU6culKFNwJPo7qFVNBejhbdf4=; b=k8eR6VtkN8wT1BSouzItYIwAJdSwTRr7it0UlwPvelXLQvFcYC54FHPNplZN0dDFOG 0qLm8kfXUFYgf4dXNG6SW+ER4jWu3KcBNOX5Z5rVHepsqGfcOyWAYGwoW/1scNNWMmCX rJjthb05E5cEzrU7/e2F4UHqgjiPs0OSjZ/dIE2Gxs+56kbznt45dpOYE4W3K2g2ftnK rhmOQs8++mURWC0q9gJkgVtHazLQRJjOMRhJsXk76QMeWHbH1TV0qhpyNi+mHKQYow0s AlSrSto1iQK9Och9PepOI3B/xUWkDbPge6A+xg2jwrbXLNerdTrY0gqXIKesLwLjPCgD m5/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dzHWDiN1Wjk8roHrncU6culKFNwJPo7qFVNBejhbdf4=; b=R7A3hyGayKZRTcRhDFJt4kVcJfnWX5xV5mQC+EfrR33nTNnn3kphnxt05HqMcd6ep3 d9h6pJCWc1CKaqpIED47jiBsxSxzsJX/1m1j13puJkG6AO6DTZrQYA6Knnun3bRv/zTu SSHuDPqIp6XUZECjcDIT77BoOTxRWpyUoSEwggusTLw5DI2CXds4GaA6x6FBZTxDXGyG q5rsRpD9Rpec5XKEXkoP3dTBnVLaFlk+jndJBt0b5HBNW7fqmahb7rasTW+PGxfIDuUi Ys53TKWhTdgauLDNZyBsT85eU4uqTovKnEa/M37Hwy+M9r9TEtvgNrrq+ftyOpguEYAO ogMQ== X-Gm-Message-State: AOAM532j4P93uVarTMc0Ar0Y8pqyD8h1uOLWs/xlNMWcHB/yvN/csJ+2 +HDM3I2BCSUZTZGf8tr+mqkw/A== X-Received: by 2002:a17:90a:8c08:: with SMTP id a8mr7312649pjo.136.1617256876819; Wed, 31 Mar 2021 23:01:16 -0700 (PDT) Received: from hsinchu02.internal.sifive.com (114-34-229-221.HINET-IP.hinet.net. [114.34.229.221]) by smtp.gmail.com with ESMTPSA id a6sm4037328pfc.61.2021.03.31.23.01.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Mar 2021 23:01:16 -0700 (PDT) From: Greentime Hu To: greentime.hu@sifive.com, paul.walmsley@sifive.com, hes@sifive.com, erik.danie@sifive.com, zong.li@sifive.com, bhelgaas@google.com, robh+dt@kernel.org, aou@eecs.berkeley.edu, mturquette@baylibre.com, sboyd@kernel.org, lorenzo.pieralisi@arm.com, p.zabel@pengutronix.de, alex.dewar90@gmail.com, khilman@baylibre.com, hayashi.kunihiko@socionext.com, vidyas@nvidia.com, jh80.chung@samsung.com, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, helgaas@kernel.org Subject: [PATCH v4 4/6] dt-bindings: PCI: Add SiFive FU740 PCIe host controller Date: Thu, 1 Apr 2021 14:00:52 +0800 Message-Id: <20210401060054.40788-5-greentime.hu@sifive.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210401060054.40788-1-greentime.hu@sifive.com> References: <20210401060054.40788-1-greentime.hu@sifive.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add PCIe host controller DT bindings of SiFive FU740. Signed-off-by: Greentime Hu --- .../bindings/pci/sifive,fu740-pcie.yaml | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/sifive,fu740-pcie.yaml diff --git a/Documentation/devicetree/bindings/pci/sifive,fu740-pcie.yaml b/Documentation/devicetree/bindings/pci/sifive,fu740-pcie.yaml new file mode 100644 index 000000000000..ccb58e5f06d4 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/sifive,fu740-pcie.yaml @@ -0,0 +1,109 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/sifive,fu740-pcie.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SiFive FU740 PCIe host controller + +description: |+ + SiFive FU740 PCIe host controller is based on the Synopsys DesignWare + PCI core. It shares common features with the PCIe DesignWare core and + inherits common properties defined in + Documentation/devicetree/bindings/pci/designware-pcie.txt. + +maintainers: + - Paul Walmsley + - Greentime Hu + +allOf: + - $ref: /schemas/pci/pci-bus.yaml# + +properties: + compatible: + const: sifive,fu740-pcie + + reg: + maxItems: 3 + + reg-names: + items: + - const: dbi + - const: config + - const: mgmt + + num-lanes: + const: 8 + + msi-parent: true + + interrupt-names: + items: + - const: msi + - const: inta + - const: intb + - const: intc + - const: intd + + resets: + description: A phandle to the PCIe power up reset line. + + pwren-gpios: + description: Should specify the GPIO for controlling the PCI bus device power on. + maxItems: 1 + +required: + - dma-coherent + - num-lanes + - interrupts + - interrupt-names + - interrupt-parent + - interrupt-map-mask + - interrupt-map + - clock-names + - clocks + - resets + - pwren-gpios + - reset-gpios + +unevaluatedProperties: false + +examples: + - | + bus { + #address-cells = <2>; + #size-cells = <2>; + #include + + pcie@e00000000 { + compatible = "sifive,fu740-pcie"; + #address-cells = <3>; + #size-cells = <2>; + #interrupt-cells = <1>; + reg = <0xe 0x00000000 0x0 0x80000000>, + <0xd 0xf0000000 0x0 0x10000000>, + <0x0 0x100d0000 0x0 0x1000>; + reg-names = "dbi", "config", "mgmt"; + device_type = "pci"; + dma-coherent; + bus-range = <0x0 0xff>; + ranges = <0x81000000 0x0 0x60080000 0x0 0x60080000 0x0 0x10000>, /* I/O */ + <0x82000000 0x0 0x60090000 0x0 0x60090000 0x0 0xff70000>, /* mem */ + <0x82000000 0x0 0x70000000 0x0 0x70000000 0x0 0x1000000>, /* mem */ + <0xc3000000 0x20 0x00000000 0x20 0x00000000 0x20 0x00000000>; /* mem prefetchable */ + num-lanes = <0x8>; + interrupts = <56>, <57>, <58>, <59>, <60>, <61>, <62>, <63>, <64>; + interrupt-names = "msi", "inta", "intb", "intc", "intd"; + interrupt-parent = <&plic0>; + interrupt-map-mask = <0x0 0x0 0x0 0x7>; + interrupt-map = <0x0 0x0 0x0 0x1 &plic0 57>, + <0x0 0x0 0x0 0x2 &plic0 58>, + <0x0 0x0 0x0 0x3 &plic0 59>, + <0x0 0x0 0x0 0x4 &plic0 60>; + clock-names = "pcie_aux"; + clocks = <&prci PRCI_CLK_PCIE_AUX>; + resets = <&prci 4>; + pwren-gpios = <&gpio 5 0>; + reset-gpios = <&gpio 8 0>; + }; + }; -- 2.30.2