Hii,
I am trying to use the AMC6821 Linux Device Driver, for Controlling FAN Speed, As per the Kernel Documentation I have Followed the steps on how to insmod this module and here are the steps I have did.
1. Added Device Tree Binding For AMC6821 which is as follows.
i2c-mux@74 {
compatible = "nxp,pca9548";
#address-cells = <0x1>;
#size-cells = <0x0>;
reg = <0x74>;
i2c@5 {
#address-cells = <0x1>;
#size-cells = <0x0>;
reg = <0x5>;
amc6821@18 {
compatible = "ti,amc6821";
reg = <0x18>;
};
};
2. When I am trying to Load the Module (amc6821.ko file) I am getting the following errors
root@zcu102-zynqmp:~# insmod amc6821.ko init=1 pwminv=1;
[ 5.635243] amc6821 12-0018: Configuration register write error, aborting.
[ 5.642122] amc6821: probe of 12-0018 failed with error -5
Which means the AMC6821 Chip was Not Initialising Properly, And may I know the Reason for the same ??
Regards,
Shubhakara P S