From patchwork Fri May 13 20:05:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 572462 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2701C433EF for ; Fri, 13 May 2022 20:05:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383993AbiEMUFu (ORCPT ); Fri, 13 May 2022 16:05:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383990AbiEMUFt (ORCPT ); Fri, 13 May 2022 16:05:49 -0400 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F20992E0B3 for ; Fri, 13 May 2022 13:05:47 -0700 (PDT) Received: by mail-oi1-x232.google.com with SMTP id w123so11422515oiw.5 for ; Fri, 13 May 2022 13:05:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=7P70puUZHaHmUVj8T6SQ30J3AHLPBrp4nUTfVql+nLE=; b=dWiFAderwMSYvobHS0LcrsKtUKhNp0PCSCbqakfZOC+Uy6AD96JBENhHxD4Jg1d3pT PKqnpSoZHCEhvknj+YlyAAKJMrdTpjipizNEdgcWcZJyXSF9HQrCweUAKH5/YlySONxD ppwBVNh3+mM/Hw9PiHpp2Mjoehf5li4zW3AZAZJeCEbYr+ePRxehb8VV0HZJLVpiU414 EvFmi0Pmh04M2yDOGg425Tm9oK/t5oChbNDhN0S4BLEnybYNLmQsfujawcm4BSxEs6J9 uGn8CnLB4/nYfmKXG+vrmszs7ISXHV0TPoKr5EHmubYQs62rZGr6C8ZcG3SaQ4hrCe+6 M5Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7P70puUZHaHmUVj8T6SQ30J3AHLPBrp4nUTfVql+nLE=; b=PvrAZ6EjZq9rQiPo/YFF//hylbAzVvb0tRfP3kWKvMa7lxqhu2dVVuP879mkWptnAX smOcXwRHv352du+xygoOp00XjMZbfKMNb99QOFfnrkI/tqnW88mGMz6dw+gfuz1BcbtZ tfJqPlk4aO9n2IZV18bStoQOOlK+IuORVtNmdo7pqKJWEMKqz4hRZRFaIU3NFrf5UP4m nIA9GWoyQvf60LoG0VAL7V52g1rR2UEgQQCPwvccf02f/Ui8dDFSVSIKOzKljPL8g7T5 zRG2e4DN8lNiYTLC9TTlPfrbHiuni0CiKNH18oZbRauJ+k/l8xdzSXFdeWqLOGlFRWRu YXTA== X-Gm-Message-State: AOAM533pKY+MBW+tncJ2PnuqOnvac9mvhHFFyUwF03qT+KXJdiDl2jsE 1o/2vdO9RF20FWhJd65h+zt/3Q== X-Google-Smtp-Source: ABdhPJwZl+46lDdpUkZuLhi9JpRrD2DGW8k916M0oCnnMgPilPwtijVfM0QyS9/DGQWxNrFIFVS3Hg== X-Received: by 2002:a05:6808:bc5:b0:326:c2e8:2d2e with SMTP id o5-20020a0568080bc500b00326c2e82d2emr2963358oik.97.1652472347264; Fri, 13 May 2022 13:05:47 -0700 (PDT) Received: from localhost.localdomain (cpc78119-cwma10-2-0-cust590.7-3.cable.virginm.net. [81.96.50.79]) by smtp.gmail.com with ESMTPSA id a1-20020a9d5c81000000b0060603221240sm1456962oti.16.2022.05.13.13.05.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 13:05:46 -0700 (PDT) From: Caleb Connolly To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Caleb Connolly , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org Subject: [PATCH v3 2/6] arm64: dts: qcom: pmi8998: add charger node Date: Fri, 13 May 2022 21:05:08 +0100 Message-Id: <20220513200512.501156-3-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220513200512.501156-1-caleb.connolly@linaro.org> References: <20220513200512.501156-1-caleb.connolly@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add a node for the smb2 charger hardware found on the pmi8998. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/pmi8998.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pmi8998.dtsi b/arch/arm64/boot/dts/qcom/pmi8998.dtsi index da10668c361d..962a8719b07a 100644 --- a/arch/arm64/boot/dts/qcom/pmi8998.dtsi +++ b/arch/arm64/boot/dts/qcom/pmi8998.dtsi @@ -9,6 +9,23 @@ pmi8998_lsid0: pmic@2 { #address-cells = <1>; #size-cells = <0>; + pmi8998_charger: charger@1000 { + compatible = "qcom,pmi8998-charger"; + reg = <0x1000>; + + interrupts = <0x2 0x13 0x4 IRQ_TYPE_EDGE_BOTH>, + <0x2 0x12 0x2 IRQ_TYPE_EDGE_BOTH>, + <0x2 0x16 0x1 IRQ_TYPE_EDGE_RISING>, + <0x2 0x13 0x6 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "usb-plugin", "bat-ov", "wdog-bark", "usbin-icl-change"; + + io-channels = <&pmi8998_rradc 3>, + <&pmi8998_rradc 4>; + io-channel-names = "usbin_i", "usbin_v"; + + status = "disabled"; + }; + pmi8998_gpio: gpios@c000 { compatible = "qcom,pmi8998-gpio", "qcom,spmi-gpio"; reg = <0xc000>;