blob: b32158c65691509465a429e0910c9fce6c245ad5 [file] [log] [blame]
Simon Glassf17b9672022-09-06 20:27:09 -06001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Other devicetree file for running sandbox tests
4 *
5 * This used for tests which want to check they can access multiple device
6 * trees. This one is loaded and checks are made that it is actually visible.
7 */
8
9/dts-v1/;
10
Christian Marangi7d75d202024-11-10 12:50:21 +010011#include <dt-bindings/gpio/gpio.h>
12
Simon Glassf17b9672022-09-06 20:27:09 -060013/ {
14 compatible = "sandbox-other";
15 #address-cells = <1>;
16 #size-cells = <1>;
17
18 node {
Christian Marangi7d75d202024-11-10 12:50:21 +010019 other-phandle = <&target>;
Simon Glassf17b9672022-09-06 20:27:09 -060020
21 subnode {
22 compatible = "sandbox-other2";
23 str-prop = "other";
24 };
25
26 subnode2 {
27 };
28 };
29
Christian Marangi7d75d202024-11-10 12:50:21 +010030 other-a-test {
31 other-test-gpios = <&other_gpio_a 1>, <&other_gpio_a 4>,
32 <&other_gpio_b 5 GPIO_ACTIVE_HIGH 3 2 1>,
33 <0>, <&other_gpio_a 12>;
34 other-phandle-value = <&other_gpio_c 10>, <0xFFFFFFFF 20>, <&other_gpio_a 30>;
35 };
36
37 other_gpio_a: other-gpio-a {
38 #gpio-cells = <1>;
39 };
40
41 other_gpio_b: other-gpio-b {
42 #gpio-cells = <5>;
43 };
44
45 other_gpio_c: other-gpio-c {
46 #gpio-cells = <2>;
47 };
48
Simon Glassf17b9672022-09-06 20:27:09 -060049 target: target {
50 compatible = "sandbox-other2";
Simon Glassf17b9672022-09-06 20:27:09 -060051 str-prop = "other";
52 reg = <0x8000 0x100>;
53 status = "disabled";
54 };
55};