How can write the source code "write iic reg have iic slave address"at TX2 R32.2?
It is a device source file.
use “regmap_write” function? how can do this?
How can write the source code "write iic reg have iic slave address"at TX2 R32.2?
It is a device source file.
use “regmap_write” function? how can do this?
hello sensor_test,
I don’t understand your request clearly.
did you mean you want to write registers with regmap_write() kernel functions?
Hello JerryChang,
Please see the imx390.c file.the have two imx390 sensors.have the 0x1b and 0x1c iic slave address.
How can I write or read the 0x1b imx390 sensor?
How can I write or read the 0x1c imx390 sensor?
imx390_a@1b {
def-addr = <0x1a>;
/* Define any required hw resources needed by driver */
/* ie. clocks, io pins, power sources */
clocks = <&tegra_car TEGRA186_CLK_EXTPERIPH1>,
<&tegra_car TEGRA186_CLK_PLLP_OUT0>;
clock-names = "extperiph1", "pllp_grtba";
mclk = "extperiph1";
nvidia,gmsl-ser-device = <&ser_a>;
nvidia,gmsl-dser-device = <&dser>;
};
imx390_b@1c {
def-addr = <0x1a>;
/* Define any required hw resources needed by driver */
/* ie. clocks, io pins, power sources */
clocks = <&tegra_car TEGRA186_CLK_EXTPERIPH1>,
<&tegra_car TEGRA186_CLK_PLLP_OUT0>;
clock-names = "extperiph1", "pllp_grtba";
mclk = "extperiph1";
nvidia,gmsl-ser-device = <&ser_b>;
nvidia,gmsl-dser-device = <&dser>;
};
hello sensor_test,
you should also note that, these two imx390 were register at two different device node. (i.e. video0 and video1)
user-space would determine the control settings and both of them sharing the same kernel driver for register writing.
thanks