From patchwork Mon Jan 15 10:33:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Schulz X-Patchwork-Id: 124494 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp623918lje; Mon, 15 Jan 2018 02:35:07 -0800 (PST) X-Google-Smtp-Source: ACJfBost1bLnGgLLJsvTgiT13ZDA6kduWiwLWvBvWkIFNJ8ak0dkL5n7U1t+9/O5n+VGQrzvuHUA X-Received: by 10.159.233.139 with SMTP id bh11mr34439657plb.149.1516012507244; Mon, 15 Jan 2018 02:35:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516012507; cv=none; d=google.com; s=arc-20160816; b=znX0H9DLeZArP6vPkqFFs+5VesqU1frrmFdU/ib6q7cGPg2jCqvpX9CEezmT15+NlB K5FQ+FKaNqThupzQrlMa3mX7kXnP3zQoI/z462JjzJPe9yTOxul/DYsWs+kf9hy3Lfr1 faWksOQfQyh0kFYK1ElNILqPBojJzWMQYEz0MP2HFLJtG9dccv5xGFkg7xBDSo+uyw1N 70M3zSRrVWeLaCNp48NB578E4HnOpQ8Iim1NL1ugOmFq+TjPaYsyEO4fPiylGmCSYMSO q1HDsFu/a/twM9EXafqxCuKvf66PQQDr7bYRAN8AE1frzQ895QV5zWRilVVGwrGBbrAi +4XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=kvON9+RqSLDTmS0sIvsTh5GnjJtwB2oZo+CO2Zzu7Z4=; b=XHPviWRs5/oMEydIlzLETgrJfFJ85Y+gOZrRwbbBI9/qKz9nYTwk54VivvnpDlECbH UYBWrz9QVOKNF1LlVIg9/huJqZ1uAe7V6ygloIJwLQhplcMC180OQW2/GskCIkUg3OEx 4dVQs9OPPg8hm+eyJ9l4fnE1RsZ6cbD6YX885Zc103abynB7hHwgXvp4EIG2+AL01+dw MTnBgS/zYdw/a4O9cH6L7KP5Y1OtoiJaq39mytEXZT0YRkiVRP80uMEMHmCZ6xzp7xaE kGsgFzTtN9X76ourV+YmpVdNhRccgaaqoR1YB6OUPvugs04IiZp18dHF00hDCg9aAq9H yhlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z190si4144448pgb.808.2018.01.15.02.35.07; Mon, 15 Jan 2018 02:35:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933627AbeAOKfE (ORCPT + 6 others); Mon, 15 Jan 2018 05:35:04 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:43756 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754540AbeAOKfB (ORCPT ); Mon, 15 Jan 2018 05:35:01 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 0C71A207A2; Mon, 15 Jan 2018 11:34:59 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 8559B207A4; Mon, 15 Jan 2018 11:34:48 +0100 (CET) From: Quentin Schulz To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, robh+dt@kernel.org, mark.rutland@arm.com, wens@csie.org, sre@kernel.org, linux@armlinux.org.uk, maxime.ripard@free-electrons.com, lee.jones@linaro.org Cc: linux-iio@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, thomas.petazzoni@free-electrons.com, linux-sunxi@googlegroups.com, julian.calaby@gmail.com, Quentin Schulz Subject: [PATCH v3 02/16] dt-bindings: iio: adc: add binding for X-Powers AXP PMICs ADC Date: Mon, 15 Jan 2018 11:33:36 +0100 Message-Id: <8191dd8cc334049b8b91a231f9f276b6d0689628.1516012352.git-series.quentin.schulz@free-electrons.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: References: In-Reply-To: References: Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Powers PMICs have several ADC channels that can be used for different purposes, e.g. PMIC internal temperature, battery voltage or AC current. This is the documentation for AXP209, AXP221/223 and AXP813 ADC bindings. Signed-off-by: Quentin Schulz Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt | 48 +++++++++- 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt -- git-series 0.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt b/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt new file mode 100644 index 0000000..7a63139 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt @@ -0,0 +1,48 @@ +* X-Powers AXP ADC bindings + +Required properties: + - compatible: should be one of: + - "x-powers,axp209-adc", + - "x-powers,axp221-adc", + - "x-powers,axp813-adc", + - #io-channel-cells: should be 1, + +Example: + +&axp22x { + adc { + compatible = "x-powers,axp221-adc"; + #io-channel-cells = <1>; + }; +}; + +ADC channels and their indexes per variant: + +AXP209 +------ + 0 | acin_v + 1 | acin_i + 2 | vbus_v + 3 | vbus_i + 4 | pmic_temp + 5 | gpio0_v + 6 | gpio1_v + 7 | ipsout_v + 8 | batt_v + 9 | batt_chrg_i +10 | batt_dischrg_i + +AXP22x +------ + 0 | pmic_temp + 1 | batt_v + 2 | batt_chrg_i + 3 | batt_dischrg_i + +AXP813 +------ + 0 | pmic_temp + 1 | gpio0_v + 2 | batt_v + 3 | batt_chrg_i + 4 | batt_dischrg_i