mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-24 02:52:38 +00:00
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>
34 lines
585 B
Plaintext
Executable File
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";
|
|
};
|
|
};
|