blob: a80c949e036137f5ec8ff187d9d752926236e6b8 [file] [log] [blame]
/*
* 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>;
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_gpio 0 0>,
<&test_gpio 0 0>,
<&test_gpio 0 0>,
<&test_gpio 0 0>;
test_spi_enc28j60: enc28j60@0 {
compatible = "microchip,enc28j60";
reg = <0x0>;
full-duplex;
spi-max-frequency = <0>;
int-gpios = <&test_gpio 0 0>;
local-mac-address = [00 00 00 00 00 00];
};
test_spi_enc424j600: enc424j600@1 {
compatible = "microchip,enc424j600";
reg = <0x1>;
spi-max-frequency = <0>;
int-gpios = <&test_gpio 0 0>;
local-mac-address = [00 00 00 00 00 00];
};
test_spi_w5500: w5500@2 {
compatible = "wiznet,w5500";
reg = <0x2>;
spi-max-frequency = <0>;
int-gpios = <&test_gpio 0 0>;
reset-gpios = <&test_gpio 0 0>;
};
test_spi_adin1110: adin1110@3 {
compatible = "adi,adin1110";
reg = <0x3>;
spi-max-frequency = <25000000>;
int-gpios = <&test_gpio 0 0>;
reset-gpios = <&test_gpio 0 0>;
port1 {
local-mac-address = [ CA 2F B7 10 23 63 ];
};
mdio {
compatible = "adi,adin2111-mdio";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@1 {
reg = <0x1>;
compatible = "adi,adin2111-phy";
status = "okay";
};
};
};
test_spi_adin2111: adin2111@4 {
compatible = "adi,adin2111";
reg = <0x4>;
spi-max-frequency = <0>;
int-gpios = <&test_gpio 0 0>;
reset-gpios = <&test_gpio 0 0>;
port1 {
local-mac-address = [ CA 2F B7 10 23 63 ];
};
port2 {
local-mac-address = [ 3C 82 D4 A2 29 8E ];
};
mdio {
compatible = "adi,adin2111-mdio";
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
ethernet-phy@1 {
reg = <0x1>;
compatible = "adi,adin2111-phy";
status = "okay";
};
ethernet-phy@2 {
reg = <0x2>;
compatible = "adi,adin2111-phy";
status = "okay";
};
};
};
};
};
};