/* * Copyright (c) 2020, Linaro Ltd. * Copyright (c) 2022, Esco Medical ApS * * 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. */ #include #include / { 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 = ; cs-gpios = <&test_gpio 0 0>, <&test_gpio 0 0>, <&test_gpio 0 0>, <&test_gpio 0 0>; test_spi_tlc5971: tlc5971@0 { status = "okay"; compatible = "ti,tlc59711", "ti,tlc5971"; spi-max-frequency = ; reg = <0x0>; chain-length = <8>; // two TLC5971 devices color-mapping = , , ; }; test_spi_apa102: apa102@1 { compatible = "apa,apa102"; reg = <0x1>; spi-max-frequency = <5250000>; chain-length = <4>; color-mapping = ; }; test_spi_lpd8806: lpd8806@2 { compatible = "greeled,lpd8806"; reg = <0x2>; spi-max-frequency = <2000000>; chain-length = <1>; color-mapping = ; }; test_spi_ws2812: ws2812@3 { compatible = "worldsemi,ws2812-spi"; reg = <0x3>; spi-max-frequency = <2000000>; chain-length = <1>; color-mapping = , , ; spi-one-frame = <1>; spi-zero-frame = <2>; }; }; }; };