1/* 2 * Copyright (c) 2024 TOKITA Hiroshi 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 19 test_spi: spi@33334444 { 20 #address-cells = <1>; 21 #size-cells = <0>; 22 compatible = "vnd,spi"; 23 reg = <0x33334444 0x1000>; 24 status = "okay"; 25 clock-frequency = <2000000>; 26 27 /* one entry for every devices at spi.dtsi */ 28 cs-gpios = <&test_gpio 0 0>, 29 <&test_gpio 0 0>, 30 <&test_gpio 0 0>, 31 <&test_gpio 0 0>, 32 <&test_gpio 0 0>; 33 34 test_spi_fs26: fs26@0 { 35 compatible = "nxp,fs26-wdog"; 36 reg = <0>; 37 spi-max-frequency = <5000000>; 38 type = "challenger"; 39 int-gpios = <&test_gpio 2 0>; 40 status = "okay"; 41 }; 42 }; 43 }; 44}; 45