1/* 2 * Copyright (c) 2020, Linaro Ltd. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Application overlay for testing driver builds 7 * 8 * Names in this file should be chosen in a way that won't conflict 9 * with real-world devicetree nodes, to allow these tests to run on 10 * (and be extended to test) real hardware. 11 */ 12 13/ { 14 test { 15 #address-cells = <1>; 16 #size-cells = <1>; 17 18 test_gpio: gpio@deadbeef { 19 compatible = "vnd,gpio"; 20 gpio-controller; 21 reg = <0xdeadbeef 0x1000>; 22 #gpio-cells = <0x2>; 23 status = "okay"; 24 }; 25 26 test_spi: spi@33334444 { 27 #address-cells = <1>; 28 #size-cells = <0>; 29 compatible = "vnd,spi"; 30 reg = <0x33334444 0x1000>; 31 status = "okay"; 32 clock-frequency = <2000000>; 33 34 /* one entry for every devices at spi.dtsi */ 35 cs-gpios = <&test_gpio 0 0>, 36 <&test_gpio 0 0>, 37 <&test_gpio 0 0>, 38 <&test_gpio 0 0>, 39 <&test_gpio 0 0>, 40 <&test_gpio 0 0>, 41 <&test_gpio 0 0>; 42 43 test_spi_enc28j60: enc28j60@0 { 44 compatible = "microchip,enc28j60"; 45 reg = <0x0>; 46 full-duplex; 47 spi-max-frequency = <0>; 48 int-gpios = <&test_gpio 0 0>; 49 local-mac-address = [00 00 00 00 00 00]; 50 }; 51 52 test_spi_enc424j600: enc424j600@1 { 53 compatible = "microchip,enc424j600"; 54 reg = <0x1>; 55 spi-max-frequency = <0>; 56 int-gpios = <&test_gpio 0 0>; 57 local-mac-address = [00 00 00 00 00 00]; 58 }; 59 60 test_spi_w5500: w5500@2 { 61 compatible = "wiznet,w5500"; 62 reg = <0x2>; 63 spi-max-frequency = <0>; 64 int-gpios = <&test_gpio 0 0>; 65 reset-gpios = <&test_gpio 0 0>; 66 }; 67 68 test_spi_adin1110: adin1110@3 { 69 compatible = "adi,adin1110"; 70 reg = <0x3>; 71 spi-max-frequency = <25000000>; 72 int-gpios = <&test_gpio 0 0>; 73 reset-gpios = <&test_gpio 0 0>; 74 75 port1 { 76 local-mac-address = [ CA 2F B7 10 23 63 ]; 77 }; 78 79 mdio { 80 compatible = "adi,adin2111-mdio"; 81 status = "okay"; 82 #address-cells = <1>; 83 #size-cells = <0>; 84 85 ethernet-phy@1 { 86 reg = <0x1>; 87 compatible = "adi,adin2111-phy"; 88 status = "okay"; 89 }; 90 }; 91 }; 92 93 test_spi_adin2111: adin2111@4 { 94 compatible = "adi,adin2111"; 95 reg = <0x4>; 96 spi-max-frequency = <0>; 97 int-gpios = <&test_gpio 0 0>; 98 reset-gpios = <&test_gpio 0 0>; 99 100 port1 { 101 local-mac-address = [ CA 2F B7 10 23 63 ]; 102 }; 103 port2 { 104 local-mac-address = [ 3C 82 D4 A2 29 8E ]; 105 }; 106 107 mdio { 108 compatible = "adi,adin2111-mdio"; 109 status = "okay"; 110 #address-cells = <1>; 111 #size-cells = <0>; 112 113 ethernet-phy@1 { 114 reg = <0x1>; 115 compatible = "adi,adin2111-phy"; 116 status = "okay"; 117 }; 118 ethernet-phy@2 { 119 reg = <0x2>; 120 compatible = "adi,adin2111-phy"; 121 status = "okay"; 122 }; 123 }; 124 }; 125 126 test_spi_lan865x: lan865x@5 { 127 compatible = "microchip,lan865x"; 128 reg = <0x5>; 129 spi-max-frequency = <0>; 130 int-gpios = <&test_gpio 0 0>; 131 rst-gpios = <&test_gpio 0 0>; 132 local-mac-address = [00 00 00 01 02 03]; 133 lan865x_mdio: lan865x_mdio { 134 compatible = "microchip,lan865x-mdio"; 135 status = "okay"; 136 #address-cells = <1>; 137 #size-cells = <0>; 138 ethernet-phy@0 { 139 compatible = "microchip,t1s-phy"; 140 reg = <0x0>; 141 plca-enable; 142 plca-node-id = <0>; 143 plca-node-count = <8>; 144 plca-burst-count = <0>; 145 plca-burst-timer = <0x80>; 146 plca-to-timer = <0x20>; 147 status = "okay"; 148 }; 149 }; 150 }; 151 152 test_spi_lan9250: lan9250@6 { 153 compatible = "microchip,lan9250"; 154 reg = <0x6>; 155 spi-max-frequency = <0>; 156 int-gpios = <&test_gpio 0 0>; 157 local-mac-address = [00 00 00 00 00 00]; 158 }; 159 }; 160 }; 161}; 162