Skip to content

Commit c6d0cdf

Browse files
Andrea della Portaffainelli
authored andcommitted
dt-bindings: misc: pci1de4,1: add required reg property for endpoint
The PCI subsystem links an endpoint Device Tree node to its corresponding pci_dev structure only if the Bus/Device/Function (BDF) encoded in the 'reg' property matches the actual hardware topology. Add the 'reg' property and mark it as required to ensure proper binding between the device_node and the pci_dev. Update the example to reflect this requirement. Signed-off-by: Andrea della Porta <andrea.porta@suse.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/b58bfcd957b2270fcf932d463f2db534b2ae1a6d.1766077285.git.andrea.porta@suse.com Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
1 parent 8f0b4cc commit c6d0cdf

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Documentation/devicetree/bindings/misc/pci1de4,1.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ properties:
2525
items:
2626
- const: pci1de4,1
2727

28+
reg:
29+
maxItems: 1
30+
description: The PCI Bus-Device-Function address.
31+
2832
'#interrupt-cells':
2933
const: 2
3034
description: |
@@ -101,6 +105,7 @@ unevaluatedProperties: false
101105

102106
required:
103107
- compatible
108+
- reg
104109
- '#interrupt-cells'
105110
- interrupt-controller
106111
- pci-ep-bus@1
@@ -111,8 +116,9 @@ examples:
111116
#address-cells = <3>;
112117
#size-cells = <2>;
113118
114-
rp1@0,0 {
119+
dev@0,0 {
115120
compatible = "pci1de4,1";
121+
reg = <0x10000 0x0 0x0 0x0 0x0>;
116122
ranges = <0x01 0x00 0x00000000 0x82010000 0x00 0x00 0x00 0x400000>;
117123
#address-cells = <3>;
118124
#size-cells = <2>;

0 commit comments

Comments
 (0)