增加一个设备树节点属性用于绑定红外补光灯的控电管脚,在针对性的摄像头推流时,控制对应管脚进行拉高拉低操作。
1、新增xt_infrared-gpios按钮用于绑定红外补光灯的管脚。
2、打开GC2053 红外摄像头,获取摄像头数据流时,针对红外补光灯的控电管脚进行拉高操作。
3、关闭GC2053 红外摄像头,不获取摄像头数据流时,针对红外补光灯的控电管脚进行拉低操作。
diff --git a/arch/arm64/boot/dts/rockchip/m10g30.dts b/arch/arm64/boot/dts/rockchip/m10g30.dts
index b8f1c150f9ec..ea891342b8bf 100644
--- a/arch/arm64/boot/dts/rockchip/m10g30.dts
+++ b/arch/arm64/boot/dts/rockchip/m10g30.dts
@@ -59,3 +59,6 @@
status = "okay";
};
+&gc2053 {
+ xt_infrared-gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_LOW>;
+};
diff --git a/arch/arm64/boot/dts/rockchip/m16g30.dts b/arch/arm64/boot/dts/rockchip/m16g30.dts
index 0ce1ed914b48..265c4b00d39a 100644
--- a/arch/arm64/boot/dts/rockchip/m16g30.dts