Skip to content

Commit 68accec

Browse files
Phil Elwellpopcornmix
Phil Elwell
authored andcommitted
overlays: uart0 - return GPIOs 14 and 15 to inputs
In the event that alternate pins are used (only useful on Compute Modules), return the standard pins to inputs to avoid double-mapping them. See: https://www.raspberrypi.org/forums/viewtopic.php?p=1388713#p1316977 Signed-off-by: Phil Elwell <[email protected]>
1 parent b1a8e57 commit 68accec

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

arch/arm/boot/dts/overlays/uart0-overlay.dts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@
1717
target = <&gpio>;
1818
__overlay__ {
1919
uart0_pins: uart0_pins {
20-
brcm,pins = <14 15>;
21-
brcm,function = <4>; /* alt0 */
22-
brcm,pull = <0 2>;
20+
brcm,pins = <14 15 14 15>;
21+
brcm,function = <0 0 4 4>; /* alt0 */
22+
brcm,pull = <0 0 0 2>;
2323
};
2424
};
2525
};
2626

2727
__overrides__ {
28-
txd0_pin = <&uart0_pins>,"brcm,pins:0";
29-
rxd0_pin = <&uart0_pins>,"brcm,pins:4";
30-
pin_func = <&uart0_pins>,"brcm,function:0";
28+
txd0_pin = <&uart0_pins>,"brcm,pins:8";
29+
rxd0_pin = <&uart0_pins>,"brcm,pins:12";
30+
pin_func = <&uart0_pins>,"brcm,function:8",
31+
<&uart0_pins>,"brcm,function:12";
3132
};
3233
};

0 commit comments

Comments
 (0)