1 1) OF unittest platform device 1 1) OF unittest platform device 2 2 3 ** unittest 3 ** unittest 4 4 5 Required properties: 5 Required properties: 6 - compatible: must be "unittest" 6 - compatible: must be "unittest" 7 7 8 All other properties are optional. 8 All other properties are optional. 9 9 10 Example: 10 Example: 11 unittest { 11 unittest { 12 compatible = "unittest"; 12 compatible = "unittest"; >> 13 status = "okay"; 13 }; 14 }; 14 15 15 2) OF unittest i2c adapter platform device 16 2) OF unittest i2c adapter platform device 16 17 17 ** platform device unittest adapter 18 ** platform device unittest adapter 18 19 19 Required properties: 20 Required properties: 20 - compatible: must be unittest-i2c-bus 21 - compatible: must be unittest-i2c-bus 21 22 22 Children nodes contain unittest i2c devices. 23 Children nodes contain unittest i2c devices. 23 24 24 Example: 25 Example: 25 unittest-i2c-bus { 26 unittest-i2c-bus { 26 compatible = "unittest-i2c-bus 27 compatible = "unittest-i2c-bus"; >> 28 status = "okay"; 27 }; 29 }; 28 30 29 3) OF unittest i2c device 31 3) OF unittest i2c device 30 32 31 ** I2C unittest device 33 ** I2C unittest device 32 34 33 Required properties: 35 Required properties: 34 - compatible: must be unittest-i2c-dev 36 - compatible: must be unittest-i2c-dev 35 37 36 All other properties are optional 38 All other properties are optional 37 39 38 Example: 40 Example: 39 unittest-i2c-dev { 41 unittest-i2c-dev { 40 compatible = "unittest-i2c-dev 42 compatible = "unittest-i2c-dev"; >> 43 status = "okay"; 41 }; 44 }; 42 45 43 4) OF unittest i2c mux device 46 4) OF unittest i2c mux device 44 47 45 ** I2C unittest mux 48 ** I2C unittest mux 46 49 47 Required properties: 50 Required properties: 48 - compatible: must be unittest-i2c-mux 51 - compatible: must be unittest-i2c-mux 49 52 50 Children nodes contain unittest i2c bus nodes 53 Children nodes contain unittest i2c bus nodes per channel. 51 54 52 Example: 55 Example: 53 unittest-i2c-mux { 56 unittest-i2c-mux { 54 compatible = "unittest-i2c-mux 57 compatible = "unittest-i2c-mux"; >> 58 status = "okay"; 55 #address-cells = <1>; 59 #address-cells = <1>; 56 #size-cells = <0>; 60 #size-cells = <0>; 57 channel-0 { 61 channel-0 { 58 reg = <0>; 62 reg = <0>; 59 #address-cells = <1>; 63 #address-cells = <1>; 60 #size-cells = <0>; 64 #size-cells = <0>; 61 i2c-dev { 65 i2c-dev { 62 reg = <8>; 66 reg = <8>; 63 compatible = " 67 compatible = "unittest-i2c-dev"; >> 68 status = "okay"; 64 }; 69 }; 65 }; 70 }; 66 }; 71 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.