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