overlays: Add a pull (up/down) parameter to pps-gpio
authorrlcamp <rlcamp@users.noreply.github.com>
Wed, 31 Aug 2022 12:47:41 +0000 (05:47 -0700)
committerGitHub <noreply@github.com>
Wed, 31 Aug 2022 12:47:41 +0000 (13:47 +0100)
Square wave output from RTCs such as the DS3231 requires a pullup
resistor. This commit allows the pin's internal pull resistors to be
used by specifying "pull=up" or "pull=down" as necessary.

arch/arm/boot/dts/overlays/README
arch/arm/boot/dts/overlays/pps-gpio-overlay.dts

index 3152c23..f958481 100644 (file)
@@ -3102,6 +3102,8 @@ Params: gpiopin                 Input GPIO (default "18")
                                 off)
         capture_clear           Generate clear events on the trailing edge
                                 (default off)
+        pull                    Desired pull-up/down state (off, down, up)
+                                Default is "off".
 
 
 Name:   pwm
index 524a1c1..a4f6b86 100644 (file)
@@ -34,5 +34,6 @@
                          <&pps_pins>,"reg:0";
                assert_falling_edge = <&pps>,"assert-falling-edge?";
                capture_clear = <&pps>,"capture-clear?";
+               pull = <&pps_pins>,"brcm,pull:0";
        };
 };