From patchwork Sun Jan 15 22:42:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9517911 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 872ED601B7 for ; Sun, 15 Jan 2017 22:42:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EC7D2841C for ; Sun, 15 Jan 2017 22:42:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 436B728438; Sun, 15 Jan 2017 22:42:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF3DD2841C for ; Sun, 15 Jan 2017 22:42:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751372AbdAOWmh (ORCPT ); Sun, 15 Jan 2017 17:42:37 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35392 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751149AbdAOWmf (ORCPT ); Sun, 15 Jan 2017 17:42:35 -0500 Received: by mail-wm0-f66.google.com with SMTP id d140so10287359wmd.2; Sun, 15 Jan 2017 14:42:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0B6ZcMwEU6M6DQHQQWk2/4kZWci9wRVXNmHG+oJnAbU=; b=Qcis/Y2lns69vx2eDP25wzomjNxxNkopGo1gmDi+AjSyC+V7BwS/WkU1kholstuaor PxnpQ8AwHtwgFbcbG4c7KiU7vwwtpnsK9QRz07ne7BKaSPe8u+2LYeLYV8NVsmCt+Mfw da8dBYgGxfbLodq0lQcZKAIL0Det1Kppcffy8bE/iXIptOTLAC5+NteouFWNf4iFut6B exBM1Yp/yX9wYar+p4Lxzzr8T6UuBdCayv/DDak8lpIz3wzOBq3X+Ep6hFDkw0hGA9oC wz/oruhP5/N74bZOzOhdJJLfmDHJ6fz7mkvAy3coOEU1DiNCqEusUEK5Vs5UYXrGHNPA cJJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0B6ZcMwEU6M6DQHQQWk2/4kZWci9wRVXNmHG+oJnAbU=; b=JWh//R1XoBi8/FzMT11hoVSLnNydKahnCpYnZgE8ER5skouMbOtF/NlCxcDrLxIttY Trvm3WYjjRqgedmZAPrtcyDtnsKpvsC+9DtyJ85BBoeDsM+fDi1c7Qs/5OgfXaKgbkcp LvfofEuSIalsmvBHatGlOBVROenLiA4kOCpsbf/FOp+cU1xpTRLbLjVbqYUGOVJSAfHe otrX19V30/Dih1YuuKeLUZtGqUvMrWW+oAUwyBQD6uaq2mskAV98y3nyaiLGbcjfouZi HrIE0g2ATtWYFevYIn361mtIHuCJFL0CBJPRFg54jBMmPDCO7zil41UvjbgHM3zgWrAI p0jg== X-Gm-Message-State: AIkVDXKcE4VJFp85osijNsOEfTN9hK2odx7slpzi4fe6TAZ4testTnkOiBFiQfp5MJPR6g== X-Received: by 10.223.162.211 with SMTP id t19mr3057562wra.57.1484520153967; Sun, 15 Jan 2017 14:42:33 -0800 (PST) Received: from blackbox.darklights.net (p5DE38740.dip0.t-ipconnect.de. [93.227.135.64]) by smtp.googlemail.com with ESMTPSA id y97sm24109827wmh.24.2017.01.15.14.42.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Jan 2017 14:42:33 -0800 (PST) From: Martin Blumenstingl To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, robh+dt@kernel.org, mark.rutland@arm.com, khilman@baylibre.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org Cc: carlo@caione.org, catalin.marinas@arm.com, will.deacon@arm.com, mturquette@baylibre.com, sboyd@codeaurora.org, narmstrong@baylibre.com, linux-arm-kernel@lists.infradead.org, Martin Blumenstingl Subject: [PATCH v2 1/4] Documentation: dt-bindings: add the Amlogic Meson SAR ADC documentation Date: Sun, 15 Jan 2017 23:42:18 +0100 Message-Id: <20170115224221.15510-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170115224221.15510-1-martin.blumenstingl@googlemail.com> References: <20170111174334.24343-1-martin.blumenstingl@googlemail.com> <20170115224221.15510-1-martin.blumenstingl@googlemail.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This adds the devicetree binding documentation for the SAR ADC found in Amlogic Meson SoCs. Currently only the GXBB, GXL and GXM SoCs are supported. Signed-off-by: Martin Blumenstingl --- .../bindings/iio/adc/amlogic,meson-saradc.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt diff --git a/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt b/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt new file mode 100644 index 000000000000..9a0bec7afc63 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt @@ -0,0 +1,31 @@ +* Amlogic Meson SAR (Successive Approximation Register) A/D converter + +Required properties: +- compatible: depending on the SoC this should be one of: + - "amlogic,meson-gxbb-saradc" for GXBB + - "amlogic,meson-gxl-saradc" for GXL and GXM + along with the generic "amlogic,meson-saradc" +- reg: the physical base address and length of the registers +- clocks: phandle and clock identifier (see clock-names) +- clock-names: mandatory clocks: + - "clkin" for the reference clock (typically XTAL) + - "core" for the SAR ADC core clock + optional clocks: + - "sana" for the analog clock + - "adc_clk" for the ADC (sampling) clock + - "adc_sel" for the ADC (sampling) clock mux +- vref-supply: the regulator supply for the ADC reference voltage +- #io-channel-cells: must be 1, see ../iio-bindings.txt + +Example: + saradc: adc@8680 { + compatible = "amlogic,meson-gxl-saradc", "amlogic,meson-saradc"; + #io-channel-cells = <1>; + reg = <0x0 0x8680 0x0 0x34>; + clocks = <&xtal>, + <&clkc CLKID_SAR_ADC>, + <&clkc CLKID_SANA>, + <&clkc CLKID_SAR_ADC_CLK>, + <&clkc CLKID_SAR_ADC_SEL>; + clock-names = "clkin", "core", "sana", "adc_clk", "adc_sel"; + };