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: ads1x4s0x_gpio { 43 compatible = "ti,ads1x4s0x-gpio"; 44 gpio-controller; 45 ngpios = <4>; 46 #gpio-cells = <2>; 47 }; 48 }; 49 50 test_spi_ads124s08: ads124s08@0 { 51 compatible = "ti,ads124s08"; 52 status = "okay"; 53 spi-max-frequency = <10000000>; 54 reg = <0x00>; 55 #address-cells = <1>; 56 #size-cells = <0>; 57 #io-channel-cells = <1>; 58 reset-gpios = <&test_gpio 0 0>; 59 drdy-gpios = <&test_gpio 0 0>; 60 start-sync-gpios = <&test_gpio 0 0>; 61 62 test_spi_ads124s08_gpio: ads1x4s0x_gpio { 63 compatible = "ti,ads1x4s0x-gpio"; 64 gpio-controller; 65 ngpios = <4>; 66 #gpio-cells = <2>; 67 }; 68 }; 69 70 test_spi_ads114s06: ads114s06@0 { 71 compatible = "ti,ads114s06"; 72 status = "okay"; 73 spi-max-frequency = <10000000>; 74 reg = <0x00>; 75 #address-cells = <1>; 76 #size-cells = <0>; 77 #io-channel-cells = <1>; 78 reset-gpios = <&test_gpio 0 0>; 79 drdy-gpios = <&test_gpio 0 0>; 80 start-sync-gpios = <&test_gpio 0 0>; 81 82 test_spi_ads114s06_gpio: ads1x4s0x_gpio { 83 compatible = "ti,ads1x4s0x-gpio"; 84 gpio-controller; 85 ngpios = <4>; 86 #gpio-cells = <2>; 87 }; 88 }; 89 90 test_spi_ads124s06: ads124s06@0 { 91 compatible = "ti,ads124s06"; 92 status = "okay"; 93 spi-max-frequency = <10000000>; 94 reg = <0x00>; 95 #address-cells = <1>; 96 #size-cells = <0>; 97 #io-channel-cells = <1>; 98 reset-gpios = <&test_gpio 0 0>; 99 drdy-gpios = <&test_gpio 0 0>; 100 start-sync-gpios = <&test_gpio 0 0>; 101 102 test_spi_ads124s06_gpio: ads1x4s0x_gpio { 103 compatible = "ti,ads1x4s0x-gpio"; 104 gpio-controller; 105 ngpios = <4>; 106 #gpio-cells = <2>; 107 }; 108 }; 109 }; 110 }; 111}; 112