Debian Codegraph @

dtschema/schemas/pci/pci-device.yaml

raw
1 # SPDX-License-Identifier: (GPL2.0-only OR BSD-2-Clause)
2 # Copyright 2018 Linaro Ltd.
3 # Copyright 2024 Arm Ltd.
4 %YAML 1.2
5 ---
6 $id: http://devicetree.org/schemas/pci/pci-device.yaml#
7 $schema: http://devicetree.org/meta-schemas/base.yaml#
8
9 title: PCI Device Node Common Properties
10
11 description: |
12 Common properties for PCI device nodes. Based on:
13
14 PCI Bus Binding to: IEEE Std 1275-1994
15 http://www.devicetree.org/open-firmware/bindings/pci/pci2_1.pdf
16
17 maintainers:
18 - Rob Herring <[email protected]>
19
20 properties:
21 compatible:
22 contains:
23 pattern: '^(pci[0-9a-f]{2,4},[0-9a-f]{1,4}|pciclass,[01][0-9a-f]{3}([0-9a-f]{2})?)$'
24
25 reg:
26 description:
27 The first entry must be the configuration space. The bus number
28 generally 0/ignored for FDT. See section 4.1.1 in PCI bus binding
29 for further information.
30 additionalItems: true
31 items:
32 - description: Configuration Space for the device
33 items:
34 - maximum: 0x00ffff00 # Should be 0xff00
35 multipleOf: 0x100
36 - const: 0
37 - const: 0
38 - const: 0
39 - const: 0
40
41 interrupts-extended:
42 description:
43 Occasionally PCI devices have interrupts which are not PCI interrupts. In
44 these cases, use "interrupts-extended" so it is not ambiguous.
45
46 interrupts:
47 items:
48 - items:
49 - enum: [1, 2, 3, 4] # INTA, INTB, INTC, INTD
50
51 assigned-addresses:
52 $ref: /schemas/types.yaml#/definitions/uint32-array
53
54 vendor-id:
55 description: The PCI vendor ID
56 $ref: /schemas/types.yaml#/definitions/uint32
57
58 device-id:
59 description: The PCI device ID
60 $ref: /schemas/types.yaml#/definitions/uint32
61
62 required:
63 - reg
64
65 additionalProperties: true