Created
July 18, 2017 21:05
-
-
Save winter-muted/6aea7bb9d05636a5304c93c202fbbf67 to your computer and use it in GitHub Desktop.
PRU UART overlay
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
/* Device Tree Overlay for enabling the pins that are used in Chapter 13 | |
* This overlay is based on the BB-PRU-01 overlay | |
* Written by Derek Molloy for the book "Exploring BeagleBone: Tools and | |
* Techniques for Building with Embedded Linux" by John Wiley & Sons, 2014 | |
* ISBN 9781118935125. Please see the file README.md in the repository root | |
* directory for copyright and GNU GPLv3 license information. | |
*/ | |
/dts-v1/; | |
/plugin/; | |
/ { | |
compatible = "ti,beaglebone", "ti,beaglebone-black"; | |
part-number = "B4-PRU-Example"; | |
version = "00A0"; | |
/* This overlay uses the following resources */ | |
exclusive-use = | |
"P9.17", "P9.18", "pru1"; | |
fragment@0 { | |
target = <&am33xx_pinmux>; | |
__overlay__ { | |
pru_pru_pins: pinmux_pru_pru_pins { // The PRU pin modes | |
pinctrl-single,pins = < | |
0x15c 0x14 // pr1_uart0 tx, output fast slew pull up mux 4 | |
0x158 0x34 // pr1_uar0 rx, input fast slew pull up mux 4 | |
>; | |
}; | |
}; | |
}; | |
fragment@1 { // Enable the PRUSS | |
target = <&pruss>; | |
__overlay__ { | |
status = "okay"; | |
pinctrl-names = "default"; | |
pinctrl-0 = <&pru_pru_pins>; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment