From patchwork Mon Nov 20 14:03:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 167156 Return-Path: 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 + 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 ); 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 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=-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: 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 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 Reviewed-by: Krzysztof Kozlowski --- 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# From patchwork Mon Nov 20 14:03:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Travkin X-Patchwork-Id: 167158 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp2222381vqn; Mon, 20 Nov 2023 06:06:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHPaycUAt7DJRENS94X75CazZYLV/7qn/tb29MV30bnqrVqaGad95B8Q2DnWkgE6FBlvOiJ X-Received: by 2002:a05:6870:82ac:b0:1ea:fd4:58fb with SMTP id q44-20020a05687082ac00b001ea0fd458fbmr8923205oae.52.1700489193599; Mon, 20 Nov 2023 06:06:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700489193; cv=none; d=google.com; s=arc-20160816; b=kpmXQsPIiivytHM1tK+gpdlaOjP7NTOEJ9R9zcCx7xpjYTUU9+8mEOayCIC7wsAt3I PEUGcEo7nSYMgEa0SZOOMvUb7R+vCYNs5CmZhEm0g5m8QeQoyegjL3q/rOfTrw7QXnit xtiLGAh8Ui6uibVp0WprozPFoCt8D3lQhXJbqM2b3MrnXPWMiEqqRLkZ737AtIfj2bI9 0LLO0txuLuI8sFnb+/3NbLwR7ieAy6dyJuZ950kt+39UHgB0BT7j4ebmMzFSHiDpBNbv Sz4oU7bbGUDtPX0e7spEjvWfrhn2DSlL66eRLYwWpaHLD7KjcFHZ9yQI1u8fiIT0ANxl axyw== 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=gKU2Hb5Ts8ACz6pXE/qz00/JtwGg1ALMTvmhW/lX6v4=; fh=U5mxiWMUuvTRq6alBZlLGQb1SMJA9nVYKnFjYXdNN2o=; b=t999sW4cDVjoPoIKEZ+dCbd6pK9z+eRdvGJHvk0hyKJQPS2r4WRXCHkmaMn+RA/7eh lUbq/jCzQ7Odl+QP4MuS84iBv6Xa/QurIqu/X5DSH0ZbhXnor4E/d2sUkIa3Fq8i9UM/ pKPVv4+5ac+/2xMi/xz5Y4EzpzXrxpfaewo5zawh6DnPq1Mic3myHAy9SY7GrctJI+/c BwbIITG8ku/JHiqMc7Yg/JINNivoK78ZgMNxH1HskD7BRbtQAhsmKLh2Wo1aQwuBWHAZ TluBEyeUAUt98va+I5Kia2p7BguUK04SrkDFp/qpHvqRMYgXtm0iU9EFuYbcL4g4ETrk +mug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=NetaeWoS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id v13-20020a056870310d00b001d0fe4f5616si2777000oaa.168.2023.11.20.06.06.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 06:06:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@trvn.ru header.s=mail header.b=NetaeWoS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 6251C801C192; Mon, 20 Nov 2023 06:04:55 -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 S233747AbjKTOEl (ORCPT + 27 others); Mon, 20 Nov 2023 09:04:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233626AbjKTOEV (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 B6FFA10EF; 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 CE14641C8C; 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=1700489021; bh=cGxQVt+NVbaQIsSjfqmJUKIMf/PR6FSgo/FLAfIdsik=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=NetaeWoSzy6hx0ThcsqTyd88xLdda1hsW7QjBpdxRda1PiaGgxi41LfXu6DEJ7cio 2eoiOAJFn89bUyp/ryBAEq0pBhpkY7juzPRV9302C/pqG/el1jw/B0wmIDJs96bxls rZdVZp/Ku7geSgkr0Q1C0TEurdqhmkw91nmVJYdtrGYdsunMieRuaS2d8Y7tPP9KDP pY5VDKn3/uLSA7ThX5xoAMedNdzEZdjLcG3dK4bJSFKUz1jYEiHs8e39NQuNfj5xsB RlevYlZGDKOk2ivUbg2m53TE22ysCC6779U4V4kZM3VRVz5yr/qDoWmk/kwNhpL7Og OKzbeTpSrFiHA== From: Nikita Travkin Date: Mon, 20 Nov 2023 19:03:04 +0500 Subject: [PATCH v4 2/3] arm64: dts: qcom: pm8916: Add BMS and charger MIME-Version: 1.0 Message-Id: <20231120-pm8916-dtsi-bms-lbc-v4-2-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=2360; i=nikita@trvn.ru; h=from:subject:message-id; bh=cGxQVt+NVbaQIsSjfqmJUKIMf/PR6FSgo/FLAfIdsik=; b=owEBbQKS/ZANAwAIAUMc7O4oGb91AcsmYgBlW2c6wY2c6XqAiTk2FnLRWhwUtpSFzC7/q00Nq OUIcnOCodOJAjMEAAEIAB0WIQTAhK9UUj+qg34uxUdDHOzuKBm/dQUCZVtnOgAKCRBDHOzuKBm/ dafFD/9F1dMePHKR/saUSqP6doyBMFABCcvg46qy03xY3VWDQF/6/hefPTC7sINYtptOf0YXuzN 5Ez25j+mAz+H2Qpt086020crP5NrNAJBxOeWlVLakJKK/L2+b9SKkrfQ6bQZ8Q7kYXtTw62sc3/ Q0aEHN/DTvpsJ6mZCP94HPzfKdkUWs1Eo3RrRzkvptPmXeDtSTzHbM1P/2XWYrejzCbyuTCqL9i mnnlVIamdAM+wYkVO3Fi/uOyfPIIDELvaNdkIf2GPHqxxTx1yusTskYtGPOptKaL5xiOsM2vd5D S750NWieowEX+xds7B2Er4f1kjgz1mD3bBQTq4oHZ2bB1zTd/FWZSKE/OcGWYWdmKchwQrkqwTQ PY3cvyWnoUVrbuM0LtU0dEZ6/EU7FKd7ITTbx4L/FlDmdb8miW3iuYb/mzjrrTYteDt/MKJWNa9 /HcwCd4TkmIqjWh7EpK9spCUG56e8G8H/Ld4+xyPxU1vzIhHu8nQ3VEnAjKn24LC0b8GeAZ+bE+ TX703tEQJNxIhZQb8cttY4mYVRvZ4T5YOvYaeEjwzYac89Yd9w/MLHe+4DxE+tnEXmimW6MTERz hpH3AzVEyo+10AvBXcP4s6lpobMFHiOGTw/UrrIAIPnpbbIUSQaXu6fCJaqjL/yCiE0LhNYv6lc cs+Cz3/xXZzEsCA== 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:55 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783092156556302753 X-GMAIL-MSGID: 1783092156556302753 pm8916 contains some hardware blocks for battery powered devices: - VM-BMS: Battery voltage monitoring block. - LBC: Linear battery charger. Add them to the pmic dtsi so the devices that make use of those blocks can enable them. Signed-off-by: Nikita Travkin Acked-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/pm8916.dtsi | 48 ++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm8916.dtsi b/arch/arm64/boot/dts/qcom/pm8916.dtsi index f4de86787743..4b2e8fb47d2d 100644 --- a/arch/arm64/boot/dts/qcom/pm8916.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8916.dtsi @@ -41,6 +41,35 @@ watchdog { }; }; + pm8916_charger: charger@1000 { + compatible = "qcom,pm8916-lbc"; + reg = <0x1000>, <0x1200>, <0x1300>, <0x1600>; + reg-names = "chgr", "bat_if", "usb", "misc"; + + interrupts = <0x0 0x10 0 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x10 5 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x10 6 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x10 7 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x12 0 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x12 1 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x13 0 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x13 1 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x13 2 IRQ_TYPE_EDGE_BOTH>, + <0x0 0x13 4 IRQ_TYPE_EDGE_BOTH>; + interrupt-names = "vbat_det", + "fast_chg", + "chg_fail", + "chg_done", + "bat_pres", + "temp_ok", + "coarse_det", + "usb_vbus", + "chg_gone", + "overtemp"; + + status = "disabled"; + }; + pm8916_usbin: usb-detect@1300 { compatible = "qcom,pm8941-misc"; reg = <0x1300>; @@ -91,6 +120,25 @@ channel@f { }; }; + pm8916_bms: battery@4000 { + compatible = "qcom,pm8916-bms-vm"; + reg = <0x4000>; + interrupts = <0x0 0x40 0 IRQ_TYPE_EDGE_RISING>, + <0x0 0x40 1 IRQ_TYPE_EDGE_RISING>, + <0x0 0x40 2 IRQ_TYPE_EDGE_RISING>, + <0x0 0x40 3 IRQ_TYPE_EDGE_RISING>, + <0x0 0x40 4 IRQ_TYPE_EDGE_RISING>, + <0x0 0x40 5 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "cv_leave", + "cv_enter", + "ocv_good", + "ocv_thr", + "fifo", + "state_chg"; + + status = "disabled"; + }; + rtc@6000 { compatible = "qcom,pm8941-rtc"; reg = <0x6000>, <0x6100>;