Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933278AbbLHKWg (ORCPT ); Tue, 8 Dec 2015 05:22:36 -0500 Received: from mail-by2on0124.outbound.protection.outlook.com ([207.46.100.124]:29920 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755549AbbLHKWc (ORCPT ); Tue, 8 Dec 2015 05:22:32 -0500 Authentication-Results: spf=permerror (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=freescale.com; From: Haibo Chen To: , , , , , CC: , , , , Subject: [PATCH v5 0/4] Add i.mx7d adc driver support Date: Tue, 8 Dec 2015 18:26:19 +0800 Message-ID: <1449570383-25716-1-git-send-email-haibo.chen@freescale.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD026;1:nBwyNFOpbAjuBEdZzu6HQni+Evse3WjWaps33fuJ0UDNCabne7A2TlDrHt72QTt4lGJ3WIvX31ndcXAxilFL00mCziaO2vMrpqbI3eZi7GUt2gXF2se8l7ZSceUTvdVhDt2R+C4xNJT/MxkSXzu3i67jtWSZIFxhMLisBs6/kgZIg+KShgcu31a+fdk3PeeZZMPhZ9ZJMXiOBzhQFTyr84Qpor6fMsg7gFCvLGRvNvLQx1/OI7RfJTt3eE54OkUkpCoinquxLA0yUHwzKAc7YweY8Md34+/wW+yw9CPg8di85zKlc3l+3NKfvPDHca+9kkALLAqJuRzdy+NdoA0G3QQltskuw7s7YY5OEyNitwzc0fqMJMJiePOxfC4Oh8tIjAovCgItKBjLO2N8Qft0E3MXWya4kHV5JaO4MG7EOh4= X-Forefront-Antispam-Report: CIP:192.88.168.50;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(448002)(199003)(189002)(87936001)(92566002)(1220700001)(81156007)(85326001)(2201001)(5008740100001)(50986999)(86362001)(5001770100001)(189998001)(36756003)(5001960100002)(6806005)(50226001)(104016004)(48376002)(19580395003)(586003)(97736004)(50466002)(1096002)(11100500001)(47776003)(77096005)(33646002)(229853001)(106466001)(5003940100001)(7059030);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR03MB1392;H:tx30smr01.am.freescale.net;FPR:;SPF:PermError;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1392;2:kLXadNVR6gTF9Ka+/Sbj9CqEHdJpydwOggSaszAJmWpmdt1Era6y2Lm0hO/pUcRXUVExydO98+Yat44ZhL/v6O0+e8dIhpDnFKY+qki9TxZURTY/K7n9U2mOp4ECncRq54kJ6yxIO3un34n7yo+SYw==;3:9QVONOfmoguXM2mkZHLKmM9AoGaK7m6iZw7+4KrN4DfyY1oUwQB8oT+v+Wx9QZ/SVi3AuOXpf7U4oB4LRxZqOcDoRMo9OZ5q+ZSNnl6jBVd2vLxwThbKIE0vCuWoKLjwptNLCP/vwNFP7iyZ88CKu3llqYg3HPXa52gHWz/1PPQY94pD9HuqhMW8dIdR4GZLjRm56F+Cc8MXXEQfWudxqVhex3/Yfbh9Kq508eDd3fs=;25:/H+l3avr7LuQZxRYj0O8rLPMpuqzo+IBfKl3XxChaxFz81sRl06DK7pJPObWkt/zY1paRHiDNQTUGbycSycKzp9VzWDQYe6pDpX5iQTeC6WtTPOjphSWtjAZzkpAVFGTgCAsvRZQTpmsFLM2YtgDmXI/5Lms7R2Ozbr7YDyhNjQC48O/tk2Vktu33zFfQm8THjaWDZI16cc1mIBWMiiV5epLCwa0IDZgHeiVtnjot7nICo+WVODn5MRID9YvPLWw X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1392; X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1392;20:mElJ+kcskRMF43G9k1bthjM+b6uGKemTY4BNjBGrVUa3/2SB4QLqGo0tVv/MkStGtLQUqSIOPXUPN9GpQcqJoyVInnj4VJkNxwhZ6Up1wdc+DxKacPy2f7SJKdiJilIdF0T1WUW7SRXYlo/A8sltnfuyUKItjw+6pszx8VP9QN/zDy9a3ckabgMsZ4wFJRkXR7pD8DEakY6ausrn0GGC3XXcKj8mp4fZ+Hl0yRTX5PRQ2v70qsyfThzKeyowfHt8AxTpe3Za4l5m80wEGyg/AV0vmzhGVKxLOKtSnnW7O0h1dsfs0Hgi5x29QkC0O9mtVXMc7ngsgvI2RYqrm3Yeql8nIkfCj6o1bDr4EFSdaU4=;4:VVWg4zOnhdn+rh0Y+z2o33hlRmALUR5VylEXHXmfuXFRlmUmy1Eeog43Rd3CC73D8JlRq3oBhEtuyoOTop4MQ2Gz7qu6vvXZoN/ZLNOmQudKiF1WrrvrOgK01IuRiy6GQjzEaVbUm3E9VpWEuAvteyh84lI4T7slSUDGWZjMfhNqwbMJy12AdQivA6j+c2iqsYgXKpIwT6+nvQ6J/QiOvYvQ239/8LUZ6A/NDEuHYru7eHw9s+8TFQgd6igS7ZOXSv+P5WXZzCfR1AlcjQQ8lp/irNA4n+CuDBNfjf8OiMv5ae3k1I11OAF4NeZFnq2PlQH5e3r2HLwINjJwLVtisGcDq61v6vZ+9LmUgPIeuFngebE020uaJ5LF3FrkCwdZ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046);SRVR:CY1PR03MB1392;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB1392; X-Forefront-PRVS: 0784C803FD X-Microsoft-Exchange-Diagnostics: 1;CY1PR03MB1392;23:rAIif5XsJGJe0XbIP8zgMgnz5uEbwdY+i9O/dEG/8JCoF524t84nVlTDCnJUm/R6NjDDMh7eFp9FJbrmAX+d24OagkAQqF/IR3YZZqVz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hYaoKzWUjJCo1YbynaeEiDAsRb5p4cOoqt9AH+Hrp1kemUQHZ235CLJOMlF6tI+jfSZlPrTAWJukMGrCg= X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2015 10:22:28.6361 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB1392 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1942 Lines: 50 This patch set add imx7d adc driver support. Changes in v5: -call imx7d_adc_power_down() in driver probe when iio_device_register() failed -handle with adc channel conversion timeout in imx7d_adc_isr() Changes in v4: -sort the include head file alphabetically -really just clear the bit 31 of register REG_ADC_CH_A\B\C\D_CFG1 in function imx7d_adc_sample_rate_set() -add document in imx7d_adc_isr() to clarify the clear operation -add function imx7d_adc_power_down() -adjust the format of the code and add some small changes Changes in v3: -move down the irq request in probe() -remove the property 'num-channels' in dts -remove some unused head file -add clear register operation in imx7d_adc_isr() Changes in v2: -prefix defines with IMX7D_ for all the register -use BIT macro to define a single bit -remove the dma_en from struct adc_feature which is not support currently -use static const array to replace the switch case code Haibo Chen (4): iio: adc: add IMX7D ADC driver support Documentation: add the binding file for Freescale imx7d ADC driver ARM: dts: imx7d.dtsi: add ADC support ARM: dts: imx7d-sdb: add ADC support .../devicetree/bindings/iio/adc/imx7d-adc.txt | 22 + arch/arm/boot/dts/imx7d-sdb.dts | 10 + arch/arm/boot/dts/imx7d.dtsi | 18 + drivers/iio/adc/Kconfig | 9 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/imx7d_adc.c | 589 +++++++++++++++++++++ 6 files changed, 649 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/imx7d-adc.txt create mode 100644 drivers/iio/adc/imx7d_adc.c -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/