sandbox: Update PCI nodes in dts files
authorTom Rini <trini@konsulko.com>
Tue, 11 Feb 2020 17:41:23 +0000 (12:41 -0500)
committerSimon Glass <sjg@chromium.org>
Thu, 16 Apr 2020 14:07:57 +0000 (08:07 -0600)
The way the PCI nodes are written today causes a number of warnings if
we stop disabling some of the warnings we pass to DTC.  As these
warnings aren't disabled in current Linux Kernel builds, we should aim
to not disable them here either, so rewrite these slightly.  Update the
driver model doc as well.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
arch/sandbox/dts/sandbox.dts
arch/sandbox/dts/sandbox.dtsi
arch/sandbox/dts/sandbox64.dts
arch/sandbox/dts/test.dts
doc/driver-model/pci-info.rst

index 4dd82f6a32fd009c6fd9783ec42507afddef4501..2d7db0249ebe87ae3db21ed04fcbec73e4c12022 100644 (file)
@@ -10,7 +10,7 @@
 
        aliases {
                i2c0 = &i2c_0;
-               pci0 = &pci;
+               pci0 = &pcic;
                rtc0 = &rtc_0;
                axi0 = &axi;
                spi0 = &spi;
                pinctrl-0 = <&pinctrl_i2c0>;
        };
 
-       pci: pci-controller {
+       pcic: pci@0 {
                compatible = "sandbox,pci";
                device_type = "pci";
+               bus-range = <0x00 0xff>;
                #address-cells = <3>;
                #size-cells = <2>;
                ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000
index 7cd56c14f289207ebf1de3c46d8aae835b158bd2..e1f68cd552af8cc2413fa8201ee353d3c4c63947 100644 (file)
                };
        };
 
-       pci-controller {
+       pci@0 {
                pci@1e,0 {
                        compatible = "sandbox,pmc";
                        reg = <0xf000 0 0 0 0>;
index 5c95cee9d7a9fc5c79a269130525b430f795b029..97e33f110eefdfa2deca80d8c4fcd6dce05b11a2 100644 (file)
@@ -10,7 +10,7 @@
 
        aliases {
                i2c0 = &i2c_0;
-               pci0 = &pci;
+               pci0 = &pcic;
                rtc0 = &rtc_0;
                axi0 = &axi;
                spi0 = &spi;
                pinctrl-0 = <&pinctrl_i2c0>;
        };
 
-       pci: pci-controller {
+       pcic: pci@0 {
                compatible = "sandbox,pci";
                device_type = "pci";
+               bus-range = <0x00 0xff>;
                #address-cells = <3>;
                #size-cells = <2>;
                ranges = <0x02000000 0 0x10000000 0 0x10000000 0 0x2000
index 4a277934a711383add30ef3b9facec4a0ff24539..2338064df7745b07e3febdccd96f7c8a64baf263 100644 (file)
                compatible = "sandbox,pch";
        };
 
-       pci0: pci-controller0 {
+       pci0: pci@0 {
                compatible = "sandbox,pci";
                device_type = "pci";
+               bus-range = <0x00 0xff>;
                #address-cells = <3>;
                #size-cells = <2>;
                ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000000
                };
        };
 
-       pci1: pci-controller1 {
+       pci1: pci@1 {
                compatible = "sandbox,pci";
                device_type = "pci";
+               bus-range = <0x00 0xff>;
                #address-cells = <3>;
                #size-cells = <2>;
                ranges = <0x02000000 0 0x30000000 0x30000000 0 0x2000
                };
        };
 
-       pci2: pci-controller2 {
+       pci2: pci@2 {
                compatible = "sandbox,pci";
                device_type = "pci";
+               bus-range = <0x00 0xff>;
                #address-cells = <3>;
                #size-cells = <2>;
                ranges = <0x02000000 0 0x50000000 0x50000000 0 0x2000
index 3c1b1adf077eb608e41c41146fff71aeb2ad49f9..8b9faa106638c49548a4d5722b541024e97f97b9 100644 (file)
@@ -12,10 +12,10 @@ Bus number 0 will need to be requested first, and the alias in the device
 tree file will point to the correct device::
 
        aliases {
-               pci0 = &pci;
+               pci0 = &pcic;
        };
 
-       pci: pci-controller {
+       pcic: pci@0 {
                compatible = "sandbox,pci";
                ...
        };
@@ -138,7 +138,7 @@ be scanned as a PCI device, causing confusion.
 
 When this bus is scanned we will end up with something like this::
 
-   `- * pci-controller @ 05c660c8, 0
+   `- * pci@0 @ 05c660c8, 0
     `-   pci@1f,0 @ 05c661c8, 63488
    `-   emul@1f,0 @ 05c662c8
 
@@ -152,7 +152,7 @@ host controller node for this functionality to work.
 
 .. code-block:: none
 
-       pci1: pci-controller1 {
+       pci1: pci@1 {
                compatible = "sandbox,pci";
                ...
                sandbox,dev-info = <0x08 0x00 0x1234 0x5678
@@ -166,6 +166,6 @@ fourth cells are PCI vendor ID and device ID respectively.
 
 When this bus is scanned we will end up with something like this::
 
- pci        [ + ]   pci_sandbo  |-- pci-controller1
+ pci        [ + ]   pci_sandbo  |-- pci1
  pci_emul   [   ]   sandbox_sw  |   |-- sandbox_swap_case_emul
  pci_emul   [   ]   sandbox_sw  |   `-- sandbox_swap_case_emul