Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp170084ybb; Tue, 31 Mar 2020 20:10:29 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtP5JH8JCJW9Qr/pNeNUhyBvnKAAFF58WrwkHxnb++aXg+H2irX80X6k7IT9qhk2wr7eQg2 X-Received: by 2002:a9d:d0f:: with SMTP id 15mr15877200oti.161.1585710629279; Tue, 31 Mar 2020 20:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585710629; cv=none; d=google.com; s=arc-20160816; b=CnBd34hNkf0J7pbTtGCIAVhPau2KpJAj6XmhBucStNgRwLnm/ZBO5s02WxmtV9tacz a4+Ufu6pJaU436qv24p9l1UXaJiln4CN1rTpycaGk/ePWqQf3KrA0Ibk+g9owh/ZS5v2 E0czjiqyyRv0W1L21BY02K+Uvxex/thjMScuSJtzN6mwBfhzodsePQJW1aWdwVc36oPI 74bMgDyLdRbiZ2YzL4CbYEeQHwA5gqmwkYSvUJ26THpdvRLqDfv16LMKrv563KSB8WRK eoUAHZMWoLePsc7CvKknJSasyXqS6F1i8ZqPdcicjaRszsnOUtKjc56WEyGfuqpbRESk TDgA== 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:date:subject:message-id:cc:to:from :dkim-signature; bh=oHT243SqhEnlwJmznwvLkEn/AwmbR4FJ1c5fVo13EZM=; b=DsSMZNT9kqHBsoth53wX2vhopDMA0oMyoEYqV8T1Z2o12BYT+6Qymlsv94+k+f7r24 WUYsktirmpaPx+DeVUGp3dT9Ck/3wlKxEib8areQEC34wPiSW6nnCaySExRK1iQ2tA6s EMUr36IW6xibd89cquQJDbcI0aIM0uSE8M2a5/dHpGX9S0PBwwF7WSa+eD68QskgDLfT mwEiCwjWMcYOXzHVvOhMIFEIcTLntNTkWm8y8Ho45r9K/s++cuB5/ZOycOn3Dcoj8tmo 1A+pyq3qo4O30CsJxkQyDvIth+hK+A2dvuYJzDvlb9Fa/NnypPON/fhd+iy89K4B/+Zl +O9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=X11A1BFs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30si241327oth.68.2020.03.31.20.10.16; Tue, 31 Mar 2020 20:10:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=X11A1BFs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731750AbgDADJy (ORCPT + 99 others); Tue, 31 Mar 2020 23:09:54 -0400 Received: from sender3-op-o12.zoho.com.cn ([124.251.121.243]:17813 "EHLO sender3-op-o12.zoho.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731703AbgDADJw (ORCPT ); Tue, 31 Mar 2020 23:09:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1585710560; s=mail; d=flygoat.com; i=jiaxun.yang@flygoat.com; h=From:To:Cc:Message-ID:Subject:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type; bh=oHT243SqhEnlwJmznwvLkEn/AwmbR4FJ1c5fVo13EZM=; b=X11A1BFsafZip2AqAGmsYowNKs5b1HFHI7LNlZ2k2e/8EKKp0EFyyDcetVoXmQ91 /1VMsOW7IlLqg1NteiG3FXzN4RiqBP/ob1msPVcdj8Q9s2ZKUaQl120eKf2RTmlnv8j qgrf2js902OWTeCbxQ/iEzurjUtfXrsSGjbTdw5Y= Received: from localhost.localdomain (39.155.141.144 [39.155.141.144]) by mx.zoho.com.cn with SMTPS id 1585710558237311.0139215144561; Wed, 1 Apr 2020 11:09:18 +0800 (CST) From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Bjorn Helgaas , Rob Herring , Thomas Bogendoerfer , Huacai Chen , Lorenzo Pieralisi , Andrew Murray , Paul Burton , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: <20200401030658.1174045-4-jiaxun.yang@flygoat.com> Subject: [PATCH v2 3/5] dt-bindings: Document Loongson PCI Host Controller Date: Wed, 1 Apr 2020 11:06:47 +0800 X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200401030658.1174045-1-jiaxun.yang@flygoat.com> References: <20200401030658.1174045-1-jiaxun.yang@flygoat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoCNMailClient: External Content-Type: text/plain; charset=utf8 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 --- .../devicetree/bindings/pci/loongson.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/pci/loongson.yaml diff --git a/Documentation/devicetree/bindings/pci/loongson.yaml b/Document= ation/devicetree/bindings/pci/loongson.yaml new file mode 100644 index 000000000000..2995437ef61a --- /dev/null +++ b/Documentation/devicetree/bindings/pci/loongson.yaml @@ -0,0 +1,57 @@ +# 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,rs780e-pci + - const: loongson,ls7a-pci + - const: loongson,ls2k-pci + + reg: + minItems: 1 + maxItems: 2 + items: + - description: CFG0 standard config space register + - description: CFG1 extended config space register + + ranges: + maxItems: 3 + + +required: + - compatible + - reg + - ranges + +examples: + - | + + bus { + #address-cells =3D <2>; + #size-cells =3D <2>; + pcie@40000000 { + compatible =3D "loongson,rs780e-pci"; + device_type =3D "pci"; + #address-cells =3D <3>; + #size-cells =3D <2>; + + reg =3D <0 0x1a000000 0 0x0200000>; + ranges =3D <0x02000000 0 0x40000000 0 0x40000000 0 0x40000000>= ; + }; + }; +... --=20 2.26.0.rc2