Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | |
| 3 | / { |
| 4 | model = "sandbox"; |
| 5 | compatible = "sandbox"; |
| 6 | #address-cells = <1>; |
| 7 | #size-cells = <0>; |
| 8 | |
Simon Glass | fef72b7 | 2014-07-23 06:55:03 -0600 | [diff] [blame] | 9 | aliases { |
| 10 | console = &uart0; |
Simon Glass | 0ccb097 | 2015-01-25 08:27:05 -0700 | [diff] [blame] | 11 | i2c0 = "/i2c@0"; |
| 12 | spi0 = "/spi@0"; |
Simon Glass | 3a6eae6 | 2015-03-05 12:25:34 -0700 | [diff] [blame] | 13 | pci0 = &pci; |
Simon Glass | db6f020 | 2014-07-23 06:55:12 -0600 | [diff] [blame] | 14 | testfdt6 = "/e-test"; |
Simon Glass | 0ccb097 | 2015-01-25 08:27:05 -0700 | [diff] [blame] | 15 | testbus3 = "/some-bus"; |
| 16 | testfdt0 = "/some-bus/c-test@0"; |
| 17 | testfdt1 = "/some-bus/c-test@1"; |
| 18 | testfdt3 = "/b-test"; |
| 19 | testfdt5 = "/some-bus/c-test@5"; |
| 20 | testfdt8 = "/a-test"; |
Joe Hershberger | 279d2f6 | 2015-03-22 17:09:16 -0500 | [diff] [blame] | 21 | eth0 = "/eth@10002000"; |
| 22 | eth5 = ð_5; |
Simon Glass | 3168048 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 23 | usb0 = &usb_0; |
| 24 | usb1 = &usb_1; |
| 25 | usb2 = &usb_2; |
Simon Glass | fef72b7 | 2014-07-23 06:55:03 -0600 | [diff] [blame] | 26 | }; |
| 27 | |
| 28 | uart0: serial { |
| 29 | compatible = "sandbox,serial"; |
| 30 | u-boot,dm-pre-reloc; |
| 31 | }; |
| 32 | |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 33 | a-test { |
| 34 | reg = <0>; |
| 35 | compatible = "denx,u-boot-fdt-test"; |
Simon Glass | a7bb08a | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 36 | ping-expect = <0>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 37 | ping-add = <0>; |
Simon Glass | fef72b7 | 2014-07-23 06:55:03 -0600 | [diff] [blame] | 38 | u-boot,dm-pre-reloc; |
Simon Glass | 16e1040 | 2015-01-05 20:05:29 -0700 | [diff] [blame] | 39 | test-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 5 0 3 2 1>, |
| 40 | <0>, <&gpio_a 12>; |
| 41 | test2-gpios = <&gpio_a 1>, <&gpio_a 4>, <&gpio_b 6 1 3 2 1>, |
| 42 | <&gpio_b 7 2 3 2 1>, <&gpio_b 8 4 3 2 1>, |
| 43 | <&gpio_b 9 0xc 3 2 1>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 44 | }; |
| 45 | |
| 46 | junk { |
| 47 | reg = <1>; |
| 48 | compatible = "not,compatible"; |
| 49 | }; |
| 50 | |
| 51 | no-compatible { |
| 52 | reg = <2>; |
| 53 | }; |
| 54 | |
| 55 | b-test { |
| 56 | reg = <3>; |
| 57 | compatible = "denx,u-boot-fdt-test"; |
Simon Glass | a7bb08a | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 58 | ping-expect = <3>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 59 | ping-add = <3>; |
| 60 | }; |
| 61 | |
| 62 | some-bus { |
| 63 | #address-cells = <1>; |
| 64 | #size-cells = <0>; |
Simon Glass | 4071742 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 65 | compatible = "denx,u-boot-test-bus"; |
Simon Glass | db6f020 | 2014-07-23 06:55:12 -0600 | [diff] [blame] | 66 | reg = <3>; |
Simon Glass | a7bb08a | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 67 | ping-expect = <4>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 68 | ping-add = <4>; |
Simon Glass | 4071742 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 69 | c-test@5 { |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 70 | compatible = "denx,u-boot-fdt-test"; |
| 71 | reg = <5>; |
Simon Glass | 4071742 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 72 | ping-expect = <5>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 73 | ping-add = <5>; |
| 74 | }; |
Simon Glass | 4071742 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 75 | c-test@0 { |
| 76 | compatible = "denx,u-boot-fdt-test"; |
| 77 | reg = <0>; |
| 78 | ping-expect = <6>; |
| 79 | ping-add = <6>; |
| 80 | }; |
| 81 | c-test@1 { |
| 82 | compatible = "denx,u-boot-fdt-test"; |
| 83 | reg = <1>; |
| 84 | ping-expect = <7>; |
| 85 | ping-add = <7>; |
| 86 | }; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 87 | }; |
| 88 | |
| 89 | d-test { |
Simon Glass | db6f020 | 2014-07-23 06:55:12 -0600 | [diff] [blame] | 90 | reg = <3>; |
| 91 | ping-expect = <6>; |
| 92 | ping-add = <6>; |
| 93 | compatible = "google,another-fdt-test"; |
| 94 | }; |
| 95 | |
| 96 | e-test { |
| 97 | reg = <3>; |
Simon Glass | a7bb08a | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 98 | ping-expect = <6>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 99 | ping-add = <6>; |
| 100 | compatible = "google,another-fdt-test"; |
| 101 | }; |
| 102 | |
Simon Glass | 0ccb097 | 2015-01-25 08:27:05 -0700 | [diff] [blame] | 103 | f-test { |
| 104 | compatible = "denx,u-boot-fdt-test"; |
| 105 | }; |
| 106 | |
| 107 | g-test { |
| 108 | compatible = "denx,u-boot-fdt-test"; |
| 109 | }; |
| 110 | |
Simon Glass | 25348a4 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 111 | gpio_a: base-gpios { |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 112 | compatible = "sandbox,gpio"; |
Simon Glass | 16e1040 | 2015-01-05 20:05:29 -0700 | [diff] [blame] | 113 | gpio-controller; |
| 114 | #gpio-cells = <1>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 115 | gpio-bank-name = "a"; |
| 116 | num-gpios = <20>; |
| 117 | }; |
| 118 | |
Simon Glass | 16e1040 | 2015-01-05 20:05:29 -0700 | [diff] [blame] | 119 | gpio_b: extra-gpios { |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 120 | compatible = "sandbox,gpio"; |
Simon Glass | 16e1040 | 2015-01-05 20:05:29 -0700 | [diff] [blame] | 121 | gpio-controller; |
| 122 | #gpio-cells = <5>; |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 123 | gpio-bank-name = "b"; |
| 124 | num-gpios = <10>; |
| 125 | }; |
Simon Glass | 25348a4 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 126 | |
Simon Glass | 7df766e | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 127 | i2c@0 { |
| 128 | #address-cells = <1>; |
| 129 | #size-cells = <0>; |
| 130 | reg = <0>; |
| 131 | compatible = "sandbox,i2c"; |
| 132 | clock-frequency = <100000>; |
| 133 | eeprom@2c { |
| 134 | reg = <0x2c>; |
| 135 | compatible = "i2c-eeprom"; |
| 136 | emul { |
| 137 | compatible = "sandbox,i2c-eeprom"; |
| 138 | sandbox,filename = "i2c.bin"; |
| 139 | sandbox,size = <256>; |
| 140 | }; |
| 141 | }; |
| 142 | }; |
| 143 | |
Simon Glass | 3a6eae6 | 2015-03-05 12:25:34 -0700 | [diff] [blame] | 144 | pci: pci-controller { |
| 145 | compatible = "sandbox,pci"; |
| 146 | device_type = "pci"; |
| 147 | #address-cells = <3>; |
| 148 | #size-cells = <2>; |
| 149 | ranges = <0x02000000 0 0x10000000 0x10000000 0 0x2000 |
| 150 | 0x01000000 0 0x20000000 0x20000000 0 0x2000>; |
| 151 | pci@1f,0 { |
| 152 | compatible = "pci-generic"; |
| 153 | reg = <0xf800 0 0 0 0>; |
| 154 | emul@1f,0 { |
| 155 | compatible = "sandbox,swap-case"; |
| 156 | }; |
| 157 | }; |
| 158 | }; |
| 159 | |
Simon Glass | 25348a4 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 160 | spi@0 { |
| 161 | #address-cells = <1>; |
| 162 | #size-cells = <0>; |
| 163 | reg = <0>; |
| 164 | compatible = "sandbox,spi"; |
| 165 | cs-gpios = <0>, <&gpio_a 0>; |
| 166 | spi.bin@0 { |
| 167 | reg = <0>; |
| 168 | compatible = "spansion,m25p16", "spi-flash"; |
| 169 | spi-max-frequency = <40000000>; |
| 170 | sandbox,filename = "spi.bin"; |
| 171 | }; |
| 172 | }; |
| 173 | |
Joe Hershberger | 4c19724 | 2015-03-22 17:09:15 -0500 | [diff] [blame] | 174 | eth@10002000 { |
| 175 | compatible = "sandbox,eth"; |
| 176 | reg = <0x10002000 0x1000>; |
| 177 | fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x00>; |
| 178 | }; |
| 179 | |
Joe Hershberger | 279d2f6 | 2015-03-22 17:09:16 -0500 | [diff] [blame] | 180 | eth_5: eth@10003000 { |
Joe Hershberger | 4c19724 | 2015-03-22 17:09:15 -0500 | [diff] [blame] | 181 | compatible = "sandbox,eth"; |
| 182 | reg = <0x10003000 0x1000>; |
| 183 | fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x11>; |
| 184 | }; |
| 185 | |
| 186 | eth@10004000 { |
| 187 | compatible = "sandbox,eth"; |
| 188 | reg = <0x10004000 0x1000>; |
| 189 | fake-host-hwaddr = <0x00 0x00 0x66 0x44 0x22 0x22>; |
| 190 | }; |
| 191 | |
Simon Glass | 3168048 | 2015-03-25 12:23:05 -0600 | [diff] [blame] | 192 | usb_0: usb@0 { |
| 193 | compatible = "sandbox,usb"; |
| 194 | status = "disabled"; |
| 195 | hub { |
| 196 | compatible = "sandbox,usb-hub"; |
| 197 | #address-cells = <1>; |
| 198 | #size-cells = <0>; |
| 199 | flash-stick { |
| 200 | reg = <0>; |
| 201 | compatible = "sandbox,usb-flash"; |
| 202 | }; |
| 203 | }; |
| 204 | }; |
| 205 | |
| 206 | usb_1: usb@1 { |
| 207 | compatible = "sandbox,usb"; |
| 208 | hub { |
| 209 | compatible = "usb-hub"; |
| 210 | usb,device-class = <9>; |
| 211 | hub-emul { |
| 212 | compatible = "sandbox,usb-hub"; |
| 213 | #address-cells = <1>; |
| 214 | #size-cells = <0>; |
| 215 | flash-stick { |
| 216 | reg = <0>; |
| 217 | compatible = "sandbox,usb-flash"; |
| 218 | sandbox,filepath = "testflash.bin"; |
| 219 | }; |
| 220 | |
| 221 | }; |
| 222 | }; |
| 223 | }; |
| 224 | |
| 225 | usb_2: usb@2 { |
| 226 | compatible = "sandbox,usb"; |
| 227 | status = "disabled"; |
| 228 | }; |
| 229 | |
Simon Glass | b2c1cac | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 230 | }; |