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_pt6314: pt6314@0 { 35 compatible = "ptc,pt6314"; 36 reg = <0>; 37 status = "okay"; 38 spi-max-frequency = <1000000>; 39 columns = <20>; 40 rows = <2>; 41 }; 42 }; 43 }; 44}; 45