Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | c079192 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 2 | /* |
| 3 | * Test device tree file for dtoc |
| 4 | * |
| 5 | * Copyright 2017 Google, Inc |
Simon Glass | c079192 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | /dts-v1/; |
| 9 | |
| 10 | / { |
Simon Glass | 5ec741f | 2017-08-29 14:15:51 -0600 | [diff] [blame] | 11 | #address-cells = <1>; |
| 12 | #size-cells = <1>; |
Simon Glass | c079192 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 13 | spl-test { |
| 14 | u-boot,dm-pre-reloc; |
| 15 | compatible = "sandbox,spl-test"; |
| 16 | boolval; |
| 17 | intval = <1>; |
| 18 | intarray = <2 3 4>; |
| 19 | byteval = [05]; |
| 20 | bytearray = [06]; |
| 21 | longbytearray = [09 0a 0b 0c 0d 0e 0f 10 11]; |
| 22 | stringval = "message"; |
| 23 | stringarray = "multi-word", "message"; |
Simon Glass | 2a2d91d | 2018-07-06 10:27:28 -0600 | [diff] [blame] | 24 | notstring = [20 21 22 10 00]; |
Simon Glass | c079192 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | spl-test2 { |
| 28 | u-boot,dm-pre-reloc; |
| 29 | compatible = "sandbox,spl-test"; |
| 30 | intval = <3>; |
| 31 | intarray = <5>; |
| 32 | byteval = [08]; |
| 33 | bytearray = [01 23 34]; |
| 34 | longbytearray = [09 0a 0b 0c]; |
| 35 | stringval = "message2"; |
| 36 | stringarray = "another", "multi-word", "message"; |
| 37 | }; |
| 38 | |
| 39 | spl-test3 { |
| 40 | u-boot,dm-pre-reloc; |
| 41 | compatible = "sandbox,spl-test"; |
| 42 | stringarray = "one"; |
| 43 | }; |
| 44 | |
| 45 | spl-test4 { |
| 46 | u-boot,dm-pre-reloc; |
| 47 | compatible = "sandbox,spl-test.2"; |
| 48 | }; |
| 49 | |
Simon Glass | 5ec741f | 2017-08-29 14:15:51 -0600 | [diff] [blame] | 50 | i2c@0 { |
| 51 | compatible = "sandbox,i2c-test"; |
| 52 | u-boot,dm-pre-reloc; |
| 53 | #address-cells = <1>; |
| 54 | #size-cells = <0>; |
| 55 | pmic@9 { |
| 56 | compatible = "sandbox,pmic-test"; |
| 57 | u-boot,dm-pre-reloc; |
| 58 | reg = <9>; |
| 59 | low-power; |
| 60 | }; |
| 61 | }; |
Simon Glass | c079192 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 62 | }; |