From patchwork Wed Jan 11 17:43:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9510839 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 2818C6075C for ; Wed, 11 Jan 2017 17:44:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B4A9284E6 for ; Wed, 11 Jan 2017 17:44:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0FCCE285BB; Wed, 11 Jan 2017 17:44:25 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C931D284E6 for ; Wed, 11 Jan 2017 17:44:24 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cRMwe-0006FG-EX; Wed, 11 Jan 2017 17:44:20 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cRMwS-0005wl-Ov; Wed, 11 Jan 2017 17:44:10 +0000 Received: by mail-wm0-x243.google.com with SMTP id l2so38216014wml.2; Wed, 11 Jan 2017 09:43:48 -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=AoK6ONiU3T0AfM13SQnfQzGzc6dzUoxIe8trza/wYTfYF+TWyfClp2jcbpAUvqe8xi 3wLU0NSQnZBOY+0rfHcYcuRdWl6/Ya3BgjOXxp1nI8YO4YELed3z/yGS1VobXpc36lSt vaSNES1t4dncmvWttranXrr/UF8tmj17LClq18gb0+2p2lQyhqHMqqJUIjdm5zM4j9U+ pfOxay+mKelcbVyrs9Vu93O9xwVZ5CRFaqXNpoLJCV4Py3KnBonSrGOJ6tHqULfvzf+l rgV7WJapkc5Muio3xY2wgkLZtyDa/fvrptgYeLOey/WlBOra4BvIZJHLTExQrYgLxOzR PL6w== 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=PDN10zQcFzsBy49JnzZsnZoN/tQ5iEx3AbaoOxdb70SaQYaKBZpXH7NaTZOqoQP7Z1 BxKl/ZcR8U4Z2I+ampIP5ya+1CZLUfYjChMMRrXa4NcZ/5vCRaUAZ9Bp7IG1E7e1uREP BRg4ct5wOeUVNpo7hJBNt1K9IXmfygRbLfMSnCuO0wWpmNAOZbZSvusTg0ZZmZVq5sgX 1OkvneIB/7yFupOqQzXbTE8AeMCMyrVsXQSe9IWhxWT2iE3RE9EDI20+7pDtpxNO72/K A247W7kVkwTIv9eAJPpv/FK0X6E4k1fUhsHxbtS1hD31CP1bVo/ICG3/zhVvjRpxkzMe mGEQ== X-Gm-Message-State: AIkVDXKzo476zJwd7dYWvuDaF+RCRowmztZUhvJSljKWdWPYAbmX+EZoUqU4YM74hZyIPw== X-Received: by 10.223.161.222 with SMTP id v30mr5266483wrv.80.1484156626935; Wed, 11 Jan 2017 09:43:46 -0800 (PST) Received: from blackbox.darklights.net (p5DE3863D.dip0.t-ipconnect.de. [93.227.134.61]) by smtp.googlemail.com with ESMTPSA id wp2sm9582307wjc.35.2017.01.11.09.43.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jan 2017 09:43:45 -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 Subject: [PATCH 1/4] Documentation: dt-bindings: add the Amlogic Meson SAR ADC documentation Date: Wed, 11 Jan 2017 18:43:31 +0100 Message-Id: <20170111174334.24343-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170111174334.24343-1-martin.blumenstingl@googlemail.com> References: <20170111174334.24343-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170111_094408_971467_DC9C8D40 X-CRM114-Status: GOOD ( 10.89 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: narmstrong@baylibre.com, Martin Blumenstingl , catalin.marinas@arm.com, mturquette@baylibre.com, will.deacon@arm.com, carlo@caione.org, sboyd@codeaurora.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.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"; + };