rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | |
| 3 | / { |
| 4 | aliases { |
| 5 | testcase-alias = &testcase; |
| 6 | }; |
| 7 | |
| 8 | testcase: testcase-data { |
| 9 | security-password = "password"; |
| 10 | duplicate-name = "duplicate"; |
| 11 | duplicate-name { }; |
| 12 | phandle-tests { |
| 13 | provider0: provider0 { |
| 14 | #phandle-cells = <0>; |
| 15 | }; |
| 16 | |
| 17 | provider1: provider1 { |
| 18 | #phandle-cells = <1>; |
| 19 | }; |
| 20 | |
| 21 | provider2: provider2 { |
| 22 | #phandle-cells = <2>; |
| 23 | }; |
| 24 | |
| 25 | provider3: provider3 { |
| 26 | #phandle-cells = <3>; |
| 27 | }; |
| 28 | |
| 29 | consumer-a { |
| 30 | phandle-list = <&provider1 1>, |
| 31 | <&provider2 2 0>, |
| 32 | <0>, |
| 33 | <&provider3 4 4 3>, |
| 34 | <&provider2 5 100>, |
| 35 | <&provider0>, |
| 36 | <&provider1 7>; |
| 37 | phandle-list-names = "first", "second", "third"; |
| 38 | |
| 39 | phandle-list-bad-phandle = <12345678 0 0>; |
| 40 | phandle-list-bad-args = <&provider2 1 0>, |
| 41 | <&provider3 0>; |
| 42 | empty-property; |
| 43 | string-property = "foobar"; |
| 44 | unterminated-string = [40 41 42 43]; |
| 45 | unterminated-string-list = "first", "second", [40 41 42 43]; |
| 46 | }; |
| 47 | }; |
| 48 | }; |
| 49 | }; |