From patchwork Mon Dec 19 10:13:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bough Chen X-Patchwork-Id: 13076418 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 199ABC4332F for ; Mon, 19 Dec 2022 10:14:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229528AbiLSKN6 (ORCPT ); Mon, 19 Dec 2022 05:13:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231663AbiLSKNu (ORCPT ); Mon, 19 Dec 2022 05:13:50 -0500 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2066.outbound.protection.outlook.com [40.107.22.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90503A444; Mon, 19 Dec 2022 02:13:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cIgitW3Dgm6z4ToVL3HUdOPktTZ2ZJ0+gDl4cZbnuomd/2SzkmSzrYaSPT3GnWTJm8H0spbyJuCTetM35N5IPLiR9/p0go8nFEbQtPbCJ/wecryWIFg/4RxIU/7WuW8Yixt2IZjPbycDZv2VVhFfl802FSL8M8T3I3JwMLMTn/PyFO7CXMouo0mZOA2u8L+tGK/gt9OZHOE7xfbqCtkJL8FCzezMlqpwae37gSsvVtfZGsaK8DBMbLqroFOywbusKSdMmremuyP7CcYHpTglxOAvMJhq0SXZiXvfwowpSyZHa4GrUTyUn9oh+HmqLL/uu7vRWAdCW/c1dugezBvopA== 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=mnF4qNwlp9kJu26GVY9c+6QFxVEYVdoAp364itOFTKg=; b=AdWR1mnTLPf4xE7t+ODPMFiYQIXjCt0DGO0tzA76Yqb5dc49rSRSTNF2HkW7yIFVG0SnSgJYFzPZewrc/jcP8UtAEpt6P6rrs/YyyxVEKwbrLmLFwkyLb2uCwMRWDySM4sO28Jl5w8qjzOWRhgocaewSzQx0/6a8iKfxqwLnWphajgn0G4Ozq5TBn/pA1gAuWJIC38hL/fSXVHpI8kydtUfXuNdptWTTGK/EF+LehIEE0U9vokMZr2ER62PLhLUVU9BSZp3DsDJnsV2w5UB31hdDM9qhp+UABVLNauCehZkZfokOLjHCeOO6t4Bd3H0GSqVyVzKqKgKEpD2jLqn8VA== 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=mnF4qNwlp9kJu26GVY9c+6QFxVEYVdoAp364itOFTKg=; b=JmLS7tvVlmbQJfUgiasuPv/YQeGFV555KfEvVr5ypNHFIBEWFo1fmZKzVolTnrmd+j1CZxcbuL0zTn3Wd1qQ89TntzmrlSXQ71d+aO4k/AdHhvPT9UtwxC10cxf8HH/lyXz46u99p1gbg45cz6KLzHqObmPszN7/NHv7hvuyLSA= 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:46 +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:46 +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 3/3] arm64: dts: imx93: add ADC support Date: Mon, 19 Dec 2022 18:13:36 +0800 Message-Id: <20221219101336.3929570-4-haibo.chen@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221219101336.3929570-1-haibo.chen@nxp.com> References: <20221219101336.3929570-1-haibo.chen@nxp.com> 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: beff18b8-27ee-41b5-de03-08dae1a9b730 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SzofJELxbtuO5RncnoqgvLvHgyV6OdCHKdjV87Q1CCx6FaJkgKRsbnjudsy+0ECNUB0iweO1esrmKj/7SzaxSh2Vo8miLZLHhbKtHeECESvYGZEspTPKOE1pdMOx1LgND1YAn41W4Z7vj39MxzNxbd4EHaqD4xRiuT65JLhwbPZPC0KwPMtRLpaxMVbJtz2SmeyCqy42bCCJaqNk4h0V7XwAP4cylToXDV77Ic2vgAt8XLnXUpOpW8IPNxrlFPCVUcvh77+YH0av7bPW7+SoTpDWcdlK36NFLYUW5njexPZNX1EvfXCNbUu4rmm440J5WMQ9Oi+R5cq1yoG/Y5/FD0Bk14bdSv74yxlTBF6lAWWIzYcRz6a2vSeSEloOTrVsDhi5c/qI/TV3wAfqFAbw5CexPwlW9tc86enluOFmGynUyvdkokO0/rGSz6KXGFkHX1jEs22waDUHVrcHAInSdYw81qC0ZsN93EKEucs2NfG292v1n24YsmkJ09JAmQdvbNSyRMy38MQMWmWargBwdBCWOEjDknFnhPOnppeO5ykR3MueyRfI1avHGRrtviiwYiPoUn91RSKqBhW6GztB27b4h9EsjgFLSOlPsmDN0V7zMdDSbGTnW3AgAyEtOwS/crbwAnJllw/iTbmVsBbTU3xQYZA2PGJkY/kGOuqxEoYKY4myYM8vjcHjm0nwjXRl 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)(8676002)(86362001)(8936002)(6512007)(36756003)(52116002)(26005)(2906002)(478600001)(6666004)(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: uKbJ+9/yfM8ZfwgNv4+aMClGwkfs602iPNELXCeN3WsmMsVJu2AvodY8aNCpk8tFyfVhPhp3O8cl7SQX/EdSYI8o5mQmzWvWzswhR9bCIoAgT40Eoua/UMF1vRYP2ZvHK2VplqflrxxLG2x/R4cQfsgwGwr+2hW2zH40pISwQO0xYJKg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y+vCYHajD3Uoc338nHuKTAAosZvlWUJ0PyAh8rR5hRMullx/lrEds5p2hCj3/5k47wc/qKlFsUVnwIEiPtL2eYGQ0bJOHRJVXK3sCxJ+Qfqg37TplqXYf8EU/VhDccP4sUCyG7d+0hUlZg0LuKn28vGTYi5qjP9GVsAPjl2lDYYVh1+90vHvIowb8oNSClETAdBAsnPcRdiUlwNoWHVOe4rUe9AOvzTQegqAL4Y4ISFIOcQH/jPAcNr22/wg7iSDqDcEtnT/OyegnI902ot5XjsEohW1iqa5MY0HyaMGdrbNVL6X9ag+tOAWuEXWOLX5mGXP9OEHkMTe X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: beff18b8-27ee-41b5-de03-08dae1a9b730 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:46.7220 (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: nRaHyePqyYpBDeLIqqX06hpDfpYUDhjBxkWDN5Nbg6uMPdD8HUwqzF1NDc27PYo2Jr22KnzTnKvADNsv5TWgmQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8178 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Haibo Chen Add ADC support for imx93-11x11-evk board. Signed-off-by: Haibo Chen --- arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts | 12 ++++++++++++ arch/arm64/boot/dts/freescale/imx93.dtsi | 13 +++++++++++++ 2 files changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts index 69786c326db0..cab5f4d66bf9 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts @@ -15,6 +15,13 @@ chosen { stdout-path = &lpuart1; }; + reg_vref_1v8: regulator-adc-vref { + compatible = "regulator-fixed"; + regulator-name = "vref_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + reg_usdhc2_vmmc: regulator-usdhc2 { compatible = "regulator-fixed"; pinctrl-names = "default"; @@ -27,6 +34,11 @@ reg_usdhc2_vmmc: regulator-usdhc2 { }; }; +&adc1 { + vref-supply = <®_vref_1v8>; + status = "okay"; +}; + &mu1 { status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index 5d79663b3b84..a0d39dd34591 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -266,6 +266,19 @@ anatop: anatop@44480000 { compatible = "fsl,imx93-anatop", "syscon"; reg = <0x44480000 0x10000>; }; + + adc1: adc@44530000 { + compatible = "nxp,imx93-adc"; + reg = <0x44530000 0x10000>; + interrupts = , + , + , + ; + clocks = <&clk IMX93_CLK_ADC1_GATE>; + clock-names = "ipg"; + #io-channel-cells = <1>; + status = "disabled"; + }; }; aips2: bus@42000000 {