I have a led driver chip named max25914, I am referring to the driver instance of lp3592 in the linux kernel to write driver code, but I did not find its device tree, how should I add this led to the device tree to support I2C communication?
since it’s device connected to Ser/Des chip, please see-also reference driver,
for instance, $public_sources/kernel_src/hardware/nvidia/platform/t23x/concord/kernel-dts/cvb/tegra234-p3737-0000-camera-imx390-a00.dtsi
as you can see… it uses I2C mux, an i2c bus multiplexer/switch (at address 0x70) will have several child bus that are numbered uniquely in a device dependent manner.
Yes, I referred to this dtsi and added the address of the led, but when I ran the driver to write the led register, agx orin suggested that remote I/O fail.
The device tree segment is as follows:
I wrote the register in the led probe function directly through the regmap_write interface function.
What I can confirm is that the imager sensor/serdes has been powered normally and the circuit of the led has not been measured. Do you suspect that the led is not powered correctly? I think it’s not very likely.
I did not go to work today, so I did not confirm the I2c power supply of led. But from the hardware connection diagram, the I2c power supply of sensor/serializer is normal. I understand that the I2C power supply of led should be normal, but I will confirm again tomorrow. But there is another phenomenon I do not know whether it will help you. When my led drives flash to agx orin, I will restart agx orin. When agx orin starts to run, the display connected to agx orin will lose signal, and I cannot debug. Why is that?
may I confirm which Jetpack release version you’re working with? please share your steps for flashing AGX Orin.
besides, there’s serial console for outputting UART logs, please gather logs for reference.
step1: Copy the compiled driver file to the agx orin root directory
step2: Power on the agx orin again
step3: When agx orin runs again, the display will light up first, and the boot content will pop up. After loading, the screen will be black and the signal will be lost
I can’t control my agx orin through the display right now, so the only bad option I have now is to refresh the machine. Can you help me see what the problem is?