Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Andrea della Porta and committed by
Florian Fainelli
c6d0cdf7 8f0b4cce

+7 -1
+7 -1
Documentation/devicetree/bindings/misc/pci1de4,1.yaml
··· 25 25 items: 26 26 - const: pci1de4,1 27 27 28 + reg: 29 + maxItems: 1 30 + description: The PCI Bus-Device-Function address. 31 + 28 32 '#interrupt-cells': 29 33 const: 2 30 34 description: | ··· 105 101 106 102 required: 107 103 - compatible 104 + - reg 108 105 - '#interrupt-cells' 109 106 - interrupt-controller 110 107 - pci-ep-bus@1 ··· 116 111 #address-cells = <3>; 117 112 #size-cells = <2>; 118 113 119 - rp1@0,0 { 114 + dev@0,0 { 120 115 compatible = "pci1de4,1"; 116 + reg = <0x10000 0x0 0x0 0x0 0x0>; 121 117 ranges = <0x01 0x00 0x00000000 0x82010000 0x00 0x00 0x00 0x400000>; 122 118 #address-cells = <3>; 123 119 #size-cells = <2>;