Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2950321iob; Sun, 1 May 2022 02:24:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQsregGE7TgwqF7m5bBgxoIjumgJT9tQoyJEw8TkQi4D3aAVRcIVoyvcgSUqQTZ50BnAmw X-Received: by 2002:a05:6512:32b9:b0:471:fbc4:a685 with SMTP id q25-20020a05651232b900b00471fbc4a685mr5641097lfe.140.1651397081601; Sun, 01 May 2022 02:24:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651397081; cv=none; d=google.com; s=arc-20160816; b=yH4BeWhRJZUIUYuM+kRICGh8lJSjAYvNVqLRjZeniFPkqahG1SP7iIeLBhTDQZNBEb Y1TTmFqj7MiW39cHpCZQVXkWjEGTqx+67vTdGIPzS0yYdIl6IQjusZnLaolki4m/iNV6 BOLkyUHtXwe6MwJ8lDhcvtF8pjSZEn2kRmtklxU85ocjLpOn861zjmuADpGP2x3sE79E lHPEW8O2Cn63dgwR6y66nVJHD64Vjs1EYmdzztVrSZrZ18Y2h7sGQBkORX8yPdCiDU9Y CXRu+ptx7Nx4nKrwtM9lx56tDHXZfuiECEcfQWfZLp4jq/GqWAb0WM6KqfxMsfGBtf+T 9AcA== 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=jRvilvsMfYvzpgGyfnoWMji/FPTMosi+scCQBMvKmKE=; b=o6SlxABkOCsLau+XBP4u3S+6W66YrW3Gbb2kdE9hXfiNA9+rGyNlQ7qPrctwR+d2Bo AooJeXiepBpmstytyptKdUNwNZidCerb/2Mn4pkRbTh8uv+GVDzVigaCH/08h9Vv+2qQ FgAVk5CWXp6Sm8bMFMLJlqA1+Ebjg+0wr4efnt1dJaQtb2yUWxPKSLqd6suSrAkm0uIM 5nObH87OnyhZJ7Hwq05aup1pCFV532omqq7mIqV0k5WhCJAvcO9QX6WpOP/zEktBzy53 kb1F73O9etwa8Adgi1eUz8BFjPrs655JSzFLO7sm+YWLF3cMwiVwErcNTAHM/N2nAV35 S4KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bp09vc+l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e4-20020a2e8ec4000000b0024da562dcbbsi13135509ljl.475.2022.05.01.02.23.44; Sun, 01 May 2022 02:24:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bp09vc+l; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234538AbiD2WOm (ORCPT + 99 others); Fri, 29 Apr 2022 18:14:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381365AbiD2WOY (ORCPT ); Fri, 29 Apr 2022 18:14:24 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9679DCAA0 for ; Fri, 29 Apr 2022 15:11:00 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id i5so12396524wrc.13 for ; Fri, 29 Apr 2022 15:11:00 -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=jRvilvsMfYvzpgGyfnoWMji/FPTMosi+scCQBMvKmKE=; b=Bp09vc+lV8lUlvx0t4x1ZrCkcIeuFr5yleGjki0T5oIU2pItAW+8klYJwc9jYTuw5Q Mi7keXncbKKC/Q+pri7q9S5PEFWaKGWYnvcgkDQg0BS9K0Xc7ENe/PSMFknZ3+upUuVA NvctBi5P0ql9ffA6dvJnLIoZv9lVYQHRd2ctc8tKeeytcUIm/LsLGU5BoEgVh4ANgddJ iFbdYxF8cVIlluQkrPHZXzY8SFGWiePDu799WNBga0KvKPgrhVgoLC6L95eGwOwIII5x ZpLzLS5eIzHF/EgeZx9d9CSpxhzlBure6+39AOqFhhf0MxBT+4AWWVs8e4UdlQ4pWiGL oEBQ== 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=jRvilvsMfYvzpgGyfnoWMji/FPTMosi+scCQBMvKmKE=; b=QF1Xn6llUabYpRRgldQLEJHbnK/bIKvZW8L/ga4P0pDG1QAj1Ks3FpquYNi+hj01yN Ra0TXGhaAzFSp8EGi60k6MvDZBprCJujjja09JktWiZahc/kEkRSIuXm7lBZuoVKpfCG AKhpMGgmMCUfJMheMpIublihh2D9Zn+IrVDJbSy3fSWhVPoqf0MkQUIFfYQKwLCUERVn FcoBUBp8DN7StXPjBeBZdaAdg7K8xYV0kKqezY48Bg04E19X2WbiPD6nyyOuaUK0Ge3k hNQ1mQBwSp6drb9V+7MkzDaDtMgjROl1sdL9NKlY6DMoWW2j9sfpmFr9bEeKgZrOGltM SPFw== X-Gm-Message-State: AOAM5326s6+E9E6QhAyw2irqyaIOGLibvPold6ojWLiqEv8Fy0kGmvg0 JXpS3nMt9zlTflyloqLrA+No+w== X-Received: by 2002:a05:6000:1e16:b0:20c:5059:8dcb with SMTP id bj22-20020a0560001e1600b0020c50598dcbmr792824wrb.653.1651270259353; Fri, 29 Apr 2022 15:10:59 -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 q7-20020a1cf307000000b003942a244ebfsm291985wmq.4.2022.04.29.15.10.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 15:10:58 -0700 (PDT) From: Caleb Connolly To: caleb.connolly@linaro.org, Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Lee Jones , Stephen Boyd , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Jami Kettunen , Sumit Semwal Subject: [PATCH v14 04/10] dt-bindings: iio: adc: document qcom-spmi-rradc Date: Fri, 29 Apr 2022 23:08:59 +0100 Message-Id: <20220429220904.137297-5-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220429220904.137297-1-caleb.connolly@linaro.org> References: <20220429220904.137297-1-caleb.connolly@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_NONE, SPF_HELO_NONE,SPF_PASS 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 Add dt-binding docs for the Qualcomm SPMI RRADC found in PMICs like PMI8998 and PMI8994 Signed-off-by: Caleb Connolly --- .../bindings/iio/adc/qcom,spmi-rradc.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/qcom,spmi-rradc.yaml diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-rradc.yaml b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-rradc.yaml new file mode 100644 index 000000000000..c8cbfd3444be --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-rradc.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/qcom,spmi-rradc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm's SPMI PMIC Round Robin ADC + +maintainers: + - Caleb Connolly + +description: | + The Qualcomm SPMI Round Robin ADC (RRADC) provides interface to clients to + read the voltage, current and temperature for supported peripherals such as + the battery thermistor die temperature, charger temperature, USB and DC input + voltage / current and battery ID resistor. + +properties: + compatible: + enum: + - qcom,pmi8998-rradc + - qcom,pm660-rradc + + reg: + maxItems: 1 + + qcom,batt-id-delay-ms: + description: Sets the hardware settling time for the battery ID resistor. + enum: [0, 1, 4, 12, 20, 40, 60, 80] + + "#io-channel-cells": + const: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pmic { + #address-cells = <1>; + #size-cells = <0>; + + pmic_rradc: adc@4500 { + compatible = "qcom,pmi8998-rradc"; + reg = <0x4500>; + #io-channel-cells = <1>; + }; + }; -- 2.36.0