From patchwork Mon Dec 19 10:13:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 13076415 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1ECC0C4332F for ; Mon, 19 Dec 2022 10:13:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231655AbiLSKNq (ORCPT ); Mon, 19 Dec 2022 05:13:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231679AbiLSKNm (ORCPT ); Mon, 19 Dec 2022 05:13:42 -0500 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2058.outbound.protection.outlook.com [40.107.22.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24F09A449; Mon, 19 Dec 2022 02:13:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KANDYTucG96tqkZKV9lW8SmN+Gx32iWUNgZyd9b4TnxJ66FEws4j80QAOvLrSSemV+WdqWM0889p6Aj5XDfxNCDzKEMgEGIK4//zwOWP3V6kvnkPkXbmsqkR669PBDhZjYN7r2gHQ66UF3cLJo19dAmuzdF9S6HZ4HweoH34lAwubKvIoYlRN2F7oIWSG6vDorOoT2p+P9Zsvon+GLeU0Q5SYLrH47tcTwKtXLiKbqiVRY0AURYvt59uFNvln3VQjldTsz8xGwQL2zbVfSnhqtLsg/vu3hZmgK/VVG3RzQu5YZIvQLEOOKJerRdO4FXhGgL2hol+XE8bb28oE7G33g== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bCPx8PdY6rLjR/H0P4N7d5qmx1HEvqGEo5Cf6b7b5qk=; b=KJKHdBEfnHBjjgIFnAm0Z/kMUHClJRXB7XT6/ogLX+aoTf0whHUtWLmSMQrrO8iY/TvH9cmM8hZg47GH6cwXN7bcbMuNVZ9Vk6sgSjnB5WrebqTpVlwQ3cDwhnxcqiYR5kxfvBLVqTzit4SzuM9Ii/d9MfbXZhs17efJS80mhRXwJ93ZzPAuFDG9KIvIGsOmL1h3YqFfKBvaRCXYrk1s9cZ84p3cDZRs+Is853/Hz/9KmSC1zTQCzJY3RSqMjf+BnbGNuontb6v7b8DypYgL50TqVnaW1uUyRz3T/j3zOvHaYBzJs4a5q2jELj7dCtUV/OJkrUD2lnG3eljC7IZHsQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bCPx8PdY6rLjR/H0P4N7d5qmx1HEvqGEo5Cf6b7b5qk=; b=flBd2MXWzbel16oiFFC9kiRDW3l7ldwjjGOvdpdnhyK5yhzMVZZD965NIAooG3Jf7DCIrkiph/LJRGfClJv6lHitKAplHbFLYlP610qHs/pe4uohdbvJb4yN9PcR5UoFAqx6uegu3jCVIKQdfQzn0gRD/LCImZKhjIuu2ChHeTI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB7PR04MB4010.eurprd04.prod.outlook.com (2603:10a6:5:21::30) by AM9PR04MB8178.eurprd04.prod.outlook.com (2603:10a6:20b:3e3::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.10; Mon, 19 Dec 2022 10:13:35 +0000 Received: from DB7PR04MB4010.eurprd04.prod.outlook.com ([fe80::7479:76ef:8e5:da0b]) by DB7PR04MB4010.eurprd04.prod.outlook.com ([fe80::7479:76ef:8e5:da0b%6]) with mapi id 15.20.5924.016; Mon, 19 Dec 2022 10:13:35 +0000 From: haibo.chen@nxp.com To: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de Cc: festevam@gmail.com, linux-imx@nxp.com, haibo.chen@nxp.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 0/3] add imx93 adc support Date: Mon, 19 Dec 2022 18:13:33 +0800 Message-Id: <20221219101336.3929570-1-haibo.chen@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2PR01CA0017.apcprd01.prod.exchangelabs.com (2603:1096:4:191::19) To DB7PR04MB4010.eurprd04.prod.outlook.com (2603:10a6:5:21::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR04MB4010:EE_|AM9PR04MB8178:EE_ X-MS-Office365-Filtering-Correlation-Id: 5ee8fc0c-b2d0-4c5f-0452-08dae1a9b03c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yqAXMltWe7MQEg6V94onuJ/+dwlOy+lUYSKTh8srmwOke/QBnDKr1HmYnGC+nEUTnyTBSZ5WTfAG8/GkS+tYKPwGi3VuTqNymD70QllrEepZLyZewPGtowdyyZi9yDJwrFCBVKW+AZOArx7K50WimSAW/1qMVb5nQ4uk4NbVwWmjKX75bQu3LvB72RHGGq3dxRkrVQhGpjr7nZX6izPSUG+RzRyREnpn/kg2rwhXqQpgsgSxDU28laU/d0k92zHZ+5yKXcbloO9nRyS5es6awE7EiPInAqz1Nsd1O2oeWb9SAiDy8J4rf+YsD4UsL6HIEwyMCLz3EmXVqN/DG1llUe6xq54f/hv8feT3n+6PtiWg/PJAio1Paw8yq7DqONTLofGLSRAoAv+KtMStoSY8/da0J7ceAhQzGdv1zKyg1efpIx8U6G5kYC6WyB9LokEEwfbf6UsiP37h0lAuowvM3eKi/Wq/tlZvUcQ8ZJ6Sy0/YJ3X4levXM5Vnui9hxc7E/E+oIwBYlloJGvz00Ue/1YP+i6A0ikOvc1LrZ52lOmwaGuWRoQpfURntaBbvkXPcBmGFbMRNxIjYY3X1P3s61LQT3lK/jwW4cGyYKCLg+mFm8G24nZ9HWCT0rv+9PTCKRFM2kxkdzE2wN/3TzTghBIuCHw/dKxURUxSlf0wPVqhBJ4yr871GIRuXOAl3jktD X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR04MB4010.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(366004)(396003)(376002)(39860400002)(136003)(451199015)(66556008)(38350700002)(41300700001)(7416002)(66476007)(66946007)(4744005)(8676002)(86362001)(8936002)(6512007)(36756003)(52116002)(26005)(2906002)(478600001)(4326008)(186003)(2616005)(83380400001)(1076003)(6506007)(316002)(38100700002)(5660300002)(9686003)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1QXKN0Rc6VeNfIK1/I/LpwSUyPUsvngPajSs67XYfndbEW5CTv6j4Rg1oLYy1AM82k+Qq3i9uTE8wpfJmlqjXpaBM/4xqYPzR8aXKtTEemtif4OfV5NZ8XxKUNAG86GYLmW6x2fm+yvH5RB4lRjjaqUQU2E/fzFjPFlv5b8wBQu4ocPe6lC4faTyQ+bl6pkFezefHglzCCd5S0kbO2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uhNbXKprBVaBPicWgnmAPJTea/1xKQlwI9PMYOqEPf16X2lh5HF1feuqzpw7R8RFChQ2AIDuwkzkroLifuiBztS/HR/Y42DHUDVy9MmcJcq5asLHOMXaiI4gXKmKjED90NE9pWTF9WNpODAbI9ZByX0qtOy+IaF7VsR2DfIapNaaWzCQJ0Cic7Dxppgxbesoh0dUTqL+qTzbhCl+aDdpuYG6IzIUC+I/tHSMopTTU3F6m7HGdqa8s/SPvodKsla3Eq+xj0/Ii1dk5/nbzeZswVIYDTaajEWRDLp80nFCZRwA X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ee8fc0c-b2d0-4c5f-0452-08dae1a9b03c X-MS-Exchange-CrossTenant-AuthSource: DB7PR04MB4010.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2022 10:13:35.2385 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: sAzM+Mr/fvKRivSOd2sMoHF6U1vYgVlmF8RxJGNFnpE3xKEaVyysBLdLCdy9Kc9HyHG3sYFLctmn901rJBwKLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8178 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Haibo Chen V3: For dt-bings, add some change according to review comments, and pass dt_binding_check. For dts, add #io-channel-cells = <1>; to pass dtbs_check For ADC driver, no change. V2: For ADC driver, add change according to matainer's commets. Haibo Chen (3): iio: adc: add imx93 adc support dt-bindings: iio: adc: Add binding documentation for NXP IMX93 ADC arm64: dts: imx93: add ADC support .../bindings/iio/adc/nxp,imx93-adc.yaml | 81 +++ MAINTAINERS | 4 +- .../boot/dts/freescale/imx93-11x11-evk.dts | 12 + arch/arm64/boot/dts/freescale/imx93.dtsi | 13 + drivers/iio/adc/Kconfig | 10 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/imx93_adc.c | 474 ++++++++++++++++++ 7 files changed, 594 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/iio/adc/nxp,imx93-adc.yaml create mode 100644 drivers/iio/adc/imx93_adc.c