供電控制相關(guān)
GPIO
的配置
TC358749XBG
的使能、 待機(jī)、 復(fù)位和中斷引腳需要連接到
RK3399
的
GPIO
; 客戶根據(jù)實(shí)
際硬件設(shè)計(jì),需要在
DTS
文件將
tc358749x
節(jié)點(diǎn)配置在正確的
i2c
節(jié)點(diǎn)下,同時(shí)修改
tc358749x
節(jié)點(diǎn)對應(yīng)
GPIO
的值;
power-gpios
對應(yīng)使能引腳,
stanby-gpios
對應(yīng)待機(jī)引腳,
reset-gpios
對應(yīng)復(fù)位引腳,
int-gpios
對應(yīng)中斷引腳
DTS配置
tc358749x: tc358749x@0f {
compatible = "toshiba,tc358749x";
reg = <0x0f>;
power-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; //gpio2 6
power18-gpios = <&gpio2 9 GPIO_ACTIVE_HIGH>;
power33-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
csi-ctl-gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
stanby-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio2 7 GPIO_ACTIVE_HIGH>;
int-gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&hdmiin_gpios>;
status = "okay";
};
打開hardware
hardware/rockchip/camera/Config/cam_board_rk3399.xml
然后編譯燒錄即可