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 | / { | ||||
11 | phandle: phandle-target { | ||||
Simon Glass | 9dbf90e | 2023-02-13 08:56:37 -0700 | [diff] [blame] | 12 | bootph-all; |
Simon Glass | 9d2eb92 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 13 | compatible = "target"; |
Simon Glass | 3deeb47 | 2017-08-29 14:15:59 -0600 | [diff] [blame] | 14 | intval = <0>; |
15 | #clock-cells = <0>; | ||||
16 | }; | ||||
17 | |||||
18 | phandle_1: phandle2-target { | ||||
Simon Glass | 9dbf90e | 2023-02-13 08:56:37 -0700 | [diff] [blame] | 19 | bootph-all; |
Simon Glass | 3deeb47 | 2017-08-29 14:15:59 -0600 | [diff] [blame] | 20 | compatible = "target"; |
Simon Glass | 9d2eb92 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 21 | intval = <1>; |
Simon Glass | 3deeb47 | 2017-08-29 14:15:59 -0600 | [diff] [blame] | 22 | #clock-cells = <1>; |
23 | }; | ||||
24 | phandle_2: phandle3-target { | ||||
Simon Glass | 9dbf90e | 2023-02-13 08:56:37 -0700 | [diff] [blame] | 25 | bootph-all; |
Simon Glass | 3deeb47 | 2017-08-29 14:15:59 -0600 | [diff] [blame] | 26 | compatible = "target"; |
27 | intval = <2>; | ||||
28 | #clock-cells = <2>; | ||||
Simon Glass | 9d2eb92 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 29 | }; |
30 | |||||
31 | phandle-source { | ||||
Simon Glass | 9dbf90e | 2023-02-13 08:56:37 -0700 | [diff] [blame] | 32 | bootph-all; |
Simon Glass | 9d2eb92 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 33 | compatible = "source"; |
Simon Glass | 3deeb47 | 2017-08-29 14:15:59 -0600 | [diff] [blame] | 34 | clocks = <&phandle &phandle_1 11 &phandle_2 12 13 &phandle>; |
Simon Glass | e8cea0e | 2023-01-11 16:10:18 -0700 | [diff] [blame] | 35 | phandle-name-offset = <&phandle_2>, "fred", <123>; |
Simon Glass | 9d2eb92 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 36 | }; |
Simon Glass | 609e2b1 | 2018-07-06 10:27:31 -0600 | [diff] [blame] | 37 | |
38 | phandle-source2 { | ||||
Simon Glass | 9dbf90e | 2023-02-13 08:56:37 -0700 | [diff] [blame] | 39 | bootph-all; |
Simon Glass | 609e2b1 | 2018-07-06 10:27:31 -0600 | [diff] [blame] | 40 | compatible = "source"; |
41 | clocks = <&phandle>; | ||||
42 | }; | ||||
Simon Glass | 9d2eb92 | 2017-06-18 22:09:06 -0600 | [diff] [blame] | 43 | }; |