forked from jadonk/cape-firmware
-
Notifications
You must be signed in to change notification settings - Fork 27
/
BB-UART4-RTSCTS-00A0.dts
57 lines (51 loc) · 1.68 KB
/
BB-UART4-RTSCTS-00A0.dts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* BB-UART4-RTSCTS-00A0.dts
* Written by Alexander Hiam <hiamalexander@gmail.com>
* for Logic Supply - http://logicsupply.com
* Jan 28, 2014
*
* This overlay enables RTS/CTS flow control for UART4.
* HDMI must be disabled before enabling this overlay, see:
* http://www.logicsupply.com/blog/2013/07/18/disabling-the-beaglebone-black-hdmi-cape/
*
* Copyright (c) 2014 - Logic Supply (http://logicsupply.com)
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
/dts-v1/;
/plugin/;
/{
compatible = "ti,beaglebone", "ti,beaglebone-black";
part-number = "BB-UART4-RTSCTS";
version = "00A0";
exclusive-use =
"P8.33", /* uart4 rts */
"P8.35"; /* uart4 cts */
fragment@0 {
/* Sets pinmux for flow control pins. */
target = <&am33xx_pinmux>;
__overlay__ {
u4_rtscts_pins: pinmux_u4_rtscts_pins {
pinctrl-single,pins = <
0x0d4 0x0e /* lcd_data13 - pullup | mode 6 (uart4_rtsn) */
0x0d0 0x36 /* lcd_data12 - rx enable | pullup | mode 6 (uart4_ctsn) */
>;
};
};
};
fragment@1 {
/* Enable pinmux-helper driver for setting mux configuration. */
target = <&ocp>; /* On-Chip Peripherals */
__overlay__ {
uart4-rtscts-pinmux {
compatible = "bone-pinmux-helper"; /* Use the pinmux helper */
status="okay";
/* Define custom names for indexes in pinctrl array: */
pinctrl-names = "default";
/* Set the elements of the pinctrl array to the pinmux overlays
defined above: */
pinctrl-0 = <&u4_rtscts_pins>;
};
};
};
};