blob: 92e4cd79c003f22d9c44e5d8f1090e549c814cac [file] [log] [blame]
/*
* Copyright (c) 2023, Basalte bv
*
* SPDX-License-Identifier: Apache-2.0
*
* Application overlay for testing driver builds
*
* Names in this file should be chosen in a way that won't conflict
* with real-world devicetree nodes, to allow these tests to run on
* (and be extended to test) real hardware.
*/
/ {
test {
#address-cells = <1>;
#size-cells = <1>;
test_uart: uart@55556666 {
compatible = "vnd,serial";
reg = <0x55556666 0x1000>;
status = "okay";
test_sc18im704: sc18im704 {
compatible = "nxp,sc18im704";
status = "okay";
test_i2c_ext: sc18im704_i2c {
compatible = "nxp,sc18im704-i2c";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
};
test_gpio_ext: sc18im704_gpio {
compatible = "nxp,sc18im704-gpio";
status = "okay";
gpio-controller;
#gpio-cells = <2>;
ngpios = <8>;
};
};
};
test_gpio: gpio@deadbeef {
compatible = "vnd,gpio";
gpio-controller;
reg = <0xdeadbeef 0x1000>;
#gpio-cells = <0x2>;
status = "okay";
};
test_spi: spi@33334444 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "vnd,spi";
reg = <0x33334444 0x1000>;
status = "okay";
clock-frequency = <2000000>;
/* one entry for every spi devices */
cs-gpios = <&test_gpio 0 0>;
test_spi_maxq10xx@0 {
compatible = "adi,maxq10xx";
reg = <0x0>;
status = "okay";
spi-max-frequency = <0>;
test_spi_maxq10xx_trng: trng {
compatible = "adi,maxq10xx-trng";
status = "okay";
};
};
};
};
};