Commit 39ac0979 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Gregory CLEMENT

ARM: dts: kirkwood: provide template for RS-232/485 configuration for OpenRD

Some OpenRD boards have RS-232 and RS-486 connectors wired, but using them
needs a custom DTB as the current DTB configures SD card slot instead.

This patch adds documentation into the DTS on how to change
the configuration.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
parent 60ff189c
...@@ -40,7 +40,7 @@ pinctrl: pin-controller@10000 { ...@@ -40,7 +40,7 @@ pinctrl: pin-controller@10000 {
pinctrl-0 = <&pmx_select28 &pmx_sdio_cd &pmx_select34>; pinctrl-0 = <&pmx_select28 &pmx_sdio_cd &pmx_select34>;
pinctrl-names = "default"; pinctrl-names = "default";
pmx_select28: pmx-select-rs232-rs484 { pmx_select28: pmx-select-rs232-rs485 {
marvell,pins = "mpp28"; marvell,pins = "mpp28";
marvell,function = "gpio"; marvell,function = "gpio";
}; };
...@@ -65,10 +65,39 @@ mvsdio@90000 { ...@@ -65,10 +65,39 @@ mvsdio@90000 {
status = "okay"; status = "okay";
cd-gpios = <&gpio0 29 9>; cd-gpios = <&gpio0 29 9>;
}; };
gpio@10100 {
p28 {
gpio-hog;
gpios = <28 GPIO_ACTIVE_HIGH>;
/*
* SelRS232or485 selects between RS-232 or RS-485
* mode for the second UART.
*
* Low: RS-232
* High: RS-485
*
* To use the second UART, you need to change also
* the SelUARTorSD.
*/
output-low;
line-name = "SelRS232or485";
};
};
gpio@10140 { gpio@10140 {
p2 { p2 {
gpio-hog; gpio-hog;
gpios = <2 GPIO_ACTIVE_HIGH>; gpios = <2 GPIO_ACTIVE_HIGH>;
/*
* SelUARTorSD selects between the second UART
* (serial@12100) and SD (mvsdio@90000).
*
* Low: UART
* High: SD
*
* When changing this line make sure the newly
* selected device node is enabled and the
* previously selected device node is disabled.
*/
output-high; /* Select SD by default */ output-high; /* Select SD by default */
line-name = "SelUARTorSD"; line-name = "SelUARTorSD";
}; };
......
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