Simon Glass | 2e7d35d | 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 | 00606d7 | 2014-07-23 06:55:03 -0600 | [diff] [blame] | 9 | aliases { |
| 10 | console = &uart0; |
Simon Glass | 5a66a8f | 2014-07-23 06:55:12 -0600 | [diff] [blame] | 11 | testfdt6 = "/e-test"; |
Simon Glass | 00606d7 | 2014-07-23 06:55:03 -0600 | [diff] [blame] | 12 | }; |
| 13 | |
| 14 | uart0: serial { |
| 15 | compatible = "sandbox,serial"; |
| 16 | u-boot,dm-pre-reloc; |
| 17 | }; |
| 18 | |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 19 | a-test { |
| 20 | reg = <0>; |
| 21 | compatible = "denx,u-boot-fdt-test"; |
Simon Glass | eb9ef5f | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 22 | ping-expect = <0>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 23 | ping-add = <0>; |
Simon Glass | 00606d7 | 2014-07-23 06:55:03 -0600 | [diff] [blame] | 24 | u-boot,dm-pre-reloc; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | junk { |
| 28 | reg = <1>; |
| 29 | compatible = "not,compatible"; |
| 30 | }; |
| 31 | |
| 32 | no-compatible { |
| 33 | reg = <2>; |
| 34 | }; |
| 35 | |
| 36 | b-test { |
| 37 | reg = <3>; |
| 38 | compatible = "denx,u-boot-fdt-test"; |
Simon Glass | eb9ef5f | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 39 | ping-expect = <3>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 40 | ping-add = <3>; |
| 41 | }; |
| 42 | |
| 43 | some-bus { |
| 44 | #address-cells = <1>; |
| 45 | #size-cells = <0>; |
Simon Glass | 1ca7e20 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 46 | compatible = "denx,u-boot-test-bus"; |
Simon Glass | 5a66a8f | 2014-07-23 06:55:12 -0600 | [diff] [blame] | 47 | reg = <3>; |
Simon Glass | eb9ef5f | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 48 | ping-expect = <4>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 49 | ping-add = <4>; |
Simon Glass | 1ca7e20 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 50 | c-test@5 { |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 51 | compatible = "denx,u-boot-fdt-test"; |
| 52 | reg = <5>; |
Simon Glass | 1ca7e20 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 53 | ping-expect = <5>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 54 | ping-add = <5>; |
| 55 | }; |
Simon Glass | 1ca7e20 | 2014-07-23 06:55:18 -0600 | [diff] [blame] | 56 | c-test@0 { |
| 57 | compatible = "denx,u-boot-fdt-test"; |
| 58 | reg = <0>; |
| 59 | ping-expect = <6>; |
| 60 | ping-add = <6>; |
| 61 | }; |
| 62 | c-test@1 { |
| 63 | compatible = "denx,u-boot-fdt-test"; |
| 64 | reg = <1>; |
| 65 | ping-expect = <7>; |
| 66 | ping-add = <7>; |
| 67 | }; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 68 | }; |
| 69 | |
| 70 | d-test { |
Simon Glass | 5a66a8f | 2014-07-23 06:55:12 -0600 | [diff] [blame] | 71 | reg = <3>; |
| 72 | ping-expect = <6>; |
| 73 | ping-add = <6>; |
| 74 | compatible = "google,another-fdt-test"; |
| 75 | }; |
| 76 | |
| 77 | e-test { |
| 78 | reg = <3>; |
Simon Glass | eb9ef5f | 2014-07-23 06:54:57 -0600 | [diff] [blame] | 79 | ping-expect = <6>; |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 80 | ping-add = <6>; |
| 81 | compatible = "google,another-fdt-test"; |
| 82 | }; |
| 83 | |
Simon Glass | 0ae0cb7 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 84 | gpio_a: base-gpios { |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 85 | compatible = "sandbox,gpio"; |
| 86 | gpio-bank-name = "a"; |
| 87 | num-gpios = <20>; |
| 88 | }; |
| 89 | |
| 90 | extra-gpios { |
| 91 | compatible = "sandbox,gpio"; |
| 92 | gpio-bank-name = "b"; |
| 93 | num-gpios = <10>; |
| 94 | }; |
Simon Glass | 0ae0cb7 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 95 | |
Simon Glass | ecc2ed5 | 2014-12-10 08:55:55 -0700 | [diff] [blame] | 96 | i2c@0 { |
| 97 | #address-cells = <1>; |
| 98 | #size-cells = <0>; |
| 99 | reg = <0>; |
| 100 | compatible = "sandbox,i2c"; |
| 101 | clock-frequency = <100000>; |
| 102 | eeprom@2c { |
| 103 | reg = <0x2c>; |
| 104 | compatible = "i2c-eeprom"; |
| 105 | emul { |
| 106 | compatible = "sandbox,i2c-eeprom"; |
| 107 | sandbox,filename = "i2c.bin"; |
| 108 | sandbox,size = <256>; |
| 109 | }; |
| 110 | }; |
| 111 | }; |
| 112 | |
Simon Glass | 0ae0cb7 | 2014-10-13 23:42:11 -0600 | [diff] [blame] | 113 | spi@0 { |
| 114 | #address-cells = <1>; |
| 115 | #size-cells = <0>; |
| 116 | reg = <0>; |
| 117 | compatible = "sandbox,spi"; |
| 118 | cs-gpios = <0>, <&gpio_a 0>; |
| 119 | spi.bin@0 { |
| 120 | reg = <0>; |
| 121 | compatible = "spansion,m25p16", "spi-flash"; |
| 122 | spi-max-frequency = <40000000>; |
| 123 | sandbox,filename = "spi.bin"; |
| 124 | }; |
| 125 | }; |
| 126 | |
Simon Glass | 2e7d35d | 2014-02-26 15:59:21 -0700 | [diff] [blame] | 127 | }; |