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