overlays: Allow multiple pps-gpio instantiations
authorPhil Elwell <phil@raspberrypi.org>
Wed, 24 Jan 2018 20:00:48 +0000 (20:00 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:57:30 +0000 (15:57 +0100)
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

index 50143a4bb215807ba0a0d0562f5827fa29a04de4..9ee4bdfa6167355e82d7f8229613f29478caf4ee 100644 (file)
@@ -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?";
        };
 };