139 lines
3.0 KiB
Plaintext
139 lines
3.0 KiB
Plaintext
/*
|
|
* Copyright (c) 2020, Linaro Ltd.
|
|
*
|
|
* 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>;
|
|
|
|
adc_emul {
|
|
compatible = "zephyr,adc-emul";
|
|
nchannels = <2>;
|
|
ref-internal-mv = <3300>;
|
|
ref-external1-mv = <5000>;
|
|
#io-channel-cells = <1>;
|
|
label = "ADC_EMUL_0";
|
|
status = "okay";
|
|
};
|
|
|
|
test_gpio: gpio@deadbeef {
|
|
compatible = "vnd,gpio";
|
|
gpio-controller;
|
|
reg = <0xdeadbeef 0x1000>;
|
|
#gpio-cells = <0x2>;
|
|
label = "TEST_GPIO_1";
|
|
status = "okay";
|
|
};
|
|
|
|
test_spi: spi@33334444 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
compatible = "vnd,spi";
|
|
reg = <0x33334444 0x1000>;
|
|
label = "TEST_SPI_CTLR";
|
|
status = "okay";
|
|
clock-frequency = <2000000>;
|
|
|
|
/* one entry for every devices at spi.dtsi */
|
|
cs-gpios = <&test_gpio 0 0>,
|
|
<&test_gpio 0 0>,
|
|
<&test_gpio 0 0>,
|
|
<&test_gpio 0 0>,
|
|
<&test_gpio 0 0>,
|
|
<&test_gpio 0 0>,
|
|
<&test_gpio 0 0>,
|
|
<&test_gpio 0 0>,
|
|
<&test_gpio 0 0>;
|
|
|
|
test_spi_mcp3204: mcp3204@0 {
|
|
compatible = "microchip,mcp3204";
|
|
reg = <0>;
|
|
spi-max-frequency = <0>;
|
|
label = "MCP3204";
|
|
#io-channel-cells = <1>;
|
|
};
|
|
|
|
test_spi_lmp90077: lmp90077@1 {
|
|
compatible = "ti,lmp90077";
|
|
label = "LMP90077";
|
|
reg = <0x1>;
|
|
spi-max-frequency = <0>;
|
|
drdyb-gpios = <&test_gpio 0 0>;
|
|
#io-channel-cells = <2>;
|
|
};
|
|
|
|
test_spi_lmp90078: lmp90078@2 {
|
|
compatible = "ti,lmp90078";
|
|
label = "LMP90078";
|
|
reg = <0x2>;
|
|
spi-max-frequency = <0>;
|
|
drdyb-gpios = <&test_gpio 0 0>;
|
|
#io-channel-cells = <2>;
|
|
};
|
|
|
|
test_spi_lmp90079: lmp90079@3 {
|
|
compatible = "ti,lmp90079";
|
|
label = "LMP90079";
|
|
reg = <0x3>;
|
|
spi-max-frequency = <0>;
|
|
drdyb-gpios = <&test_gpio 0 0>;
|
|
#io-channel-cells = <2>;
|
|
};
|
|
|
|
test_spi_lmp90080: lmp90080@4 {
|
|
compatible = "ti,lmp90080";
|
|
label = "LMP90080";
|
|
reg = <0x4>;
|
|
spi-max-frequency = <0>;
|
|
drdyb-gpios = <&test_gpio 0 0>;
|
|
#io-channel-cells = <2>;
|
|
};
|
|
|
|
test_spi_lmp90097: lmp90097@5 {
|
|
compatible = "ti,lmp90097";
|
|
label = "LMP90097";
|
|
reg = <0x5>;
|
|
spi-max-frequency = <0>;
|
|
drdyb-gpios = <&test_gpio 0 0>;
|
|
#io-channel-cells = <2>;
|
|
};
|
|
|
|
test_spi_lmp90098: lmp90098@6 {
|
|
compatible = "ti,lmp90098";
|
|
label = "LMP90098";
|
|
reg = <0x6>;
|
|
spi-max-frequency = <0>;
|
|
drdyb-gpios = <&test_gpio 0 0>;
|
|
#io-channel-cells = <2>;
|
|
};
|
|
|
|
test_spi_lmp90099: lmp90099@7 {
|
|
compatible = "ti,lmp90099";
|
|
label = "LMP90099";
|
|
reg = <0x7>;
|
|
spi-max-frequency = <0>;
|
|
drdyb-gpios = <&test_gpio 0 0>;
|
|
#io-channel-cells = <2>;
|
|
};
|
|
|
|
test_spi_lmp90100: lmp90100@8 {
|
|
compatible = "ti,lmp90100";
|
|
label = "LMP90100";
|
|
reg = <0x8>;
|
|
spi-max-frequency = <0>;
|
|
drdyb-gpios = <&test_gpio 0 0>;
|
|
#io-channel-cells = <2>;
|
|
};
|
|
};
|
|
};
|
|
};
|