Hi3559AV100添加Sensor Hub 串口UART映射

      由于Hi3559AV100中只添加uart0- uart9,而uart10和uart11没有添加,而IC卡使用Sensor Hub UART5,故要添加相应串口。

 路径如下:osdrv/opensource/kernel/linux-4.9.y_multi-core/arch/arm64/boot/dts/hisilicon

1. 在文件配置相应串口

Hi3559AV100添加Sensor Hub 串口UART映射_第1张图片

2. 在文件< hi3559av100-demb.dts >使能相应状态

//aliases 添加
aliases {
		serial0 = &uart0;
		serial1 = &uart1;
		serial2 = &uart2;
		serial3 = &uart3;
		serial4 = &uart4;
		serial5 = &uart5;
		serial6 = &uart6;
		serial7 = &uart7;
		serial8 = &uart8;
		serial9 = &uart9;
        serial10 = &uart10;
		serial11 = &uart11;
        ...
       };

//更改uart的status为"okay"
&uart0 {
	status = "okay";
};

&uart1 {
	status = "okay";
};

&uart2 {
	status = "okay";
};

&uart3 {
	status = "okay";
};

&uart4 {
	status = "okay";
};

&uart5 {
	status = "okay";
};

&uart6 {
	status = "okay";
};

&uart7 {
	status = "okay";
};

&uart8 {
	status = "okay";
};

&uart9 {
	status = "okay";
};
&uart10 {
	status = "okay";
};

&uart11 {
	status = "okay";
};

3. 重新编译内核

Hi3559AV100添加Sensor Hub 串口UART映射_第2张图片

你可能感兴趣的:(海思方案,海思Hi3559AV100,hi3559Av100,dts,sensor,hub,UART)