^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) %YAML 1.2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) ---
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) $id: http://devicetree.org/schemas/pci/loongson.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) $schema: http://devicetree.org/meta-schemas/core.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) title: Loongson PCI Host Controller
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) maintainers:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) - Jiaxun Yang <jiaxun.yang@flygoat.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) description: |+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) PCI host controller found on Loongson PCHs and SoCs.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) allOf:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) - $ref: /schemas/pci/pci-bus.yaml#
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) compatible:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) oneOf:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) - const: loongson,ls2k-pci
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) - const: loongson,ls7a-pci
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) - const: loongson,rs780e-pci
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) reg:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) minItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) maxItems: 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) items:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) - description: CFG0 standard config space register
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) - description: CFG1 extended config space register
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) ranges:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) minItems: 1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) maxItems: 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) required:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) - compatible
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) - reg
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) - ranges
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) unevaluatedProperties: false
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) - |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) bus {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #address-cells = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) #size-cells = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) pcie@1a000000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) compatible = "loongson,rs780e-pci";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) device_type = "pci";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) #address-cells = <3>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #size-cells = <2>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) // CPU_PHYSICAL(2) SIZE(2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) reg = <0x0 0x1a000000 0x0 0x2000000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) // BUS_ADDRESS(3) CPU_PHYSICAL(2) SIZE(2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) ranges = <0x01000000 0x0 0x00004000 0x0 0x00004000 0x0 0x00004000>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) <0x02000000 0x0 0x40000000 0x0 0x40000000 0x0 0x40000000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) ...