1// SPDX-License-Identifier: GPL-2.0+ 2/* 3 * Test device tree file for dtoc 4 * 5 * Copyright 2017 Google, Inc 6 */ 7 8 /dts-v1/; 9 10/ { 11 #address-cells = <1>; 12 #size-cells = <1>; 13 spl-test { 14 bootph-all; 15 compatible = "sandbox,spl-test"; 16 boolval; 17 maybe-empty-int = <>; 18 intval = <1>; 19 int64val = /bits/ 64 <0x123456789abcdef0>; 20 intarray = <2 3 4>; 21 byteval = [05]; 22 bytearray = [06]; 23 longbytearray = [09 0a 0b 0c 0d 0e 0f 10 11]; 24 stringval = "message"; 25 stringarray = "multi-word", "message"; 26 notstring = [20 21 22 10 00]; 27 }; 28 29 spl-test2 { 30 bootph-all; 31 compatible = "sandbox,spl-test"; 32 intval = <3>; 33 intarray = <5>; 34 byteval = [08]; 35 bytearray = [01 23 34]; 36 longbytearray = [09 0a 0b 0c]; 37 stringval = "message2"; 38 stringarray = "another", "multi-word", "message"; 39 acpi-name = "\\_SB.GPO0"; 40 }; 41 42 spl-test3 { 43 bootph-all; 44 compatible = "sandbox,spl-test"; 45 stringarray = "one"; 46 longbytearray = [09 0a 0b 0c 0d 0e 0f 10]; 47 maybe-empty-int = <1>; 48 }; 49 50 i2c@0 { 51 compatible = "sandbox,i2c"; 52 bootph-all; 53 #address-cells = <1>; 54 #size-cells = <0>; 55 pmic@9 { 56 compatible = "sandbox,pmic"; 57 bootph-all; 58 reg = <9>; 59 low-power; 60 }; 61 }; 62 63 orig-node { 64 orig = <1 23 4>; 65 args = "-n first", "second", "-p", "123,456", "-x"; 66 args2 = "a space", "there"; 67 args3 = "-n first second -p 123,456 -x"; 68 }; 69}; 70