Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3548636ybz; Mon, 27 Apr 2020 18:19:07 -0700 (PDT) X-Google-Smtp-Source: APiQypJuxSRNqVz1Wo8jodQM1yuf9I8E5eMId59Di9wOe0sr3GvyrXh7P67qeLuP7/8ZXydPA2w7 X-Received: by 2002:aa7:df8d:: with SMTP id b13mr15968556edy.145.1588036747798; Mon, 27 Apr 2020 18:19:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588036747; cv=none; d=google.com; s=arc-20160816; b=TA7VaR7hnM3huK9JtCjxvgU67/4CP6wFSpAnZ3o4ssvtlm2+7eGq+1G+JVkQlPXnBN QxZeegya8bK2BRpY6cFUqKtDy3Qgnu2M6BB5KP7HX3iM239moCEV+m2sSiuXb4IzFtEZ xs3bM5VgFkxHDxoE/bbcWovMgr9v0Cf0rR5HUUTJj4MY8JouIPDJ+o8YYjmbL7HYgHAh qWsbYwYsl9Ofjses3Se2+HGXyIQktIvNBpDiO0/8Nt2b+TSPQ9ZRP9ET4v84YoI3icXw 1cMuQ3SfTgPlXgPZmKssFDbtf3d5QZpegGX764x9TLx9+VFPTqPTVxwE/uaTJZCfCnT+ +kXQ== 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=yuHCc/68sMhszlWSsl+6vg89JLtQVMCQ3RY7W7RoR+E=; b=K/gvb+fVyRNbQvvWjUxlgxhPj1JyFYZ7yF63a32uC+0OLDNy43KYQJ5QkBhkiHAcn3 RoUhsgJwXJHwv5zVB6bz4LuUXurWY+zu0DtQ5aixv1m1G92lv4lMsrwWWfdoJdHCkQVu DViiS2Njcp6hPJEyWAuTyBnpj2sPY07/wL4LVrKRGYtEkbfqd2Bv84s8NO+DgVK+yPK8 A/E0lrUxnQr30pgzEyBE4XXeHEzcKvKAkjcCCHhqvz5nq41jRSj4d9lS8CTV/cc6+9J/ caWKpTwVsBrxvo5yT3gaCRBVbVu0ticAHxuC5RjDxjYIpVpIG4VHfEw7roWJ3rziLmkd WBbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=JSaI3qgq; 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 a6si895994edb.367.2020.04.27.18.18.45; Mon, 27 Apr 2020 18:19:07 -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=JSaI3qgq; 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 S1726421AbgD1BQ6 (ORCPT + 99 others); Mon, 27 Apr 2020 21:16:58 -0400 Received: from vultr.net.flygoat.com ([149.28.68.211]:60302 "EHLO vultr.net.flygoat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726233AbgD1BQ5 (ORCPT ); Mon, 27 Apr 2020 21:16:57 -0400 Received: from localhost.localdomain (unknown [IPv6:2001:da8:20f:4430:250:56ff:fe9a:7470]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 2861E2049E; Tue, 28 Apr 2020 01:16:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1588036617; bh=vwdAevZE7nFNqqKFNytPSJJ+rhVHR7kKUZDeM13xDDY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JSaI3qgqkkEbHX6r9osXSdimlES61/751uHPxzoAqdyP2IpAA2Z2ayswqe0K5VUhi 8Ta1vF5rXvoljKus57URLNqOw7AI5rLhcl3pPdmf350Toc1gOeOWwb7D8pb/0Wq5iO 5VYfMTCXEFUCPbhnJlcwq3+VAMmb2CMQes1SIHTjm5eyuT5n0S3HPu2TYcQSfxAV0S B8VGaM5KnQw0RLeP30M+dVLdi4F8iELz9wCk4NacZs9iyjNth7OwPXZ/WhpTUSN7Km ir9HCsADkKid8SJ6QXFDqrKpJ1c3zDADgNznJEsBp1KJEvI9F4PKCpsHbq5NlTOB8l xofqrTGG1kFDA== From: Jiaxun Yang To: linux-mips@vger.kernel.org Cc: Jiaxun Yang , Rob Herring , Bjorn Helgaas , Rob Herring , Thomas Bogendoerfer , Huacai Chen , Lorenzo Pieralisi , Paul Burton , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 3/5] dt-bindings: Document Loongson PCI Host Controller Date: Tue, 28 Apr 2020 09:14:18 +0800 Message-Id: <20200428011429.1852081-4-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200428011429.1852081-1-jiaxun.yang@flygoat.com> References: <20200428011429.1852081-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.0.rc2