Add a driver for the Qualcomm PMI8998/PM660 Switch-Mode Battery Charger. This is the second generation SMB charger, and replaces the previous SMBB hardware found in older PMICs. Changes since v8: * Add charger bindings reference to qcom,spmi-pmic.yaml V8: https://lore.kernel.org/all/20230524-pmi8998-charger-v8-0-b87ffcd9864d@xxxxxxxxxx/ Changes since v7: * Implement fixes suggested by Sebastian * Fix format warning V7: https://lore.kernel.org/linux-arm-msm/20230127230506.3140297-1-caleb.connolly@xxxxxxxxxx/ To: Sebastian Reichel <sre@xxxxxxxxxx> To: Rob Herring <robh+dt@xxxxxxxxxx> To: Krzysztof Kozlowski <krzysztof.kozlowski+dt@xxxxxxxxxx> To: Conor Dooley <conor+dt@xxxxxxxxxx> To: Caleb Connolly <caleb.connolly@xxxxxxxxxx> To: Andy Gross <agross@xxxxxxxxxx> To: Bjorn Andersson <andersson@xxxxxxxxxx> To: Konrad Dybcio <konrad.dybcio@xxxxxxxxxx> To: Nathan Chancellor <nathan@xxxxxxxxxx> To: Nick Desaulniers <ndesaulniers@xxxxxxxxxx> To: Tom Rix <trix@xxxxxxxxxx> --- Caleb Connolly (2): dt-bindings: power: supply: qcom,pmi8998-charger: add bindings for smb2 driver power: supply: add Qualcomm PMI8998 SMB2 Charger driver .../devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 1 + .../power/supply/qcom,pmi8998-charger.yaml | 82 ++ drivers/power/supply/Kconfig | 9 + drivers/power/supply/Makefile | 1 + drivers/power/supply/qcom_pmi8998_charger.c | 1059 ++++++++++++++++++++ 5 files changed, 1152 insertions(+) --- base-commit: ac9a78681b921877518763ba0e89202254349d1b // Caleb (they/them)