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_winc1500: winc1500@0 { 35 compatible = "atmel,winc1500"; 36 status = "okay"; 37 reg = <0>; 38 spi-max-frequency = <5000000>; 39 irq-gpios = <&test_gpio 0 0>; 40 reset-gpios = <&test_gpio 0 0>; 41 enable-gpios = <&test_gpio 0 0>; 42 }; 43 44 test_spi_eswifi: eswifi@1 { 45 compatible = "inventek,eswifi"; 46 status = "okay"; 47 reg = <1>; 48 spi-max-frequency = <2000000>; 49 resetn-gpios = <&test_gpio 0 0>; 50 wakeup-gpios = <&test_gpio 0 0>; 51 boot0-gpios = <&test_gpio 0 0>; 52 data-gpios = <&test_gpio 0 0>; 53 }; 54 }; 55 }; 56}; 57