-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlays: Add uart0 overlay to change pin usage
Signed-off-by: Phil Elwell <[email protected]>
- Loading branch information
Phil Elwell
committed
Jan 12, 2018
1 parent
3cf4164
commit bc910e1
Showing
3 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/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>; | ||
brcm,function = <4>; /* alt0 */ | ||
brcm,pull = <0 2>; | ||
}; | ||
}; | ||
}; | ||
|
||
__overrides__ { | ||
txd0_pin = <&uart0_pins>,"brcm,pins:0"; | ||
rxd0_pin = <&uart0_pins>,"brcm,pins:4"; | ||
pin_func = <&uart0_pins>,"brcm,function:0"; | ||
}; | ||
}; |