With DT properties charge-current-limit-gpios and charge-current-limit-mapping one can define charge current limits in uA using up to 32 GPIOs. At the moment the driver defaults to smallest charge current limitation for safety reasons. When disabling charging is supported, which should be common, the driver defaults to non charging on probe. By having a default, charging can be enabled on probe for such devices. Signed-off-by: Dimitri Fedrau <dimitri.fedrau@xxxxxxxxxxxx> --- Changes in v3: - Fix commit msg for "dt-bindings: power: supply: gpio-charger: add support for default charge current limit" Add use case - Link to v2: https://lore.kernel.org/r/20241213-default-charge-current-limit-v2-0-45886fce905c@xxxxxxxxxxxx Changes in v2: - renamed DT property charge-current-limit-default to charge-current-limit-default-microamp - Added dependency on charge-current-limit-mapping - Added intention and use case to commit descriptions - Added charge-current-limit-default-microamp in bindings example - Link to v1: https://lore.kernel.org/r/20241211-default-charge-current-limit-v1-0-7819ba06ee2a@xxxxxxxxxxxx --- Dimitri Fedrau (2): dt-bindings: power: supply: gpio-charger: add support for default charge current limit power: supply: gpio-charger: add support for default charge current limit .../devicetree/bindings/power/supply/gpio-charger.yaml | 6 ++++++ drivers/power/supply/gpio-charger.c | 13 +++++++++++++ 2 files changed, 19 insertions(+) --- base-commit: 57cb041f61d4abcf8dfa41259df27d081ab4cb6a change-id: 20241209-default-charge-current-limit-69ae7945061a Best regards, -- Dimitri Fedrau <dimitri.fedrau@xxxxxxxxxxxx>