Hi Team,
I have update gpio-pca953x.c driver for pcal6416 and Its dts file. My driver is build successfully. I am getting error when load the driver in kernel.
cimcon@cimcon:/lib/modules/4.9.253-tegra/kernel/drivers/gpio$ dmesg
[ 87.271900] DEBUG: Passed pcal6416a_init 375
[ 87.271979] DEBUG: Passed pcal6416a_probe 255
[ 87.272011] pcal6416a 2-0020: reg get err: -19
cimcon@cimcon:/lib/modules/4.9.253-tegra/kernel/drivers/gpio$
I have attached driver and dtsi. Please chek and let me know what is missing in dtsi file.
i2c@7000c500 {
status = "okay";
clock-frequency = <100000>;
pca9505: pcal6416a@20 {
compatible = "nxp,pcal6416a";
gpio-controller;
#gpio-cells = <2>;
reg = <0x20>;
};
}
Thanks,
Babbelal
pcal6416a.c (10.3 KB)