0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/pci/loongson.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Loongson PCI Host Controller
0008
0009 maintainers:
0010 - Jiaxun Yang <jiaxun.yang@flygoat.com>
0011
0012 description: |+
0013 PCI host controller found on Loongson PCHs and SoCs.
0014
0015 allOf:
0016 - $ref: /schemas/pci/pci-bus.yaml#
0017
0018 properties:
0019 compatible:
0020 enum:
0021 - loongson,ls2k-pci
0022 - loongson,ls7a-pci
0023 - loongson,rs780e-pci
0024
0025 reg:
0026 minItems: 1
0027 items:
0028 - description: CFG0 standard config space register
0029 - description: CFG1 extended config space register
0030
0031 ranges:
0032 minItems: 1
0033 maxItems: 3
0034
0035
0036 required:
0037 - compatible
0038 - reg
0039 - ranges
0040
0041 unevaluatedProperties: false
0042
0043 examples:
0044 - |
0045
0046 bus {
0047 #address-cells = <2>;
0048 #size-cells = <2>;
0049 pcie@1a000000 {
0050 compatible = "loongson,rs780e-pci";
0051 device_type = "pci";
0052 #address-cells = <3>;
0053 #size-cells = <2>;
0054
0055 // CPU_PHYSICAL(2) SIZE(2)
0056 reg = <0x0 0x1a000000 0x0 0x2000000>;
0057
0058 // BUS_ADDRESS(3) CPU_PHYSICAL(2) SIZE(2)
0059 ranges = <0x01000000 0x0 0x00004000 0x0 0x00004000 0x0 0x00004000>,
0060 <0x02000000 0x0 0x40000000 0x0 0x40000000 0x0 0x40000000>;
0061 };
0062 };
0063 ...