Skip to content

Commit

Permalink
overlays: uart0 - return GPIOs 14 and 15 to inputs
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Phil Elwell authored and popcornmix committed Feb 12, 2019
1 parent b1a8e57 commit 68accec
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions arch/arm/boot/dts/overlays/uart0-overlay.dts
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@
target = <&gpio>;
__overlay__ {
uart0_pins: uart0_pins {
brcm,pins = <14 15>;
brcm,function = <4>; /* alt0 */
brcm,pull = <0 2>;
brcm,pins = <14 15 14 15>;
brcm,function = <0 0 4 4>; /* alt0 */
brcm,pull = <0 0 0 2>;
};
};
};

__overrides__ {
txd0_pin = <&uart0_pins>,"brcm,pins:0";
rxd0_pin = <&uart0_pins>,"brcm,pins:4";
pin_func = <&uart0_pins>,"brcm,function:0";
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";
};
};

0 comments on commit 68accec

Please sign in to comment.