From patchwork Mon May 17 10:51:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 440416 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8576C43470 for ; Mon, 17 May 2021 10:52:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 94FEB611CA for ; Mon, 17 May 2021 10:52:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236477AbhEQKx6 (ORCPT ); Mon, 17 May 2021 06:53:58 -0400 Received: from mo4-p02-ob.smtp.rzone.de ([81.169.146.169]:19454 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230166AbhEQKx5 (ORCPT ); Mon, 17 May 2021 06:53:57 -0400 X-Greylist: delayed 338 seconds by postgrey-1.27 at vger.kernel.org; Mon, 17 May 2021 06:53:56 EDT ARC-Seal: i=1; a=rsa-sha256; t=1621248752; cv=none; d=strato.com; s=strato-dkim-0002; b=JTks0mjNUN90jKTEtiz5afT/xRyjxtJlRFB7AMfifsS/gVI8gw6JEfYKGvyXeDfR/L v0kcIRb5gSAFNuFMXIK310TAOykeh9NC7/x8yZ+SPYQgASt81wM+4+TJjfNeMLPHKIjp C1LtA20aTzgB7Y3qJuMdY+whvLgbSeLOWDEciSdJWn1YaiVcFTxIGU/S8qX3s6cqUWDr Ai74lC1BvSX3qj6Fm4oXTeuSZijBTZzS3B5+EzGyQGeGZxNCdSdIsPQXG1fb8tDgqqaX h2xP4/fQKY9QRBvWJLU2zq89jnlk3CZ0S0QNUvhv7ZJjyY9Kqfsbnc8yHV4cgWi8H5+v uJ6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1621248752; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=GoBa/ve6tAbPHz+sONXvnYl+mlT4vBV3kKMUhJYWd7E=; b=el1QpK/pJKEk0UG3VwtngQII7ieOlgh31wkNqwZlbwFtkagYTTIt3p2cfzpEW7Y1t0 4xvKwNVmE4KT5PxNvtcKIPPuOMlW4cDK7Qk8svDpbZQgQqmOIgpGMf+c3gqln/BgihVW auZPaEOtQRcW/VCXt3H2FNmWokblohcbNsDwMUZaOH6V2KHj17EKwesnxf5udeY08WFD hZNSKkzdhKItxLSlm5MtTnaxJhNnhn4Y7afJoetfew5c36itk6TtYjnBWs5oszRjtA1p YLba1DlUtZ3bHvyWA3O+cgL7P24FYot90kC0z3LaN798UjLCZbvA4nHRR0lqZ+xPuQVL BoBQ== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1621248752; s=strato-dkim-0002; d=gerhold.net; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=GoBa/ve6tAbPHz+sONXvnYl+mlT4vBV3kKMUhJYWd7E=; b=c3xEFe+BZ3JEgMIynvRh9Oazvxbn+wZd1SyBnr6p9rMlocpJvWJYouVE9FEdI4euD2 Pj+akh42UXagfEzDipe51CgV57AhpTEOIp6WxcW+R1elN/+51dPi0aJ/HLAeDB2JmThf N6mHECN/7pZ4mg9ePoC5Op+JS4tBSVelLGVZUEe72MYj2IOZs9Y2VsqStqwsKn5xTnFw huqnFKA7zWyE8SesAUBqd5+9AZx71HG3QkaFqDDhMAoNzd6Ab8V3NRo78Sr9BVkylHrN tdKhq0A8qckSwkkhoZx+SJtdCUO5NCaruxqGZ+ezlnA3B9jlGalmtT0K/0yvuvx1i/wf RJUw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVORvLd4SsytBXS7IYBkLahKxB526NcMiO" X-RZG-CLASS-ID: mo00 Received: from droid.. by smtp.strato.de (RZmta 47.26.0 DYNA|AUTH) with ESMTPSA id 50be75x4HAqW1VZ (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 17 May 2021 12:52:32 +0200 (CEST) From: Stephan Gerhold To: Sebastian Reichel , Lee Jones Cc: Rob Herring , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Beomho Seo , Chanwoo Choi , ~postmarketos/upstreaming@lists.sr.ht, Stephan Gerhold Subject: [PATCH v2 1/3] dt-bindings: power: supply: Add DT schema for richtek, rt5033-battery Date: Mon, 17 May 2021 12:51:11 +0200 Message-Id: <20210517105113.240379-2-stephan@gerhold.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517105113.240379-1-stephan@gerhold.net> References: <20210517105113.240379-1-stephan@gerhold.net> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The RT5033 PMIC provides a simple fuel gauge via I2C. Add a DT schema to describe how to set it up in the device tree. Note that although RT5033 is a MFD with lots of functionality (also charger, regulator, LEDs, ...) the fuel gauge has a separate I2C bus and is not part of the MFD. Cc: Beomho Seo Signed-off-by: Stephan Gerhold --- .../power/supply/richtek,rt5033-battery.yaml | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/richtek,rt5033-battery.yaml diff --git a/Documentation/devicetree/bindings/power/supply/richtek,rt5033-battery.yaml b/Documentation/devicetree/bindings/power/supply/richtek,rt5033-battery.yaml new file mode 100644 index 000000000000..ae647d3355a2 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/richtek,rt5033-battery.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/power/supply/richtek,rt5033-battery.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Richtek RT5033 PMIC Fuel Gauge + +maintainers: + - Stephan Gerhold + +allOf: + - $ref: power-supply.yaml# + +properties: + compatible: + const: richtek,rt5033-battery + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + battery@35 { + compatible = "richtek,rt5033-battery"; + reg = <0x35>; + }; + }; + - | + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + battery@35 { + compatible = "richtek,rt5033-battery"; + reg = <0x35>; + interrupt-parent = <&msmgpio>; + interrupts = <121 IRQ_TYPE_EDGE_FALLING>; + }; + }; From patchwork Mon May 17 10:51:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 441564 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59E2EC433ED for ; Mon, 17 May 2021 10:52:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 338D361221 for ; Mon, 17 May 2021 10:52:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236497AbhEQKx6 (ORCPT ); Mon, 17 May 2021 06:53:58 -0400 Received: from mo4-p02-ob.smtp.rzone.de ([85.215.255.84]:15120 "EHLO mo4-p02-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236273AbhEQKx5 (ORCPT ); Mon, 17 May 2021 06:53:57 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1621248753; cv=none; d=strato.com; s=strato-dkim-0002; b=ktk9/4l31tFn27QOa4xGUJzZ1iKzKiv0sEyV0UpHezmjqVo/fSXouA/szXCmMUSvD9 1tDw9KQpHF1K2nJwC20MKIfwWB+ItKlXTUuGYYNfEA6Pmm83NPP8OjIYb0VdtWPQjX/5 zRE7muIp/F/v3PFNsZfeRrURiBkv6yGrL2hZEZjrW4WdEgcYy7UOo7QVJrWBFLBkQUIv WQwlh7Srsji20UxuTmBktxtcy+BSEU9XYVgNxDFGDoqA8FSLOlBvMtWOyGRl4I6Tt0ha NWcukrtn7QIF0ws6xHjoaCGbRsciXsSgIdyvj9uMJH3KiSZ/zH6khK+HzRc4Vq0TOBIj Tbmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1621248753; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=8WRh2I4er0L239TZnY1xzYUrDqadMyt5Ik+KZCRstRg=; b=FWI00tCPo+BXh3yQaBorg12vH4C+RQnnSZDlBdtBfz9MNnoFB0m/lvp/OYcjHyITjH wHmmUlXG8cWzCMzoS6dx9CIZIyI1RprfRUbiY+3AAUhz76FppIQyt2s9JExya78Pi5KU 4kyAFXWPN0KEGywh1KZ2WcR28Ixdwi1NuBBkSIhIBbhoA6p0vOxnl/XznhOE/jPYb6ca v1hc57LQPqaA9QDn/zks8cN+g3mUFGcxI0Tceilc+ccV0cbiJyXMsTih5g4nYHfy3zSU SO/WbuBMrhO9C3ClEx3QDzZ7Y0OJzPStPZOZ4xM+RJ8DP8h/48/dQKpLob//aIUBIQZB +NDw== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1621248753; s=strato-dkim-0002; d=gerhold.net; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=8WRh2I4er0L239TZnY1xzYUrDqadMyt5Ik+KZCRstRg=; b=lCAphCBg3fpthH9qM9ysGe3gwXkBKtGV2Hf9OrJA7+ru5ESYdApPpBAO7p4JkLSxZa aguvLKIov2Hu9UeYbAlk/baFqgcM5NNxKqVP0agESEwQeDHlw/Vu3qh+lgps9RjLAEyx 4Dj/NWuLD8NfJPYuyvS+CuyDQjpuyy6SQKLJ/+JZrITBPQ1OwYtTS7xaiXeZ3dIE6MlX +BTbl84xyK3ZcX64hLnkC1PIAgvN0eR9lcyXTOcU2/1jsg5PRgMn2mHXoF093TnUWSiw wqC41NOTgv1K1hlUdz1L69VG5O7qSQMfWc5uSDfiQYhXIEYbXD3gIHIH7RCX2FdVVs4w ys5g== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVORvLd4SsytBXS7IYBkLahKxB526NcMiO" X-RZG-CLASS-ID: mo00 Received: from droid.. by smtp.strato.de (RZmta 47.26.0 DYNA|AUTH) with ESMTPSA id 50be75x4HAqW1Va (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 17 May 2021 12:52:32 +0200 (CEST) From: Stephan Gerhold To: Sebastian Reichel , Lee Jones Cc: Rob Herring , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Beomho Seo , Chanwoo Choi , ~postmarketos/upstreaming@lists.sr.ht, Stephan Gerhold Subject: [PATCH v2 2/3] power: supply: rt5033_battery: Fix device tree enumeration Date: Mon, 17 May 2021 12:51:12 +0200 Message-Id: <20210517105113.240379-3-stephan@gerhold.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517105113.240379-1-stephan@gerhold.net> References: <20210517105113.240379-1-stephan@gerhold.net> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The fuel gauge in the RT5033 PMIC has its own I2C bus and interrupt line. Therefore, it is not actually part of the RT5033 MFD and needs its own of_match_table to probe properly. Also, given that it's independent of the MFD, there is actually no need to make the Kconfig depend on MFD_RT5033. Although the driver uses the shared header, there is no compile or runtime dependency on the RT5033 MFD driver. Cc: Beomho Seo Cc: Chanwoo Choi Fixes: b847dd96e659 ("power: rt5033_battery: Add RT5033 Fuel gauge device driver") Signed-off-by: Stephan Gerhold --- Changes in v2: Fix stupid typo :( --- drivers/power/supply/Kconfig | 3 ++- drivers/power/supply/rt5033_battery.c | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/power/supply/Kconfig b/drivers/power/supply/Kconfig index e696364126f1..20a2f93252f9 100644 --- a/drivers/power/supply/Kconfig +++ b/drivers/power/supply/Kconfig @@ -712,7 +712,8 @@ config BATTERY_GOLDFISH config BATTERY_RT5033 tristate "RT5033 fuel gauge support" - depends on MFD_RT5033 + depends on I2C + select REGMAP_I2C help This adds support for battery fuel gauge in Richtek RT5033 PMIC. The fuelgauge calculates and determines the battery state of charge diff --git a/drivers/power/supply/rt5033_battery.c b/drivers/power/supply/rt5033_battery.c index f330452341f0..9ad0afe83d1b 100644 --- a/drivers/power/supply/rt5033_battery.c +++ b/drivers/power/supply/rt5033_battery.c @@ -164,9 +164,16 @@ static const struct i2c_device_id rt5033_battery_id[] = { }; MODULE_DEVICE_TABLE(i2c, rt5033_battery_id); +static const struct of_device_id rt5033_battery_of_match[] = { + { .compatible = "richtek,rt5033-battery", }, + { } +}; +MODULE_DEVICE_TABLE(of, rt5033_battery_of_match); + static struct i2c_driver rt5033_battery_driver = { .driver = { .name = "rt5033-battery", + .of_match_table = rt5033_battery_of_match, }, .probe = rt5033_battery_probe, .remove = rt5033_battery_remove, From patchwork Mon May 17 10:51:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 440415 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6D7CEC43600 for ; Mon, 17 May 2021 10:52:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 467B4611C2 for ; Mon, 17 May 2021 10:52:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236501AbhEQKx7 (ORCPT ); Mon, 17 May 2021 06:53:59 -0400 Received: from mo4-p03-ob.smtp.rzone.de ([85.215.255.102]:31746 "EHLO mo4-p03-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236466AbhEQKx7 (ORCPT ); Mon, 17 May 2021 06:53:59 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1621248753; cv=none; d=strato.com; s=strato-dkim-0002; b=m113RwB0gSIQ3fvmP9w4rbNtV6j4btx/FuYll0TaG313uq5MaMPvPtcKK58Nqa36Rg VF0IDHOnUG8s3eofnTtq/8H3BaBRPE8xQ/5QpNBAzmcw6Sf+65MOaRDd6fyRBApOTbbj cmIGUPnxxbXL2oeME9uE6UZpDYMEwHpzcL3DfqL/J5J0+mCotRC8WNIAbDPLDbpyIzmD eiJsY5zUYDqAVM9NS/cjVAgLd9KdLnNKyTtYb69hRAVZEKMdXr+FYC5OcH0Ps4HK75D6 Ixa7aMNxfKy7KnkfgQwIiLJVVlpJjNhOy4004KYwrZ01LfgPXNPV4NrdHFilnNch05Tb n9Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1621248753; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=4Dcy2LTLgJk8PaoF6Y+q8hdBpMw3cHT4pkb5zRFtSJs=; b=d5PwweypdFNHpvJ0zEqyMHc9qsbPCh3++xx+C7jDpSfopWlGT58Yuhl7VU0B/wecFc jmSlOwwzTRpaXWvzVLYs70T+PhYsYX9dhtnWt1QfrD5HwXUhmmmxjLaj47SWQ0z0xpMe wuUL2pbxiMKkm4rznvBlCyN+EjO5J7zVNNcyJzOFpYL1GE4+C9jhNgIsu8NwEr5PshRP 9wCVpGbuCTpkQf+lzTPJ+/A984o3DMfFLwOYm6u7bv2oNUIH4D5mHFow9ZnHJTfddyVA YDdIIJq6gKHBIXfKHWpSdhEagAujoM7JsaPTFcrUu2rq1Qy2jsusuPI/OU03TI7kcE7R Lu2g== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1621248753; s=strato-dkim-0002; d=gerhold.net; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=4Dcy2LTLgJk8PaoF6Y+q8hdBpMw3cHT4pkb5zRFtSJs=; b=bbvWQHOZPg85k46M2/t5+1qXW81G7StYdTlHatE4e3LScWLY1xi1QRY+iFiIbv+TTh kFCqBL2uhiKvYP/uEvv3dQvJKyefAoiMDSzZoCeAnI0s2fmcrAnqatuLDY19OlWlWiKp tli/anMLU99VpPaVkHTAVrdM8BjDxff41UgOyfvRLzhkq0sjGHHRNWifmbgsBKRGowar qQV51OZCuVBdzREdtV/Aui3svRtVSH27Zs4cbMn0P7GAUwwH5YuPtcQSx2SWr4yBqVYy lVkQxTQYgbqBKOyrdhdOGnYOYb5YImtEimOi0U9fScdO221DNTBq3+xxbChWmIgxScNm EyTQ== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVORvLd4SsytBXS7IYBkLahKxB526NcMiO" X-RZG-CLASS-ID: mo00 Received: from droid.. by smtp.strato.de (RZmta 47.26.0 DYNA|AUTH) with ESMTPSA id 50be75x4HAqX1Vb (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 17 May 2021 12:52:33 +0200 (CEST) From: Stephan Gerhold To: Sebastian Reichel , Lee Jones Cc: Rob Herring , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Beomho Seo , Chanwoo Choi , ~postmarketos/upstreaming@lists.sr.ht, Stephan Gerhold Subject: [PATCH v2 3/3] mfd: rt5033: Drop rt5033-battery sub-device Date: Mon, 17 May 2021 12:51:13 +0200 Message-Id: <20210517105113.240379-4-stephan@gerhold.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517105113.240379-1-stephan@gerhold.net> References: <20210517105113.240379-1-stephan@gerhold.net> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The fuel gauge in the RT5033 PMIC (rt5033-battery) has its own I2C bus and interrupt lines. Therefore, it is not part of the MFD device and needs to be specified separately in the device tree. Cc: Beomho Seo Cc: Chanwoo Choi Fixes: 0b271258544b ("mfd: rt5033: Add Richtek RT5033 driver core.") Signed-off-by: Stephan Gerhold Acked-by: Lee Jones --- drivers/mfd/rt5033.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mfd/rt5033.c b/drivers/mfd/rt5033.c index f1236a9acf30..df095e91e266 100644 --- a/drivers/mfd/rt5033.c +++ b/drivers/mfd/rt5033.c @@ -41,9 +41,6 @@ static const struct mfd_cell rt5033_devs[] = { { .name = "rt5033-charger", .of_compatible = "richtek,rt5033-charger", - }, { - .name = "rt5033-battery", - .of_compatible = "richtek,rt5033-battery", }, { .name = "rt5033-led", .of_compatible = "richtek,rt5033-led",