msm8953之串口dts配置

msm8953支持4路串口,编号uart2、uart4、uart5、uart6

基地址:


中断号:


dts配置如下;

xxx .dtsi

&blsp1_uart0 {//uart2
	status = "ok";
	pinctrl-names = "default";
	pinctrl-0 = <&uart_console_active>;
};
&blsp1_uart4 {//uart4
	status = "ok";
	pinctrl-names = "default";
	pinctrl-0 = <&uart4_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>;
};

xxx-msm8953.dtsi

	blsp1_uart0: serial@78af000 {//uart2
		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_uart4:serial@78b0000 {//uart4
		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";
	};

xxx-msm8953-pinctrl.dtsi

		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-uart4console {//uart4
			uart4_console_active: uart4_console_active {
				mux {
					pins = "gpio12","gpio13";
					function = "blsp_uart4";
				};
				config {
					pins = "gpio12","gpio13";
					drive-strength = <2>;
					bias-disable;
				};
			};
			uart4_console_sleep: uart4_console_sleep {
				mux {
					pins = "gpio12","gpio13";
					function = "blsp_uart4";
				};
				config {
					pins = "gpio12","gpio13";
					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;
				};
			};
		};












  • 2
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值