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"; |
| 24 | }; |
| 25 | |
| 26 | spl-test2 { |
| 27 | u-boot,dm-pre-reloc; |
| 28 | compatible = "sandbox,spl-test"; |
| 29 | intval = <3>; |
| 30 | intarray = <5>; |
| 31 | byteval = [08]; |
| 32 | bytearray = [01 23 34]; |
| 33 | longbytearray = [09 0a 0b 0c]; |
| 34 | stringval = "message2"; |
| 35 | stringarray = "another", "multi-word", "message"; |
| 36 | }; |
| 37 | |
| 38 | spl-test3 { |
| 39 | u-boot,dm-pre-reloc; |
| 40 | compatible = "sandbox,spl-test"; |
| 41 | stringarray = "one"; |
| 42 | }; |
| 43 | |
| 44 | spl-test4 { |
| 45 | u-boot,dm-pre-reloc; |
| 46 | compatible = "sandbox,spl-test.2"; |
| 47 | }; |
| 48 | |
Simon Glass | 5ec741f | 2017-08-29 14:15:51 -0600 | [diff] [blame] | 49 | i2c@0 { |
| 50 | compatible = "sandbox,i2c-test"; |
| 51 | u-boot,dm-pre-reloc; |
| 52 | #address-cells = <1>; |
| 53 | #size-cells = <0>; |
| 54 | pmic@9 { |
| 55 | compatible = "sandbox,pmic-test"; |
| 56 | u-boot,dm-pre-reloc; |
| 57 | reg = <9>; |
| 58 | low-power; |
| 59 | }; |
| 60 | }; |
Simon Glass | c079192 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 61 | }; |