Skip to content

Commit e8ce7d8

Browse files
author
Phil Elwell
committed
overlays: Allow multiple pps-gpio instantiations
See: #2352 Signed-off-by: Phil Elwell <[email protected]>
1 parent 170a959 commit e8ce7d8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
fragment@0 {
77
target-path = "/";
88
__overlay__ {
9-
pps: pps {
9+
pps: pps@12 {
1010
compatible = "pps-gpio";
1111
pinctrl-names = "default";
1212
pinctrl-0 = <&pps_pins>;
@@ -19,7 +19,7 @@
1919
fragment@1 {
2020
target = <&gpio>;
2121
__overlay__ {
22-
pps_pins: pps_pins {
22+
pps_pins: pps_pins@12 {
2323
brcm,pins = <18>;
2424
brcm,function = <0>; // in
2525
brcm,pull = <0>; // off
@@ -29,7 +29,9 @@
2929

3030
__overrides__ {
3131
gpiopin = <&pps>,"gpios:4",
32-
<&pps_pins>,"brcm,pins:0";
32+
<&pps>,"reg:0",
33+
<&pps_pins>,"brcm,pins:0",
34+
<&pps_pins>,"reg:0";
3335
assert_falling_edge = <&pps>,"assert-falling-edge?";
3436
};
3537
};

0 commit comments

Comments
 (0)