I did not have time to finish the LM3409 based driver and wanted to give one more chance for the max 16820.

And I have partial success.

This is the schematics:

(R3 and L1 led dependent, neglect the values on the drawing)

I have build 3 drivers, I only changed the current sense resistor and the inductor.

I have 3 modes, 25%,50% and 100%.

1. XM-L2 3,3V 3A

R3=66mOhm L1=3,3 uH (coilcraft XAL7070 332)

This driver works perfectly in every modes. I can change the input voltage and the led current is stable.

The table below shows led current at different modes and input voltages.

2. XHP50.2 6V 3A

R3=66mOhm L1=8,2 uH (coilcraft XAL6060 822)

It also works, but less stable.

3. XHP70.2 6V 4,8A

R3=43mOhm L1=5,6 uH (coilcraft XAL7070 562)

This is the worst one.

If the input voltage is higher than 7,3V the driver switches off regardless of the mode selected.

L was originally 4,7 uH but replaced by a bigger one to see what happens. Nothing, same behaviour.

I also replaced the current sense resistor by a bigger one (2x 43mOhm in series), but it had also no effect. Switches off at around 7,3V input.

https://imgur.com/a/Py3Z17g