Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752356AbbKINYx (ORCPT ); Mon, 9 Nov 2015 08:24:53 -0500 Received: from mail-bn1bbn0104.outbound.protection.outlook.com ([157.56.111.104]:53472 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752109AbbKINYn (ORCPT ); Mon, 9 Nov 2015 08:24:43 -0500 Authentication-Results: spf=fail (sender IP is 192.88.158.2) 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 v2 0/4] Add i.mx7d adc driver support Date: Mon, 9 Nov 2015 21:28:20 +0800 Message-ID: <1447075704-4605-1-git-send-email-haibo.chen@freescale.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD008;1:z/e7iAZTM3D7WGJwo/NtYfN+Q8JZQneegdMYy1emV+wI2ZF6zY7EOoJoSPfAt4nIczzGGO8fCV1y1CVtjahGsYDnuVol+vUbn6fRdXFSawhd7xpV5i2HBajT4EH5jEfZdIDKkBhI/L+s+Jz/CMjFIVxQ1Is3GV+VwcCl5SmT9iU8rZ3ytZLwHFSwS0L1LlZjg9cSCtR8hlFOKBKN/Fi5L3aQ8/13gEehx+OTe8vl8FkwTXP4MXUrwlDQEJz0GeY6JKgjZgLcnUw+CgKtB4tsIFJwxVw5za5g+qwQ4u7+C3Xq5/mIbWutLrthxRsVT6W4gOyk7ERhFsugY+I5QFCxP4gkwpKmWd+xLtY65b4t08nhX7kcLeCm7HtXP9ppx/nYFI45ZNvNyYRa3kAU3eB0jw== X-Forefront-Antispam-Report: CIP:192.88.158.2;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(19580395003)(50226001)(6806005)(106466001)(69596002)(104016004)(229853001)(77096005)(5001960100002)(97736004)(47776003)(5001770100001)(81156007)(11100500001)(2201001)(86362001)(5003940100001)(5008740100001)(189998001)(33646002)(50466002)(36756003)(5007970100001)(92566002)(48376002)(50986999)(85426001)(87936001)(105606002)(7059030)(921003)(1121003);DIR:OUT;SFP:1102;SCL:1;SRVR:BY1PR03MB1386;H:az84smr01.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;BY1PR03MB1386;2:sdMOhNt+vCwJByq7/FHNX43QOzkL7lWttgt1ezUk14GhJGqDxNw3YrHY4nOqORWHPpIRvLuU8PqbOnkvwn9NVcQKf5zokFzWmaJvyenJeIiH5YDVP4pbDcKOm9xdd73DK21KvYRFz5F8uKccxgLyMeKaq8jEgpyc6coLwsa3KCY=;3:GUIbQNKch2cBaKz+mahsWtS5PRvlIuLR2ADOjn/R2jJ6P+i2ksDIVSQkXv2sbNvHpFXGVP6IqoRvyMYXyPFWGXAOtDlvtklzlFWgkBrH7fxw7vu9e2QqgCY9qzxVoWHTeqvITwA2W1yLxpK8kb7nfOUlGE6g5vRbip5nv91L6Yd+j9of13MdzcwmeZ/pWMJykbiuP56KQ0yB0iLJO8TixZ5aoH4IdYFidHemB26D+9k=;25:ws2c12ZpyNtuaw0y1DRdzoH6mM/gyLT5MKtZfi1iyg+ME13yirLkSuTB4PXBJWLLsTQvyqpN8I7D2eFwfVEAip0afXhyzUbjYrUvNAOpJY5f131LXoJyok/+MInYMRccB8O+HPuBw6Y3F6jHGGQ8cXLfKYq8qXYRX5DOpiYUHr8weBWLJMEovU240rOhgskYjEVCn1BH5cVVxiAXnhlgRr17bc5PQ7YffYbIm0JukgK9vYaJ+IPIVi6i7/ORM13X X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1386; X-Microsoft-Exchange-Diagnostics: 1;BY1PR03MB1386;20:4P4euNkv25dlkXliG7GuTh9N8koumt35JtTzmMW0YCNkpe9d+NG5/iiSNkpjimkXVkNeLcXUav8Qoxj0x1dUip5XBraYlyLVzlz9a52ResdwElWWQ0FCRwVWCDrlCeaLZJloj4DSsjPKWD/RagAVbIUtHMiuVM3reMfGlgs/8Ad9KWvlVNOpK9fQbNj+n6UcVHGsxq9Di1T0wNUG4K9KhbiILe3nZYsbMMyu1Lnj3Ma+ilBoQe2y0jxlbWamgVJW+43jV2VcpkfDX9rYIoJ3AiaAxpY8HGikwdM3Fvi2m2g5+mND3od5Nzn06OihFvALYk/z51vMPzQXVv+phwPYlA+cVTYZHRfM5SF4l2wPMJQ=;4:UhhHkKM2LcHPhW7NArSiOZSCzLKko93x2JRw6xjVpT3YqkB6Wl2js4DeUHiW+08a3yJt1RDVALguyJKJXMDlE+JFdCAbaZxSyqEhGJKU4pHYTmkXtDM8+QGq+MYJFMDQ1cPx+ayhEB1TC9wY/yGNQpL8bR8Tucyu2MRIuk0GSILjzxvwdPAoWvkCq0GWb2pO3wyIvKvHV3S1alDf3NjsIksnvcZuBN/dtEIsRcwhzpyhMAvkHXVpPcVZYlXD4E+ICp9ycGYeWkyu5Ic/SLIRXbl7hlg3vKlSi4K3e1rZyZ6paUQFNfmXCI9E1++odwprMpBMtyJ6TE/LA6rGxFTRhiAorjCUiU5Yp45+JUnt4ztWZozH6KDwCjV4FOFVCrV/ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(3002001)(10201501046);SRVR:BY1PR03MB1386;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1386; X-Forefront-PRVS: 0755F54DD9 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY1PR03MB1386;23:Q+7WOb9zFUjyoFrbr59oBDVCJ9VfGH6ilTufw8aD1?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Her2tFzXKjZQY69nGaU6j26+6G0PTa?= =?us-ascii?Q?P77a4foa3zyAL4pnRH4G+uszf+f76XAiZaLj6WhZ2p+F/SLa6+paKwByigIb?= =?us-ascii?Q?xyEtLjDYALq4OxV+BD6JmYa1Y3U4wQyYM/3cBW/X+G6x8jH0KOexH1KpMha5?= =?us-ascii?Q?X1oUgs=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY1PR03MB1386;5:nvoRMgH1iE0r9TrKnuPdAplcaTACIQKUn5zr6DE4svpEZOFWGv32Y7kCYbDLD7/n22KgVKRAq8hw0M3fzyTAh0CMGDbLApxwJ1ruSsWf+y0zVlZu29GMlwHKA2ViI38/hUI1NQgKM6slzCkgManE2Q==;24:wmJhJVQnHUrHUL6EJrdIoPwlAUglhdaVNCdIQDLmhv0dQe0gtY3+x/hveh6e26hQ8k+oETvixiWNrGrjD4/JT6ft76QrAtFZBbBvjzqRmLQ=;20:hzCSAMSvm8z3RWwrS2Lk0xGq6jd2LyfTzrKABiF4vLn1EMr8GSzt4Vph+2yAznRQdtYWD97g02ehydAUQ7nbZg== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2015 13:24:40.1222 (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: BY1PR03MB1386 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1278 Lines: 32 This patch add imx7d adc driver support. 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 | 26 + arch/arm/boot/dts/imx7d-sdb.dts | 10 + arch/arm/boot/dts/imx7d.dtsi | 20 + drivers/iio/adc/Kconfig | 9 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/imx7d_adc.c | 571 +++++++++++++++++++++ 6 files changed, 637 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/