Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1326420ybk; Thu, 14 May 2020 06:21:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyW0EFRvIvaxtGT8Bz2cdWhsrK+FgZdhwvo1UIpVelXJG4tfwhrPqN7sK8jYu54O9xo1MUd X-Received: by 2002:a50:9f26:: with SMTP id b35mr3755648edf.98.1589462496245; Thu, 14 May 2020 06:21:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589462496; cv=none; d=google.com; s=arc-20160816; b=M+rHVdyztMA58mPesbZuvnfeTFnUBrYO0iLYI8hSv369tgM3CurlrNFx9XpCNX8Q0v TzMMp4QftbCFHd/40gU05IWS3sa0fCyQiMuDAJZ2rpdyzJfLH2Y2J88kJPaS3OIyiruB XxOAD1YeKlQb42JLcLOYjNustsXqqEL2YtAK5LnVtoJAVfBcN++YQlcbSQ15ZQMVkWTT jMcLIXV/5f6GN9sPe8N8EdRv5WLqP4+JbxjRrVW0/9wZiwt4NDKa7xvnkNviR2gF0PCa x+xbselWnr55vYwYgsRJB6/UzIKAo8HE57OyYOq/4FxkCu/1rPc9R7BThTSEctXYwAoL 4W5g== 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=NyHU5lm9doThVgbHZoshfkxV5hkNWWjDE2i1ImRjrF+mV8EPhnY40I05PM4wsk8zKp PfFWqFBJbh4bspeUNiybOicJaJB+ANudSR1zs14iqwgLtUud9EphoOpcOyHujE/pYrL6 8zY7qHhnqJsYjPR6AR8kJuHQoN2oW/Z3kUH3oAtaQkpFCRUalFEXKHwnY0pdhIAuypwV uKZEd2Igk5HKzriFiqifZ9J7uJ8WLwMqDnhrv1aG4sOIlc9KUFRM75DzsUscrsD+Sd3s ztuwcb9Fe9iAmxjpmIkViiIs86KhbEo/IMAuh1YsM2qwfGqDSiuKxGG8coSzhBBqGCjd KOtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=kBohED52; 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 si17si1850360ejb.288.2020.05.14.06.21.13; Thu, 14 May 2020 06:21: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=kBohED52; 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 S1727819AbgENNR3 (ORCPT + 99 others); Thu, 14 May 2020 09:17:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726037AbgENNR3 (ORCPT ); Thu, 14 May 2020 09:17:29 -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 397D6C061A0C; Thu, 14 May 2020 06:17:29 -0700 (PDT) Received: from localhost.localdomain (unknown [142.147.94.151]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id 9AA9C204A8; Thu, 14 May 2020 13:17:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1589462249; bh=Mn6Bj99R7IROKyQOr3uNUsAxTtMjRS62SMsOKFT4n9Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kBohED52D44WfEN/EokUpmszPVWqHUnaMB5UDbeYXwDgLPLmp38nRI1GqJ29CIFPz y90VSY9x5OvsCztn/QHKVUawmgtAXIksF5NgwKW4Ybfd1Sgq9Gmik1VyHfkYzAMixf k+OyluF2Bxj1sQUih5+PhA+VbqkuvYu7EO7foAmxxCQ+IId67RYd4dJz1HutS+K3y3 49mbE7EsjDGKSdAlupOfwsD5GSgp48BGsQwlA1W8nAosmJ4oESUAiD8J3CVNZ/9ElI QGmstKraNx3iH4BqMLagBLwM/d6iiqmvSLHMWk9F64u3qrQWjDHPpmcpI3jgdhylxM 6PRes0zwaDq0g== 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 v10 3/5] dt-bindings: Document Loongson PCI Host Controller Date: Thu, 14 May 2020 21:16:39 +0800 Message-Id: <20200514131650.3587281-3-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200514131650.3587281-1-jiaxun.yang@flygoat.com> References: <20200427060551.1372591-1-jiaxun.yang@flygoat.com> <20200514131650.3587281-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