Commit 1cb3375b authored by Linus Walleij's avatar Linus Walleij Committed by Olof Johansson

ARM: nomadik: selectively enable UART0 on boards

The S8815 board is using RX/TX on UART0, and the NHK8815 is
using RX/TX and CTS/RTS (the latter connected to a Bluetooth
chip). Activate the right groups with the u0 UART0 function
on each board and undisable it. Get rid of the old erroneous
default definition from the SoC file.
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 4cec8cd7
...@@ -17,12 +17,22 @@ chosen { ...@@ -17,12 +17,22 @@ chosen {
}; };
aliases { aliases {
serial0 = &uart0;
serial1 = &uart1; serial1 = &uart1;
stmpe-i2c0 = &stmpe0; stmpe-i2c0 = &stmpe0;
stmpe-i2c1 = &stmpe1; stmpe-i2c1 = &stmpe1;
}; };
pinctrl { pinctrl {
uart0 {
uart0_nhk_mode: uart0_mux {
u0_default_mux {
function = "u0";
groups = "u0txrx_a_1", "u0ctsrts_a_1";
};
};
};
stmpe2401_1 { stmpe2401_1 {
stmpe2401_1_nhk_mode: stmpe2401_1_nhk { stmpe2401_1_nhk_mode: stmpe2401_1_nhk {
nhk_cfg1 { nhk_cfg1 {
...@@ -146,6 +156,12 @@ mmcsd-gpio { ...@@ -146,6 +156,12 @@ mmcsd-gpio {
}; };
amba { amba {
/* Activate RX/TX and CTS/RTS on UART 0 */
uart0: uart@101fd000 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_nhk_mode>;
status = "okay";
};
mmcsd: sdi@101f6000 { mmcsd: sdi@101f6000 {
cd-gpios = <&stmpe_gpio44 7 GPIO_ACTIVE_LOW>; cd-gpios = <&stmpe_gpio44 7 GPIO_ACTIVE_LOW>;
wp-gpios = <&stmpe_gpio44 18 GPIO_ACTIVE_HIGH>; wp-gpios = <&stmpe_gpio44 18 GPIO_ACTIVE_HIGH>;
......
...@@ -16,6 +16,7 @@ chosen { ...@@ -16,6 +16,7 @@ chosen {
}; };
aliases { aliases {
serial0 = &uart0;
serial1 = &uart1; serial1 = &uart1;
}; };
...@@ -40,6 +41,15 @@ pinctrl { ...@@ -40,6 +41,15 @@ pinctrl {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&cd_default_mode>; pinctrl-0 = <&cd_default_mode>;
uart0 {
/* Only use RX/TX pins */
uart0_s8815_mode: uart0_mux {
u0_default_mux {
function = "u0";
groups = "u0txrx_a_1";
};
};
};
mmcsd-cd { mmcsd-cd {
cd_default_mode: cd_default { cd_default_mode: cd_default {
cd_default_cfg1 { cd_default_cfg1 {
...@@ -112,8 +122,14 @@ stw4811@2d { ...@@ -112,8 +122,14 @@ stw4811@2d {
}; };
/* Configure card detect for the uSD slot */
amba { amba {
/* Activate RXTX on UART 0 */
uart0: uart@101fd000 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_s8815_mode>;
status = "okay";
};
/* Configure card detect for the uSD slot */
mmcsd: sdi@101f6000 { mmcsd: sdi@101f6000 {
cd-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>; cd-gpios = <&gpio3 15 GPIO_ACTIVE_LOW>;
}; };
......
...@@ -97,14 +97,6 @@ gpio3: gpio@101e7000 { ...@@ -97,14 +97,6 @@ gpio3: gpio@101e7000 {
pinctrl { pinctrl {
compatible = "stericsson,stn8815-pinctrl"; compatible = "stericsson,stn8815-pinctrl";
/* Pin configurations */ /* Pin configurations */
uart0 {
uart0_default_mux: uart0_mux {
u0_default_mux {
function = "u0";
groups = "u0_a_1";
};
};
};
uart1 { uart1 {
uart1_default_mux: uart1_mux { uart1_default_mux: uart1_mux {
u1_default_mux { u1_default_mux {
...@@ -755,8 +747,6 @@ uart0: uart@101fd000 { ...@@ -755,8 +747,6 @@ uart0: uart@101fd000 {
interrupts = <12>; interrupts = <12>;
clocks = <&uart0clk>, <&pclkuart0>; clocks = <&uart0clk>, <&pclkuart0>;
clock-names = "uartclk", "apb_pclk"; clock-names = "uartclk", "apb_pclk";
pinctrl-names = "default";
pinctrl-0 = <&uart0_default_mux>;
status = "disabled"; status = "disabled";
}; };
......
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