blob: 868cebb5e605fd42de73087b85f60c1b22ea1872 [file] [log] [blame]
/*
* Copyright (c) 2020 Nordic Semiconductor ASA
* Copyright (c) 2022 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*
*/
/ {
test {
#address-cells = <0x1>;
#size-cells = <0x1>;
test_gpio: gpio@deadbeef {
compatible = "vnd,gpio";
gpio-controller;
reg = <0xdeadbeef 0x1000>;
#gpio-cells = <0x2>;
label = "TEST_GPIO";
status = "okay";
};
test_spi_cs: spi@33334444 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "vnd,spi";
reg = <0x33334444 0x1000>;
label = "TEST_SPI_CTLR_CS";
status = "okay";
clock-frequency = <2000000>;
cs-gpios = <&test_gpio 0x10 0x20>;
test_spi_dev_cs: test-spi-dev@0 {
compatible = "vnd,spi-device";
label = "TEST_SPI_DEV_0";
reg = <0>;
spi-max-frequency = <2000000>;
};
};
test_spi_no_cs: spi@55556666 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "vnd,spi";
reg = <0x55556666 0x1000>;
label = "TEST_SPI_CTLR_NO_CS";
status = "okay";
clock-frequency = <2000000>;
test_spi_dev_no_cs: test-spi-dev@0 {
compatible = "vnd,spi-device";
label = "TEST_SPI_DEV_NO_CS";
reg = <0>;
spi-max-frequency = <2000000>;
};
};
};
};