Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / enc28j60-overlay.dts
1 // Overlay for the Microchip ENC28J60 Ethernet Controller
2 /dts-v1/;
3 /plugin/;
4
5 / {
6         compatible = "brcm,bcm2835";
7
8         fragment@0 {
9                 target = <&spi0>;
10                 __overlay__ {
11                         /* needed to avoid dtc warning */
12                         #address-cells = <1>;
13                         #size-cells = <0>;
14
15                         status = "okay";
16
17                         eth1: enc28j60@0{
18                                 compatible = "microchip,enc28j60";
19                                 reg = <0>; /* CE0 */
20                                 pinctrl-names = "default";
21                                 pinctrl-0 = <&eth1_pins>;
22                                 interrupt-parent = <&gpio>;
23                                 interrupts = <25 0x2>; /* falling edge */
24                                 spi-max-frequency = <12000000>;
25                                 status = "okay";
26                         };
27                 };
28         };
29
30         fragment@1 {
31                 target = <&spidev0>;
32                 __overlay__ {
33                         status = "disabled";
34                 };
35         };
36
37         fragment@2 {
38                 target = <&gpio>;
39                 __overlay__ {
40                         eth1_pins: eth1_pins {
41                                 brcm,pins = <25>;
42                                 brcm,function = <0>; /* in */
43                                 brcm,pull = <0>; /* none */
44                         };
45                 };
46         };
47
48         __overrides__ {
49                 int_pin = <&eth1>, "interrupts:0",
50                           <&eth1_pins>, "brcm,pins:0";
51                 speed   = <&eth1>, "spi-max-frequency:0";
52         };
53 };