From patchwork Thu Jan 19 14:58:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 9526105 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 E25296020B for ; Thu, 19 Jan 2017 15:00:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D39EA2855A for ; Thu, 19 Jan 2017 15:00:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C83AB28562; Thu, 19 Jan 2017 15:00:54 +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=-0.5 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_SORBS_SPAM, RDNS_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (unknown [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 90D5A2855A for ; Thu, 19 Jan 2017 15:00:54 +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 1cUECr-0007Uj-G4; Thu, 19 Jan 2017 15:00:53 +0000 Received: from mail-wm0-f68.google.com ([74.125.82.68]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUEC0-0005KS-MA; Thu, 19 Jan 2017 15:00:02 +0000 Received: by mail-wm0-f68.google.com with SMTP id r144so12591257wme.0; Thu, 19 Jan 2017 06:59:40 -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=ALUoHiZzTFAgt9yOs+fAK+/dZF23548MvNaaOCgimrk=; b=SyIU0qmepixpdZnckSCRqCjtht2Px8mdzxmTQsbQXsB5y3AVXaVNXMzjtYpZNG5IED ftasVz74zZcOtSsRUMryeIeJ07gazFaI1eLLJP1cq7gvTzr1ogoEFT9ZihEA2xEWVCeY djMxafljdumE/8tU8bROrM21M1jX92TTtB/YhIceTY7V9O02TsZZHdLOP+5yovDVQlkP MWFeODqlhylnK52hHzkY7su+kj6oLMxaBVToZG4Kjc5T9XGcaE6Yhyo+FhG023ZzuPnb uCCnB2yjsQnECT1dHxshuF5xhDESnLWH0HILJVizf1ceaY26LU171T0m+4wgxLZ4LWdZ 0OUQ== 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=ALUoHiZzTFAgt9yOs+fAK+/dZF23548MvNaaOCgimrk=; b=Jxr855PlT2plqRy+1kGW1V0m+IOIDUPuWQwtxdrLG1KepVZXgK3YpxOLJYdph7blUM /OYGRsPKTaz4yj3qdrrjaJipDCCZn8eoyShQ4cphJfmXqrtf4+dc7hwhwPht7/4D1TCi Xf+yWc1UNauOcpyol6sTiE0uKu7qjYg/75StZrExNP7t+ZgtZIjDznAClp2F4VZpPaV3 y17R/LdRwuFSm5XzyUfrbxe+xckDYRz+EHbDDTaXHKC6BK6AEY6AhT1hzCsM5J2KcfjJ 3g9agZJtCHINrKw4PD1pYVWv/EY5sg5oPGSPAYCFRxfEme2w0n0oAAR5SWZfNxYDxYrM pIzA== X-Gm-Message-State: AIkVDXLsVsT+Uq/3tZf4BMQkqagFy2XcMQD09bq5NbwCfG89k4JY1XAxxOvO7lBpOVlZ6Q== X-Received: by 10.223.146.39 with SMTP id 36mr8071882wrj.85.1484837919015; Thu, 19 Jan 2017 06:58:39 -0800 (PST) Received: from blackbox.darklights.net (p200300DCD3E4840435DFACFCA97E56EA.dip0.t-ipconnect.de. [2003:dc:d3e4:8404:35df:acfc:a97e:56ea]) by smtp.googlemail.com with ESMTPSA id y65sm50416969wmb.5.2017.01.19.06.58.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 06:58:38 -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 v3 1/4] Documentation: dt-bindings: add the Amlogic Meson SAR ADC documentation Date: Thu, 19 Jan 2017 15:58:19 +0100 Message-Id: <20170119145822.26239-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170119145822.26239-1-martin.blumenstingl@googlemail.com> References: <20170115224221.15510-1-martin.blumenstingl@googlemail.com> <20170119145822.26239-1-martin.blumenstingl@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170119_070000_884359_A22B24CA X-CRM114-Status: GOOD ( 10.86 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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 Tested-by: Neil Armstrong Reviewed-by: Andreas Färber --- .../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"; + };