zephyr/tests/drivers/build_all/led/app.overlay

36 lines
723 B
Plaintext
Raw Normal View History

/*
* 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>;
test_gpio: gpio@deadbeef {
compatible = "vnd,gpio";
gpio-controller;
reg = <0xdeadbeef 0x1000>;
#gpio-cells = <0x2>;
label = "TEST_GPIO_1";
status = "okay";
};
test_gpio_leds {
compatible = "gpio-leds";
test_gpio_led0: test_gpio_led_0 {
gpios = <&test_gpio 0 0>;
label = "Test GPIO LED";
};
};
};
};