From patchwork Fri Aug 2 10:03:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Beniamin Bia X-Patchwork-Id: 11073079 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 012581395 for ; Fri, 2 Aug 2019 10:04:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF4EC28782 for ; Fri, 2 Aug 2019 10:04:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D293F287E7; Fri, 2 Aug 2019 10:04:51 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 054FE28782 for ; Fri, 2 Aug 2019 10:04:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405120AbfHBKEZ (ORCPT ); Fri, 2 Aug 2019 06:04:25 -0400 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:2438 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390716AbfHBKEN (ORCPT ); Fri, 2 Aug 2019 06:04:13 -0400 Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x72A2L6q028756; Fri, 2 Aug 2019 06:03:28 -0400 Received: from nam01-bn3-obe.outbound.protection.outlook.com (mail-bn3nam01lp2050.outbound.protection.outlook.com [104.47.33.50]) by mx0a-00128a01.pphosted.com with ESMTP id 2u4jdfg3tr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Aug 2019 06:03:28 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZLEMVJ/is7LIzueyaxVuy/8eKs9mRVvpPOVsZZntwp6V6s8g2JEEcLg+aNFSy+1vSbXUdtQus2JtNAMJZe67OLgLpqG94kvqTIC5OGSpldPgHpzSHSWnSYi8GbLzqGtd6T5bmZdu/M3z62Mm7vMNldxK1gQGQNFeeJdcgiZUFj8tg07nUPY40ohdEPY2BkTSDNo4NUUpWNpZp3sEqVStzwyNv1HNKe5wY0oaUrpS4baQRE1PqDt5JqRUOR0lcvSbJXesFfzCsuk4dLi/hVFDKV2pJwen94Wdy/jZCB7vd8pZFscghXfyScB0ixvTqzDa/zxbc/lAjKooVqi9N3UpHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cNK2/8LN8VMf9bRy4br24HkEx5YObFuWM0J5rqw5GFY=; b=QitxlB2sTLY6cLd7BZ5b2tPAEaSCC0Az7CFSV7aSuVuW5TK2L4GVF9Cb/I1pKkBLzU5BIXWje+oRL/oNYGIwujBQVzulZgZspi1sE4bpC1XDN36HQJpnHNH2CkCzLXlwnMiA/LMX1cNIN3fKdA6JxLW1lqm7lfYWjhnb8u6w4xfrRblCsKEjNfS+t8rlOonHSYlloQx4j0pej16oY/9yEng+cPUgXPv4O+kmJTFGbX1LO3SOd4LiWRjPHjz+axA766WkN6h7HjiG2/hxUnG4zFcGbZMsoJDgWinOFMdAs1UjPk6h2UWX65GVQqRQiTkL/W3+rX1UHrsoSyOrMkGwXQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass (sender ip is 137.71.25.57) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=analog.com;dmarc=bestguesspass action=none header.from=analog.com;dkim=none (message not signed);arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector2-analog-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cNK2/8LN8VMf9bRy4br24HkEx5YObFuWM0J5rqw5GFY=; b=HuSkQtzwbHMkWdQCcbNOaLTo6zS5GCaMpJzl8DEiTO5uFOP+fZ/DdaaMeNI6joTUW5GmgtcGxf5PN3ayCVX6Qn5R23/K/hKjvb+DPFLl1rsHqWwP9B9e+agpOx2Psin+JUCAmXV5K5rTESoT9XfCR4Kq1/7SjykBVtDMaoY+9fA= Received: from DM3PR03CA0022.namprd03.prod.outlook.com (2603:10b6:0:50::32) by MWHPR03MB3310.namprd03.prod.outlook.com (2603:10b6:301:43::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2136.13; Fri, 2 Aug 2019 10:03:25 +0000 Received: from BL2NAM02FT030.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::204) by DM3PR03CA0022.outlook.office365.com (2603:10b6:0:50::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2136.12 via Frontend Transport; Fri, 2 Aug 2019 10:03:24 +0000 Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.57 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.57; helo=nwd2mta2.analog.com; Received: from nwd2mta2.analog.com (137.71.25.57) by BL2NAM02FT030.mail.protection.outlook.com (10.152.77.172) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.2136.14 via Frontend Transport; Fri, 2 Aug 2019 10:03:24 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.69.107]) by nwd2mta2.analog.com (8.13.8/8.13.8) with ESMTP id x72A3NQC025274 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Fri, 2 Aug 2019 03:03:23 -0700 Received: from ben-Latitude-E6540.ad.analog.com (10.48.65.163) by NWD2HUBCAS7.ad.analog.com (10.64.69.107) with Microsoft SMTP Server id 14.3.408.0; Fri, 2 Aug 2019 06:03:23 -0400 From: Beniamin Bia To: CC: , , , , , , , , , , , , , , , , Stefan Popa , Beniamin Bia Subject: [PATCH 1/4] iio: adc: ad7606: Add support for AD7606B ADC Date: Fri, 2 Aug 2019 13:03:01 +0300 Message-ID: <20190802100304.15899-1-beniamin.bia@analog.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-ADIRoutedOnPrem: True X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.57;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(979002)(136003)(376002)(39860400002)(346002)(396003)(2980300002)(189003)(199004)(478600001)(7636002)(50226002)(14444005)(486006)(476003)(126002)(70586007)(5660300002)(246002)(2616005)(106002)(8936002)(356004)(6666004)(70206006)(1076003)(316002)(8676002)(5820100001)(426003)(305945005)(44832011)(54906003)(336012)(7416002)(86362001)(186003)(4326008)(2906002)(107886003)(2351001)(2870700001)(36756003)(50466002)(26005)(6916009)(23676004)(47776003)(7696005)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR03MB3310;H:nwd2mta2.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail11.analog.com;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4c535782-5af1-4246-c8fd-08d71730a865 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(4709080)(1401327)(2017052603328);SRVR:MWHPR03MB3310; X-MS-TrafficTypeDiagnostic: MWHPR03MB3310: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-Forefront-PRVS: 011787B9DD X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: 7hlZJM1Eo86lkmEG+AAS6Xh5zDvKbvGZYGBUyV7VHgJmdmT6TqF6E0iZQheRKQmUytHm+BSDELje7BqIG3k2Xg45PadohDnDOqvY/SW0N81ObhqKHPrYFzDVD8tDKsiDcunlzBIUwlj++UAtfIIIxK+kSi91HYVf/SUj/XtJmvufmbdtR9D0F0Yv+E9Jsg6eGJW+HuhJrv1Ghuj6gAEZ1VWDdv/+jUzjh6wRbdgT4GF4NEOx9vzR6/yH5rPinrmttAZOLw/fRJvwIc3U/qhZZ4Dwvmj2j7foTqSWzAmqNba7j+EsfWL5Fd7LpWAe6zZkAVEMBBLWZA8X7NkS2jRNw/suKu8VCRVmAhrkX9a640jdzTK3XQnX4Tw/ZK3mEL2KwxeDEV93IiG+phIlsyC2CsPT0/jBJ8CG9jq7oYoWGnM= X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2019 10:03:24.6365 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4c535782-5af1-4246-c8fd-08d71730a865 X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.57];Helo=[nwd2mta2.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB3310 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-02_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908020102 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Stefan Popa The AD7606B is a 16-bit ADC that supports simultaneous sampling of 8 channels. It is pin compatible to AD7606, but adds extra modes by writing to the register map. The AD7606B can be configured to work in software mode by setting all oversampling pins to high. This mode is selected by default. The oversampling ratio is configured from the OS_MODE register (address 0x08) with the addition of OS=128 and OS=256 that were not available in hardware mode. The device is configured to output data on a single spi channel, but this configuration must be done right after restart. That is why the delay was removed for devices which doesn't require it. Moreover, in software mode, the range gpio has no longer its function. Instead, the scale can be configured individually for each channel from the RANGE_CH registers (address 0x03 to 0x06). Besides the already supported ±10 V and ±5 V ranges, software mode can also accommodate the ±2.5 V range. Signed-off-by: Stefan Popa Co-developed-by: Beniamin Bia Signed-off-by: Beniamin Bia --- drivers/iio/adc/ad7606.c | 13 ++++- drivers/iio/adc/ad7606.h | 4 ++ drivers/iio/adc/ad7606_spi.c | 107 +++++++++++++++++++++++++++++++++++ 3 files changed, 122 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/ad7606.c b/drivers/iio/adc/ad7606.c index ed2d08437e5d..f5ba94c03a8d 100644 --- a/drivers/iio/adc/ad7606.c +++ b/drivers/iio/adc/ad7606.c @@ -410,12 +410,19 @@ static const struct ad7606_chip_info ad7606_chip_info_tbl[] = { .oversampling_avail = ad7606_oversampling_avail, .oversampling_num = ARRAY_SIZE(ad7606_oversampling_avail), }, + [ID_AD7606B] = { + .channels = ad7606_channels, + .num_channels = 9, + .oversampling_avail = ad7606_oversampling_avail, + .oversampling_num = ARRAY_SIZE(ad7606_oversampling_avail), + }, [ID_AD7616] = { .channels = ad7616_channels, .num_channels = 17, .oversampling_avail = ad7616_oversampling_avail, .oversampling_num = ARRAY_SIZE(ad7616_oversampling_avail), .os_req_reset = true, + .init_delay_ms = 15, }, }; @@ -631,8 +638,10 @@ int ad7606_probe(struct device *dev, int irq, void __iomem *base_address, dev_warn(st->dev, "failed to RESET: no RESET GPIO specified\n"); /* AD7616 requires al least 15ms to reconfigure after a reset */ - if (msleep_interruptible(15)) - return -ERESTARTSYS; + if (st->chip_info->init_delay_ms) { + if (msleep_interruptible(st->chip_info->init_delay_ms)) + return -ERESTARTSYS; + } st->write_scale = ad7606_write_scale_hw; st->write_os = ad7606_write_os_hw; diff --git a/drivers/iio/adc/ad7606.h b/drivers/iio/adc/ad7606.h index eeaaa8b905db..9350ef1f63b5 100644 --- a/drivers/iio/adc/ad7606.h +++ b/drivers/iio/adc/ad7606.h @@ -46,6 +46,8 @@ * oversampling ratios. * @oversampling_num number of elements stored in oversampling_avail array * @os_req_reset some devices require a reset to update oversampling + * @init_delay_ms required delay in miliseconds for initialization + * after a restart */ struct ad7606_chip_info { const struct iio_chan_spec *channels; @@ -53,6 +55,7 @@ struct ad7606_chip_info { const unsigned int *oversampling_avail; unsigned int oversampling_num; bool os_req_reset; + unsigned long init_delay_ms; }; /** @@ -155,6 +158,7 @@ enum ad7606_supported_device_ids { ID_AD7606_8, ID_AD7606_6, ID_AD7606_4, + ID_AD7606B, ID_AD7616, }; diff --git a/drivers/iio/adc/ad7606_spi.c b/drivers/iio/adc/ad7606_spi.c index 98ed52b74507..070ee7e31e2c 100644 --- a/drivers/iio/adc/ad7606_spi.c +++ b/drivers/iio/adc/ad7606_spi.c @@ -31,6 +31,20 @@ /* The range of the channel is stored on 2 bits*/ #define AD7616_RANGE_CH_MSK(ch) (0b11 << (((ch) & 0b11) * 2)) #define AD7616_RANGE_CH_MODE(ch, mode) ((mode) << ((((ch) & 0b11)) * 2)) + +#define AD7606_CONFIGURATION_REGISTER 0x02 +#define AD7606_SINGLE_DOUT 0x0 + +/* + * Range for AD7606B channels are stored in registers starting with address 0x3. + * Each register stores range for 2 channels(4 bits per channel). + */ +#define AD7606_RANGE_CH_MSK(ch) (GENMASK(3, 0) << (4 * ((ch) & 0x1))) +#define AD7606_RANGE_CH_MODE(ch, mode) \ + ((GENMASK(3, 0) & mode) << (4 * ((ch) & 0x1))) +#define AD7606_RANGE_CH_ADDR(ch) (0x03 + ((ch) >> 1)) +#define AD7606_OS_MODE 0x08 + static const struct iio_chan_spec ad7616_sw_channels[] = { IIO_CHAN_SOFT_TIMESTAMP(16), AD7616_CHANNEL(0), @@ -51,6 +65,22 @@ static const struct iio_chan_spec ad7616_sw_channels[] = { AD7616_CHANNEL(15), }; +static const struct iio_chan_spec ad7606B_sw_channels[] = { + IIO_CHAN_SOFT_TIMESTAMP(8), + AD7616_CHANNEL(0), + AD7616_CHANNEL(1), + AD7616_CHANNEL(2), + AD7616_CHANNEL(3), + AD7616_CHANNEL(4), + AD7616_CHANNEL(5), + AD7616_CHANNEL(6), + AD7616_CHANNEL(7), +}; + +static const unsigned int ad7606B_oversampling_avail[9] = { + 1, 2, 4, 8, 16, 32, 64, 128, 256 +}; + static u16 ad7616_spi_rd_wr_cmd(int addr, char isWriteOp) { /* @@ -60,6 +90,16 @@ static u16 ad7616_spi_rd_wr_cmd(int addr, char isWriteOp) return ((addr & 0x7F) << 1) | ((isWriteOp & 0x1) << 7); } +static u16 ad7606B_spi_rd_wr_cmd(int addr, char isWriteOp) +{ + /* + * The address of register consists of one bit which + * specifies a read command placed bit 6, followed by + * 6 bits of address. + */ + return (addr & 0x3F) | (((~isWriteOp) & 0x1) << 6); +} + static int ad7606_spi_read_block(struct device *dev, int count, void *buf) { @@ -169,6 +209,23 @@ static int ad7616_write_os_sw(struct iio_dev *indio_dev, int val) AD7616_OS_MASK, val << 2); } +static int ad7606_write_scale_sw(struct iio_dev *indio_dev, int ch, int val) +{ + struct ad7606_state *st = iio_priv(indio_dev); + + return ad7606_spi_write_mask(st, + AD7606_RANGE_CH_ADDR(ch), + AD7606_RANGE_CH_MSK(ch), + AD7606_RANGE_CH_MODE(ch, val)); +} + +static int ad7606_write_os_sw(struct iio_dev *indio_dev, int val) +{ + struct ad7606_state *st = iio_priv(indio_dev); + + return ad7606_spi_reg_write(st, AD7606_OS_MODE, val); +} + static int ad7616_sw_mode_config(struct iio_dev *indio_dev) { struct ad7606_state *st = iio_priv(indio_dev); @@ -189,6 +246,42 @@ static int ad7616_sw_mode_config(struct iio_dev *indio_dev) AD7616_BURST_MODE | AD7616_SEQEN_MODE); } +static int ad7606B_sw_mode_config(struct iio_dev *indio_dev) +{ + struct ad7606_state *st = iio_priv(indio_dev); + unsigned long os[3] = {1}; + + /* + * Software mode is enabled when all three oversampling + * pins are set to high. If oversampling gpios are defined + * in the device tree, then they need to be set to high, + * otherwise, they must be hardwired to VDD + */ + if (st->gpio_os) { + gpiod_set_array_value(ARRAY_SIZE(os), + st->gpio_os->desc, st->gpio_os->info, os); + } + /* OS of 128 and 256 are available only in software mode */ + st->oversampling_avail = ad7606B_oversampling_avail; + st->num_os_ratios = ARRAY_SIZE(ad7606B_oversampling_avail); + + st->write_scale = ad7606_write_scale_sw; + st->write_os = &ad7606_write_os_sw; + + /* Configure device spi to output on a single channel */ + st->bops->reg_write(st, + AD7606_CONFIGURATION_REGISTER, + AD7606_SINGLE_DOUT); + + /* + * Scale can be configured individually for each channel + * in software mode. + */ + indio_dev->channels = ad7606B_sw_channels; + + return 0; +} + static const struct ad7606_bus_ops ad7606_spi_bops = { .read_block = ad7606_spi_read_block, }; @@ -202,6 +295,15 @@ static const struct ad7606_bus_ops ad7616_spi_bops = { .sw_mode_config = ad7616_sw_mode_config, }; +static const struct ad7606_bus_ops ad7606B_spi_bops = { + .read_block = ad7606_spi_read_block, + .reg_read = ad7606_spi_reg_read, + .reg_write = ad7606_spi_reg_write, + .write_mask = ad7606_spi_write_mask, + .rd_wr_cmd = ad7606B_spi_rd_wr_cmd, + .sw_mode_config = ad7606B_sw_mode_config, +}; + static int ad7606_spi_probe(struct spi_device *spi) { const struct spi_device_id *id = spi_get_device_id(spi); @@ -211,6 +313,9 @@ static int ad7606_spi_probe(struct spi_device *spi) case ID_AD7616: bops = &ad7616_spi_bops; break; + case ID_AD7606B: + bops = &ad7606B_spi_bops; + break; default: bops = &ad7606_spi_bops; break; @@ -226,6 +331,7 @@ static const struct spi_device_id ad7606_id_table[] = { { "ad7606-4", ID_AD7606_4 }, { "ad7606-6", ID_AD7606_6 }, { "ad7606-8", ID_AD7606_8 }, + { "ad7606b", ID_AD7606B }, { "ad7616", ID_AD7616 }, {} }; @@ -236,6 +342,7 @@ static const struct of_device_id ad7606_of_match[] = { { .compatible = "adi,ad7606-4" }, { .compatible = "adi,ad7606-6" }, { .compatible = "adi,ad7606-8" }, + { .compatible = "adi,ad7606b" }, { .compatible = "adi,ad7616" }, { }, }; From patchwork Fri Aug 2 10:03:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Beniamin Bia X-Patchwork-Id: 11073081 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 5ACB51395 for ; Fri, 2 Aug 2019 10:04:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45A0228782 for ; Fri, 2 Aug 2019 10:04:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39B17287D3; Fri, 2 Aug 2019 10:04:53 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73698287DE for ; Fri, 2 Aug 2019 10:04:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392000AbfHBKEZ (ORCPT ); Fri, 2 Aug 2019 06:04:25 -0400 Received: from mx0b-00128a01.pphosted.com ([148.163.139.77]:44198 "EHLO mx0b-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391927AbfHBKEZ (ORCPT ); Fri, 2 Aug 2019 06:04:25 -0400 Received: from pps.filterd (m0167091.ppops.net [127.0.0.1]) by mx0b-00128a01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x72A2Q7Y016079; Fri, 2 Aug 2019 06:03:41 -0400 Received: from nam02-cy1-obe.outbound.protection.outlook.com (mail-cys01nam02lp2059.outbound.protection.outlook.com [104.47.37.59]) by mx0b-00128a01.pphosted.com with ESMTP id 2u3vjx3wb9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Aug 2019 06:03:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GUFRjYtJeAXyFE2+pi9iNJzCch5HUqJiIRB3GSzOylHahum0Xq2x8WnD9gZdbeYIgCxIhm4hk02EyJ9VmMOm307072rwmk2ylacuFY/J4lR/xJqc9VQ55ymynv1cQY7Nzj+w8txRrPrh7YqG25/uyLmtxEB+65EG+LDVybAUL3Jm83wo8P56xRFdnEcMGtkEd+uJKlrrAsXGnZc5xx0tQXX3q1xfnQCrjv57FL4U+PRp/RbxBXSyhjE3RyBK0vSQPPSW1SXufn04dlDLQfzQmp5gkOuAzgRJLVQBZotcnjqhcuioop7PfFFk2s4l0XykugNtc4lsUDtMWQODDIRTkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6GQvgKnWudeg7pa12x9iU/vW0nLNy4M8vHLuzwgWGd8=; b=GeBchfxbmP/5ZiO4GJYcx3/yNJGDqYdqEA+qjAQkpFUp8gXTJ/oyyGbJeJIqEu8WpBCORVqgiGhXQ7l7dUVYgDm8IaZUL4EM6yRjdfNcWriR4ytbafJPRQpIIlAdf2/8FGrcax11t94rck0UCFChFFhw+Zx8H4x/7HYdPmFS8yEeHFdhffZq0RCIsDPvkNKzxmU6oJmUQR3XqJ5AFrGvw9Da/scWkDM9tm1d29FB3/T8zzIA6Tdlj4A5h+ioaJWcqkeZtrtxWkyKg90PtqmkgftBDGB1jbJ0dMUtMDMz8kFZkWE1KZyQAXBuT/tfpHbNfDo+y3GPz+QleAHrDPItmA== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass (sender ip is 137.71.25.57) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=analog.com;dmarc=bestguesspass action=none header.from=analog.com;dkim=none (message not signed);arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector2-analog-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6GQvgKnWudeg7pa12x9iU/vW0nLNy4M8vHLuzwgWGd8=; b=T9qHyHp4wIhLunEjtPDBd4ZMmPLYqPeT74ZmZKietyB0PQNCxLWoBrW7d7fVwCHVOLf15u7S87Jpu8ZYj3zSK6ga4YY/8PBWXa3TSshbLY70Iwsoyk4pRboPUtxyyPcCxLbitAnbJFsgBJjk3zYLY6xKf3dWCJOtILql2znuIeI= Received: from BN3PR03CA0101.namprd03.prod.outlook.com (2603:10b6:400:4::19) by CY4PR03MB2807.namprd03.prod.outlook.com (2603:10b6:903:130::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.14; Fri, 2 Aug 2019 10:03:39 +0000 Received: from BL2NAM02FT011.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::202) by BN3PR03CA0101.outlook.office365.com (2603:10b6:400:4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2136.14 via Frontend Transport; Fri, 2 Aug 2019 10:03:38 +0000 Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.57 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.57; helo=nwd2mta2.analog.com; Received: from nwd2mta2.analog.com (137.71.25.57) by BL2NAM02FT011.mail.protection.outlook.com (10.152.77.5) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.2136.14 via Frontend Transport; Fri, 2 Aug 2019 10:03:38 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.69.107]) by nwd2mta2.analog.com (8.13.8/8.13.8) with ESMTP id x72A3cWA025310 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Fri, 2 Aug 2019 03:03:38 -0700 Received: from ben-Latitude-E6540.ad.analog.com (10.48.65.163) by NWD2HUBCAS7.ad.analog.com (10.64.69.107) with Microsoft SMTP Server id 14.3.408.0; Fri, 2 Aug 2019 06:03:37 -0400 From: Beniamin Bia To: CC: , , , , , , , , , , , , , , , , Beniamin Bia Subject: [PATCH 2/4] MAINTAINERS: Add Beniamin Bia for AD7606 driver Date: Fri, 2 Aug 2019 13:03:02 +0300 Message-ID: <20190802100304.15899-2-beniamin.bia@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190802100304.15899-1-beniamin.bia@analog.com> References: <20190802100304.15899-1-beniamin.bia@analog.com> MIME-Version: 1.0 X-ADIRoutedOnPrem: True X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.57;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(346002)(136003)(396003)(39850400004)(2980300002)(189003)(199004)(107886003)(50466002)(16586007)(2906002)(966005)(8936002)(70586007)(54906003)(47776003)(36756003)(7636002)(126002)(336012)(478600001)(106002)(305945005)(70206006)(1076003)(356004)(316002)(11346002)(4744005)(5660300002)(6916009)(186003)(4326008)(446003)(76176011)(426003)(7416002)(50226002)(7696005)(86362001)(476003)(246002)(2351001)(44832011)(51416003)(6306002)(8676002)(26005)(486006)(2616005)(6666004)(48376002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR03MB2807;H:nwd2mta2.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail11.analog.com;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 84ba5a29-432c-4c3a-fcdb-08d71730b0d6 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(4709080)(1401327)(2017052603328);SRVR:CY4PR03MB2807; X-MS-TrafficTypeDiagnostic: CY4PR03MB2807: X-MS-Exchange-PUrlCount: 1 X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1303; X-Forefront-PRVS: 011787B9DD X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: DeKyz6kxyN7hpeUb+3tvsZ2rAOiYxXaZ5ux+0JYwdeXnTj0fffXXALD9FTjXdHcwaiOKTldjA8j1oLzHk2XcZnMfaInYdO1jo5//PQNxU0QgpDrgWjjdRJYRaPUOwtSM77rnStHRPj9BMOmPLPtxG7mr6K5qD+WdMaXnj1t0TYGcSiG2/qhzDDy7lzNsbqBoN0oyKRsoEG4NeaumSVC7EnbwPrtU0UtfjHX2WF5WHY1f2WySgokPgvB8bN75z9S8v+UptTyNYoyUTZNqGL+vlgtBKggNBsFjN+jqj+bkdU+ua8UyZ9HhwE6cIDXN6Mp2Tk3U8w9SiTnfJH707o0tMv//5JsZH2KWtpfYndYYvacv92rroLmWn4IIqDdJgb114Xf7FZb7IXt18v4td4ZP/8Vo285CQ90ibJoRJDlP+y0= X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2019 10:03:38.7962 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 84ba5a29-432c-4c3a-fcdb-08d71730b0d6 X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.57];Helo=[nwd2mta2.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB2807 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-02_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908020102 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add Beniamin Bia as maintainer for AD7606 driver. Signed-off-by: Beniamin Bia --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index ad498428b38c..052d7a8591fb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -895,6 +895,7 @@ F: Documentation/devicetree/bindings/iio/adc/adi,ad7124.txt ANALOG DEVICES INC AD7606 DRIVER M: Stefan Popa +M: Beniamin Bia L: linux-iio@vger.kernel.org W: http://ez.analog.com/community/linux-device-drivers S: Supported From patchwork Fri Aug 2 10:03:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Beniamin Bia X-Patchwork-Id: 11073077 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 2331F746 for ; Fri, 2 Aug 2019 10:04:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EA8228782 for ; Fri, 2 Aug 2019 10:04:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0247E287DE; Fri, 2 Aug 2019 10:04:49 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A1A628782 for ; Fri, 2 Aug 2019 10:04:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407120AbfHBKE1 (ORCPT ); Fri, 2 Aug 2019 06:04:27 -0400 Received: from mx0b-00128a01.pphosted.com ([148.163.139.77]:45440 "EHLO mx0b-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391983AbfHBKE0 (ORCPT ); Fri, 2 Aug 2019 06:04:26 -0400 Received: from pps.filterd (m0167090.ppops.net [127.0.0.1]) by mx0b-00128a01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x72A2Le6010589; Fri, 2 Aug 2019 06:03:47 -0400 Received: from nam05-by2-obe.outbound.protection.outlook.com (mail-by2nam05lp2055.outbound.protection.outlook.com [104.47.50.55]) by mx0b-00128a01.pphosted.com with ESMTP id 2u4ddxrvrr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 02 Aug 2019 06:03:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A732m5YyNFT32VZzkj5QvklZiKtAp+iVAOtLZ6Xtd2hZnsjICA7IlYxJO9GvzaMRQcACgH3zT88gokfNPjbncSLymv998VkKyAUK2OKvLy4cSmFr9Pq29ic670WRv7hbKoiD2oOHdBt03Ne5cLogkhy+ejNAQyIGkHiV1NwZqklLx9qWz30beL91CbzrXIkaEAog2u3RvQd+fHavdCUokAjSfI5hqq77KuYqFz37z65WKvjuqBX8DBFkrUqhBDdWEoyHJ2SAvQAcrjqAHhMDW9BmR3nH3Te0GC7KoytbhT2ZH0Xxy/3q4gLuFy3Zw64F8tRbbuuTKCD+3WJBVYI2IQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iEmF0mK+wxOiWYtr2kD77YT9/TZe6zsyYelvmcnLZmw=; b=ZQ8O8XPlapeHa9E1rntOIxAWwaCrmA+tnmeb+zFEAOfrDrSNWkfcz8ftyf4wtOfv/yG1ZdPKs3JBivBXxPjWO9dz9anXGNKpCjJGmR+xp77Rhc+cHTcrRuFsXPkBMdz3jhip5AmTc7+mJzvXUwKlleWbYEgJYL/zs+ZJfdt8XyNeUYk2KmfrLX3T5AsAVip23QWqRqKSvbacxlIN6+IRNOfi8tDThG3tDx+sHrGuEd+cuwCglhJHLUuxKyG8w0i/yZYycxXrgQ/OOgXXF4PmeeZu/+kPz9iSKS6i23saytBnTBT21ZTZizhEMCHLQqGgS3kw3+2jrn6WM9NBiovjlg== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass (sender ip is 137.71.25.57) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=analog.com;dmarc=bestguesspass action=none header.from=analog.com;dkim=none (message not signed);arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector2-analog-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iEmF0mK+wxOiWYtr2kD77YT9/TZe6zsyYelvmcnLZmw=; b=wjhxpA5PWGjlTWtr5Iv5aXLX+iuF4s96yWew8JnarKkNmgsp/19cMFti8NTtuU5tiLka5U/EN6BjR0IydvnitkanS2v21Cc0jclWVOK+MiCHQkFsVQpMfBelBpDrxLvJp/ZoV8k5lH4Gm6+x0/D3dkpbnFxQlD7kupJfjUt9FOI= Received: from BN3PR03CA0109.namprd03.prod.outlook.com (2603:10b6:400:4::27) by BYAPR03MB3783.namprd03.prod.outlook.com (2603:10b6:a03:6f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2136.17; Fri, 2 Aug 2019 10:03:45 +0000 Received: from BL2NAM02FT024.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::205) by BN3PR03CA0109.outlook.office365.com (2603:10b6:400:4::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2136.13 via Frontend Transport; Fri, 2 Aug 2019 10:03:45 +0000 Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.57 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.57; helo=nwd2mta2.analog.com; Received: from nwd2mta2.analog.com (137.71.25.57) by BL2NAM02FT024.mail.protection.outlook.com (10.152.77.62) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.2136.14 via Frontend Transport; Fri, 2 Aug 2019 10:03:45 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.69.107]) by nwd2mta2.analog.com (8.13.8/8.13.8) with ESMTP id x72A3i9q025318 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Fri, 2 Aug 2019 03:03:44 -0700 Received: from ben-Latitude-E6540.ad.analog.com (10.48.65.163) by NWD2HUBCAS7.ad.analog.com (10.64.69.107) with Microsoft SMTP Server id 14.3.408.0; Fri, 2 Aug 2019 06:03:44 -0400 From: Beniamin Bia To: CC: , , , , , , , , , , , , , , , , Beniamin Bia Subject: [PATCH 3/4] dt-bindings: iio: adc: Migrate AD7606 documentation to yaml Date: Fri, 2 Aug 2019 13:03:03 +0300 Message-ID: <20190802100304.15899-3-beniamin.bia@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190802100304.15899-1-beniamin.bia@analog.com> References: <20190802100304.15899-1-beniamin.bia@analog.com> MIME-Version: 1.0 X-ADIRoutedOnPrem: True X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.57;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(39860400002)(376002)(396003)(346002)(2980300002)(199004)(189003)(6666004)(356004)(6916009)(107886003)(53376002)(14444005)(966005)(4326008)(2906002)(2870700001)(6306002)(5820100001)(36756003)(7416002)(478600001)(50226002)(1076003)(50466002)(2351001)(7636002)(106002)(305945005)(316002)(246002)(54906003)(5660300002)(70586007)(44832011)(486006)(70206006)(76176011)(23676004)(8676002)(47776003)(11346002)(26005)(126002)(186003)(446003)(7696005)(8936002)(476003)(2616005)(426003)(86362001)(336012);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR03MB3783;H:nwd2mta2.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail11.analog.com;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 589fdbc7-ed29-4246-cea4-08d71730b49b X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(4709080)(1401327)(2017052603328);SRVR:BYAPR03MB3783; X-MS-TrafficTypeDiagnostic: BYAPR03MB3783: X-MS-Exchange-PUrlCount: 5 X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-Forefront-PRVS: 011787B9DD X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: 2Nc+Mug6aNM8wdbg1ZStVcXzX6wPivp2F6HBPjHdqGckWQxz9HdGfLhXmnkdg3jvrFmWMxAQD1lWpHC31xGyV6dAPP2293fQ6zj/lu8dZQ2EdiKQfdorvEBtSufcoRMeH+KXxsfI+wgjIpcnW/pdQ/tk4+PAeb9n7m45kyyzd2ardD6EYOyvWr3sJYKRBKfTmbPPWMeofB3d0KvIOdT2c2BD9wI8KXPe/+sq/GKSHj/Ma2ialNg2XzplVyZ5nOTf7LzkmK7tRXuFzExWNyXvFcfgYdEj1j++soqtHtUUG+iqgf0qdlAn/YYeIO8RuXt5il2YLnxyRSL0P/aTxsxbHJyVkRil4GCPkpQPSa7Cz1BGLDwhKjf2Tjbt1cw97gIxSvmnudeO+r4bmeEQRKcjqyNcVaIgnYC5qIfpG1TiPEo= X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2019 10:03:45.1242 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 589fdbc7-ed29-4246-cea4-08d71730b49b X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.57];Helo=[nwd2mta2.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR03MB3783 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-02_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908020102 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The documentation for ad7606 was migrated to yaml, the new Linux Kernel standard. Signed-off-by: Beniamin Bia --- .../bindings/iio/adc/adi,ad7606.yaml | 134 ++++++++++++++++++ MAINTAINERS | 2 +- 2 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml new file mode 100644 index 000000000000..509dbe9c84d2 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml @@ -0,0 +1,134 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/adi,ad7606.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Analog Devices AD7606 Simultaneous Sampling ADC + +maintainers: + - Beniamin Bia + - Stefan Popa + +description: | + Analog Devices AD7606 Simultaneous Sampling ADC + https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606_7606-6_7606-4.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/AD7616.pdf + +properties: + compatible: + enum: + - adi,ad7605-4 + - adi,ad7606-8 + - adi,ad7606-6 + - adi,ad7606-4 + - adi,ad7616 + + reg: + maxItems: 1 + + spi-cpha: true + + avcc-supply: + description: + Phandle to the Avcc power supply + maxItems: 1 + + interrupts: + maxItems: 1 + + adi,conversion-start-gpios: + description: + Must be the device tree identifier of the CONVST pin. + This logic input is used to initiate conversions on the analog + input channels. As the line is active high, it should be marked + GPIO_ACTIVE_HIGH. + maxItems: 1 + + reset-gpios: + description: + Must be the device tree identifier of the RESET pin. If specified, + it will be asserted during driver probe. As the line is active high, + it should be marked GPIO_ACTIVE_HIGH. + maxItems: 1 + + standby-gpios: + description: + Must be the device tree identifier of the STBY pin. This pin is used + to place the AD7606 into one of two power-down modes, Standby mode or + Shutdown mode. As the line is active low, it should be marked + GPIO_ACTIVE_LOW. + maxItems: 1 + + adi,first-data-gpios: + description: + Must be the device tree identifier of the FRSTDATA pin. + The FRSTDATA output indicates when the first channel, V1, is + being read back on either the parallel, byte or serial interface. + As the line is active high, it should be marked GPIO_ACTIVE_HIGH. + maxItems: 1 + + adi,range-gpios: + description: + Must be the device tree identifier of the RANGE pin. The polarity on + this pin determines the input range of the analog input channels. If + this pin is tied to a logic high, the analog input range is ±10V for + all channels. If this pin is tied to a logic low, the analog input range + is ±5V for all channels. As the line is active high, it should be marked + GPIO_ACTIVE_HIGH. + maxItems: 1 + + adi,oversampling-ratio-gpios: + description: + Must be the device tree identifier of the over-sampling + mode pins. As the line is active high, it should be marked + GPIO_ACTIVE_HIGH. + maxItems: 1 + + adi,sw-mode: + description: + Software mode of operation, so far available only for ad7616. + It is enabled when all three oversampling mode pins are connected to + high level. The device is configured by the corresponding registers. If the + adi,oversampling-ratio-gpios property is defined, then the driver will set the + oversampling gpios to high. Otherwise, it is assumed that the pins are hardwired + to VDD. + maxItems: 1 + type: boolean + +required: + - compatible + - reg + - spi-cpha + - avcc-supply + - interrupts + - adi,conversion-start-gpios + +examples: + - | + spi0 { + #address-cells = <1>; + #size-cells = <0>; + + adc@0 { + compatible = "adi,ad7606-8"; + reg = <0>; + spi-max-frequency = <1000000>; + spi-cpol; + + avcc-supply = <&adc_vref>; + + interrupts = <25 IRQ_TYPE_EDGE_FALLING>; + interrupt-parent = <&gpio>; + + adi,conversion-start-gpios = <&gpio 17 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio 27 GPIO_ACTIVE_HIGH>; + adi,first-data-gpios = <&gpio 22 GPIO_ACTIVE_HIGH>; + adi,oversampling-ratio-gpios = <&gpio 18 GPIO_ACTIVE_HIGH + &gpio 23 GPIO_ACTIVE_HIGH + &gpio 26 GPIO_ACTIVE_HIGH>; + standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>; + adi,sw-mode; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 052d7a8591fb..d2e465772071 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -900,7 +900,7 @@ L: linux-iio@vger.kernel.org W: http://ez.analog.com/community/linux-device-drivers S: Supported F: drivers/iio/adc/ad7606.c -F: Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt +F: Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml ANALOG DEVICES INC AD7768-1 DRIVER M: Stefan Popa From patchwork Fri Aug 2 10:03:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Beniamin Bia X-Patchwork-Id: 11073075 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 215E9746 for ; Fri, 2 Aug 2019 10:04:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A9A928782 for ; Fri, 2 Aug 2019 10:04:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EFE8F287DE; Fri, 2 Aug 2019 10:04:48 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6635F28782 for ; Fri, 2 Aug 2019 10:04:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405212AbfHBKEn (ORCPT ); Fri, 2 Aug 2019 06:04:43 -0400 Received: from mx0b-00128a01.pphosted.com ([148.163.139.77]:60628 "EHLO mx0b-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732050AbfHBKEm (ORCPT ); Fri, 2 Aug 2019 06:04:42 -0400 Received: from pps.filterd (m0167090.ppops.net [127.0.0.1]) by mx0b-00128a01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x72A2LAk010592; Fri, 2 Aug 2019 06:04:00 -0400 Received: from nam04-sn1-obe.outbound.protection.outlook.com (mail-sn1nam04lp2050.outbound.protection.outlook.com [104.47.44.50]) by mx0b-00128a01.pphosted.com with ESMTP id 2u4ddxrvsa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Aug 2019 06:04:00 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rb/OfeNA2Nq64143x2fad4CuV7Yq75Kzr8k2Wjw+g9RdbqwWFy+WIF9yQCirWiDPpcsuFQznPCbLMD/XKDecIzkX3XgDV57aIYAB2kBOXxfmk/AUr+riBLN0x1HZ676ll78D1co6OSZz8MKYvQrWp2sNB7KBPwWjTtxy3WYdy/AbJz9wtqQbdNDLCDsHFFvyIRML32XeMK9+JjxNL3B30+D98++7FOYcyi2Zx9my1MxoFIyDLsrBT8MpyRBJhPT0aUUDEnC+HorezwzPunTMEi195jqvy7aI7KA9EyGjkA8eopDNPiCH2MBJUjpJLIOVCc1fhVP6uxiQiwoyVzeRxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=utBhN++MhKQFax2kh7OMZcnoDF4bfN76p+WVFccSRH0=; b=lDLw/ymq3hCQ5VvihtA05zvsMJu7cHI3H6SgtU3HYKPlrDY9H/KgAanDDuDiq805838HIPYns0mlgqIQsYtkegURRw6H/IytkAqZEvEA/KPsmJJArvmVLujgdKZ6jwnP4elbeVjL6Pzf+qDiEsHN9GB4JQB7zwd9RWrBwWGMW9pyeKI7i1ldZVtzxU0jUvv066cETHhbJ8Razhf24bzZl9mRijp4EJggNCaAsYHraJUW2rCMAyVXt1UlZXOvAP1PgSS6xwpEO6W6KPz2jEsw7gUOdE5U6ZzA8mxo467/N2wDxW+mBnvaRIBFwg+iJ+5BhrS8TDkMKg9/Xp5pLDkIBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass (sender ip is 137.71.25.57) smtp.rcpttodomain=vger.kernel.org smtp.mailfrom=analog.com;dmarc=bestguesspass action=none header.from=analog.com;dkim=none (message not signed);arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=analog.onmicrosoft.com; s=selector2-analog-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=utBhN++MhKQFax2kh7OMZcnoDF4bfN76p+WVFccSRH0=; b=YSlyciQTQOQ1bvkg9gtSnu8uDmhJl8TjjwZH+NpwJKhQHjuokw/j4iq9rp9XG6rDShO8VKcwYvsDKV8UP3JkIIeoGPRjgzBWXk8YkpHVZ+cs4bhpA3AO7gn0zLZlppDmdHJG4z3zbT6eU6LBKZ71gKzc9vlkqokJfS/LohQ1ZBU= Received: from MWHPR03CA0007.namprd03.prod.outlook.com (2603:10b6:300:117::17) by BLUPR03MB584.namprd03.prod.outlook.com (2a01:111:e400:887::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.16; Fri, 2 Aug 2019 10:03:57 +0000 Received: from BL2NAM02FT037.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::209) by MWHPR03CA0007.outlook.office365.com (2603:10b6:300:117::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2136.13 via Frontend Transport; Fri, 2 Aug 2019 10:03:57 +0000 Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.57 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.57; helo=nwd2mta2.analog.com; Received: from nwd2mta2.analog.com (137.71.25.57) by BL2NAM02FT037.mail.protection.outlook.com (10.152.77.11) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.2136.14 via Frontend Transport; Fri, 2 Aug 2019 10:03:56 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.69.107]) by nwd2mta2.analog.com (8.13.8/8.13.8) with ESMTP id x72A3ujl025333 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Fri, 2 Aug 2019 03:03:56 -0700 Received: from ben-Latitude-E6540.ad.analog.com (10.48.65.163) by NWD2HUBCAS7.ad.analog.com (10.64.69.107) with Microsoft SMTP Server id 14.3.408.0; Fri, 2 Aug 2019 06:03:55 -0400 From: Beniamin Bia To: CC: , , , , , , , , , , , , , , , , Beniamin Bia Subject: [PATCH 4/4] dt-bindings: iio: adc: Add AD7606B ADC documentation Date: Fri, 2 Aug 2019 13:03:04 +0300 Message-ID: <20190802100304.15899-4-beniamin.bia@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190802100304.15899-1-beniamin.bia@analog.com> References: <20190802100304.15899-1-beniamin.bia@analog.com> MIME-Version: 1.0 X-ADIRoutedOnPrem: True X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:137.71.25.57;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(396003)(136003)(346002)(39860400002)(2980300002)(189003)(199004)(5660300002)(316002)(16586007)(966005)(478600001)(6916009)(47776003)(106002)(126002)(26005)(50466002)(7696005)(51416003)(86362001)(2906002)(1076003)(54906003)(6306002)(48376002)(426003)(486006)(246002)(50226002)(186003)(7416002)(76176011)(4326008)(44832011)(2616005)(476003)(36756003)(11346002)(446003)(7636002)(14444005)(107886003)(8676002)(70206006)(356004)(336012)(8936002)(6666004)(70586007)(305945005)(2351001);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR03MB584;H:nwd2mta2.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail11.analog.com;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d59deb3c-c6e1-45de-912e-08d71730bb89 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(4709080)(1401327)(2017052603328);SRVR:BLUPR03MB584; X-MS-TrafficTypeDiagnostic: BLUPR03MB584: X-MS-Exchange-PUrlCount: 3 X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-Forefront-PRVS: 011787B9DD X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: DyzTSCjEU2FXVSYpte4abospIdq6gmcxUjZ0bYf5i7/xxZhaD5pEiGPHk4vXSuTNzO5q1j3mcmqCbBdjC3GWVsbh9K93aRKNEjMadFNwcws2k6DASe4y5JvsgKSIRLcWuvHpR4ezhjex5ZA23AnDcjSSvVh8iqVVIzg+lMucV3jxast1QqDmlDxLFEO8EOrKt7njEa5yPiSDLhlljPdNHmCMAeeuSBG4y3QUIijM0bQKFs6rFEUqsoQO2VopDsNdOGflqpvPj2ypjyP7vaUOtKL9ePhtwUPMEQVx0uVJijYT44dWNTTTE6nz6yQ2FX5qx3tUU8YDo9j2shfh2RBQl5Xg1vODMNM3U5DhhaNWC8Z9TtcRa4+zeRLpIZrnx9Bhg4V/7HCJxIAxMQhTB0F4xQ+M4uAxoEv0lZ35EZhHAmk= X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2019 10:03:56.7467 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d59deb3c-c6e1-45de-912e-08d71730bb89 X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.57];Helo=[nwd2mta2.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB584 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-02_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908020102 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Documentation for AD7606B Analog to Digital Converter and software mode was added. Signed-off-by: Beniamin Bia --- Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt | 8 ++++++++ Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt index d8652460198e..9cc7ea19eca6 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt @@ -7,6 +7,7 @@ Required properties for the AD7606: * "adi,ad7606-8" * "adi,ad7606-6" * "adi,ad7606-4" + * "adi,ad7606b" * "adi,ad7616" - reg: SPI chip select number for the device - spi-max-frequency: Max SPI frequency to use @@ -42,6 +43,12 @@ Optional properties: - adi,oversampling-ratio-gpios: must be the device tree identifier of the over-sampling mode pins. As the line is active high, it should be marked GPIO_ACTIVE_HIGH. +- adi,sw-mode: Boolean, software mode of operation, so far available only for ad7606b. + Software mode is enabled when all three oversampling mode pins are connected to + high level. The AD7606B is configured by the corresponding registers. If the + adi,oversampling-ratio-gpios property is defined, then the driver will set the + oversampling gpios to high. Otherwise, it is assumed that the pins are hardwired + to VDD. Example: @@ -63,4 +70,5 @@ Example: &gpio 23 GPIO_ACTIVE_HIGH &gpio 26 GPIO_ACTIVE_HIGH>; standby-gpios = <&gpio 24 GPIO_ACTIVE_LOW>; + adi,sw-mode; }; diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml index 509dbe9c84d2..2afe31747a70 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml @@ -13,6 +13,7 @@ maintainers: description: | Analog Devices AD7606 Simultaneous Sampling ADC https://www.analog.com/media/en/technical-documentation/data-sheets/ad7606_7606-6_7606-4.pdf + https://www.analog.com/media/en/technical-documentation/data-sheets/AD7606B.pdf https://www.analog.com/media/en/technical-documentation/data-sheets/AD7616.pdf properties: @@ -22,6 +23,7 @@ properties: - adi,ad7606-8 - adi,ad7606-6 - adi,ad7606-4 + - adi,ad7606b - adi,ad7616 reg: @@ -87,7 +89,7 @@ properties: adi,sw-mode: description: - Software mode of operation, so far available only for ad7616. + Software mode of operation, so far available only for ad7616 and ad7606B. It is enabled when all three oversampling mode pins are connected to high level. The device is configured by the corresponding registers. If the adi,oversampling-ratio-gpios property is defined, then the driver will set the