Control battery charging

Switching from the Xperia X to the 10 II, I played around with the options in /sys/class/power_supply/battery/.

I observed that the 10 II only has /sys/class/power_supply/battery/charging_enabled to really stop battery charging before the battery is full.
Unfortunately, this also prevents the device from using any power coming in via USB. Instead, it starts to drain the battery even while it is connected to a charger!

The Xperia X features /sys/class/power_supply/battery/battery_charging_enabled, which allows to stop charging but continue to run with the energy from the external source.
→ As long as the energy consumption is not more than provided via USB, the battery is not drained.

Glancing at the kernel (GitHub - sailfishos/kernel-adaptation-pc , GitHub - sonyxperiadev/kernel , Index of /sources/ , did I miss some repo?) this nice feature is indeed gone on the Xperia 10 II.

Is this a hardware limitation or can this be fixed in software?

In case it’s the hardware, is there a place where I can find out what is actually possible? The closest docs I could find is but this list does not contain all devices…