From patchwork Fri Sep 15 12:45:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 14047 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp1018466vqi; Fri, 15 Sep 2023 05:51:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHoboYxg67FYWolaQwcEdLA6cFhXxIcvdC6mJfX/PEV8Bn2Q2G1FLssgH9qBdNbpejlu+BQ X-Received: by 2002:a05:6a00:9a4:b0:68c:3ed9:d39c with SMTP id u36-20020a056a0009a400b0068c3ed9d39cmr2092350pfg.13.1694782281409; Fri, 15 Sep 2023 05:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694782281; cv=none; d=google.com; s=arc-20160816; b=fudsj5vSG1q+9/UfBg7Kw9SdfZZwMLYxDdKIMYGqQ+5OLK6COSU68WEfe+5xZwEZNm XLB+Y1kS/nL9zceUL9l/3R9ZAyc5KL2mmn0rIbwYHN7ze374sIv9NBma50cCrNpv7qJ/ OTwvqCxMNIzDxiAOdLYc66Endb42YD2uxEVIKSc2hRZlX1JaP7AFtHDNj6sWM8fVmH8D RHt5orjfNdwa8w2iKDEF69cfBTk/7eSXZ/tLONRi4uie+MIj/M6xfGlQzvHS0pFXC2kx fIh4K5HIVowUZMdrEodX5LmFcPHLrJardTYsXt/9M0S4dNEfKzNxL+YQwQXu473PMNFD PlMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=oTnoDjXgLFTKf4cq2qJGKU+HAQuadX7y4b7vlp63yRY=; fh=x6TiC0nyTqDTJO7GKaDM3x+hS3WCOs2j4IcSK/NpSFk=; b=qIrHdtSqtoLYbiM21D6Z9rn5QcBdxWjeF9FXWYcIn9CfDU5y/8Vdt/3xLG2eoktP4k LOilQovqoB03KcLQWBX3CZiS6yCwUHgBQ752TImd0QFJETeN/ltrF7W241wH93pMAXHr lGfc71ftKdSFtbtt89KJ8lFvmKvT7LwYxXAjxLl1mc6+84zrkeAzTjFAJpdcT1GHdUef sCuTEqC9j3bon/ZSpRuOyKL/ovJcLZJcZ81apKM6+qUMzJS02tBZUhkCAojnnaeQ/Cne 6yYcbzlcIiptgeNaNkmkQPIJJKQpFNDCuFBraM62Uaf79GS5mG6WSGLKwJrcpPRh0WV2 VxAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NPpKiRkA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id d9-20020a056a0010c900b0068255c2b8a8si3311147pfu.151.2023.09.15.05.51.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 05:51:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NPpKiRkA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 1B6ED81489D4; Fri, 15 Sep 2023 05:45:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235027AbjIOMp1 (ORCPT + 32 others); Fri, 15 Sep 2023 08:45:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235023AbjIOMpZ (ORCPT ); Fri, 15 Sep 2023 08:45:25 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C2B1DD for ; Fri, 15 Sep 2023 05:45:20 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-502e0b7875dso3539609e87.0 for ; Fri, 15 Sep 2023 05:45:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694781919; x=1695386719; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=oTnoDjXgLFTKf4cq2qJGKU+HAQuadX7y4b7vlp63yRY=; b=NPpKiRkAmbqkwzHu4t1KswJuTT/x4QWhuJz2dDGQykNeLqFtlcghxKmbJA9Jo12+pv ZekXa//DaXT1+1UUm1Hgz7WyGM+ZgfUoHUfZpr58Tx3+WcmbICLE2rP13DXm401ekArC 2lntiOxa4sRMKCfYCcMMHdVZEz3idGRVLh8M1w0ehps4yWNIGZ1O8L0kiKiy8uIGfTIU 11WvVOwUx9oy5CwJCCHBxuCEGnnwMQtg8jX+TWKZ4Tge0jAImufctlk9EX21Px/NY7A/ Z8hYuN+J0MffaFSiMwbRTgzKeGKlnlFMrqkrvlUvG59v0sxKNlm3bhmzLh4Cp20gduQH p1EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694781919; x=1695386719; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oTnoDjXgLFTKf4cq2qJGKU+HAQuadX7y4b7vlp63yRY=; b=HT0GWE64AZ5wKQJeM7bXM8UmPPSdB0N1mRWmbT6FVly4atMOGl6/8Om/8H6nFdg+p8 Mei1HFRISZZ+zQPFeI0PG5xTFkznVIb1D14jFhhxsSm3rURvYNDBbX3JvY8gJUmsptb9 +NuPv/rY/avBMdYi9DlMgcE/CaFN+h528XIOAT62BUX6vSKl4a+ErUdXnIFtmYpKWbi3 kSzY6xpZPC+KQjKFBnB5emkI3HKr3FHcwMskGt5uX7alpcUgOkpzbqWVB2jG89AW0H+G 0bEGQDyzloMx5eKH7O9Om4hnYZ4CzJvvYECh7CV8Pgzpnw0yETEFm4XMKP88adqXlMHF FZAA== X-Gm-Message-State: AOJu0YyddynyRPn0Ps9mLR2SEHBu5FxGJSgHQTyvyK+J0hWq2DACHvs8 9guGhm+RVKf4YY5JIztIYB6BKA== X-Received: by 2002:a05:6512:3e11:b0:502:d86d:6b26 with SMTP id i17-20020a0565123e1100b00502d86d6b26mr1653998lfv.50.1694781918701; Fri, 15 Sep 2023 05:45:18 -0700 (PDT) Received: from [10.167.154.1] ([2a00:f41:cbe:bc7d:62a6:5d09:5ba7:be5b]) by smtp.gmail.com with ESMTPSA id f19-20020ac25333000000b004fe37199b87sm624752lfh.156.2023.09.15.05.45.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 05:45:18 -0700 (PDT) From: Konrad Dybcio Subject: [PATCH v4 0/3] MM8013 fg driver Date: Fri, 15 Sep 2023 14:45:14 +0200 Message-Id: <20230621-topic-mm8013-v4-0-975aecd173ed@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIANpRBGUC/33NwW7DIBAE0F+xOIdqWTDgnPofVQ+A1zGSAxGkV qvI/16cU6uqPs5Ib+bBKpVIlZ27Byu0xhpzakGdOhZmly7E49gyQ0AJGgW/51sM/Hq1ICSXRpt +oMF6tKwR7ypxX1wKc0PpY1laeSs0xc/nx9t7y3Os91y+nper2Nt/1lfBgSsFJmjUAL18XWJyJ b/kcmH70opHGnftSSPK3ho3/tSn7kgNk/BKTMoH0H8+5dGnbNpYMTqpBQUNv/S2bd/+XekMcAE AAA== To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sebastian Reichel , Konrad Dybcio Cc: Marijn Suijten , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1694781917; l=1579; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=MhLWYhlsgWjrrAQjXdxmmKcqg9TDemaldksf0wIoqfQ=; b=Yv611wxqWHSWLVClX9U+/xp5KSTXDWqUVqd9Dr2nxJ5RjyGXSDXWoCzsjTJGBsGytirY0yyfk PwrPKRKApmiDzsM4d2m8xuCy/ktk67lPJ7ZBJr/z2NG2ceUSi7sVRr6 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 15 Sep 2023 05:45:38 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777108025648303815 X-GMAIL-MSGID: 1777108025648303815 This series brings support for the Mitsumi MM8013 Li-Ion fuel gauge. Signed-off-by: Konrad Dybcio --- Changes in v4: - Use regmap - Fix units for some properties - Return retval of mm8013_checkdevice if it fails instead of -ENODEV - Minor style fixes - Link to v3: https://lore.kernel.org/r/20230621-topic-mm8013-v3-0-781da361ec60@linaro.org Changes in v3: - Reference power-supply.yaml in bindings - Link to v2: https://lore.kernel.org/r/20230621-topic-mm8013-v2-0-9f1b41f4bc06@linaro.org Changes in v2: - Fix typo in patch 2 commit message - Drop driver.owner in patch 3 - Add PRESENT psy property - Pick up tags - Link to v1: https://lore.kernel.org/r/20230621-topic-mm8013-v1-0-4407c6260053@linaro.org --- Konrad Dybcio (3): dt-bindings: vendor-prefixes: Add Mitsumi Electric Co., Ltd. dt-bindings: power: supply: Document Mitsumi MM8013 fuel gauge power: supply: Introduce MM8013 fuel gauge driver .../bindings/power/supply/mitsumi,mm8013.yaml | 38 +++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 5 + drivers/power/supply/Kconfig | 9 + drivers/power/supply/Makefile | 1 + drivers/power/supply/mm8013.c | 274 +++++++++++++++++++++ 6 files changed, 329 insertions(+) --- base-commit: dfa449a58323de195773cf928d99db4130702bf7 change-id: 20230621-topic-mm8013-376759e98b28 Best regards,