Skip to content

Commit

Permalink
overlays: Allow multiple pps-gpio instantiations
Browse files Browse the repository at this point in the history
See: #2352

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  • Loading branch information
Phil Elwell committed Jan 24, 2018
1 parent 170a959 commit e8ce7d8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions arch/arm/boot/dts/overlays/pps-gpio-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
fragment@0 {
target-path = "/";
__overlay__ {
pps: pps {
pps: pps@12 {
compatible = "pps-gpio";
pinctrl-names = "default";
pinctrl-0 = <&pps_pins>;
Expand All @@ -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
Expand All @@ -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?";
};
};

0 comments on commit e8ce7d8

Please sign in to comment.