From patchwork Fri Mar 22 11:11:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory CLEMENT X-Patchwork-Id: 10865513 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0CCE517EF for ; Fri, 22 Mar 2019 11:11:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF9BE2A547 for ; Fri, 22 Mar 2019 11:11:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D39A92A5D4; Fri, 22 Mar 2019 11:11:35 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 8E7B12A547 for ; Fri, 22 Mar 2019 11:11:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=QGXl9w2UzEhIHT07t1BFbKa4SowUVlulBs/vxZWhZKk=; b=lun1ibsaFHZO+P UR3vPKXPwOLbahurZULx1wp4jDSbSCyXqDD6Xw8IYOu4//vli2QfkOb0KQ2CVvEeKlzMVidYAcbLs pda+D4LpeBG3RKSfw0+6v9DVYL9Jge9mwEekvMAm0Q0rl7oPL1yn/a+gXFdOYEzpfY4mpzgvUEAVW MXeVzMVhE3a6rWYL6XeO7k2oE7h8JXSH1ti9sOAi86ZqiVPFQOPk/dPMV4D2RMl2A0SRAF30YqCjc kWNxk+HLBQxRRfQkdJ8JjM8WMhPULLKbm/QSKZVwLpw23Ufy+gk2uBRXQuditt6Wz7oEaBDU6dya3 eXOODADS+mb3jk89UNRQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h7I5G-0008Fg-F2; Fri, 22 Mar 2019 11:11:34 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h7I5C-0008FB-62 for linux-arm-kernel@lists.infradead.org; Fri, 22 Mar 2019 11:11:31 +0000 X-Originating-IP: 109.213.38.144 Received: from localhost (alyon-652-1-47-144.w109-213.abo.wanadoo.fr [109.213.38.144]) (Authenticated sender: gregory.clement@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id DBECFE000A; Fri, 22 Mar 2019 11:11:16 +0000 (UTC) From: Gregory CLEMENT To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org Subject: [PATCH v2 0/2] Add support for the TI ADS8344 A/DC chips Date: Fri, 22 Mar 2019 12:11:06 +0100 Message-Id: <20190322111108.19383-1-gregory.clement@bootlin.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190322_041130_377914_268E627A X-CRM114-Status: GOOD ( 11.91 ) 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: devicetree@vger.kernel.org, Alexandre Belloni , Gregory CLEMENT , Rob Herring , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org 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 Hello, this is the second version of a small series adding the support for the Texas Instruments ADS8344 ADC chip. This chip has a 16-bit 8-Channel ADC and is access directly through SPI. The first patch add the binding documentation and the second one, the driver itself. Changelog: v1->v2: - Remove the mention to the #io-channel-cells in the first patch, as there is no consumer. - Remove scan_index and scan_type, they are not used. - Use defines for building the command and remove the comment. - Remove the goto and the label in the probe() function as the label was only use once. - Remove the "#ifdef CONFIG_OF", the driver already depends on OF. - Don't use of_match_ptr and rename ads8344_dt_id to ads8344_of_match. Gregory Gregory CLEMENT (2): dt-bindings: iio: adc: Add bindings for TI ADS8344 A/DC chips iio: adc: Add driver for the TI ADS8344 A/DC chips .../bindings/iio/adc/ti-ads8344.txt | 19 ++ drivers/iio/adc/Kconfig | 10 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/ti-ads8344.c | 200 ++++++++++++++++++ 4 files changed, 230 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/ti-ads8344.txt create mode 100644 drivers/iio/adc/ti-ads8344.c