Files
linux/arch/arm/boot/dts/overlays/uart0-overlay.dts
Phil Elwell 71b5376838 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 <phil@raspberrypi.org>
2019-04-02 12:55:34 +01:00

34 lines
585 B
Plaintext
Executable File

/dts-v1/;
/plugin/;
/{
compatible = "brcm,bcm2708";
fragment@0 {
target = <&uart0>;
__overlay__ {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins>;
status = "okay";
};
};
fragment@1 {
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>;
};
};
};
__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";
};
};