nt9856x/configs/doc/peri-dev/ad/ad_tp2854.txt
2023-03-28 15:07:53 +08:00

36 lines
1.6 KiB
Plaintext
Executable File

&i2c1 {
#address-cells = <1>;
#size-cells = <0>;
ad_tp2854@0 {
compatible = "nvt,ad_tp2854.0";
reg = <0x44>; // 7-bit slave register
power_cfg {
mclk_sel = "MCLK"; // ex : "MCLK" or "MCLK2" or "MCLK3"
///////////////////////////////////////////////////////////////////////////////////////////////////
// io control description //
// io_ctl0@0~19(max) = <io_pin level hold time> //
// io_pin - (3 types) //
// 1. pin name (ex. S_GPIO(4), PGPIO(0), ...) //
// 2. 0xfffe: the following commands will only applied on 'power on' sequence (default) //
// 3. 0xfffd: the following commands will only applied on 'power off' sequence //
// level - 1: pull high, 0: pull low //
// hold time - delay time (us) //
///////////////////////////////////////////////////////////////////////////////////////////////////
//// power on ////
io_ctl0 = <0xfffe 0 0>; // power on
io_ctl1 = <S_GPIO(4) 0 100000>; // reset
io_ctl2 = <S_GPIO(4) 1 100000>; // reset
//// power off ////
io_ctl3 = <0xfffd 0 0>; // power off
io_ctl4 = <S_GPIO(4) 0 1000>; // reset
};
outport@0 {
inport = <0 1 2 3>;
signal = <1>; // 0: parallel, 1:mipi
};
};
};