From patchwork Thu Aug 24 11:27:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emmanuel Gil Peyrot X-Patchwork-Id: 717173 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 2A476C71145 for ; Thu, 24 Aug 2023 12:17:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239431AbjHXMQa (ORCPT ); Thu, 24 Aug 2023 08:16:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241310AbjHXMQE (ORCPT ); Thu, 24 Aug 2023 08:16:04 -0400 Received: from luna.linkmauve.fr (82-65-109-163.subs.proxad.net [82.65.109.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D699170F; Thu, 24 Aug 2023 05:16:02 -0700 (PDT) Received: by luna.linkmauve.fr (Postfix, from userid 1000) id 0E4388CC509; Thu, 24 Aug 2023 13:27:56 +0200 (CEST) From: Emmanuel Gil Peyrot Cc: Alexandre Courbot , azkali , CTCaer , Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] power: supply: bq24190: Support bq24193 Date: Thu, 24 Aug 2023 13:27:34 +0200 Message-ID: <20230824112741.201353-2-linkmauve@linkmauve.fr> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20230824112741.201353-1-linkmauve@linkmauve.fr> References: <20230824112741.201353-1-linkmauve@linkmauve.fr> MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org From: Alexandre Courbot This charger is working with the driver as-is, so enable it to be probed. It is used in the Nintendo Switch for instance. Signed-off-by: Alexandre Courbot --- Documentation/devicetree/bindings/power/supply/bq24190.yaml | 1 + drivers/power/supply/bq24190_charger.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/bq24190.yaml b/Documentation/devicetree/bindings/power/supply/bq24190.yaml index d3ebc9de8c0b..92a28d3c3070 100644 --- a/Documentation/devicetree/bindings/power/supply/bq24190.yaml +++ b/Documentation/devicetree/bindings/power/supply/bq24190.yaml @@ -18,6 +18,7 @@ properties: enum: - ti,bq24190 - ti,bq24192 + - ti,bq24193 - ti,bq24192i - ti,bq24196 diff --git a/drivers/power/supply/bq24190_charger.c b/drivers/power/supply/bq24190_charger.c index ef8235848f56..a56122b39687 100644 --- a/drivers/power/supply/bq24190_charger.c +++ b/drivers/power/supply/bq24190_charger.c @@ -2018,6 +2018,7 @@ static const struct dev_pm_ops bq24190_pm_ops = { static const struct i2c_device_id bq24190_i2c_ids[] = { { "bq24190" }, { "bq24192" }, + { "bq24193" }, { "bq24192i" }, { "bq24196" }, { }, @@ -2027,6 +2028,7 @@ MODULE_DEVICE_TABLE(i2c, bq24190_i2c_ids); static const struct of_device_id bq24190_of_match[] = { { .compatible = "ti,bq24190", }, { .compatible = "ti,bq24192", }, + { .compatible = "ti,bq24193", }, { .compatible = "ti,bq24192i", }, { .compatible = "ti,bq24196", }, { },