blob: 74a146b9a3e5adcc90d04d4afa12f67d1291f72e [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Simon Glass9d2eb922017-06-18 22:09:06 -06002/*
3 * Test device tree file for dtoc
4 *
5 * Copyright 2017 Google, Inc
Simon Glass9d2eb922017-06-18 22:09:06 -06006 */
7
8 /dts-v1/;
9
10/ {
11 phandle: phandle-target {
Simon Glass9dbf90e2023-02-13 08:56:37 -070012 bootph-all;
Simon Glass9d2eb922017-06-18 22:09:06 -060013 compatible = "target";
Simon Glass3deeb472017-08-29 14:15:59 -060014 intval = <0>;
15 #clock-cells = <0>;
16 };
17
18 phandle_1: phandle2-target {
Simon Glass9dbf90e2023-02-13 08:56:37 -070019 bootph-all;
Simon Glass3deeb472017-08-29 14:15:59 -060020 compatible = "target";
Simon Glass9d2eb922017-06-18 22:09:06 -060021 intval = <1>;
Simon Glass3deeb472017-08-29 14:15:59 -060022 #clock-cells = <1>;
23 };
24 phandle_2: phandle3-target {
Simon Glass9dbf90e2023-02-13 08:56:37 -070025 bootph-all;
Simon Glass3deeb472017-08-29 14:15:59 -060026 compatible = "target";
27 intval = <2>;
28 #clock-cells = <2>;
Simon Glass9d2eb922017-06-18 22:09:06 -060029 };
30
31 phandle-source {
Simon Glass9dbf90e2023-02-13 08:56:37 -070032 bootph-all;
Simon Glass9d2eb922017-06-18 22:09:06 -060033 compatible = "source";
Simon Glass3deeb472017-08-29 14:15:59 -060034 clocks = <&phandle &phandle_1 11 &phandle_2 12 13 &phandle>;
Simon Glasse8cea0e2023-01-11 16:10:18 -070035 phandle-name-offset = <&phandle_2>, "fred", <123>;
Simon Glass9d2eb922017-06-18 22:09:06 -060036 };
Simon Glass609e2b12018-07-06 10:27:31 -060037
38 phandle-source2 {
Simon Glass9dbf90e2023-02-13 08:56:37 -070039 bootph-all;
Simon Glass609e2b12018-07-06 10:27:31 -060040 compatible = "source";
41 clocks = <&phandle>;
42 };
Simon Glass9d2eb922017-06-18 22:09:06 -060043};