Simon Glass | f17b967 | 2022-09-06 20:27:09 -0600 | [diff] [blame] | 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 | |
Christian Marangi | 7d75d20 | 2024-11-10 12:50:21 +0100 | [diff] [blame^] | 11 | #include <dt-bindings/gpio/gpio.h> |
| 12 | |
Simon Glass | f17b967 | 2022-09-06 20:27:09 -0600 | [diff] [blame] | 13 | / { |
| 14 | compatible = "sandbox-other"; |
| 15 | #address-cells = <1>; |
| 16 | #size-cells = <1>; |
| 17 | |
| 18 | node { |
Christian Marangi | 7d75d20 | 2024-11-10 12:50:21 +0100 | [diff] [blame^] | 19 | other-phandle = <&target>; |
Simon Glass | f17b967 | 2022-09-06 20:27:09 -0600 | [diff] [blame] | 20 | |
| 21 | subnode { |
| 22 | compatible = "sandbox-other2"; |
| 23 | str-prop = "other"; |
| 24 | }; |
| 25 | |
| 26 | subnode2 { |
| 27 | }; |
| 28 | }; |
| 29 | |
Christian Marangi | 7d75d20 | 2024-11-10 12:50:21 +0100 | [diff] [blame^] | 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 | }; |
| 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 Glass | f17b967 | 2022-09-06 20:27:09 -0600 | [diff] [blame] | 49 | target: target { |
| 50 | compatible = "sandbox-other2"; |
Simon Glass | f17b967 | 2022-09-06 20:27:09 -0600 | [diff] [blame] | 51 | str-prop = "other"; |
| 52 | reg = <0x8000 0x100>; |
| 53 | status = "disabled"; |
| 54 | }; |
| 55 | }; |