From patchwork Wed Aug 7 13:31:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Beniamin Bia X-Patchwork-Id: 11082153 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 162A314F6 for ; Wed, 7 Aug 2019 13:32:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02EAB28960 for ; Wed, 7 Aug 2019 13:32:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB2F6289F0; Wed, 7 Aug 2019 13:32:57 +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 22A9A28960 for ; Wed, 7 Aug 2019 13:32:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388697AbfHGNcr (ORCPT ); Wed, 7 Aug 2019 09:32:47 -0400 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:3350 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388393AbfHGNcq (ORCPT ); Wed, 7 Aug 2019 09:32:46 -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 x77DS0Jl029504; Wed, 7 Aug 2019 09:31:53 -0400 Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2053.outbound.protection.outlook.com [104.47.36.53]) by mx0a-00128a01.pphosted.com with ESMTP id 2u7bcx3bd0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Aug 2019 09:31:53 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WqpJjcEXe8+X8QpN6ZcUwaSZWCWzLAMHKA9LuVOuJxfypXXFN0ZVqy0ZOvZdCmaGqW6Alq0xkKfG91c0TyGDQaQLal+WJxBIzsvrN6uZjhD0e0ZHrHWE/4OFrI9Nxi91bQ46Tq1OfnI4ywzOAN017C6meb7n3OPnyeR79PUlmOug+kx6cdsljvT8KbUPznfj1zxyi2Uo8M1sZFSafmYGoDJxWBpw/VWdpT8p1lNMeWReOK0y0jTHrMwUAiDWBOVbV9i9JXKAhHmr0RplE0gqZ3di1qrYGFRld2588DFCTzr4rd5CWDthGSzkkiAn9S+oZhWgQbPhdL1mViN0CZYJcw== 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=zjKxyIUqHuAIlhPJ0Vfy27zwmRxNJnbxhGJ71ylOYgw=; b=O/chVLoSM0D1qnCaGwuYCINaiUKZ0xfp+BqaLuwVwHkMSgR7zWMKL5wDKIo9VJQPAB5SN4TNI1meHK0ey2juNajx2KsmgraHqFuc2LaPNR8TM61zAr2jH/qp1tiAybd5Okl60LwAQvMygRF8UGtURlMyd6pWGyhsQCk+jL+SE2Dre485kZ4vGlKl0c3o0GoMKAmA0yFQvlzhuZ3SBpx/75K7sZRzyGD99FxSiqDIvkBLwKtgpGWFcNteTpkk3uBAJzOa2B6Tzi1z8VGixWa6OYoKIPlnwQ602oX8OZIjbXLIp+6hypQjtNMsW50jFzdfbVgm3fgN7UuXZ+vmz2W1tg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 137.71.25.55) 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=zjKxyIUqHuAIlhPJ0Vfy27zwmRxNJnbxhGJ71ylOYgw=; b=jDgJrLLdl8OcZp4hw4G6NMtwC5ILtgCh1bCiXW5ucTxY4CHPWB30Zr6qpXMMueB0YFqikchkJjdAE9zPL8MnHWovMZbetVXU6KAlOSpzdsptOWsemLSw1FwZSpuNEOJ23bdyEFHjYT1oTcpPi4pS9C9JqJV3R6IBeKF/nZhFgKQ= Received: from DM6PR03CA0056.namprd03.prod.outlook.com (2603:10b6:5:100::33) by MWHPR03MB2429.namprd03.prod.outlook.com (2603:10b6:300:b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.14; Wed, 7 Aug 2019 13:31:50 +0000 Received: from CY1NAM02FT041.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::201) by DM6PR03CA0056.outlook.office365.com (2603:10b6:5:100::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2136.16 via Frontend Transport; Wed, 7 Aug 2019 13:31:50 +0000 Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.55 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.55; helo=nwd2mta1.analog.com; Received: from nwd2mta1.analog.com (137.71.25.55) by CY1NAM02FT041.mail.protection.outlook.com (10.152.74.156) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.2157.15 via Frontend Transport; Wed, 7 Aug 2019 13:31:48 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.69.107]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id x77DVi0O028918 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Wed, 7 Aug 2019 06:31: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; Wed, 7 Aug 2019 09:31:47 -0400 From: Beniamin Bia To: CC: , , , , , , , , , , , , , , , , Stefan Popa , Beniamin Bia Subject: [PATCH v2 1/4] iio: adc: ad7606: Add support for AD7606B ADC Date: Wed, 7 Aug 2019 16:31:34 +0300 Message-ID: <20190807133137.11185-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.55;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(136003)(39860400002)(396003)(346002)(376002)(2980300002)(189003)(199004)(4326008)(246002)(50466002)(7636002)(36756003)(305945005)(478600001)(2870700001)(106002)(86362001)(7416002)(186003)(47776003)(1076003)(26005)(6916009)(8676002)(2906002)(14444005)(2351001)(44832011)(336012)(50226002)(2616005)(8936002)(54906003)(107886003)(5660300002)(476003)(6666004)(356004)(426003)(126002)(5820100001)(70586007)(70206006)(7696005)(23676004)(316002)(486006);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR03MB2429;H:nwd2mta1.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail10.analog.com;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b7fd00ec-97a8-4ce0-1214-08d71b3b9a1c X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(4709080)(1401327)(2017052603328);SRVR:MWHPR03MB2429; X-MS-TrafficTypeDiagnostic: MWHPR03MB2429: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-Forefront-PRVS: 01221E3973 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: XstJhy1cuVOu6GBa8nJgQ+D6Rv5ZUJZrkTDY5kFaU/J3RU12nipF2EKxLS/hsJoMxQQv0HBAdxY8Ja1fHvf7DTRBTdCA1akjjPYsDQ2iFlSbAQtr5bE/UfzzO5MXNzi/k0Zir9VBs+8BtAZ9fovrh069135/+DqBDOZfJUVbIuopBOkhNe3J9tLBaoBIrsP4DWnlELyYPLOKH5SlwkSItKWVy2YPpyJJGdWanrE8HyiSvxVQS8xzqTI2YhUMmxl5VVV+x0GpkmixbX8zY5DadeSiOaCbdY/vjw4vKsdBBH92QP7gRpA9NkD2qlGKO6woAKybHlmDUoEcrAuqrcmTquvb/HMK/VhYZH+akS+ZAAbSarb84fhE9EwnDykm6YIibLqgAwSoHtOHVlipXSYp0KtMXlFUS++QbYyA+ftykKE= X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2019 13:31:48.8237 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b7fd00ec-97a8-4ce0-1214-08d71b3b9a1c 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.55];Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2429 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-07_03:,, 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-1908070147 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 Acked-by: Jonathan Cameron --- Changes in v2: -nothing changed 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 Wed Aug 7 13:31:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Beniamin Bia X-Patchwork-Id: 11082149 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 BE785112C for ; Wed, 7 Aug 2019 13:32:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC3482881E for ; Wed, 7 Aug 2019 13:32:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F892289A0; Wed, 7 Aug 2019 13:32:41 +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 2BB9A2881E for ; Wed, 7 Aug 2019 13:32:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388355AbfHGNcf (ORCPT ); Wed, 7 Aug 2019 09:32:35 -0400 Received: from mx0b-00128a01.pphosted.com ([148.163.139.77]:34824 "EHLO mx0b-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388123AbfHGNcf (ORCPT ); Wed, 7 Aug 2019 09:32:35 -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 x77DS392029236; Wed, 7 Aug 2019 09:31:59 -0400 Received: from nam01-by2-obe.outbound.protection.outlook.com (mail-by2nam01lp2053.outbound.protection.outlook.com [104.47.34.53]) by mx0b-00128a01.pphosted.com with ESMTP id 2u7wxfgatk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 07 Aug 2019 09:31:58 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Sopc7JJd5zK9F+0Fvk+BbPEqBjPVn7T47oYaQePWQXUvFfx8gc28N1IK0Hk/HW+HUnJHVlUFHKnwnERcsHhTzv8ekmOZ8PFtMXArv4rNpuGsyV43QD/E/oLS3XRaQbX0qbhVNpKLdtigzmmMA/QOadqYOWwhnh+/NTwdCsJYReEmvlqc8EpD1crCZfWh5AZUPVw/fClwnWVtfx7oFHqxXqAnzNX0EFbvzIPc0udMNVv+7DXXgkWl2NzaJkdjsFv3QPQajAdOoi7JMAtY0/IwTxQktIlRoHnEvyz8dE7zLrvMViIK4kX46RebHJajYrZqbb7o35aT/AbsDW44vFhKsw== 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=oETMkr97yzEp1xU4FUK7lcoSoEr6Bt8FHYMUiwCJUl4=; b=J74h99af7IahM9SMGY0RC7zmxIijDGUg9lgE9bsw9fGXPqMf2YvPH8SPuFgaQhX74vh/9jX9F4/Z8MV6mr6EzXnoCGZPAH62uD/GPqBuaH4J0D9SKecK/oOaZ2fFEHRqiNral5U2JJUPnCUTLHuqDess/0rIkruAjTdm0m2w413IolKZw9knBliW5c3Rc87vaEdfYp+eixSuVjNjY2ifbeB88JA0sWU+e4n7b6BAiyjm/SvXhdlSBtftNrQ21byYd/ffkpoYBh/X4XZfiB8cMR0m4/2dvXDgRgfCrUFO3FeTu2F1K/AgQ/pIWqhNGic43pvKTj7/LAq5pG82DBaCIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 137.71.25.55) 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=oETMkr97yzEp1xU4FUK7lcoSoEr6Bt8FHYMUiwCJUl4=; b=q2gUSUFq+kCIBY4e4/EJzbBmgFf8/NDM8RqxihtD5IPdCulY4llATpmEkGp0gLkxkEvfo7cls9jUBHAEkk1rRzznY+e1Do4ing3JIqNZLluaOUW+28mu39VzYFRCWQi7clsEQqdV2nQQ3bXnyldW2oTpCPXp+65WD+fwMXh3r1Y= Received: from MWHPR03CA0004.namprd03.prod.outlook.com (2603:10b6:300:117::14) by BN7PR03MB4468.namprd03.prod.outlook.com (2603:10b6:408:d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.16; Wed, 7 Aug 2019 13:31:56 +0000 Received: from SN1NAM02FT050.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::200) by MWHPR03CA0004.outlook.office365.com (2603:10b6:300:117::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.15 via Frontend Transport; Wed, 7 Aug 2019 13:31:55 +0000 Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.55 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.55; helo=nwd2mta1.analog.com; Received: from nwd2mta1.analog.com (137.71.25.55) by SN1NAM02FT050.mail.protection.outlook.com (10.152.72.128) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.2157.15 via Frontend Transport; Wed, 7 Aug 2019 13:31:54 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.69.107]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id x77DVp4e028935 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Wed, 7 Aug 2019 06:31:51 -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; Wed, 7 Aug 2019 09:31:53 -0400 From: Beniamin Bia To: CC: , , , , , , , , , , , , , , , , Beniamin Bia Subject: [PATCH v2 2/4] MAINTAINERS: Add Beniamin Bia for AD7606 driver Date: Wed, 7 Aug 2019 16:31:35 +0300 Message-ID: <20190807133137.11185-2-beniamin.bia@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190807133137.11185-1-beniamin.bia@analog.com> References: <20190807133137.11185-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.55;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(396003)(136003)(346002)(376002)(39860400002)(2980300002)(199004)(189003)(246002)(16586007)(7416002)(8936002)(356004)(6666004)(48376002)(6916009)(70206006)(70586007)(50226002)(47776003)(76176011)(8676002)(966005)(5660300002)(7696005)(4326008)(51416003)(316002)(2351001)(36756003)(107886003)(26005)(2906002)(186003)(86362001)(106002)(446003)(2616005)(11346002)(476003)(426003)(336012)(6306002)(54906003)(44832011)(7636002)(126002)(305945005)(478600001)(50466002)(4744005)(486006)(1076003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR03MB4468;H:nwd2mta1.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail10.analog.com;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8d5d2b24-d1a0-45ab-c7e9-08d71b3b9d82 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(4709080)(1401327)(2017052603328);SRVR:BN7PR03MB4468; X-MS-TrafficTypeDiagnostic: BN7PR03MB4468: X-MS-Exchange-PUrlCount: 1 X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1303; X-Forefront-PRVS: 01221E3973 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: UjOzTci4BphNBjW6FyUClOroEHjk35yFDcAEhbetukQ1g6Df8ZsRMBp+FtxwuAWwDJU/fTtNUma7YgwlTprCmlLJazVbcYHykBDu+6u2vZqM6Yem4H6qFR5eRinMTQHVKf6E7RYYHqKBNFuZlRI4VZ0y/yqJFbcC4MtUU0Gv+DiTM1f4Mpt5tNu5lcj3xPQU1wdd+P2+V6/wuNpLx/J5ZSd3HCcoFaVnThq7qoLpo/XDD3Q67E52SY40y4O4QYMVSVCM2f9cNodmSXm0PbR9ZBZLKG9kqUIC28ACJ8ukTLbu27pPu4g2EypvJnnT35QsJjCg53iiPwjdr+wr5Ks4lT+BR7veRnl8g97zpWfSIFiNLoW/OY4mFPI3dbjY7wUz16ILKBvg5kEorfu+xIOHgbpJPnlScaIiGD1dC+Iv9Sk= X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2019 13:31:54.8562 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8d5d2b24-d1a0-45ab-c7e9-08d71b3b9d82 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.55];Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR03MB4468 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-07_03:,, 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-1908070147 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 --- Changes in v2: -nothing changed 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 Wed Aug 7 13:31:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Beniamin Bia X-Patchwork-Id: 11082155 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 5B07E112C for ; Wed, 7 Aug 2019 13:32:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 484E02881E for ; Wed, 7 Aug 2019 13:32:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C62A289A0; Wed, 7 Aug 2019 13:32:58 +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 81D612881E for ; Wed, 7 Aug 2019 13:32:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388416AbfHGNc4 (ORCPT ); Wed, 7 Aug 2019 09:32:56 -0400 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:3352 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388311AbfHGNcq (ORCPT ); Wed, 7 Aug 2019 09:32:46 -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 x77DS0Jn029504; Wed, 7 Aug 2019 09:32:04 -0400 Received: from nam02-bl2-obe.outbound.protection.outlook.com (mail-bl2nam02lp2053.outbound.protection.outlook.com [104.47.38.53]) by mx0a-00128a01.pphosted.com with ESMTP id 2u7bcx3bdd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Aug 2019 09:32:03 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nuE07EvLQ/JTcmX8Aj7yvTDiSa04bgH6tnUgERHc39bmdgyfcLI0B8oTrjL7vQp6DxOq2HunpJAQuMcY3QsLfkRHg6qEnYO8yFkT7mVqY4938mYyGA3pyMZebtFX6c2aZdWk/hcgMdnJllN09+21tnjbYKPZC35Xf11I5Y9PyOKopPj7PRkDkALLrGOfAX+QRI5Op9n48018uCk81zviDm//z8Fkv1uxl43OEK3UKZdsTCQ1Cs0eWkrjkFOPrzNjPeo4sdgtB3e8eI+v5RlXzwz3XT/NyA+JxMx4+NvSIiDOrB2GuXvCGf9yUdcgT5oMLGdck5LElwdPmltUPsd+aA== 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=fnirtYnRBJDyHJHtscoGDPkexqJFoY5juiYbm9lL+Xc=; b=Pfjy5DW3innclkamBbZLBok9x70ALEIKp4G/Zur3+a+3iKsFHVDAneKiQNFR/0IzUUrF+cU8d/MmLNu44Q6EmKVQCRZj7Olu5LCsH9cEuA9hdjniTzzSCmOoWi1jOFV3CFKUsOuCgYZK9K5EHhvHeCrNV6HVFm8Z+XyjS0JFKe7k60z/q0skHEgY2+VuhWERx4dHHS6bX0BdTJkfwPAyPDbl/euOcYV3giNW6qKM50sWadq8GTSX6YJ4qwQECJToTR3evGOtRRqbcBwjKs6q+8sT3Ok5HK7rvFdleM5n/Xm2YNWOFCcYuY23IpQNTPacDtHejyVYu0wdo/DwFVjtkQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 137.71.25.55) 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=fnirtYnRBJDyHJHtscoGDPkexqJFoY5juiYbm9lL+Xc=; b=yjA/WyYWTJKV7JtSf91z5KhwIqfIg29wNqWs1QuirsWogDVETr2GPASXhD3Ibnd5RC4Z+ojiXdWTgH/R+PPBLVDL5A3ifhIOyIu3dEga2ASF/e8FQ6ylFrJDv/qB0ubV3Z89Vu75RjX2EaFMelsLwr9jJWJnSX6OAMY5yczGRJY= Received: from DM6PR03CA0019.namprd03.prod.outlook.com (2603:10b6:5:40::32) by MN2PR03MB5136.namprd03.prod.outlook.com (2603:10b6:208:1b0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.14; Wed, 7 Aug 2019 13:32:01 +0000 Received: from SN1NAM02FT019.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::209) by DM6PR03CA0019.outlook.office365.com (2603:10b6:5:40::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.14 via Frontend Transport; Wed, 7 Aug 2019 13:32:01 +0000 Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.55 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.55; helo=nwd2mta1.analog.com; Received: from nwd2mta1.analog.com (137.71.25.55) by SN1NAM02FT019.mail.protection.outlook.com (10.152.72.130) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.2157.15 via Frontend Transport; Wed, 7 Aug 2019 13:32:00 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.69.107]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id x77DVuHv028985 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Wed, 7 Aug 2019 06:31: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; Wed, 7 Aug 2019 09:31:59 -0400 From: Beniamin Bia To: CC: , , , , , , , , , , , , , , , , Beniamin Bia Subject: [PATCH v2 3/4] dt-bindings: iio: adc: Migrate AD7606 documentation to yaml Date: Wed, 7 Aug 2019 16:31:36 +0300 Message-ID: <20190807133137.11185-3-beniamin.bia@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190807133137.11185-1-beniamin.bia@analog.com> References: <20190807133137.11185-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.55;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(346002)(376002)(39860400002)(396003)(136003)(2980300002)(199004)(189003)(107886003)(7416002)(966005)(54906003)(316002)(50466002)(478600001)(2351001)(6916009)(106002)(2870700001)(2906002)(53376002)(36756003)(50226002)(4326008)(14444005)(8676002)(6306002)(305945005)(7636002)(86362001)(246002)(5660300002)(8936002)(5820100001)(70586007)(70206006)(26005)(47776003)(7696005)(446003)(44832011)(76176011)(126002)(426003)(23676004)(476003)(2616005)(11346002)(336012)(186003)(356004)(1076003)(486006)(6666004);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR03MB5136;H:nwd2mta1.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail10.analog.com;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ba7d4878-80f7-4eb6-a395-08d71b3ba0b3 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(4709080)(1401327)(2017052603328);SRVR:MN2PR03MB5136; X-MS-TrafficTypeDiagnostic: MN2PR03MB5136: X-MS-Exchange-PUrlCount: 5 X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-Forefront-PRVS: 01221E3973 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: KwIfZ3JT3XMpm/aoztC2lXj0IoNseRblVbzG7xHjReIcWtXp59r0IS5AgClEGCDMlNRyfyct4jr5tfGluE0pnXS6Jvvkhd2hIMqAOjQ0fJbuYweqXAZqa4x4uPz4Z9FOYjUWIeQ1mLcmR8SF1VnMISQdqu3WCsfRilZ2J5UdB8sALeZr0uLbsAsjiEGYY8MuvcBk23Jl/XQWJE9KBC5ffLZJwiBVq0KFn6gSZA9PYKkF6MjrscMFAh+vTExnCqDRiUXJPqJxFWFJgc94xwbm3o6dN6wucWcDj9TSJ+o3TJ6OPoiB8jgQc2rAWdtFby/4vm+14gkMPDBsofsGRegTW5e4alzrc3hwUEUMzu2yvynaHUvL7LXxdqLwb3mHyYEdc5VmMSX3NzS6hc4O4Ty6Piry6QPTPx/+35NIOmu8D1A= X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2019 13:32:00.2566 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ba7d4878-80f7-4eb6-a395-08d71b3ba0b3 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.55];Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR03MB5136 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-07_03:,, 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-1908070147 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. Signed-off-by: Beniamin Bia Reviewed-by: Rob Herring --- Changes in v2: -old txt file was deleted .../bindings/iio/adc/adi,ad7606.txt | 66 --------- .../bindings/iio/adc/adi,ad7606.yaml | 134 ++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 135 insertions(+), 67 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt b/Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt deleted file mode 100644 index d8652460198e..000000000000 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad7606.txt +++ /dev/null @@ -1,66 +0,0 @@ -Analog Devices AD7606 Simultaneous Sampling ADC - -Required properties for the AD7606: - -- compatible: Must be one of - * "adi,ad7605-4" - * "adi,ad7606-8" - * "adi,ad7606-6" - * "adi,ad7606-4" - * "adi,ad7616" -- reg: SPI chip select number for the device -- spi-max-frequency: Max SPI frequency to use - see: Documentation/devicetree/bindings/spi/spi-bus.txt -- spi-cpha: See Documentation/devicetree/bindings/spi/spi-bus.txt -- avcc-supply: phandle to the Avcc power supply -- interrupts: IRQ line for the ADC - see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt -- adi,conversion-start-gpios: 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. - -Optional properties: - -- reset-gpios: 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. -- standby-gpios: 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. -- adi,first-data-gpios: 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. -- adi,range-gpios: 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. -- 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. - -Example: - - 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>; - }; 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 Wed Aug 7 13:31:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Beniamin Bia X-Patchwork-Id: 11082151 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 9D4DF13A4 for ; Wed, 7 Aug 2019 13:32:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B2A5289A0 for ; Wed, 7 Aug 2019 13:32:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F40A289F0; Wed, 7 Aug 2019 13:32:57 +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 57FE22881E for ; Wed, 7 Aug 2019 13:32:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388700AbfHGNcs (ORCPT ); Wed, 7 Aug 2019 09:32:48 -0400 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:3390 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388390AbfHGNcq (ORCPT ); Wed, 7 Aug 2019 09:32:46 -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 x77DS0Jo029504; Wed, 7 Aug 2019 09:32:08 -0400 Received: from nam05-dm3-obe.outbound.protection.outlook.com (mail-dm3nam05lp2055.outbound.protection.outlook.com [104.47.49.55]) by mx0a-00128a01.pphosted.com with ESMTP id 2u7bcx3bdh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 07 Aug 2019 09:32:07 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CvUI4sCSwP00qTGAe6g9wb1SM29aid0zsynatv7hMpS76J0UHH/ksjHSjFdRa9E3h6a3BvwpU9UkITZwlGJW5Hqhxd3XdSrvAyaQoQmCaLU6eLc9Oz1l+mAbSUjOwSSSWnZtYaX+ebDPH35hY2kzOwjaxvcUFE3TfmIvFcEjc1ANflnjsWoTMUrawYrEdBe1FRQTr7nYqCqtY3uQNB6JvjfPT7lBEGo7Lx1PymjLDqn852BKE3YJrscNY2lh/Pa0lMhpsS6tYzuHxZPDh51Y2hrtytThRgq8Suux4ECBLrr7Jnfmv96GugBCHPOgwXUW0hhjtvlSHyB6mtwcKPAiKA== 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=hzUsn6l388YzL6ZIOqa+iLPYsO9aW4QGiq3j+MSBH4M=; b=AvLZKYAuU1O75+sZoT2O0z2EbUlSPlK2qdlyhDyefzN08UcrvfldzjiS2MgIKOzcgaMA2UWUZQVNtVnU1qgPEA/+q0HHvtyjcOND8fyiUQpae6Ep5UybAWZnuYRgjQHbx9mNNeL8fU3OFSTl6M4ZQkqGc3ehgpuKq/YYWMEeYRxAq0w47iX1aeA0/n8nnDjEAyqsmIVEoNOzi3GHUvgRXS+tXmhA2oBliEpEpcifzwAhcAlyXhE6UbKrt/VYZPRnrSudkSphnDjzSMOdOpAXfIY/MmmE9zXgEoYT8UgLFca4tSPpZyaiJX3/Et01cMwairr3mb3kZLaRxh0CvGcHMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass (sender ip is 137.71.25.55) 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=hzUsn6l388YzL6ZIOqa+iLPYsO9aW4QGiq3j+MSBH4M=; b=PgZusNeTlcumgKhIFpG7TVWj3YorOgYFMMkc366wnF1ELy8pvbZa4MQ7PGD5LBnEtmCShdMfV4sdzT7xRwHxGbTXWZ9CnGq73poxHe8SpUTjEeRlAGV8VKiD44yaB1Qb56gP/wQtM7ZpDR/mYMZHKeZlMOx2GLWOQJjlSiElnn0= Received: from BN6PR03CA0083.namprd03.prod.outlook.com (2603:10b6:405:6f::21) by DM5PR03MB2681.namprd03.prod.outlook.com (2603:10b6:3:43::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2136.17; Wed, 7 Aug 2019 13:32:05 +0000 Received: from SN1NAM02FT013.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::200) by BN6PR03CA0083.outlook.office365.com (2603:10b6:405:6f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.14 via Frontend Transport; Wed, 7 Aug 2019 13:32:05 +0000 Received-SPF: Pass (protection.outlook.com: domain of analog.com designates 137.71.25.55 as permitted sender) receiver=protection.outlook.com; client-ip=137.71.25.55; helo=nwd2mta1.analog.com; Received: from nwd2mta1.analog.com (137.71.25.55) by SN1NAM02FT013.mail.protection.outlook.com (10.152.72.98) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.2157.15 via Frontend Transport; Wed, 7 Aug 2019 13:32:04 +0000 Received: from NWD2HUBCAS7.ad.analog.com (nwd2hubcas7.ad.analog.com [10.64.69.107]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id x77DW1v0029042 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=OK); Wed, 7 Aug 2019 06:32:01 -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; Wed, 7 Aug 2019 09:32:03 -0400 From: Beniamin Bia To: CC: , , , , , , , , , , , , , , , , Beniamin Bia Subject: [PATCH v2 4/4] dt-bindings: iio: adc: Add AD7606B ADC documentation Date: Wed, 7 Aug 2019 16:31:37 +0300 Message-ID: <20190807133137.11185-4-beniamin.bia@analog.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190807133137.11185-1-beniamin.bia@analog.com> References: <20190807133137.11185-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.55;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39860400002)(396003)(136003)(346002)(376002)(2980300002)(189003)(199004)(186003)(26005)(426003)(6916009)(336012)(8676002)(2906002)(4326008)(966005)(7416002)(106002)(2351001)(5660300002)(14444005)(16586007)(1076003)(54906003)(44832011)(7696005)(70206006)(76176011)(47776003)(8936002)(70586007)(305945005)(51416003)(6306002)(2616005)(126002)(476003)(11346002)(446003)(86362001)(486006)(246002)(36756003)(316002)(48376002)(478600001)(50466002)(6666004)(356004)(7636002)(107886003)(50226002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR03MB2681;H:nwd2mta1.analog.com;FPR:;SPF:Pass;LANG:en;PTR:nwd2mail10.analog.com;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a1a1783f-908b-4091-d9a7-08d71b3ba332 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(4709080)(1401327)(2017052603328);SRVR:DM5PR03MB2681; X-MS-TrafficTypeDiagnostic: DM5PR03MB2681: X-MS-Exchange-PUrlCount: 3 X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-Forefront-PRVS: 01221E3973 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: 05od7/1TmUlTDP6OAUHD3uDw/WlaiBJT5DBISk0+kolzdDyG0rld1tP3kcS8iBj1a6yIHLn17IMAMG4d/x2+PAqjvORtwD6L/mK8/rZgqbPWiG2tH5OWbKHwJ/EruSM8fRiOXZCO91Vq/X9bIWJB3Gafohg0TQC1FjQZ/gsMhVEwdsEuwZbE8qTq37EAO9DFT7uaH4p2l7+rB7yT3cRa2C4CK0liQZ3z43tzw/Cj9+DIwSyYJAXieoECRU3KRGuti/OsOowhXj1mkA2nD0yedATtlaK4N3iPj1Z6Dq2BEFClJI9NxtbGuVmY+WDGRqYpWoDnzY9g4a2SzJLqsRR98x+4UVAEx7RXFUYcgbavt3V5jyDp+gaaCjmKbdJB3AILBS+kRw6XzlADe7m5xBz96EMfSlEq8OPUoq3YBg4aYiM= X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2019 13:32:04.4158 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a1a1783f-908b-4091-d9a7-08d71b3ba332 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.55];Helo=[nwd2mta1.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2681 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-07_03:,, 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-1908070147 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 Reviewed-by: Rob Herring --- Changes in v2: -nothing changed Documentation/devicetree/bindings/iio/adc/adi,ad7606.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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