Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3498695pxb; Mon, 4 Apr 2022 18:56:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzM29qxiIXajADP4ntN0hOKmLrAelKKCBJD9dlFOP3hAgdoRp1Kfvm710fsFayK06fkLB8K X-Received: by 2002:a05:6a00:10cc:b0:4fe:3f1c:2d1 with SMTP id d12-20020a056a0010cc00b004fe3f1c02d1mr1303459pfu.0.1649123766549; Mon, 04 Apr 2022 18:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649123766; cv=none; d=google.com; s=arc-20160816; b=I9JqXquedPjFWVTf5MQ2Ysdx3To80BuJFDTkfQwFGu6IvyvClgXqjs6IpQTjw6rcP4 JNNwaoHFgoW3o14tQ3udkz9b+8lePZ78E1e1l3vsePvU6Xz9suydj51/TTKsEXNPvcdu 03/OX9k5eKixrynq/QZflHwy1rIMFBFYj/gW0WK1N/s/d/tp9k+LsMRWTBcWd9mpxOlg PGAv5BEmY7nHpnVK43iX16FfqLiDwhddChwYgn5U2Q3b/lnomHiqAdGLGyOfjfa+yvGh QVBTUjYl4YwhEU+nKIPMZDKVSQdG7M8/OkCdE+uBqOyNRohtjGZKmDIaiEB4jybK+ym7 SHog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bAoIntk9Icd3bmVcFvqZzW4v1A6fl47DD1Y7M0nV1IQ=; b=PMAVMlrVuNc9C7n2181F9WJcvVbqbtnsoSiQV28WDwLcrcZFhJcnDulLfMxITIdxgv iaPmRryYU1t1M9dgisL7vwzRdih8O/QOy4cJblzyyH6oWXrGR4O+r8D9cZzBcZCsp/Su PWA6QHXpENZdZjz8LSGbaPc0GMbJxzskJfvo0sQJr9exh3TXYD8Eqka9WvFuQjDpbVUE bYufw1eHnE01sGi3an5VnT9ufIpU4ByjdvAHgkJVaVgrNNTmAV8dMOVLQFbS8ZPUAB66 5dzGzY4C7y+lvhTeC6oWmRJ8X884ODjr7y0I601UuEhVQl+1nDUlwor+Gq1R3JZ++J21 SS9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vImCi7X8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q28-20020a63505c000000b003816043f061si11184455pgl.598.2022.04.04.18.56.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:56:06 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vImCi7X8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B849611BE53; Mon, 4 Apr 2022 17:59:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352334AbiDAU3O (ORCPT + 99 others); Fri, 1 Apr 2022 16:29:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352975AbiDAU3E (ORCPT ); Fri, 1 Apr 2022 16:29:04 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE36791AFB for ; Fri, 1 Apr 2022 13:27:12 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id g20so4273932edw.6 for ; Fri, 01 Apr 2022 13:27:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bAoIntk9Icd3bmVcFvqZzW4v1A6fl47DD1Y7M0nV1IQ=; b=vImCi7X8ua2jZNYMsn/SLG0jECLtAMJ2VYieJfBTIwUm44lTxWaqMTEHcsUiv+MCYc Cfkt1jfR7iJn795Gun0VO3JlqnKrNKskcetNLpgORRNPa/Dgg2ggbbcGDPLmf9ckE0vv 5zM8gBcdPUzLxZYLs+MAOCjFftTLFxwoffC0T9fx13pUziFMwJqrJcVCUsnEX8as/Nvp 7BLbBO2fEbKsfhPn8M6PXfe1iw/g1P6Remltvot7RXm+ESQBT6OuPZ9Jmt9LV4smbnmu kktpHcS2mJ6QLr6vjqORN18dcdQghPm2CXjHKFd+RN9X0z3qkw3z6oPYZEUweP1NL2Ri CD5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bAoIntk9Icd3bmVcFvqZzW4v1A6fl47DD1Y7M0nV1IQ=; b=ebFa824gg65HMSdskVts1cGrP5sMB3O+P5+/BFzTmDDlnkCl79FiyfAH3OkjyaXqtn 0byA8dUo+BQ7TNiPUGOS5JS8lx8A6WaL6RlsK4wtldrRrekcRvXFQgffUyX22ewrPJpM S3OBeFb0/Ujgs4ygZz1/QVD0W/7Wz2jFe/URFIGCwMd47ZnRWJrEsS+TaJfHILWgiDxS W2TQFWDER4u9mEzy5OlaoE7KNfLHLTOiTfHF2Zu0MF+4bdq6Qqkq1O1OEu0VHUAP5MTk fzLaqOz/v5hpbLdU4JXd+4jlbG+WY2dQr4i+rK5MYVH9q4tf1hjCDuDYvhKSzKc0T45B 18UQ== X-Gm-Message-State: AOAM533IWgD8oGY7/fyvXKHfjjS7X8pi1aFBkqCItetxQgdmrgtYvuNj 6d5JIEQWxBg597aetV1TlXLLRQ== X-Received: by 2002:a05:6402:270b:b0:419:3383:7a9f with SMTP id y11-20020a056402270b00b0041933837a9fmr22753644edd.191.1648844831457; Fri, 01 Apr 2022 13:27:11 -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 k14-20020a50e18e000000b0041b6f23f7f6sm1619346edl.22.2022.04.01.13.27.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Apr 2022 13:27:11 -0700 (PDT) From: Caleb Connolly To: caleb.connolly@linaro.org, Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Amit Pundir , Sumit Semwal Subject: [PATCH 6/6] dt-bindings: power: supply: qcom,smb2: add bindings for smb2 driver Date: Fri, 1 Apr 2022 21:26:43 +0100 Message-Id: <20220401202643.877609-7-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220401202643.877609-1-caleb.connolly@linaro.org> References: <20220401202643.877609-1-caleb.connolly@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Add devicetree bindings for the Qualcomm PMI8998/PM660 SMB2 charger drivers. Signed-off-by: Caleb Connolly --- .../bindings/power/supply/qcom,smb2.yaml | 68 +++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/power/supply/qcom,smb2.yaml diff --git a/Documentation/devicetree/bindings/power/supply/qcom,smb2.yaml b/Documentation/devicetree/bindings/power/supply/qcom,smb2.yaml new file mode 100644 index 000000000000..1bea1fef78b8 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/qcom,smb2.yaml @@ -0,0 +1,68 @@ +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/qcom,smb2.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm PMI8998/PM660 Switch-Mode Battery Charger "2" + +maintainers: + - Caleb Connolly + +properties: + compatible: + enum: + - qcom,pmi8998-smb2 + + reg: + maxItems: 1 + + interrupts: + items: + - description: usb plugin + + interrupt-names: + items: + - const: usb-plugin + + io-channels: + items: + - description: USB in current in uA + - description: USB in voltage in uV + + io-channel-names: + items: + - const: usbin_i + - const: usbin_v + +required: + - compatible + - reg + - interrupts + - interrupt-names + - io-channels + - io-channel-names + +additionalProperties: false + +examples: + - | + #include + pmic { + #address-cells = <1>; + #size-cells = <0>; + #interrupt-cells = <4>; + + smb2@1000 { + compatible = "qcom,pmi8998-smb2"; + reg = <0x1000>; + + interrupts = <0x2 0x13 0x4 IRQ_TYPE_EDGE_BOTH>; + interrupt-names = "usb-plugin"; + + io-channels = <&pmi8998_rradc 3>, + <&pmi8998_rradc 4>; + io-channel-names = "usbin_i", + "usbin_v"; + }; + }; -- 2.35.1