blob: 515d6348b3faa1daea289fbb30ccca1dd9225ab1 [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>;
Christian Marangia1a1e0e2024-11-10 12:50:23 +010035 other-phandle-nodes = <&other_phandle_node_1>, <&other_phandle_node_2>;
Christian Marangi7d75d202024-11-10 12:50:21 +010036 };
37
38 other_gpio_a: other-gpio-a {
39 #gpio-cells = <1>;
40 };
41
42 other_gpio_b: other-gpio-b {
43 #gpio-cells = <5>;
44 };
45
46 other_gpio_c: other-gpio-c {
47 #gpio-cells = <2>;
48 };
49
Christian Marangia1a1e0e2024-11-10 12:50:23 +010050 other_phandle_node_1: other-phandle-node-1 {
51 };
52
53 other_phandle_node_2: other-phandle-node-2 {
54 };
55
Simon Glassf17b9672022-09-06 20:27:09 -060056 target: target {
57 compatible = "sandbox-other2";
Simon Glassf17b9672022-09-06 20:27:09 -060058 str-prop = "other";
59 reg = <0x8000 0x100>;
60 status = "disabled";
61 };
62};