Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1570898ybj; Fri, 8 May 2020 04:37:26 -0700 (PDT) X-Google-Smtp-Source: APiQypJElGPMgbqNnn6oESFFqHO5QQ4F6oVUSleGIKcr60B0AaTnZR/DLOCCEyLQZ5APeAAyD4bh X-Received: by 2002:a17:906:4907:: with SMTP id b7mr1374360ejq.279.1588937846767; Fri, 08 May 2020 04:37:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588937846; cv=none; d=google.com; s=arc-20160816; b=0TTNqY/jHwJ5VPq/439+AWGukBjdSql7Gc40H3QY/7KzdEJRE9TLH1KPyXaAlzVdkV dCX8qgYY31PyUqSt6QLy6OZdumI3jtyOsuJqhFN40lN920xdBuQKbLh5Dxv881XJA5ea Sw29nfp9EeDvsD1+Pc37POBxLhlU2mW+N3i0t3891YdqZDQB5flAb0+a5W3+A33IORAa BeQj+DhtwR58HrrthAK76EOeFQcVImYTirVuBzlhaCk/Y3fLBRPCHLMWeQfP4a19OQ4a el1qIWCl8sJTsTnyzjTW1pql52F1gTBJeOhYxwaEqIrELQk77HlPwtyPd4C4fBu5BQ3u S+BQ== 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=yFRLGHixp7ZHV6uJAOm42pR6Iui1mXzuSF58TA7sXZK5UG05aaX3ib1EBI+XMpvhpn Z5DaL2+cG6CMIvclx90zzVaPoARZKmdERRSD093CUGn5U15xvaZeYVsFDIDjnD8FkjqJ gQc6qwwTyNfE/D+3Xw8Qa+J3RP5AgCDS+c7owd5cAI4nvJPb9jMIXPmhVCqLCmD6gHQK 5/DooT4IYuwJO8z87h/MBmUH+TTAxrWRHK4X3eLEVxHuP+rVeRfYcyyHlMAQnbT1+Xuw ZWVmoftmQxXFWv5L8AcHBbjS6j0apoKUDyzrJqJJrA3i1wzkOxV7dTSIZ1rtnqrSUkRi iqug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@flygoat.com header.s=vultr header.b=OIZo+nfC; 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 r20si788428edc.180.2020.05.08.04.37.02; Fri, 08 May 2020 04:37:26 -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=OIZo+nfC; 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 S1727783AbgEHLfB (ORCPT + 99 others); Fri, 8 May 2020 07:35:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726690AbgEHLfA (ORCPT ); Fri, 8 May 2020 07:35:00 -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 992DAC05BD43; Fri, 8 May 2020 04:35:00 -0700 (PDT) Received: from localhost.localdomain (unknown [142.147.94.151]) by vultr.net.flygoat.com (Postfix) with ESMTPSA id CC75920CE8; Fri, 8 May 2020 11:34:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=flygoat.com; s=vultr; t=1588937700; bh=vwdAevZE7nFNqqKFNytPSJJ+rhVHR7kKUZDeM13xDDY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OIZo+nfC1/j7xIKbHo6jWByl0K0H6zSKbyG03cTu0KevFCHnXPP+AwEO7ZMaBPJ+q uu4LzvdCbG9fwkbhKIP3GzHufi1iL6CtbaFkSrSAQVmN79xLfX2ZH1pisfqKo6L3NF z5ypuTc/TQtgpyzDMpVcEn/4mPci2U9m7woo6qWwgxed/4Z7JR3t1gaR3LrxMDU7vN T8kyqn3MKTgB3hoWZrPbKymErrqvaqMhMk8WbzyloQ9Z+mTk9kqu/+Es0OhkFIRXoU DLh6+T2qgUKChEmR0/BHU9T8UjgnC/NYsdGl1mK+LuZmHrNPdImszfmKY/LVdpreYX svfy74HUxiGaw== From: Jiaxun Yang To: maz@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, linux-mips@vger.kernel.org Subject: [PATCH v8 3/5] dt-bindings: Document Loongson PCI Host Controller Date: Fri, 8 May 2020 19:34:03 +0800 Message-Id: <20200508113414.3091532-3-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200508113414.3091532-1-jiaxun.yang@flygoat.com> References: <20200427060551.1372591-1-jiaxun.yang@flygoat.com> <20200508113414.3091532-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