修改1:
msm8937-mtp.dtsi 使能配置
&blsp1_uart1 {//uart1
status = "ok";
pinctrl-names = "default";
pinctrl-0 = <&uart1_console_active>;
};
&blsp1_uart2 {//uart2
status = "ok";
pinctrl-names = "default";
pinctrl-0 = <&uart_console_active>;
};
&blsp2_uart5 {//uart5
status = "ok";
pinctrl-names = "default";
pinctrl-0 = <&uart5_console_active>;
};
&blsp2_uart6 {//uart6
status = "ok";
pinctrl-names = "default";
pinctrl-0 = <&uart6_console_active>;
};
修改2:
msm8937.dtsi 功能配置
blsp1_uart1: serial@78af000 {//uart1
compatible = "qcom,msm-lsuart-v14";
reg = <0x78af000 0x200>;
interrupts = <0 107 0>;
status = "disabled";
clocks = <&clock_gcc clk_gcc_blsp1_uart1_apps_clk>,
<&clock_gcc clk_gcc_blsp1_ahb_clk>;
clock-names = "core_clk", "iface_clk";
};
blsp1_uart2:serial@78b0000 {//uart2
compatible = "qcom,msm-lsuart-v14";
reg = <0x78b0000 0x200>;
interrupts = <0 108 0>;
status = "disabled";
clocks = <&clock_gcc clk_gcc_blsp1_uart2_apps_clk>,
<&clock_gcc clk_gcc_blsp1_ahb_clk>;
clock-names = "core_clk", "iface_clk";
};
blsp2_uart5:serial@7aef000 {//uart5
compatible = "qcom,msm-lsuart-v14";
reg = <0x7aef000 0x200>;
interrupts = <0 306 0>;
status = "disabled";
clocks = <&clock_gcc clk_gcc_blsp2_uart1_apps_clk>,
<&clock_gcc clk_gcc_blsp2_ahb_clk>;
clock-names = "core_clk","iface_clk";
};
blsp2_uart6:serial@7af0000 {//uart6
compatible = "qcom,msm-lsuart-v14";
reg = <0x7af0000 0x200>;
interrupts = <0 307 0>;
status = "disabled";
clocks = <&clock_gcc clk_gcc_blsp2_uart2_apps_clk>,
<&clock_gcc clk_gcc_blsp2_ahb_clk>;
clock-names = "core_clk","iface_clk";
};
修改3:
msm8937-pinctrl.dtsi GPIO配置
pmx-uart1console {//uart1
uart1_console_active: uart1_console_active {
mux {
pins = "gpio0","gpio1";
function = "blsp_uart1";
};
config {
pins = "gpio0","gpio1";
drive-strength = <2>;
bias-disable;
};
};
uart1_console_sleep: uart1_console_sleep {
mux {
pins = "gpio0","gpio1";
function = "blsp_uart1";
};
config {
pins = "gpio0","gpio1";
drive-strength = <2>;
bias-pull-down;
};
};
};
pmx-uartconsole {//uart2
uart_console_active: uart_console_active {
mux {
pins = "gpio4", "gpio5";
function = "blsp_uart2";
};
config {
pins = "gpio4", "gpio5";
drive-strength = <2>;
bias-disable;
};
};
uart_console_sleep: uart_console_sleep {
mux {
pins = "gpio4", "gpio5";
function = "blsp_uart2";
};
config {
pins = "gpio4", "gpio5";
drive-strength = <2>;
bias-pull-down;
};
};
};
pmx-uart5console {//uart5
uart5_console_active: uart_console_active {
mux {
pins = "gpio16","gpio17";
function = "blsp_uart5";
};
config {
pins = "gpio16","gpio17";
drive-strength = <2>;
bias-disable;
};
};
uart5_console_sleep: uart5_console_sleep {
mux {
pins = "gpio16","gpio17";
function = "blsp_uart5";
};
config {
pins = "gpio16","gpio17";
drive-strength = <2>;
bias-disable;
};
};
};
pmx-uart6console {//uart6
uart6_console_active: uart_console_active {
mux {
pins = "gpio20","gpio21";
function = "blsp_uart6";
};
config {
pins = "gpio20","gpio21";
drive-strength = <2>;
bias-disable;
};
};
uart6_console_sleep: uart6_console_sleep {
mux {
pins = "gpio20","gpio21";
function = "blsp_uart6";
};
config {
pins = "gpio20","gpio21";
drive-strength = <2>;
bias-disable;
};
};
};