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