From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64F75C25B0C for ; Mon, 8 Aug 2022 08:41:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235558AbiHHIld (ORCPT ); Mon, 8 Aug 2022 04:41:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234876AbiHHIlc (ORCPT ); Mon, 8 Aug 2022 04:41:32 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C97063EC for ; Mon, 8 Aug 2022 01:41:31 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id r14so9081759ljp.2 for ; Mon, 08 Aug 2022 01:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=y5ugA8azfsfwmv08OCnDpdMfq2JRwexxKkXLI/mN+Mc=; b=YrGRHGjPT4L1hCaK34VoCuSuWFJHDL402Nu586D7o7trPMuxXX3XsPPhpwY/nGXZCF yRH6o7/krXRKmZRcsBbtZ2gbPs3AKxH6k5GFXE9ReLtMxjXS6qXySehZAqtVJqtTY+2J 9w19BNzqSKuSi+KdjhqK0wUkV93Cn1x7nhONU6e6r9mELyeoGlPSVuf7x4nmPWfS1NIB Lmzh7Q8idVXXoZQs55m3owp4wCtjh/EYlwz8/Cw5RJQZu9b64NN2dQJwMRdP/fUc5kqF vp1xC6NdK9i4tUkNK3m06BiT9cne5zjiUOcGXRRFrTOmUHpBrRcmxEdlqrnpCiDKE8+/ wFdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=y5ugA8azfsfwmv08OCnDpdMfq2JRwexxKkXLI/mN+Mc=; b=Y4LIA0XFOUsTjvssbtD5vOh5PG/jAukZ8iAfAnnoKEoFlrm5ArI++ADAquw5xSKEVb RYNgivLb3IzPpWY2Al+BY4ki8Ilo51DkA9eodPpwud8ZOuSwBvEMZYjGriTconA822aN eu2hMuBjKzgmUp01Ks2z+7yU9zjQGL5Y2HVqKF/hLUSw7VizblJ1Y1q0pvYsknANTFEE /RKQtYT6YOw/mklbKoCvUQcVw4m1Bq1GCjCa3l3zLgCzfI6JyMVwBZaSmEqpWbzKG6mN 8PkXH1P9E9YkOagPtEknbjti6YGoRz3H7qOlwCDsxXD+K/SZfA6Z8UvfjQmzTBja2a4U 7D6Q== X-Gm-Message-State: ACgBeo2M+04m+drzKJ4498QI4eaarS9qq9K4ya/zyXXLIYUcTtOhS1RW /q7tjPweCGwalsRzyEZeZdFh4w== X-Google-Smtp-Source: AA6agR4RpVj2cNvz0i6zm9jUEsoiZSLWTdzMZLeiGA3YsGcsz8fbCNt2mWAzJZD2wDL9MV11owmiBA== X-Received: by 2002:a2e:864a:0:b0:25e:4e27:56d4 with SMTP id i10-20020a2e864a000000b0025e4e2756d4mr5415260ljj.252.1659948089386; Mon, 08 Aug 2022 01:41:29 -0700 (PDT) Received: from [192.168.1.39] ([83.146.140.105]) by smtp.gmail.com with ESMTPSA id g33-20020a0565123ba100b0048b17caf05bsm1342762lfv.149.2022.08.08.01.41.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Aug 2022 01:41:27 -0700 (PDT) Message-ID: Date: Mon, 8 Aug 2022 11:41:26 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH 0/8] power: supply: Add driver for Qualcomm SMBCHG Content-Language: en-US To: Yassine Oudjana , Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Caleb Connolly Cc: Yassine Oudjana , Alejandro Tafalla , Konrad Dybcio , linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220808073459.396278-1-y.oudjana@protonmail.com> From: Krzysztof Kozlowski In-Reply-To: <20220808073459.396278-1-y.oudjana@protonmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On 08/08/2022 10:34, Yassine Oudjana wrote: > From: Yassine Oudjana > > This series adds a driver for the switch-mode battery charger found on PMICs > such as PMI8994, and referred to in the vendor kernel[1] as smbcharger or > SMBCHG. More details on this block can be found in the last patch message. > > This driver currently supports the charger blocks of PMI8994 and PMI8996. > PMI8950 was also to be supported, but it was dropped due to some last minute > issues, to be brought back at a later time once ready. > > The OTG regulator remains unused on devices where the charger is enabled in > this series due to lack of a consumer. Applying a patch[2] adding vbus-supply > to DWC3 allows it to enable the OTG regulator making USB host without > external power possible. > > [1] https://github.com/android-linux-stable/msm-3.18/blob/kernel.lnx.3.18.r34-rel/drivers/power/qpnp-smbcharger.c > [2] https://lore.kernel.org/linux-usb/20200805061744.20404-1-mike.looijmans@topic.nl/ How is it different from PMI8998? I expect not that much, so this should be based on existing work: https://lore.kernel.org/linux-arm-msm/20220706194125.1861256-1-caleb.connolly@linaro.org/ Unless they are different, but then please create common parts and explain the differences. Best regards, Krzysztof