xref: /linux/drivers/of/unittest-data/tests-platform.dtsi (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1*b2441318SGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0
219fd7487SGrant Likely
319fd7487SGrant Likely/ {
419fd7487SGrant Likely	testcase-data {
519fd7487SGrant Likely		platform-tests {
619fd7487SGrant Likely			#address-cells = <1>;
719fd7487SGrant Likely			#size-cells = <0>;
819fd7487SGrant Likely
919fd7487SGrant Likely			test-device@0 {
1019fd7487SGrant Likely				compatible = "test-device";
1119fd7487SGrant Likely				reg = <0x0>;
1219fd7487SGrant Likely
1319fd7487SGrant Likely				#address-cells = <1>;
1419fd7487SGrant Likely				#size-cells = <0>;
1519fd7487SGrant Likely
1619fd7487SGrant Likely				dev@100 {
1719fd7487SGrant Likely					compatible = "test-sub-device";
1819fd7487SGrant Likely					reg = <0x100>;
1919fd7487SGrant Likely				};
2019fd7487SGrant Likely			};
2119fd7487SGrant Likely
2219fd7487SGrant Likely			test-device@1 {
2319fd7487SGrant Likely				compatible = "test-device";
2419fd7487SGrant Likely				reg = <0x1>;
2519fd7487SGrant Likely
2619fd7487SGrant Likely				#address-cells = <1>;
2719fd7487SGrant Likely				#size-cells = <0>;
2819fd7487SGrant Likely
2919fd7487SGrant Likely				dev@100 {
30ce4fecf1SPantelis Antoniou					compatible = "test-sub-device",
31ce4fecf1SPantelis Antoniou						     "test-compat2",
32ce4fecf1SPantelis Antoniou						     "test-compat3";
3319fd7487SGrant Likely					reg = <0x100>;
3419fd7487SGrant Likely				};
3519fd7487SGrant Likely			};
3619fd7487SGrant Likely		};
3719fd7487SGrant Likely	};
3819fd7487SGrant Likely};
39