Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp936034imu; Wed, 9 Jan 2019 08:47:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN5fSdtXRoE0FCN78HOlHheCfRgwCsZNOms2XokgRE+hBewsqQPYCk7pk8JeXHliiTLFUfwn X-Received: by 2002:a62:5f07:: with SMTP id t7mr6621927pfb.108.1547052434796; Wed, 09 Jan 2019 08:47:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547052434; cv=none; d=google.com; s=arc-20160816; b=GZMG2wLzmg6HyE228TIET4GWpLkfhUxfeH+lAuF6bAVqtK5aSOdz/JfS+UaGdBFI4x U7KOB4a0pXTzOZNLMNjFoKW/wR+6S/uzQ4AAdo1rcoTGoGpqdOawm3pyurlJcX6k5G24 FFPeIIrX4hne77/dsKNF3qkO2kzdOM+VK5Q2No+ZfWp1nPSVn9arFfZOMj/be5FJu3Cu H3ByhSwdeMKqbw+cqkUE0l8pRBwulQVX2RWgLhu10bsOGs3F1rLSZo8CNJ952SmAS9IY LUfxuiyI3MqjveDgAdiB+ptYmXl867Y9XL+hQz9oNw4cnSITg7njfP3GilwCulpmZKPC 44og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Zj3W16kef7d4jJkTc34oWne0sUIcrMs5qUfMtcXHBic=; b=eM5J+6rRhETxDc1q5pgFVecYpPadMPanQWIvIRRYfQ7veBrgBHcn8ZDCQPMk8wbQIQ hRwHoxpuPxNxHbEb+LKrd064eJWjDIpjG72lEZczFV29gjNUN1X15qr5z0PUhT8v5DcC i3B7c7ErBcgH5WaO+Bt9i/bDMTVO8yasvx5/n55vBdadIa3GOJzIOvJ1RmpAHic4Qhef d2M4BF2bzQUj+YWSxKDMrY6ndhVi35mgBlsc5xX+dMIEo3F7ptHI8tvCx+eq3oJfVi+f TSNxgsO+YOwlyJVuAJcg0yM6uvktSsVKK8lcc3uSaAfPPQNPepEthrKbaG2yXoQRL15o 22Vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g184si56437872pfb.288.2019.01.09.08.46.59; Wed, 09 Jan 2019 08:47:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726450AbfAIQoy (ORCPT + 99 others); Wed, 9 Jan 2019 11:44:54 -0500 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:57147 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725468AbfAIQou (ORCPT ); Wed, 9 Jan 2019 11:44:50 -0500 Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id x09GDlMI005607; Wed, 9 Jan 2019 18:13:48 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 3F0FA62DA4; Wed, 9 Jan 2019 18:43:45 +0200 (IST) From: Tomer Maimon To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, robh+dt@kernel.org, mark.rutland@arm.com, yuenn@google.com, venture@google.com, brendanhiggins@google.com, avifishman70@gmail.com, joel@jms.id.au Cc: linux-iio@vger.kernel.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Tomer Maimon Subject: [PATCH v2 0/2] iio: adc: npcm: add NPCM ADC driver Date: Wed, 9 Jan 2019 18:43:41 +0200 Message-Id: <20190109164343.164205-1-tmaimon77@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set adds Analog-to-Digital Converter (ADC) support for the Nuvoton NPCM Baseboard Management Controller (BMC). The NPCM ADC is a 10-bit converter for eight channel inputs. The NPCM ADC driver tested on NPCM750 evaluation board. Addressed comments from:. - Peter Meerwald-Stadler: https://www.spinics.net/lists/linux-iio/msg42159.html - Jonathan Cameron: https://www.spinics.net/lists/linux-iio/msg42183.html Changes since version 1: - Add NPCM prefix. - Remove unnecessary parameter initialization. - Modify read function to avoid racy condition. - Reading the reference voltage when needed. - Modify dt-binding documentation according Jonathan comments. Tomer Maimon (2): dt-binding: iio: add NPCM ADC documentation iio: adc: add NPCM ADC driver .../bindings/iio/adc/nuvoton,npcm-adc.txt | 35 +++ drivers/iio/adc/Kconfig | 10 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/npcm_adc.c | 338 +++++++++++++++++++++ 4 files changed, 384 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/nuvoton,npcm-adc.txt create mode 100644 drivers/iio/adc/npcm_adc.c -- 2.14.1