Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp129680ybs; Tue, 26 May 2020 05:30:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHux+q2Kiz92UGiXTd7pIfQGroY/JEQXBsh+DJEyHKHps85fqC6Snl9GqTrz0jDrmT7v1G X-Received: by 2002:a17:906:17d1:: with SMTP id u17mr897303eje.242.1590496202775; Tue, 26 May 2020 05:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590496202; cv=none; d=google.com; s=arc-20160816; b=uaVw6eZizzu9247ZknQcgiM0T+iJGgPKH9Yc0Fa0ZvPRkxDYzlYDhz+b29hZKO94HE gKYPpwbjy2IHhd2CyS0/2r4yWUPB065nkr+HL5KHCQ0/1Omo086Gd/GAlww4sa4mIt0g bSPeFguzOWSo2YWz0w3CL/RrVhSuOay7ngZBturFkn44B6WpcfsmPPt0E7b6B+5wpMfC DvzmT2UerUYpT38wdGoYlnkzwCIz9rVhqk7SZm7+5E1BRGJOkmRDYPa5cVBUrtwZPPwQ lY/BvC8qdGxG6GCDRRjGgonIdoulVbvlzXmXLDq7h1g0JzaXmBnnJL8ml19FR+Vpa0BO fOPg== 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=I81WLjlO+wJfSpUGd0siF+h1LRH9XZA+KUvlz5YE7HQ=; b=qo11zDplLWwre68Ff7AmtAcR1KTiQb8sOtQzeLj9xG1Ta5Rz2zRtqt6iPTGNZBQwyh 7k81aSWjqK9cQy6QrT0mlp6bdPD1lKltNbzmMa0NzMw4sfIN6dJlyn0A5+d2alzhUWkf cYZYsVZXTaoTqa57f8DSX/EabRg6wM+21nekGBL9RZXSqJVY4EwETaNiMRcQohj2Eg0A KImTs0RMVHO4hmNE61W0HEGJoeHdNyijZzhtydJ5KlWk41sFWmpYP7HsGplKgwwyR4aM SeWaJ7MpCD8m8TXdVM2F6xYDIa6QglSK7qmC0JiQ0ws0HE3jE/vZDHNU4CQ5mjVrh+OX Fhfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=rMUpl24I; 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 j6si11285348ejs.245.2020.05.26.05.29.39; Tue, 26 May 2020 05:30: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=fail header.i=@flygoat.com header.s=vultr header.b=rMUpl24I; 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 S2388560AbgEZJWi (ORCPT + 99 others); Tue, 26 May 2020 05:22:38 -0400 Received: from vultr.net.flygoat.com ([149.28.68.211]:34270 "EHLO vultr.net.flygoat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388425AbgEZJWi (ORCPT ); Tue, 26 May 2020 05:22:38 -0400 Received: from localhost.localdomain (unknown [142.147.94.151]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 60E4520CF0; Tue, 26 May 2020 09:22:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1590484957; bh=Ke6cPvHXKiPrY2g75japQ2FrKO93C44dRXKjeYxEPWg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rMUpl24If/+8mkwsrw/bpSV6FPS+dZVqxHXbXIXR0OGzseXXu/Ll66WOTRfSdDg4F BuLLdFhK0/oYr7mHwSh62zBUfD14DMczkU1MeKgivX/atv1H03P/HNXp/ZfO4aDqZ5 y/Fe0yA44osE4+WlhaWRIm15c0wdPH2EqTShad60FL21seQGat+SR+ivda4AsUvbya GJAv2k8nOSKW1C/ekrNYJN79fPoOyRH00xhmQqK+Pa/WPGNNGkFKy20QdGDwhNsyWL CIrkHAhYkodQ/A1k9gzbHDL0C1VDGKXI/dtbDub0WXl445INtnJCJFIvSxwDIoM85/ piu33YpZl5Glw== 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 v11 3/5] dt-bindings: Document Loongson PCI Host Controller Date: Tue, 26 May 2020 17:21:14 +0800 Message-Id: <20200526092130.145550-4-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.27.0.rc0 In-Reply-To: <20200526092130.145550-1-jiaxun.yang@flygoat.com> References: <20200427060551.1372591-1-jiaxun.yang@flygoat.com> <20200526092130.145550-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.27.0.rc0