msm8909 串口配置
msm8909-mtp.dtsi
&blsp1_uart1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart_console_sleep>;
};
&blsp1_uart2 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart2_console_sleep>;
};
msm8909.dtsi
blsp1_uart1: serial@78af000 {
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 {
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";
};
msm8909-pinctrl.dtsi
pmx-uartconsole {
qcom,pins = <&gp 4>, <&gp 5>;
qcom,num-grp-pins = <2>;
qcom,pin-func = <2>;
label = "uart-console";
uart_console_sleep: uart-console {
drive-strength = <2>;
bias-pull-down;
};
};
pmx-uart2console {
qcom,pins = <&gp 20>, <&gp 21>;
qcom,num-grp-pins = <2>;
qcom,pin-func = <3>;
label = "uart2-console";
uart2_console_sleep: uart2-console {
drive-strength = <2>;
bias-pull-down;
};
};