blob: d8628f48c09ee778a68c5a2b58f501e0297d364e [file] [log] [blame]
/*
* Copyright (c) 2022, Kumar Gala <galak@kernel.org>
*
* 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>;
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 devices at spi.dtsi */
cs-gpios = <&test_gpio 0 0>;
test_spi_ili9342c: ili9342c@0 {
compatible = "ilitek,ili9342c";
reg = <0>;
spi-max-frequency = <25000000>;
cmd-data-gpios = <&test_gpio 0 0>;
pixel-format = <0>;
rotation = <270>;
width = <320>;
height = <240>;
};
};
};
};