1/*
2 * Copyright (c) 2024 TOKITA Hiroshi
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/ {
8	test {
9		#address-cells = <1>;
10		#size-cells = <1>;
11
12		test_gpio: gpio@deadbeef {
13			compatible = "vnd,gpio";
14			gpio-controller;
15			reg = <0xdeadbeef 0x1000>;
16			#gpio-cells = <0x2>;
17			status = "okay";
18		};
19
20		test_spi: spi@33334444 {
21			#address-cells = <1>;
22			#size-cells = <0>;
23			compatible = "vnd,spi";
24			reg = <0x33334444 0x1000>;
25			status = "okay";
26			clock-frequency = <2000000>;
27
28			cs-gpios = <&test_gpio 0 0>;
29
30			test_spi_lmp90100: lmp90100@0 {
31				compatible = "ti,lmp90100";
32				status = "okay";
33				spi-max-frequency = <10000000>;
34				reg = <0x00>;
35				#address-cells = <1>;
36				#size-cells = <0>;
37				#io-channel-cells = <1>;
38
39				test_spi_lmp90xxx_gpio_gpio: lmp90xxx_gpio {
40					compatible = "ti,lmp90xxx-gpio";
41					gpio-controller;
42					ngpios = <4>;
43					#gpio-cells = <2>;
44				};
45			};
46		};
47	};
48};
49