Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4564615pxv; Tue, 27 Jul 2021 10:19:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGtG/MZ45tjZKWtPZ+JNNz0IhwxBs8a9c1k7WXRfvPLF7iYyZ7qmaXr3K86K8inIf7ZmNb X-Received: by 2002:aa7:c804:: with SMTP id a4mr28978210edt.294.1627406352954; Tue, 27 Jul 2021 10:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627406352; cv=none; d=google.com; s=arc-20160816; b=nhmqq0zGGZQ80FccWPLHZtq55o8b3r89HYzyXNaXV06p5p0m+xSPf0G42WVYy4WkRy 7CMkMfYU2y3CAGefYiWduaIPsDe+U+cOZFVC9hsIjCxjfickY/azV2SRN2fLcBSxPK17 IMwbF/y2K8hdhk4B6yNu3jXZvxHWT8izyo8Q+2HrnZWuKgjyNx/tYTOZ1zFyJtozC5wR 0cq/0aoFwOHyc1Afmx6iv4znm0V+a3nu3LujzVWF6KbNeGZSslqvx6AKWZb2NDfPO4o8 LLZ0b528yJjCqqh4/L8Xj6TNFtSvj00JNwhGcYHe2KUn3MYBfDPFbwsqsWIcR+tMO7FG G6tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xZQQQBWp8TdVYVus16MMxlFcpZ/gqx6Ua5ipei4pttc=; b=iUDZhi35JNH9EUatZ/cJw9Siabq3I1acmMImaexL4fbeBwFfOioDv0w7rENOquRxmq xuGljDEBatTDrj1oLWQycRhH3Q6cUDQ9Li1pe2N8NiPzGgXNgPKM+aFzwir6pj95HA0D 3BjJmH7ZoPuOWZVE4fQLNihh/TfXG3+rcMqUnt8McsXNdxHUe4+OrWUhHbSVdnb4Ush9 fVJy8+QNOhcHBQdGV4byFeGp1yogI3gA33OJ2rbsmI0Hil+5QnE1Ve9JYLKa6gZKmupw GmHuiDzlotNxsiIbS8R41hyFlFnhQua6Qnx6K3vBNOH3oPYVAbp5aO7sxdoijTW3wmj4 EZKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b="p/z31Tof"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j5si3322776ejm.413.2021.07.27.10.18.49; Tue, 27 Jul 2021 10:19:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b="p/z31Tof"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229759AbhG0RQV (ORCPT + 99 others); Tue, 27 Jul 2021 13:16:21 -0400 Received: from box.trvn.ru ([194.87.146.52]:55379 "EHLO box.trvn.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbhG0RQV (ORCPT ); Tue, 27 Jul 2021 13:16:21 -0400 X-Greylist: delayed 588 seconds by postgrey-1.27 at vger.kernel.org; Tue, 27 Jul 2021 13:16:20 EDT Received: from authenticated-user (box.trvn.ru [194.87.146.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.trvn.ru (Postfix) with ESMTPSA id 9FB2C41408; Tue, 27 Jul 2021 22:06:34 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1627405594; bh=J1QeZY0GGxGmKqHWfK3B8iOjYhKTd83rZqFYkpeUGxU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p/z31ToftYcAHNl2NmLIapDRICE5pqrSkmgNpdRf7a/ZYp7aRgOiU1TIfG3pKOP7i 4/DyTth35V81SRx6kNFHXuadSlJrfDhmE7gG0f3n6yp/TQnxGN/SQIj1iFfwLDf/Ex NCfaMwWQVHDklFf/GsZ9JprZB1YaQXn8KxAYjZTR/FwIi4xOOjRUHxcQ38XdFvX4IH Zc5+G8I7pcZq8+xQgNniwZEYWL4L8SGwiZnbZY6nECjm2lAyR+6H+LAkqypbtZUS2l pPz7CbOslZbV+Xvm2grvwvl6byiC+7infAOG1uWpfbh1OMSBOtMenip1Hm/sDhx5Eb zrdt+kd0nOVGw== From: Nikita Travkin To: sre@kernel.org Cc: robh+dt@kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Travkin Subject: [PATCH 2/2] power: supply: max17042_battery: Add support for MAX77849 Fuel-Gauge Date: Tue, 27 Jul 2021 22:03:45 +0500 Message-Id: <20210727170345.115004-2-nikita@trvn.ru> In-Reply-To: <20210727170345.115004-1-nikita@trvn.ru> References: <20210727170345.115004-1-nikita@trvn.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MAX77849 is a combined fuel-gauge, charger and MUIC IC. Notably, fuel-gauge has dedicated i2c lines and seems to be fully compatible with max17047. Add new compatible for it reusing max17047 code paths. Signed-off-by: Nikita Travkin --- drivers/power/supply/max17042_battery.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/power/supply/max17042_battery.c b/drivers/power/supply/max17042_battery.c index ce2041b30a06..f28c90ea41b4 100644 --- a/drivers/power/supply/max17042_battery.c +++ b/drivers/power/supply/max17042_battery.c @@ -1196,6 +1196,7 @@ static const struct of_device_id max17042_dt_match[] = { { .compatible = "maxim,max17047" }, { .compatible = "maxim,max17050" }, { .compatible = "maxim,max17055" }, + { .compatible = "maxim,max77849-battery" }, { }, }; MODULE_DEVICE_TABLE(of, max17042_dt_match); @@ -1206,6 +1207,7 @@ static const struct i2c_device_id max17042_id[] = { { "max17047", MAXIM_DEVICE_TYPE_MAX17047 }, { "max17050", MAXIM_DEVICE_TYPE_MAX17050 }, { "max17055", MAXIM_DEVICE_TYPE_MAX17055 }, + { "max77849-battery", MAXIM_DEVICE_TYPE_MAX17047 }, { } }; MODULE_DEVICE_TABLE(i2c, max17042_id); -- 2.30.2