Simon Glass | be88d2f | 2021-02-03 06:01:07 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Test device tree file for dtoc |
| 4 | * |
| 5 | * Copyright 2017 Google, Inc |
| 6 | */ |
| 7 | |
| 8 | /dts-v1/; |
| 9 | |
| 10 | / { |
| 11 | #address-cells = <1>; |
| 12 | #size-cells = <1>; |
| 13 | |
| 14 | aliases { |
| 15 | testbus2 = &bus2; |
| 16 | testfdt1 = &testfdt_1; |
| 17 | i2c4 = &i2c; |
| 18 | }; |
| 19 | |
| 20 | spl-test { |
Simon Glass | 9dbf90e | 2023-02-13 08:56:37 -0700 | [diff] [blame] | 21 | bootph-all; |
Simon Glass | be88d2f | 2021-02-03 06:01:07 -0700 | [diff] [blame] | 22 | compatible = "sandbox,spl-test"; |
| 23 | boolval; |
| 24 | intval = <1>; |
| 25 | }; |
| 26 | |
| 27 | i2c: i2c { |
Simon Glass | 9dbf90e | 2023-02-13 08:56:37 -0700 | [diff] [blame] | 28 | bootph-all; |
Simon Glass | be88d2f | 2021-02-03 06:01:07 -0700 | [diff] [blame] | 29 | compatible = "sandbox,i2c"; |
| 30 | intval = <3>; |
| 31 | }; |
| 32 | |
| 33 | spl-test3 { |
Simon Glass | 9dbf90e | 2023-02-13 08:56:37 -0700 | [diff] [blame] | 34 | bootph-all; |
Simon Glass | be88d2f | 2021-02-03 06:01:07 -0700 | [diff] [blame] | 35 | compatible = "sandbox,spl-test"; |
| 36 | stringarray = "one"; |
| 37 | longbytearray = [09 0a 0b 0c 0d 0e 0f 10]; |
| 38 | }; |
| 39 | |
| 40 | bus2: some-bus { |
| 41 | #address-cells = <1>; |
| 42 | #size-cells = <0>; |
| 43 | compatible = "denx,u-boot-test-bus"; |
| 44 | reg = <3 1>; |
| 45 | ping-expect = <4>; |
| 46 | ping-add = <4>; |
| 47 | testfdt_1: test { |
| 48 | compatible = "denx,u-boot-fdt-test", "google,another-fdt-test"; |
| 49 | reg = <5>; |
| 50 | ping-expect = <5>; |
| 51 | ping-add = <5>; |
| 52 | }; |
| 53 | |
| 54 | test0 { |
| 55 | compatible = "google,another-fdt-test"; |
| 56 | }; |
| 57 | }; |
| 58 | }; |