]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
x86: crownbay: Support Topcliff integrated pci uart devices with driver model
authorBin Meng <bmeng.cn@gmail.com>
Mon, 24 Aug 2015 08:14:03 +0000 (01:14 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 09:29:48 +0000 (11:29 +0200)
In order to make a pci uart device node to be properly bound to its
driver, we need make sure its parent node has a compatible string
which matches a driver that scans all of its child device nodes in
the device tree.

Change all pci bridge nodes under root pci node to use "pci-bridge"
compatible driver, as well as corresponding <reg> properties to
indicate its devfn. At last, adding "u-boot,dm-pre-reloc" to each
of these nodes for driver model to initialize them before relocation.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/dts/crownbay.dts

index 800901c2cbe370841926abf2bce49f887d99f7d3..3e354c4093785b16f26d19d4d3220947986f18b7 100644 (file)
@@ -91,7 +91,6 @@
                #address-cells = <3>;
                #size-cells = <2>;
                compatible = "pci-x86";
-               device_type = "pci";
                u-boot,dm-pre-reloc;
                ranges = <0x02000000 0x0 0x40000000 0x40000000 0 0x80000000
                          0x42000000 0x0 0xc0000000 0xc0000000 0 0x20000000
                pcie@17,0 {
                        #address-cells = <3>;
                        #size-cells = <2>;
-                       compatible = "intel,pci";
-                       device_type = "pci";
+                       compatible = "pci-bridge";
+                       u-boot,dm-pre-reloc;
+                       reg = <0x0000b800 0x0 0x0 0x0 0x0>;
 
                        topcliff@0,0 {
                                #address-cells = <3>;
                                #size-cells = <2>;
-                               compatible = "intel,pci";
-                               device_type = "pci";
+                               compatible = "pci-bridge";
+                               u-boot,dm-pre-reloc;
+                               reg = <0x00010000 0x0 0x0 0x0 0x0>;
 
                                pciuart0: uart@a,1 {
                                        compatible = "pci8086,8811.00",
                                                        "pciclass,070002",
                                                        "pciclass,0700",
                                                        "x86-uart";
+                                       u-boot,dm-pre-reloc;
                                        reg = <0x00025100 0x0 0x0 0x0 0x0
                                               0x01025110 0x0 0x0 0x0 0x0>;
                                        reg-shift = <0>;
                                                        "pciclass,070002",
                                                        "pciclass,0700",
                                                        "x86-uart";
+                                       u-boot,dm-pre-reloc;
                                        reg = <0x00025200 0x0 0x0 0x0 0x0
                                               0x01025210 0x0 0x0 0x0 0x0>;
                                        reg-shift = <0>;
                                                        "pciclass,070002",
                                                        "pciclass,0700",
                                                        "x86-uart";
+                                       u-boot,dm-pre-reloc;
                                        reg = <0x00025300 0x0 0x0 0x0 0x0
                                               0x01025310 0x0 0x0 0x0 0x0>;
                                        reg-shift = <0>;
                                                        "pciclass,070002",
                                                        "pciclass,0700",
                                                        "x86-uart";
+                                       u-boot,dm-pre-reloc;
                                        reg = <0x00025400 0x0 0x0 0x0 0x0
                                               0x01025410 0x0 0x0 0x0 0x0>;
                                        reg-shift = <0>;