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_ads114s08: ads114s08@0 { 31 compatible = "ti,ads114s08"; 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 reset-gpios = <&test_gpio 0 0>; 39 drdy-gpios = <&test_gpio 0 0>; 40 start-sync-gpios = <&test_gpio 0 0>; 41 42 test_spi_ads114s08_gpio: ads114s0x_gpio { 43 compatible = "ti,ads114s0x-gpio"; 44 gpio-controller; 45 ngpios = <4>; 46 #gpio-cells = <2>; 47 }; 48 }; 49 }; 50 }; 51}; 52