Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2239449rdb; Mon, 20 Nov 2023 06:06:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHUsdaG/t2uLSNQl3t6U0NMHsguIpE50En1UChAj2h6EsQuKG39OBeTc1oQWUufW9O6dfU0 X-Received: by 2002:a17:902:b486:b0:1ca:e78b:35dc with SMTP id y6-20020a170902b48600b001cae78b35dcmr5216986plr.27.1700489190640; Mon, 20 Nov 2023 06:06:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700489190; cv=none; d=google.com; s=arc-20160816; b=orKkhepv24VZkDNikuS/nrqLs6rHZNbbExwtsFvyyhcwOKgBDsPjtz1Xx3Up/yOIp0 7pB+j4hvPgq/vwvuRIUoqOzlQg+JgzeYD8h0MpLS1oY+501GCxadVmVRVdc7bFESlxRd HdNabRkPcXDZTukpFs0pgvPZ5zOwJfd6G4hqMopb4Da7hkwY+PNh285FZkUWjOKds8/8 IajnIIs3BFIa34v/5CNUWhA9ztSiR+wL76uB2GyNqa9GrUBenbt3/bon50GsLxzmaWeI 0rOOsZcwpynRS2D4MfOwXHymisQEEWc4gPvUFwc/6VC51FbnzhiChLalH6lOISgV/sGb Xnjw== 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.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id e24-20020a656498000000b005c1e716256asi7671278pgv.218.2023.11.20.06.06.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 06:06:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; 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.37 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 snail.vger.email (Postfix) with ESMTP id 60DC8801CA46; Mon, 20 Nov 2023 06:04:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233615AbjKTOEf (ORCPT + 99 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 ); 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 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 , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Stephen Boyd Cc: ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Travkin 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 20 Nov 2023 06:04:37 -0800 (PST) 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 --- Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml | 6 ++++++ 1 file changed, 6 insertions(+) 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# -- 2.41.0