Other Parts Discussed in Thread: AM4372
Tool/software: Linux
Hello,
I am writing a device driver for out fingerprint sensor using the video port (header J3) on the AM4378-GP-EVM board. I need use a gpio for the sensor camera reset purpose. The following is the device tree changes for both i2c0 and i2c1 nodes in am437x-gp-evm.dts: ( I don't change anything in GPIO in am4372.dts and any other .dts files)
ov2659@37 {
compatible = "ovti,ov2659";
reg = <0x37>;
clocks = <&refclk 0>;
clock-names = "xvclk";
cisreset-gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
port {
ov2659_0: endpoint {
remote-endpoint = <&vpfe1_ep>;
link-frequencies = /bits/ 64 <70000000>;
};
};
};
And in my device driver probe function I have:
gpio = devm_gpiod_get(&client->dev, "cisreset", GPIOD_OUT_HIGH);
if (IS_ERR(gpio))
{
printk("Start probe: **** IB Sensor cisreset-gpios is NOT defind in device tree! ****\n");
return PTR_ERR(gpio);
}
ov2659->cis_reset_gpio = gpio;
I always get the error message:
**** IB Sensor cisreset-gpios is NOT defind in device tree! ****
Please help! Thanks.
-Ken Li