Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 9d2eb92 | 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 | 9d2eb92 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | /dts-v1/; |
| 9 | |
| 10 | / { |
Simon Glass | 90e5f0a | 2017-08-29 14:15:51 -0600 | [diff] [blame] | 11 | #address-cells = <1>; |
| 12 | #size-cells = <1>; |
Simon Glass | 9d2eb92 | 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; |
Simon Glass | 4311832 | 2021-07-28 19:23:11 -0600 | [diff] [blame] | 17 | maybe-empty-int = <>; |
Simon Glass | 9d2eb92 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 18 | intval = <1>; |
| 19 | intarray = <2 3 4>; |
| 20 | byteval = [05]; |
| 21 | bytearray = [06]; |
| 22 | longbytearray = [09 0a 0b 0c 0d 0e 0f 10 11]; |
| 23 | stringval = "message"; |
| 24 | stringarray = "multi-word", "message"; |
Simon Glass | 9c52633 | 2018-07-06 10:27:28 -0600 | [diff] [blame] | 25 | notstring = [20 21 22 10 00]; |
Simon Glass | 9d2eb92 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 26 | }; |
| 27 | |
| 28 | spl-test2 { |
| 29 | u-boot,dm-pre-reloc; |
| 30 | compatible = "sandbox,spl-test"; |
| 31 | intval = <3>; |
| 32 | intarray = <5>; |
| 33 | byteval = [08]; |
| 34 | bytearray = [01 23 34]; |
| 35 | longbytearray = [09 0a 0b 0c]; |
| 36 | stringval = "message2"; |
| 37 | stringarray = "another", "multi-word", "message"; |
Simon Glass | 7f5e226 | 2020-07-07 21:32:06 -0600 | [diff] [blame] | 38 | acpi-name = "\\_SB.GPO0"; |
Simon Glass | 9d2eb92 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 39 | }; |
| 40 | |
| 41 | spl-test3 { |
| 42 | u-boot,dm-pre-reloc; |
| 43 | compatible = "sandbox,spl-test"; |
| 44 | stringarray = "one"; |
Simon Glass | 8034e4d | 2020-10-03 11:31:27 -0600 | [diff] [blame] | 45 | longbytearray = [09 0a 0b 0c 0d 0e 0f 10]; |
Simon Glass | 4311832 | 2021-07-28 19:23:11 -0600 | [diff] [blame] | 46 | maybe-empty-int = <1>; |
Simon Glass | 9d2eb92 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 47 | }; |
| 48 | |
Simon Glass | 90e5f0a | 2017-08-29 14:15:51 -0600 | [diff] [blame] | 49 | i2c@0 { |
Simon Glass | 32a8d22 | 2021-02-03 06:00:57 -0700 | [diff] [blame] | 50 | compatible = "sandbox,i2c"; |
Simon Glass | 90e5f0a | 2017-08-29 14:15:51 -0600 | [diff] [blame] | 51 | u-boot,dm-pre-reloc; |
| 52 | #address-cells = <1>; |
| 53 | #size-cells = <0>; |
| 54 | pmic@9 { |
Simon Glass | 32a8d22 | 2021-02-03 06:00:57 -0700 | [diff] [blame] | 55 | compatible = "sandbox,pmic"; |
Simon Glass | 90e5f0a | 2017-08-29 14:15:51 -0600 | [diff] [blame] | 56 | u-boot,dm-pre-reloc; |
| 57 | reg = <9>; |
| 58 | low-power; |
| 59 | }; |
| 60 | }; |
Simon Glass | 244548f | 2021-03-21 18:24:37 +1300 | [diff] [blame] | 61 | |
| 62 | orig-node { |
| 63 | orig = <1 23 4>; |
| 64 | }; |
Simon Glass | 9d2eb92 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 65 | }; |