brcm2708: update to latest patches from the RPi foundation
[openwrt/staging/lynxis.git] / target / linux / brcm2708 / patches-4.14 / 950-0171-overlays-Allow-multiple-pps-gpio-instantiations.patch
1 From 228a56f5c3e7b796cedb9cf7e55c2bf16c534269 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Wed, 24 Jan 2018 20:00:48 +0000
4 Subject: [PATCH 171/454] overlays: Allow multiple pps-gpio instantiations
5
6 See: https://github.com/raspberrypi/linux/issues/2352
7
8 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
9 ---
10 arch/arm/boot/dts/overlays/pps-gpio-overlay.dts | 8 +++++---
11 1 file changed, 5 insertions(+), 3 deletions(-)
12
13 --- a/arch/arm/boot/dts/overlays/pps-gpio-overlay.dts
14 +++ b/arch/arm/boot/dts/overlays/pps-gpio-overlay.dts
15 @@ -6,7 +6,7 @@
16 fragment@0 {
17 target-path = "/";
18 __overlay__ {
19 - pps: pps {
20 + pps: pps@12 {
21 compatible = "pps-gpio";
22 pinctrl-names = "default";
23 pinctrl-0 = <&pps_pins>;
24 @@ -19,7 +19,7 @@
25 fragment@1 {
26 target = <&gpio>;
27 __overlay__ {
28 - pps_pins: pps_pins {
29 + pps_pins: pps_pins@12 {
30 brcm,pins = <18>;
31 brcm,function = <0>; // in
32 brcm,pull = <0>; // off
33 @@ -29,7 +29,9 @@
34
35 __overrides__ {
36 gpiopin = <&pps>,"gpios:4",
37 - <&pps_pins>,"brcm,pins:0";
38 + <&pps>,"reg:0",
39 + <&pps_pins>,"brcm,pins:0",
40 + <&pps_pins>,"reg:0";
41 assert_falling_edge = <&pps>,"assert-falling-edge?";
42 };
43 };