I dont agree with you.
(But my english is not to good, so may i misunderstand what you have said.)
The depth of field is depend on only the aperure.
Large aperture (little F value) lead to a shallow DoF.
Little aperture hole (big F value) lead to large DoF, this is the “focusing to infinity”.
The proper amount of the light is depend on two factor:
The aperture (F value) and the shutter speed.
Large aperture is means more light, and the slower shutter means more light too.
Take a photo about a moving subject is hard: because need a fast shutter speed, so when the aperure is little, then the photo will too dark. In case, with large aperture is good, but the DoF is will be shallow, so the precise focus is important.
But, the Librem 5 mobile is not going anywhere.
Flooding with light in this size range is not problem, any desk lamp will be good, maybe with a blank A4 office paper sheet, for dimming and directing.
These photos is not a real macro photos, because the macro photo size range a coin or less.
A have a MILC camrea, and sort of lens (Panasonic GX7, with (in this topic relevant) a Mitakon 25mm/F0.95) and i can take a photo of this size range (10-15 cm subject) with not shallow DoF, because the F 0.95 is the minimum F value, not a maximum. With this lens, i can rotate to F 16, and take a all-clear, no-blur photo.
With a smartphone okay, not easy to take, but with a proper lighting (desk lamp or sunshine) and perhaps a support (coffee mug…) IMHO not impossible to take a photo with deep focus range.