Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760704AbbKTP7F (ORCPT ); Fri, 20 Nov 2015 10:59:05 -0500 Received: from mail-bn1on0146.outbound.protection.outlook.com ([157.56.110.146]:13568 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1760087AbbKTP67 (ORCPT ); Fri, 20 Nov 2015 10:58:59 -0500 Authentication-Results: spf=permerror (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=freescale.com; From: Haibo Chen To: , , , , , , , , , , , CC: , , , Subject: [PATCH v3 0/4] Add i.mx7d adc driver support Date: Fri, 20 Nov 2015 23:48:11 +0800 Message-ID: <1448034495-1759-1-git-send-email-haibo.chen@freescale.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD046;1:OZJirU84CwxvxsO0xnoS7ScMiRxok/JwX7G8x0c69Kw5BgvhdXubgwSGn91uQxP/mtySXpojoXe0U3IPynjeoMW4PYdZ+VaGRJuhdCn6s+aQtUnq+XX6bhEv8GADdVNsAkNSixg+/kexdI2K0NNEl3trFX8iTmSOokhXfnYym7dw0O5kbqmKvm8mIKNDejuCIXTXTGJAqlUp2QJVAkYRVqrNzD6JfXgCudlznhpfwH7HuBp1nmL4WDONVXbJcIgn//PmfLx/WrDEfI00Auc9jCPnLXwuJqymjHmXGu8MPK27Ij0HcjXYsfxY1FF6vyqPFOdA8JcMNq4oaPpbk2Zx4r+jOkAHJrlVVoQrjKt1idhWdvIuUHpOj7VKOfRo1B/FETWkAgD4RC+pRFiNTA0y/Ng2PZTLyMgA7H6g1cGtcUI= X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(448002)(199003)(189002)(47776003)(50226001)(586003)(86362001)(48376002)(6806005)(5007970100001)(77096005)(50466002)(85326001)(81156007)(87936001)(5001770100001)(5003940100001)(2201001)(92566002)(50986999)(36756003)(229853001)(5001920100001)(5001960100002)(19580395003)(69596002)(33646002)(106466001)(104016004)(189998001)(5008740100001)(97736004)(7059030)(921003)(1121003);DIR:OUT;SFP:1102;SCL:1;SRVR:BY1PR0301MB1222;H:az84smr01.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;BY1PR0301MB1222;2:9DG2S9+CQ0DEzwJatqSKCNp5+jOWj95BYJJADl7oP87mLxVW05tL1KJ1GnSWR5vY45/qw73zfl7KWl/aNVkcWEsMhzcavDElHnzKZltfdq5EljszqZk9RCQCYt5dF8V1fmBUJXI7OVXo5aDbL5vKTeSgCnBDq9aPjIVWcJUDiQI=;3:FK2uaRn25sBf6rp7w18euF0fcYgsN+elxBkKQmCKVkU4uQJKTInZBv5Z6bEkOwkeWWxV0bhWwxli8yX8jt0DEdAdUbImdsdjc/DZgB3kLJkss2JtDBg6VO9f1k4fYDHfjJ8wVZdp0BubKDJkGdB10EjZCJNB7RKPzpL/j15iq/AxLFROgiMe/CnmLjFOCslpEzmo3X7Gbh8uShoiIRrt6b5uYyb88MYnGQjYhk0vBkE=;25:SbfwyeR1ANEI6f5ZzT8yCUGoDlBIMNrCKyf/qkn1N4Cd8r3gGcxC0z2e/BeqMJLBb7v65PhY6Se0Dg8CesRM3BzdMHS13Xp52GhAeZ1aJHGZ2qpsgUcnHA5v1DpktnM0A0OPSxJTDUnmTwrPs4zsaavY829leQlN06ZcUbxRP8hRdivoBu0EYCiuaGrOlRylkLVLFjBze/BeBj35As7TbiP5AtjwIIX0JDZ+zUqe4urPUVnm48ZPTrVLo4d17Xf9 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB1222; X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB1222;20:8jnl+Gn66PiB/JvwyLHF3NYAYVGjDeWJOtAmNOIKHcd5YrFQCxqxK7vR08cdQhqeYSeHLygfbqpRUFsgIB1enthoFE3W+tPYplAyZpRjKgEydTWHmXowdpJaqg0SaPML1ohcS5tfNoxgy4KOXlMvD46Ech07Rmy5jMaAeafeGZyE7PF0wCuGE45tqnnFBEPmtcdQul8Z0/7SKB4V0EfWbLZ7YMCT/BwmiYyzVxR11MoKLZoVXJnOw9fTuPjhGzw2OQb2aQ2nuj3rcWi2gqyKMbbcawM+9nrgq5tY8xBQRtjTEqIG16hOX9Xnk7OZ6E/nukVfSmklJ4jHlgN9LEF8Y3FYlTc+IdL/nOqJZ+v0Kng=;4:VyIyNJlNX7of8w7Cm6fjR1flcw54a1BqZvw1zgXzVzEMKufMAbw5tak/4NYB9X8mX17glhqtYlZBrNchshWFZBQzgsFqyIMNc46aP+sMsqAAVyaT0kRcf9r8PhglWN/I35IdClYmIjWHH/okZlh6A9stju0BatfqTyMJP9qQzB4ms4MjDfO3fwqod1x2nr/MBnF6fUA7Wq/GBhXrp2KkLIlcyOztn+RH8P+BrAXedQWiJItiM5xnnl4Lex1j+q8Q+lTYeRV4Ngixk07zdO5RPqcOpu1wYBGLyiwW71Rtr5DKj5UTyKFkLrJDtp/DoY7QLSrUKVGemQ2jcFo+HtR9aaWAIJYclgu8iAJG2+qiUfqfwtP/X5NUNkeegLUyyWHO X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(10201501046)(3002001);SRVR:BY1PR0301MB1222;BCL:0;PCL:0;RULEID:;SRVR:BY1PR0301MB1222; X-Forefront-PRVS: 07665BE9D1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR0301MB1222;23:4kCPYlQzIV5MyU1hk5q/6QF0mHLBfd8/j3/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JKnhYJz7Dw8h0VeS8ioMgDjrN2iPsWQvXthNlW5hl6?= =?us-ascii?Q?5I/iObR9aXWfn4H4xKO/V7aH7cfR+omOrCJtHPJiPAciFed069HLl2A116Wx?= =?us-ascii?Q?7yH+0NYfNzL930i1ozxCj2kGW?= X-Microsoft-Exchange-Diagnostics: 1;BY1PR0301MB1222;5:1K3p20N8qO8tP3uI6F2wYHj7+75YV6VhkjIBK4w2PzIKrQaqMPLwmU2RMghpav744Jw/OYDFZqEgZ7kYCgx4QZCG11+a6h2CKOtdpFUymCaaTZJjySo1BfqnNMyAmP7ipMjVPFZdBBEMqcuJMg8+Tw==;24:9sFJQgZ9uBQGxG4qxu40D1RUTFYb7WbzTVj0rvIes7t53d08FzyQu10TXVehIzPjUb1ysaCiwJe096Vjh2MAmjFcFy40Y2Zw4m02YFNSjmo=;20:ITptmuvUFz4FNs/yu+zZ+UHtTwydSwmavEAtB62mp9BPdYJ2CAJqmncT8kLrRZqftpE/bKewTEpzQh6CSDX4dg== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Nov 2015 15:44:23.7114 (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.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0301MB1222 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1475 Lines: 41 This patch add imx7d adc driver support. 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 *** BLURB HERE *** 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 | 25 + 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 | 570 +++++++++++++++++++++ 6 files changed, 633 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/