Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2508473ybk; Tue, 12 May 2020 00:51:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfFsb+5Q5MonUI6IgrQwyWpnkG670uqrywfC5hqw+Y8yIeTjCfa4vKGq5evbCoQFby0TOP X-Received: by 2002:a17:906:fa84:: with SMTP id lt4mr3197950ejb.318.1589269896985; Tue, 12 May 2020 00:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589269896; cv=none; d=google.com; s=arc-20160816; b=TfJjr6IwAekKMWGsFaf2AP+T/6SFMRvccrsVu8bui2sRNh2qegGS8iLbe9RYT7Yd1F Arf1mN5WdZmGHN7lhA9eq6giciC+00IgWNuiG24EIE9WXJeIJsrc2QOFlVWKMcY2QRMQ zQ5l9GhDjWUooa6m/jTi7ltseWBZ9/4gSxdtcuKCPkZq/iBZPz++VRsky/3gN2G3o/mw c9KbUCuNSOt2nEt8yNusFmCnlc5HucnmVRvaFzYIetfuFiZW+LE40/Oi4k2OL9xX7MWZ qGBPRfvWa1YJuvVGCp9EMKrmuuSXgaUGDsXxjP9UjV1/fEjvEMtNl8OdyOuXhbLv6EKq WKjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aOnzKUIO72AC+wb5Qe8HiCgB7oWUWqQoE0lmuC/J3Q0=; b=YRSoZOvvsz7Dzc5RBK4ZWeHNJNrbGr4UADoEJtqnvc7p+zKkp7dzFSc8XQet8jK303 GZL1nXCRl7CXlya08A8ysYzTKaU6Karos7IzyQGrVJaqCdkTUpP6vguxAH7rbYzSy1KH duYL8e8rSNp9rONhczdLfWWoQNXFukiWh4ytctaCFMhr5U3DN+nScYX4FknD0ZDRw527 cHPCGQsbWBx8+KOfWBXLudHtZx5qHhpUtsjF3U+MaOtrrOS1QMzrtdovEuh/kVNjHRqP ZY7GAvoqg8i5bpyJZssnpOOj55WKf/jvBOrCy88J7HyJiRbQXbv0Y3oksw4LI1BjTbk0 4mig== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=UZF2d5zT; 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=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 23si1906161edx.48.2020.05.12.00.51.13; Tue, 12 May 2020 00:51:36 -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=fail header.i=@flygoat.com header.s=vultr header.b=UZF2d5zT; 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=fail (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729033AbgELHrg (ORCPT + 99 others); Tue, 12 May 2020 03:47:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725823AbgELHrf (ORCPT ); Tue, 12 May 2020 03:47:35 -0400 Received: from vultr.net.flygoat.com (vultr.net.flygoat.com [IPv6:2001:19f0:6001:3633:5400:2ff:fe8c:553]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA14FC061A0C; Tue, 12 May 2020 00:47:35 -0700 (PDT) Received: from localhost.localdomain (unknown [142.147.94.151]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 117E020F18; Tue, 12 May 2020 07:47:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1589269655; bh=Mn6Bj99R7IROKyQOr3uNUsAxTtMjRS62SMsOKFT4n9Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UZF2d5zTygGzyTfBrBs/9LE0BsUUNNUGaydWCMMWdA7roxhh+Xw7wR8S26EKHfnxJ Cch7WXdLh45egidavFN0UgYK1AYGRCV0aAELZFsBF2McjOzisJQGSU69p1bkO8kOvS BjPluwjvEM4hsB/GuJRyex+Z8zFcEt8/2MpXK0+ys3HadcOEmFRt323l7HI8LUxwkk 0stajmHYp5PdrekHyO0bNzmwV9jGOq7eNwbbIX2pHjIOUy5QkN1hKGflM8qlm+VQZJ SABvOKTyqGzDK3OaqzqnAcVmPnEdAG6W0c73kFPpj3bfWfLblU0MWyTEpY5m9tx9uF Oltucas7SCKJQ== From: Jiaxun Yang To: linux-pci@vger.kernel.org Cc: Jiaxun Yang , Rob Herring , Bjorn Helgaas , Rob Herring , Thomas Bogendoerfer , Huacai Chen , Lorenzo Pieralisi , Paul Burton , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v9 3/5] dt-bindings: Document Loongson PCI Host Controller Date: Tue, 12 May 2020 15:43:57 +0800 Message-Id: <20200512074413.3557835-3-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200512074413.3557835-1-jiaxun.yang@flygoat.com> References: <20200427060551.1372591-1-jiaxun.yang@flygoat.com> <20200512074413.3557835-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PCI host controller found on Loongson PCHs and SoCs. Signed-off-by: Jiaxun Yang Reviewed-by: Rob Herring --- .../devicetree/bindings/pci/loongson.yaml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/loongson.yaml diff --git a/Documentation/devicetree/bindings/pci/loongson.yaml b/Documentation/devicetree/bindings/pci/loongson.yaml new file mode 100644 index 000000000000..30e7cf1aeb87 --- /dev/null +++ b/Documentation/devicetree/bindings/pci/loongson.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pci/loongson.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Loongson PCI Host Controller + +maintainers: + - Jiaxun Yang + +description: |+ + PCI host controller found on Loongson PCHs and SoCs. + +allOf: + - $ref: /schemas/pci/pci-bus.yaml# + +properties: + compatible: + oneOf: + - const: loongson,ls2k-pci + - const: loongson,ls7a-pci + - const: loongson,rs780e-pci + + reg: + minItems: 1 + maxItems: 2 + items: + - description: CFG0 standard config space register + - description: CFG1 extended config space register + + ranges: + minItems: 1 + maxItems: 3 + + +required: + - compatible + - reg + - ranges + +examples: + - | + + bus { + #address-cells = <2>; + #size-cells = <2>; + pcie@1a000000 { + compatible = "loongson,rs780e-pci"; + device_type = "pci"; + #address-cells = <3>; + #size-cells = <2>; + + // CPU_PHYSICAL(2) SIZE(2) + reg = <0x0 0x1a000000 0x0 0x2000000>; + + // BUS_ADDRESS(3) CPU_PHYSICAL(2) SIZE(2) + ranges = <0x01000000 0x0 0x00004000 0x0 0x00004000 0x0 0x00004000>, + <0x02000000 0x0 0x40000000 0x0 0x40000000 0x0 0x40000000>; + }; + }; +... -- 2.26.2