diff options
author | Simon Glass <sjg@chromium.org> | 2015-03-05 12:25:34 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-04-18 11:11:09 -0600 |
commit | d3b7ff14f4944a391da3d1146e36dba42e811766 (patch) | |
tree | 0f4a1703764552b12b8863be2b881f700a63c082 /test/dm/test.dts | |
parent | aad78d2732ee04326fb3523815795f76012aab99 (diff) | |
download | u-boot-imx-d3b7ff14f4944a391da3d1146e36dba42e811766.zip u-boot-imx-d3b7ff14f4944a391da3d1146e36dba42e811766.tar.gz u-boot-imx-d3b7ff14f4944a391da3d1146e36dba42e811766.tar.bz2 |
dm: pci: Add driver model tests for PCI
Add some basic tests to check that things work as expected with sandbox.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm/test.dts')
-rw-r--r-- | test/dm/test.dts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/dm/test.dts b/test/dm/test.dts index 84024a4..96775e1 100644 --- a/test/dm/test.dts +++ b/test/dm/test.dts @@ -10,6 +10,7 @@ console = &uart0; i2c0 = "/i2c@0"; spi0 = "/spi@0"; + pci0 = &pci; testfdt6 = "/e-test"; testbus3 = "/some-bus"; testfdt0 = "/some-bus/c-test@0"; @@ -135,6 +136,22 @@ }; }; + pci: pci-controller { + compatible = "sandbox,pci"; + device_type = "pci"; + #address-cells = <3>; + #size-cells = <2>; + ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000 + 0x01000000 0 0x20000000 0x20000000 0 0x2000>; + pci@1f,0 { + compatible = "pci-generic"; + reg = <0xf800 0 0 0 0>; + emul@1f,0 { + compatible = "sandbox,swap-case"; + }; + }; + }; + spi@0 { #address-cells = <1>; #size-cells = <0>; |