1/* 2 * SPDX-FileCopyrightText: Copyright (c) 2024 Carl Zeiss Meditec AG 3 * SPDX-License-Identifier: Apache-2.0 4 */ 5 6/ { 7 test { 8 #address-cells = <1>; 9 #size-cells = <1>; 10 11 test_gpio: gpio@deadbeef { 12 compatible = "vnd,gpio"; 13 gpio-controller; 14 reg = <0xdeadbeef 0x1000>; 15 #gpio-cells = <0x2>; 16 status = "okay"; 17 18 #include "gpio.dtsi" 19 }; 20 21 test_spi: spi@33334444 { 22 #address-cells = <1>; 23 #size-cells = <0>; 24 compatible = "zephyr,spi-emul-controller"; 25 reg = <0x33334444 0x1000>; 26 status = "okay"; 27 clock-frequency = <2000000>; 28 29 /* one entry for every devices at spi.dtsi */ 30 cs-gpios = <&test_gpio 0 0>; /* 0x00 */ 31 32 #include "spi.dtsi" 33 }; 34 }; 35}; 36