Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1741349rda; Tue, 24 Oct 2023 01:35:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTiwWdsSnnqXjKxeLc85iYbQ/k5W6MPC3ZIHaJQHwDTHB71hIqLyZERJ5KuQFxH2uoglsa X-Received: by 2002:a17:90a:6fc5:b0:268:808:8e82 with SMTP id e63-20020a17090a6fc500b0026808088e82mr15479534pjk.1.1698136523581; Tue, 24 Oct 2023 01:35:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698136523; cv=none; d=google.com; s=arc-20160816; b=TwmGeFqthFAB+G2b0l1Ezp52YDeAoU6h+y6Lcag2efi6dnfGAuU7vrc1bD0W8jRrbm /t4VPL9gy6tzfcTznddL/JVqZX7vJ2LhsWubSt9/urT1bhXy6P2QDgYjKxOEBJlwooda FiRtwG8HCHOatCe1AtuN1GsTuhBsnGH024zvZ8vEECG1V2twMXv1h7TQIw8eoRlqY6Qe mZiwp22waPmpvIjU7yv4WOw1NnQ+hH/ggHfzvbkaDTXUY5jqJLkaMweuchw4EFJxQNoW qJNo3dktaCflEjJ26PFGZeNIBBfxe9q77ySQz0MIlQOTGPrzZISuHnrTZ3eQ2Y4GjWMh g5Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=P4+Uwe00Vj2uJxQCVZngDERfeMYn2777PTVakZc20IQ=; fh=JW30Tmkolrdpfyj2AxnpIx4/74+GKuHkbzLcPEeRho4=; b=Xl65T7ogLfkDIV3oBvjZbPg1fTAwdcknjEFS3K8S1zhS4ItiNO9sjuoiVvPQkHEx3V Nxsn6O6qEviDWwUF4wU6ZihAZaL46D2pPX0JsZKCkiAYTuLnPosH8QIA/wher0HyyUcx aU/gPNotkwgNkpvDPKuUR1siGlX1TVt8mkw/M7+eosHeniwYbTyjq/jTpmKFaenCOjAj xI6vrL9xydaZIfFpIDp2pOoUlG5rntXN5vRFYRejOAcksjIyVhAUVwD2yQnG9pNN63GV kP37eaZqYqSkQRdYMZRtkb24RMA1lr3KZcpe1HxJgPrC6hhxYbISeBrupoNWCJZcNW49 deTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ANLbrsjM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id nv9-20020a17090b1b4900b002791a73ab07si8461012pjb.54.2023.10.24.01.35.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 01:35:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ANLbrsjM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 7CE45803B344; Tue, 24 Oct 2023 01:35:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230017AbjJXIfF (ORCPT + 99 others); Tue, 24 Oct 2023 04:35:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234080AbjJXIee (ORCPT ); Tue, 24 Oct 2023 04:34:34 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF6FD10EB for ; Tue, 24 Oct 2023 01:34:28 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2b95d5ee18dso66588281fa.1 for ; Tue, 24 Oct 2023 01:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698136466; x=1698741266; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=P4+Uwe00Vj2uJxQCVZngDERfeMYn2777PTVakZc20IQ=; b=ANLbrsjM+k8d80IyeyK0gl3Vf+NzE56sCbXg0kzsAKfVeNWeqfQj93ZxD/7aPNza1q GsxM0FzeuOf5Z3G7oG3X9jnuiBJoT80Phmq2AjVXf3+4/re/28klXBsIrORNiVWP7IYD ICCceuDUTqb/X+TK4pW4kgFH7j0zelzg313E/lN5/i6e7u56Dmc8psaifyiy+xj5SDC3 x+hZZYL6vDo6lXd9Ui886DfV59tLpwUqDr7F3CFkCKKWFes8v57ntnRlokyTFzc6xNeC u7ww7bItS/YLHtZvie8Ewr8olR3X9FUFwQtHVEvZtT3WGdUTifFQDT5rbkv1SS5hsnFw TkmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698136466; x=1698741266; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=P4+Uwe00Vj2uJxQCVZngDERfeMYn2777PTVakZc20IQ=; b=h/RQuiF8bHD239YUO7D+1ivjwVGVA4ZnVs3XsGxC6EQIR0aayMZ/6AVDObr8KUzvOn l2gcG3VbfK40q3Eyh6uH8MxGIYTEBjOgQQfYK2sU3yLVv8G0A05hFUJwlGjxDmhVgMa8 hkm8w+1deu1PXxqtpikOjEYGVwOAiL075IHdiC6MMCzp7EK2OorFpi655zOCoKqP0Ixg WDZ4E3HwyZMSaC4lJPHpIyNsx4VoBYseALLLY5i2y2o6TOL68WzGmTfiXEFB5KdkkaJy Y7R1OAf1hy9s5ocGC1130bcxu7eFGLtlY0RXYbXCsQ0ZPYkd5N5qjCtBcuqiZmOyXLsk j2/g== X-Gm-Message-State: AOJu0Yx4d5uhhWTLZoRi9k2lWiOKKcfyHpEfpjs587UUUYwYBEEyuvQN fOP+4xMd2vTcvE53Blj2a4+FKw== X-Received: by 2002:a2e:99c8:0:b0:2c1:522a:8e25 with SMTP id l8-20020a2e99c8000000b002c1522a8e25mr7492311ljj.32.1698136466364; Tue, 24 Oct 2023 01:34:26 -0700 (PDT) Received: from [172.30.205.198] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id q19-20020a05600c46d300b0040836519dd9sm11408994wmo.25.2023.10.24.01.34.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Oct 2023 01:34:25 -0700 (PDT) Message-ID: <3dff444b-c439-4c40-9d21-1e390f449840@linaro.org> Date: Tue, 24 Oct 2023 10:34:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/3] arm64: dts: qcom: pm8916: Add BMS and charger Content-Language: en-US To: Nikita Travkin , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Lee Jones , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht References: <20231023-pm8916-dtsi-bms-lbc-v2-0-343e3dbf423e@trvn.ru> <20231023-pm8916-dtsi-bms-lbc-v2-2-343e3dbf423e@trvn.ru> From: Konrad Dybcio In-Reply-To: <20231023-pm8916-dtsi-bms-lbc-v2-2-343e3dbf423e@trvn.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 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 morse.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 (morse.vger.email [0.0.0.0]); Tue, 24 Oct 2023 01:35:19 -0700 (PDT) On 10/23/23 08:20, Nikita Travkin wrote: > 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 > --- > 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", So, both the charger and the USBIN driver use the same irq? :/ Konrad