Message ID | 20231120-pm8916-dtsi-bms-lbc-v4-1-4f91056c8252@trvn.ru |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp2220989vqn; Mon, 20 Nov 2023 06:05:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGRTzvpvc8X5XiDAE3QeticoZkDw7hmr/LYqSJY59iX4gaOCOcNo6zUzLy3bCRz/8D7tlL0 X-Received: by 2002:a05:6808:191e:b0:3b2:bc91:cbca with SMTP id bf30-20020a056808191e00b003b2bc91cbcamr10845850oib.20.1700489100920; Mon, 20 Nov 2023 06:05:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700489100; cv=none; d=google.com; s=arc-20160816; b=duvvqaOj3X6H4YI+Jr7GE7MtQcscGUnwIdgpghV0vsM8TzSzF9dGSR6WKqPdD1vDd2 bnmoVWdsQasxIY3R/MjuZJWFX8635wtZZPlwM9oIG6hCq0vsCT4Y5eazheo2/Eao6QRv 97pK3symqWlP3iCB+mifIaD3YXXZNjNVuN8ZS/CBwlQE0XAPZOggr5GTukNvxzsfxVEL 88Q1UTiczZOJvpf1pNowfeWj2PhWnXWyHcYRUEjYfzH8yCgd7PHBYu+OV1+AjG22t6o9 JdFC90doQJQv2zoBq9PaNNd49e7mEaIATBkQmRoZAiWQR1ob0BYGcizmVqN/aXYlEMdB f9iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=kIA95I2ewKTLuAAZPHe/l3g4GXWBWg5Jjaw2wiqkmHM=; fh=U5mxiWMUuvTRq6alBZlLGQb1SMJA9nVYKnFjYXdNN2o=; b=YDt3l8MMNKh5M32HgoWVrTLENWjSfeg7a2bC9OMRLZzdD0+p04DNcLa+bcKcEkWVZ3 YRSKIbbMI4bnRYDRszLkXbghJ8X9TG3TwqHAP/ktJyCXAD14ed4fZ/lMtrHt0GVkHgPy OSdvsnN4lI9wN+vBZSu1JhFTbTDPYXBvtvLLqqUk6wrgVhK1qOI6kdPRrIKlgHacrExH Qe3s+FoDgwAcCjLzKsw/ldY+jTJhlV+ObHN6bRzD4iikEoxpVUdPh/EHtaKYsc573KPi YlsSRmjGIT6xyIQZHxrn0zF0p4LgD9byrf8D+4/l/yxQPrv/T7i/hu4yM9hOWqLAMgBF /aeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=2EFIumOn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id bk8-20020a0568081a0800b003af99f29b85si2839097oib.55.2023.11.20.06.04.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 06:05:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=2EFIumOn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=trvn.ru Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E9B0980A9A9F; Mon, 20 Nov 2023 06:04:50 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233624AbjKTOEf (ORCPT <rfc822;heyuhang3455@gmail.com> + 27 others); Mon, 20 Nov 2023 09:04:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233520AbjKTOEV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 20 Nov 2023 09:04:21 -0500 Received: from box.trvn.ru (box.trvn.ru [194.87.146.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B68CB10EA; Mon, 20 Nov 2023 06:03:46 -0800 (PST) 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 3CD67408F0; Mon, 20 Nov 2023 19:03:40 +0500 (+05) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=trvn.ru; s=mail; t=1700489020; bh=luFC7my9PJ6B7z1i59mt1ERZ1dlWg9/dkHvKsguCUSo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=2EFIumOnwWrgKhwBCBCO2272lSCiqSdUGvQJNk57pm0yww1zUrsGJR+gH+IWYAo5Z SR48mDvjEAFsk5ode5AF8cV+9HrAEhFvD8yL3BvpEKYNT8DHDwbR1xgXDwcvVw/EQD gaXHCvdpiWUIEM0aFmk/jmgVf0LFtxOKF9yYT43fl8VV3bwSndfK46g8OTZDGCmFqI aM7L2pXBedIWJFK/n/8cCOurFQ3nc+heruBKRzhwZBBrWr70IZUq6vFj/bywNMB9cR sYP3ULGTkboNYOkOD0eIPzUwcPO4aCxA7t5sa+8XYRi6+z937pJiaGWqt9pBTdNHUG rMbktoSlcK23g== From: Nikita Travkin <nikita@trvn.ru> Date: Mon, 20 Nov 2023 19:03:03 +0500 Subject: [PATCH v4 1/3] dt-bindings: mfd: qcom,spmi-pmic: Add pm8916 vm-bms and lbc MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231120-pm8916-dtsi-bms-lbc-v4-1-4f91056c8252@trvn.ru> References: <20231120-pm8916-dtsi-bms-lbc-v4-0-4f91056c8252@trvn.ru> In-Reply-To: <20231120-pm8916-dtsi-bms-lbc-v4-0-4f91056c8252@trvn.ru> To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Lee Jones <lee@kernel.org>, Stephen Boyd <sboyd@kernel.org> Cc: ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Travkin <nikita@trvn.ru> X-Developer-Signature: v=1; a=openpgp-sha256; l=1246; i=nikita@trvn.ru; h=from:subject:message-id; bh=luFC7my9PJ6B7z1i59mt1ERZ1dlWg9/dkHvKsguCUSo=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBlW2c6DqBL7FqK9Osl121enWxioHz4Jo9CZKI+X fEfW5dX1qSJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZVtnOgAKCRBDHOzuKBm/ datRD/4sCHsa/7oYl28AW2Rx9iMsFxxPitshJGaVmsC40v5X1WEOdTzt2K81dCKCHQvYwe4uWJI Lf/Se6LVQwNR/MRhkQmQejvusx5MOOn732bWsnyrbg2lw9705iFWgn0k+IDMgohPtzzS44+BtUR xWVUEanmdG2hzAiEVTA0+LAk4nWU41J9lt+aqwmJrwE7xV60kuN7tOCD4ku5IiuyT7E4gb7Wwn7 jNfDrK777nrMd0ENq8nCLQfOBvl1g9i1fpm5hWovctCDZ/YNpvVrMTIHU9C38N6RLlyS7n2vWua KHWSWOEMHHG6bKfyoAUrcHRkjNPcM8NCF/g6y7NU0VZr3GsLlWjrMgDNMeSiPfhh7xO/uG//Gtm Z2k/kf2J4S8WtkyZ7dmtAtivvqf+8JrZ+x5hMaIcEWeNh+lNX+7Z6FJDeSljwhbCra29V15kIiZ E5mnt5iEF0wiHyCpyxqsi/vIqMYxXDWyIuGt3+YMnmuK6VaZiEqOmukL5WQefhb2kVVGiCu/FXC tCP9ZiRoGscpZFCMmaO9WWkiAcNyP29WcgzwALVAuKNrk1wFsdB3sJGMhETDrI5cRuuteK8sa/T uVTjmOVdJ/RptZPx5P5bPmAOGSstOYgZdqytJ+9mnDAo2Sic1PSzAZ891StyXu9kSjsRYMXi8gs NjlFXUsyWuAVxtg== X-Developer-Key: i=nikita@trvn.ru; a=openpgp; fpr=C084AF54523FAA837E2EC547431CECEE2819BF75 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 20 Nov 2023 06:04:51 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783092059451254872 X-GMAIL-MSGID: 1783092059451254872 |
Series |
pm8916: Add BMS and charger
|
|
Commit Message
Nikita Travkin
Nov. 20, 2023, 2:03 p.m. UTC
PM8916 (and probably some other similar pmics) have hardware blocks for
battery monitoring and charging. Add patterns for respecive nodes so the
devicetree for those blocks can be validated properly.
Signed-off-by: Nikita Travkin <nikita@trvn.ru>
---
Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 6 ++++++
1 file changed, 6 insertions(+)
Comments
On 20/11/2023 15:03, Nikita Travkin wrote: > PM8916 (and probably some other similar pmics) have hardware blocks for > battery monitoring and charging. Add patterns for respecive nodes so the > devicetree for those blocks can be validated properly. > > Signed-off-by: Nikita Travkin <nikita@trvn.ru> > --- > Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 6 ++++++ > 1 file changed, 6 insertions(+) Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
On Mon, 20 Nov 2023 19:03:03 +0500, Nikita Travkin wrote: > PM8916 (and probably some other similar pmics) have hardware blocks for > battery monitoring and charging. Add patterns for respecive nodes so the > devicetree for those blocks can be validated properly. > > Applied, thanks! [1/3] dt-bindings: mfd: qcom,spmi-pmic: Add pm8916 vm-bms and lbc commit: 95f44ef666a6504a7c75def89fffacb0ae4bf52c -- Lee Jones [李琼斯]
diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml index 9fa568603930..49103e07032a 100644 --- a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml @@ -134,9 +134,15 @@ patternProperties: type: object $ref: /schemas/sound/qcom,pm8916-wcd-analog-codec.yaml# + "^battery@[0-9a-f]+$": + type: object + oneOf: + - $ref: /schemas/power/supply/qcom,pm8916-bms-vm.yaml# + "^charger@[0-9a-f]+$": type: object oneOf: + - $ref: /schemas/power/supply/qcom,pm8916-lbc.yaml# - $ref: /schemas/power/supply/qcom,pm8941-charger.yaml# - $ref: /schemas/power/supply/qcom,pm8941-coincell.yaml# - $ref: /schemas/power/supply/qcom,pmi8998-charger.yaml#