From patchwork Wed Jan 5 18:33:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 12704624 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 71EA4C433FE for ; Wed, 5 Jan 2022 18:34:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243059AbiAESeZ (ORCPT ); Wed, 5 Jan 2022 13:34:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243032AbiAESeW (ORCPT ); Wed, 5 Jan 2022 13:34:22 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53427C061245 for ; Wed, 5 Jan 2022 10:34:21 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id d9so141872wrb.0 for ; Wed, 05 Jan 2022 10:34:21 -0800 (PST) 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=TbWlOa+hsmRbWWmesGbsstTW9dDTf4G9JG7ns6wKhLk=; b=p0se18mtV7Mr5KDg7WK7Co1vcQJUcS5OtLxHI9M9Txb0BIQ+ohVqE1HKn0fjb1fOz9 dx2QJFYuo9+VASFRaMHoOz5WGaufcSsKYIKN8tW4AA1NJnS9rghL1Kzcu4QAfF2n2UO5 cU6I0DLEd3En34OKH4TfwvZXA5BOLwQ5E25BTFf+Clib33f4BnRmSNB5q+0tKB44ZAce +OTXpA6hr5Tc7TlFz9cnWmZMtDUdJv4GjNh5ei67ryewYPeAfL5EsPd+oC2LRk0MHgpc v25Iek7GleTdgXphuW8LbdYh1Ewec6Hz77cXp+fYQ9OSdfNpL77DYqJQXwI/uK0wdQjO Hm8w== 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=TbWlOa+hsmRbWWmesGbsstTW9dDTf4G9JG7ns6wKhLk=; b=FFG+l5tPttH59ho0p/wo/s1S6g5EJBIDtNjSoRDXZt5nB64Mwj6rvFuv/khW8XKerX PKZRFP9hJnJBdnxA8ZXFs5T1ifYrPZqfyyWWeMA6uXyp36ptzmSZRiN+kP1TudEyMUo7 onrBeiNBIeN+QtUYVRAnmvYgWrT73f/VZh3FnwzHkMpW5Pgd717oZ7cjuvCfxnABEOHT ZCDFI0lyS9/bEE7gSZr+JOATHkd025nqqIN4wmUWHNG4kc8UOblEvud/7c78PFQnnOSc gGSOlv/cj4u7c5AUhDHwqbLda9dLGIP67iGiE8YHnZwIC8Q2rZsauGqRx102aTwCP55i Xbtw== X-Gm-Message-State: AOAM532lQXPTj83NbN0Wg/VP2gbo9NmTpKfwSZ95SHwZcPFz/VoUk1Sl nnMh09AaVhtWqEi+fY4Rg44OOg== X-Google-Smtp-Source: ABdhPJxaXNmlPYPn7S3hoajQ5/O0EpkJSI/Js/N+6OqhGYgX4a0CCiaQc+FDNgI0qsGS37n1IFK7ug== X-Received: by 2002:adf:bb89:: with SMTP id q9mr49213578wrg.337.1641407659946; Wed, 05 Jan 2022 10:34:19 -0800 (PST) Received: from localhost.localdomain ([81.178.195.252]) by smtp.gmail.com with ESMTPSA id o1sm3272215wmc.38.2022.01.05.10.34.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jan 2022 10:34:19 -0800 (PST) From: Caleb Connolly To: caleb.connolly@linaro.org, Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Andy Gross , Bjorn Andersson , Lee Jones , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: sumit.semwal@linaro.org, amit.pundir@linaro.org, john.stultz@linaro.org, Rob Herring Subject: [PATCH v2 2/7] dt-bindings: iio: adc: document qcom-spmi-rradc Date: Wed, 5 Jan 2022 18:33:48 +0000 Message-Id: <20220105183353.2505744-3-caleb.connolly@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220105183353.2505744-1-caleb.connolly@linaro.org> References: <20220105183353.2505744-1-caleb.connolly@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Add dt-binding docs for the Qualcomm SPMI RRADC found in PMICs like PMI8998 and PMI8994 Signed-off-by: Caleb Connolly Reviewed-by: Rob Herring --- .../bindings/iio/adc/qcom,spmi-rradc.yaml | 54 +++++++++++++++++++ 1 file changed, 54 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..11d47c46a48d --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-rradc.yaml @@ -0,0 +1,54 @@ +# 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: + description: rradc base address and length in the SPMI PMIC register map + 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>; + }; + }; +...