Hello
I want to add the max9271 serializer driver to NVIDIA drivers of Linux Kernel 4.9.
I added the source code max9271.c under the location kernel_src\kernel\nvidia\drivers\media\i2c
I added into the Makefile
obj-$(CONFIG_I2C_IOEXPANDER_SER_MAX9271) += max9271.o
I added into the KConfig:
config I2C_IOEXPANDER_SER_MAX9271
tristate “MAX9295 Serializer I2C IO Expander”
help
If you say yes here you get support for the MAX9271 serializer
I2C IO Expander.
To compile this driver as a module, choose M here: the module
will be called max9271.
I added into the config file tegra_defconfig (kernel_src\kernel\kernel-4.9\arch\arm64\configs):
CONFIG_I2C_IOEXPANDER_SER_MAX9271=y
I added into the dts:
max9271_prim@62 {
compatible = "nvidia,max9271";
reg = <0x62>;
is-prim-ser;
linux,phandle = <0x10d>;
phandle = <0x10d>;
};
max9271_a@40 {
compatible = "nvidia,max9271";
reg = <0x40>;
nvidia,gmsl-dser-device = <0x31>;
linux,phandle = <0x30>;
phandle = <0x30>;
};
max9271_b@60 {
compatible = "nvidia,max9271";
reg = <0x60>;
nvidia,gmsl-dser-device = <0x31>;
linux,phandle = <0x33>;
phandle = <0x33>;
};
However when the system boot the following error occurs:
missing serializer driver
code from the imx390.c
if (ser_i2c->dev.driver == NULL)
{
dev_err(dev, “missing serializer driver\n”);
goto error;
}
Seems he serializer driver is not find by the kernel when when linux is booting.
Can you help on this point ?