Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1568934imu; Wed, 16 Jan 2019 23:02:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN51VlEjpfryXDzB0D/xDLe+A+dTCBfYY+tKs9m8fYf/Oi6cu4HDXN8WCOs9VTuwwYlZALZu X-Received: by 2002:a63:8f45:: with SMTP id r5mr12274151pgn.222.1547708556649; Wed, 16 Jan 2019 23:02:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547708556; cv=none; d=google.com; s=arc-20160816; b=PQKHCjTPUGDlpA9FC+bFEsvsdwNI8iXG8izt9OvXkRO8q4UWcxQSXUmfVVVv++ZHyX 9ZOpl/jmjgixcnmUtuG2yM3VFmNJTokB4V29BquCjXCStYYbHjJMMK52Zps+2YexDm3P rA41uy+88gj5R4tnK3dmwXPPSDyJvVDa8+FX86E8VElfUce5RRj7P4RxU5dq5jKz7DAt kxR7lfHHa6Dym9trafv/sNpbBghC9sCrCprES1Sk2O+Vvlk0pa00MgVxg3CdJTlKU44h fgOBL+IkuQf7vo9ioszBWlrP4yQkfDUkDVr4/5zpUE+vECLp7y5ydUXZmdtHgKkD0P5R QMWw== 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=RTe9oR7F5nMSnjVtSB/KBfjJjwvAy5vj4MsIwwNqM5Q=; b=jWVIzkfDp5B2S7tCFPBnHtpJg7pWybCtg+jQLuo2O8LqnG+UVQ9abkU6m399CUjYnx qq3J57cG0k6eIYj9Q8/Kkw6Levsc1lmsHSe8lRmx/Llvpk8/kGmJWJC4SAx6w1x2+83s R92+gLQWVcoQD1sXLrkARYSgrgHwzB92qGx2DrwuOJvtMg7zM41Nvmsufb3XmGsJGBnO nnxrqWUsIS4v0+JuRdFdu64zP3rn46KMW1SzO38/QSCaA1i7zB3vjC7xJ+cVDlVd5wI0 eu1Wb622kzWtkFYMFuSGexAyaqFz254qQeGrfGvrxiqAHfC6WFTGPGcyDAmCBJfsSS63 j/TA== 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 n30si840972pgb.406.2019.01.16.23.02.19; Wed, 16 Jan 2019 23:02:36 -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 S2394353AbfAPQtx (ORCPT + 99 others); Wed, 16 Jan 2019 11:49:53 -0500 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:57534 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388272AbfAPQtv (ORCPT ); Wed, 16 Jan 2019 11:49:51 -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 x0GGIxUE013485; Wed, 16 Jan 2019 18:18:59 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id B429962DA4; Wed, 16 Jan 2019 18:48:56 +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 v3 0/2] iio: adc: npcm: add NPCM ADC driver Date: Wed, 16 Jan 2019 18:48:53 +0200 Message-Id: <20190116164855.200357-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:. - Jonathan Cameron: https://lore.kernel.org/patchwork/patch/1030483/ Changes since version 2: - Return error if clock have not found in the device tree ADC node. - Modify regulator order for avoid mixing devm and non-devm path. - Modify probe and remove function to have relative ordering. 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 | 335 +++++++++++++++++++++ 4 files changed, 381 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