Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / arch / arm / boot / dts / overlays / pps-gpio-overlay.dts
1 /dts-v1/;
2 /plugin/;
3
4 / {
5         compatible = "brcm,bcm2835";
6         fragment@0 {
7                 target-path = "/";
8                 __overlay__ {
9                         pps: pps@12 {
10                                 compatible = "pps-gpio";
11                                 pinctrl-names = "default";
12                                 pinctrl-0 = <&pps_pins>;
13                                 gpios = <&gpio 18 0>;
14                                 status = "okay";
15                         };
16                 };
17         };
18
19         fragment@1 {
20                 target = <&gpio>;
21                 __overlay__ {
22                         pps_pins: pps_pins@12 {
23                                 brcm,pins =     <18>;
24                                 brcm,function = <0>;    // in
25                                 brcm,pull =     <0>;    // off
26                         };
27                 };
28         };
29
30         __overrides__ {
31                 gpiopin = <&pps>,"gpios:4",
32                           <&pps>,"reg:0",
33                           <&pps_pins>,"brcm,pins:0",
34                           <&pps_pins>,"reg:0";
35                 assert_falling_edge = <&pps>,"assert-falling-edge?";
36                 capture_clear = <&pps>,"capture-clear?";
37         };
38 };