From patchwork Wed Mar 23 16:28:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 12789925 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 556BEC4707A for ; Wed, 23 Mar 2022 16:28:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245457AbiCWQaP (ORCPT ); Wed, 23 Mar 2022 12:30:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245475AbiCWQaL (ORCPT ); Wed, 23 Mar 2022 12:30:11 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDBF224BF4 for ; Wed, 23 Mar 2022 09:28:40 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id bg10so3945433ejb.4 for ; Wed, 23 Mar 2022 09:28:40 -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=c/ADcma9NkOLR4HokqCTyF+5iNUoI0kDBtkLmFmcl+w=; b=BP4PSojo2ufR/Zd7quer7ssvLnNjMaiW2JNPw8NQNTvFLw/23S+O+0+eOQte37fCvo Ho0k+gTv83MYP2ypMFzBolQiDRKHl+tDzALeN7sp2GBWB23LuV6oXLYG4OaLFDtv0ZWi JE5Qo86p/3YidbPxcFWrR/ad+M39a05PCZOVHByAlNy+8dnEmzohlrTRpw6/tRILhH9L Oj+hh1es9XrIP/RU09ufoCNazd8/2AalFEhNAyX4pBcTLkNhGDxQ74w6xig0Qq1D2+4J FAtON6vxtITyyX65e0hJN45LwIc4HH6MouN2kPGig+B+ncyaYTbUPiEiN3DoZoQwyzll S5ug== 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=c/ADcma9NkOLR4HokqCTyF+5iNUoI0kDBtkLmFmcl+w=; b=yQskxrIlThhA31oOeZO2X/UkpCiMkkaN5/zgOTJf1A8UqcmzNXIBgDUXynv2rlk+4t 0szAjeDyqWLlc0PgCSdk+nYgjWEdkMaKvs//8ISCYzJxUFLLUH7kQ2Bs6HxFl1omWtPQ AN84U9n5LQ99o2DHDr/3mnAbm7mWIjBAzo6bh67hgJ93GR4a4SypB5DHbwTxrjGlSM9j B5pkBTFy8B2DM+H9MpItGiKjXSOK1cYYUScNSGbIXcARkSyJMU/AaTAD18BxUcNegf4U k8GUIpyoalTnR+oNVkSf0v7FdztutJrzacHQzi5ji2PQHM2KymeY9Tnxx6SL4TF6g2Em 9J5w== X-Gm-Message-State: AOAM533igUHhfkLObeeq2wx5kz+xJ2P9P/LDnzhkAeCaLVlPGKM7OPs0 ZXmc/BVKb1/IVk2Ygik+AE3CBA== X-Google-Smtp-Source: ABdhPJyw3w1GVav3HC/RWU/Nz+R0s+j/QsEovRzudvMJlKZttFZbi+2ltzccR0Rx32WbBwJ99ak4dA== X-Received: by 2002:a17:907:a429:b0:6e0:68f3:d7a with SMTP id sg41-20020a170907a42900b006e068f30d7amr884227ejc.75.1648052919472; Wed, 23 Mar 2022 09:28:39 -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 z11-20020a50e68b000000b00412ec8b2180sm173306edm.90.2022.03.23.09.28.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Mar 2022 09:28:38 -0700 (PDT) From: Caleb Connolly X-Google-Original-From: Caleb Connolly To: caleb.connolly@linaro.org, Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Andy Gross , Bjorn Andersson , Lee Jones , Stephen Boyd , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: sumit.semwal@linaro.org, amit.pundir@linaro.org, john.stultz@linaro.org, Krzysztof Kozlowski Subject: [PATCH v13 4/9] dt-bindings: iio: adc: document qcom-spmi-rradc Date: Wed, 23 Mar 2022 16:28:15 +0000 Message-Id: <20220323162820.110806-5-caleb@connolly.tech> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220323162820.110806-1-caleb@connolly.tech> References: <20220323162820.110806-1-caleb@connolly.tech> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Caleb Connolly Add dt-binding docs for the Qualcomm SPMI RRADC found in PMICs like PMI8998 and PMI8994 Signed-off-by: Caleb Connolly Reviewed-by: Krzysztof Kozlowski Reviewed-by: Jonathan Cameron --- .../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>; + }; + };