1// 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 11#include <dt-bindings/gpio/gpio.h> 12 13/ { 14 compatible = "sandbox-other"; 15 #address-cells = <1>; 16 #size-cells = <1>; 17 18 node { 19 other-phandle = <&target>; 20 21 subnode { 22 compatible = "sandbox-other2"; 23 str-prop = "other"; 24 }; 25 26 subnode2 { 27 }; 28 }; 29 30 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 other-phandle-nodes = <&other_phandle_node_1>, <&other_phandle_node_2>; 36 }; 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 50 other_phandle_node_1: other-phandle-node-1 { 51 }; 52 53 other_phandle_node_2: other-phandle-node-2 { 54 }; 55 56 target: target { 57 compatible = "sandbox-other2"; 58 str-prop = "other"; 59 reg = <0x8000 0x100>; 60 status = "disabled"; 61 }; 62}; 63