diff options
Diffstat (limited to 'target/linux/brcm2708/patches-4.14/950-0171-overlays-Allow-multiple-pps-gpio-instantiations.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.14/950-0171-overlays-Allow-multiple-pps-gpio-instantiations.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/target/linux/brcm2708/patches-4.14/950-0171-overlays-Allow-multiple-pps-gpio-instantiations.patch b/target/linux/brcm2708/patches-4.14/950-0171-overlays-Allow-multiple-pps-gpio-instantiations.patch new file mode 100644 index 0000000000..c614412a0e --- /dev/null +++ b/target/linux/brcm2708/patches-4.14/950-0171-overlays-Allow-multiple-pps-gpio-instantiations.patch @@ -0,0 +1,43 @@ +From 228a56f5c3e7b796cedb9cf7e55c2bf16c534269 Mon Sep 17 00:00:00 2001 +From: Phil Elwell <phil@raspberrypi.org> +Date: Wed, 24 Jan 2018 20:00:48 +0000 +Subject: [PATCH 171/454] overlays: Allow multiple pps-gpio instantiations + +See: https://github.com/raspberrypi/linux/issues/2352 + +Signed-off-by: Phil Elwell <phil@raspberrypi.org> +--- + arch/arm/boot/dts/overlays/pps-gpio-overlay.dts | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) + +--- a/arch/arm/boot/dts/overlays/pps-gpio-overlay.dts ++++ b/arch/arm/boot/dts/overlays/pps-gpio-overlay.dts +@@ -6,7 +6,7 @@ + fragment@0 { + target-path = "/"; + __overlay__ { +- pps: pps { ++ pps: pps@12 { + compatible = "pps-gpio"; + pinctrl-names = "default"; + pinctrl-0 = <&pps_pins>; +@@ -19,7 +19,7 @@ + fragment@1 { + target = <&gpio>; + __overlay__ { +- pps_pins: pps_pins { ++ pps_pins: pps_pins@12 { + brcm,pins = <18>; + brcm,function = <0>; // in + brcm,pull = <0>; // off +@@ -29,7 +29,9 @@ + + __overrides__ { + gpiopin = <&pps>,"gpios:4", +- <&pps_pins>,"brcm,pins:0"; ++ <&pps>,"reg:0", ++ <&pps_pins>,"brcm,pins:0", ++ <&pps_pins>,"reg:0"; + assert_falling_edge = <&pps>,"assert-falling-edge?"; + }; + }; |