Add new devicetree for UART1 and rs485 ena pin moved to p8.26

parent 1448d373
/*
* Copyright (C) 2013 CircuitCo
*
* Virtual cape for UART1 on connector pins P9.24 P9.26
*
* 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";
/* identification */
part-number = "BB-UART1";
version = "00A0";
/* state the resources this cape uses */
exclusive-use =
/* the pin header uses */
"P9.24", /* uart1_txd */
"P9.26", /* uart1_rxd */
/* the hardware ip uses */
"uart1";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
bb_uart1_pins: pinmux_bb_uart1_pins {
pinctrl-single,pins = <
0x184 0x20 /* P9.24 uart1_txd.uart1_txd OUTPUT */
0x180 0x20 /* P9.26 uart1_rxd.uart1_rxd INPUT */
>;
};
};
};
fragment@1 {
target = <&uart2>; /* really uart1 */
__overlay__ {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&bb_uart1_pins>;
};
};
};
/* Copyright (c) 2013-2014 Unixmedia S.r.l. <info@unixmedia.it>
* Copyright (c) 2013-2014 Franco (nextime) Lanza <franco@unixmedia.it>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* compiling with /usr/local/bin/dtc -O dtb -o OSSO_BASE-00A0.dtbo -b 0 -@ OSSO_BASE-00A0.dts
*/
/dts-v1/;
/plugin/;
/ {
/* Identification */
compatible = "ti,beaglebone", "ti,beaglebone-black";
part-number = "MOSSO_BASE";
board-name = "mOsso";
manufacturer = "Nexlab";
version = "00A0";
/* BB Black uses (so, we cannot):
* P8 3-6, 20-25, 27-46
* P9 28,29,31
*/
/* pins needed by the cape */
exclusive-use =
"P8.12", /* Digital input 4 */
"P8.14", /* Digital input 3 */
"P8.11", /* Digital input 2 */
"P8.15", /* Digital input 1 */
"P9.12", /* Relay 1 */
"P9.15", /* Relay 2 */
"P9.23", /* Relay 3 */
"P8.9", /* Relay 4 */
"P8.26", /* RS485 ENA */
/* References:
https://github.com/derekmolloy/boneDeviceTree/blob/master/docs/BeagleboneBlackP8HeaderTable.pdf
https://github.com/derekmolloy/boneDeviceTree/blob/master/docs/BeagleboneBlackP9HeaderTable.pdf
*/
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
osso_base_pins: pinmux_osso_base_pins {
pinctrl-single,pins = <
0x030 0x37 /* INPUT MODE7 pullup IN 1 */
0x028 0x37 /* INPUT MODE7 pullup IN 2 */
0x034 0x37 /* INPUT MODE7 pullup IN 3 */
0x03c 0x37 /* INPUT MODE7 pullup IN 4 */
0x07c 0x07 /* OUTPUT MODE7 pulldown, RS485 ENA */
0x078 0x07 /* OUTPUT MODE7, pulldown REL 1 */
0x090 0x07 /* OUTPUT MODE7, pulldown REL 2 */
0x040 0x07 /* OUTPUT MODE7, pulldown REL 3 */
0x044 0x07 /* OUTPUT MODE7, pulldown REL 4 */
>;
};
};
};
fragment@1 {
target = <&ocp>;
__overlay__ {
test_helper: helper {
compatible = "bone-pinmux-helper";
pinctrl-names = "default";
pinctrl-0 = <&osso_base_pins>;
status = "okay";
};
};
};
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment