Skip to content

Commit

Permalink
overlays: Remove hack from uart0 overlay
Browse files Browse the repository at this point in the history
The uart0 overlay contained a hack to return GPIOs 14 and 15 to inputs
when the UART0 function was moved to alternative pins. This has the
unwanted side effect of claiming GPIOs 14 & 15, preventing them being
used for something else.

See: #2856
     https://www.raspberrypi.org/forums/viewtopic.php?f=98&t=252911

Signed-off-by: Stefan Enge <stefan.enge@escatec.com>
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
  • Loading branch information
Phil Elwell authored and popcornmix committed Nov 18, 2019
1 parent 27bd5ca commit 6bdfaec
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions arch/arm/boot/dts/overlays/uart0-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,16 @@
target = <&gpio>;
__overlay__ {
uart0_pins: uart0_pins {
brcm,pins = <14 15 14 15>;
brcm,function = <0 0 4 4>; /* alt0 */
brcm,pull = <0 0 0 2>;
brcm,pins = <14 15>;
brcm,function = <4>; /* alt0 */
brcm,pull = <0 2>;
};
};
};

__overrides__ {
txd0_pin = <&uart0_pins>,"brcm,pins:8";
rxd0_pin = <&uart0_pins>,"brcm,pins:12";
pin_func = <&uart0_pins>,"brcm,function:8",
<&uart0_pins>,"brcm,function:12";
txd0_pin = <&uart0_pins>,"brcm,pins:0";
rxd0_pin = <&uart0_pins>,"brcm,pins:4";
pin_func = <&uart0_pins>,"brcm,function:0";
};
};

0 comments on commit 6bdfaec

Please sign in to comment.