From patchwork Mon Feb 26 20:33:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 206904 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2319491dyb; Mon, 26 Feb 2024 12:34:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUGtqlC4csjGua6q0ESfPp52JKoLvQo7hNzGIZT41XEyME03XpkwM6d9byHK/6K2uTHZVHA2co3F2uqS5O8wmcO/Qpcpw== X-Google-Smtp-Source: AGHT+IH3TgLkMAQdx4XiQbuKPHwV693WX1nhDXP65cKYrk/tgbLQU7TGEiJdME00MQ2InoPgdcZA X-Received: by 2002:ac2:5584:0:b0:513:349:33fb with SMTP id v4-20020ac25584000000b00513034933fbmr337290lfg.16.1708979682623; Mon, 26 Feb 2024 12:34:42 -0800 (PST) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t18-20020a1709060c5200b00a3e199b87cfsi72251ejf.1003.2024.02.26.12.34.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 12:34:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82291-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Svu+4FKd; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-82291-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82291-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 164B11F252E4 for ; Mon, 26 Feb 2024 20:34:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0400213173B; Mon, 26 Feb 2024 20:34:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Svu+4FKd" Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2088.outbound.protection.outlook.com [40.107.14.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C3EC199B8; Mon, 26 Feb 2024 20:34:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.14.88 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708979662; cv=fail; b=E58+cPqAbvR1zxWRkcUpmMvQkYmTWmYN5BsL6hUpNpBhiqZWsC3ZDNsDFqNhGAU20nuKTfd8OLXwK/O4IBgfqrmZ82SJmmWmWVc55l7UlRq6kQwOegjngTwUhQbZJkKbZKndGp6aWUV8ZwuDFUklt4VsSV+yWb/1K6VmmbofrV4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708979662; c=relaxed/simple; bh=/thWKmFM88Qm4V0wdQ1nHPTpJXKfddXvwNYHLQVgh54=; h=From:To:Subject:Date:Message-Id:Content-Type:MIME-Version; b=IIY1yDjvp2P/hh8ZbKs9l8OcE9YU78TP3dQFW0AiwAeZBIBKw8fLfVjR+Jx5lhwK+gq2bDETQeqOr8ntqeVJ3sXSJBxp+OQOGR5E2ppKDjG0p0fGQnc0n3tMky9ZYrO+TklYTdc97xp8Ufb4O0BUxrazNRtrII+dSE/pwgCvbhQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=Svu+4FKd; arc=fail smtp.client-ip=40.107.14.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BLrQ0R+0Pq4dIDTXt1OBecoU1EQWNi9zLDwiaUjYDJpSWcYID7YbQZcq/uDTgtv3FyweBdeH0obzQAM2I1LRF9tConycjektAXtFxO/9lDjhwKYP8Il6Mi9T21B6voBsz7k+jkarltSVyX7bcUZrLqx3FQURj2sAe5rP6BH3t9usrfpVbFcRaescK3RNJJxoFUylLQ4+P25yA4lXTKRuNLy8dvdppia+r5XebyXAt2fOvMxBMkLExeYX0JmWM60LB+AChpebMsbzndI4+z4UmcP8llLGEbKEMVMsQljo1w0WC9XrTMFbV0cqnI6VVAfy56UodXYQbpTGmQKErOvW0A== 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=Und65RQfmD2bKhKh/5iDJGy6ai6LNHUBAkBVgBixEz0=; b=QTIEUuF3H0d7h9uGvrMLisCmiLKWam2I2nJhsoFTpmfFjjlBivOMDmI+PkLmuni3a6ScLG5Fpn07KAn7E8Dz8+RUSmt2JzmAvzvFZvRxQlzU1ae2RXeIiGSNcWwHkt58iZutwsbzO6Pwm0AucKp61QFx3IsbX+dSp3iyOL08rEdFNT4/jKkec5uHmNcVcTxjjoQxUDLD9n2o7Y7m7LJMvCzBf4TV5EycJPDAXIx2b3thE7MBYwk0fIYj0RNG+z4Zj7J9hpXHzGaxXqNeSrMQoO+yoSahVaPG1R+nl7lAPA8kHS9AYc1KYfFpzZrBMMgGTJG68yLRLnvpSJengutMjg== 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=Und65RQfmD2bKhKh/5iDJGy6ai6LNHUBAkBVgBixEz0=; b=Svu+4FKdDPK5s+Z2EoBGRmOxNuOyx8EDFzcatoXwgN2VHJKY9L1WSrkoHknHfjVp7FSP1yXXq43CFUb2ybK3x48PT7BWw0YModKKdrWDtwuP1bzsJ4xVVAV7feU/5HbPsvgpzRr20nsZvDOg0iwsxH13fcUlZdUIfV1pZtTFolw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DB9PR04MB9820.eurprd04.prod.outlook.com (2603:10a6:10:4c3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.36; Mon, 26 Feb 2024 20:34:17 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa%7]) with mapi id 15.20.7316.032; Mon, 26 Feb 2024 20:34:17 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), imx@lists.linux.dev (open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/3] arm64: dts: imx8qm-mek: add adc0 support Date: Mon, 26 Feb 2024 15:33:55 -0500 Message-Id: <20240226203358.275986-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0PR03CA0229.namprd03.prod.outlook.com (2603:10b6:a03:39f::24) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DB9PR04MB9820:EE_ X-MS-Office365-Filtering-Correlation-Id: d559de64-6df7-45c2-dc9f-08dc370a4da7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 88+w6DcoXrMLYN/hb3cSPIhjHWS4uOyB3vymOofYktwdKZmB7idQ53XvW1p63H1dBau+bZQoIuwG1hmS4sYNVTsSo6VC33B2bFXjQIe+vpba1aMuaMAT3WgsWKrd1bMZv/cqsGi1yHph8/JsQaSemLjV8e8ns8tYSZ/hOkaL6V2uNIzHm4Q75kGyKnp5oPZb5ZvaSKDul4rByQr/0EYw0mXppN1k3hzR2rLAOtWzJLu6q2QPucKMydEzu3DHBvpZZDRtC6jgHq42KhGdIhHMlEEB3iwGtepIXVgi8dVWgTVLshLwsrvwng6SswyYRx/lqF9JJ7McHgBfs8qJADyYEvxaIl/ycAYFLDKRG6ShvLK8/iWcqi+qV98xsWb62Bln6UFUCOb+CA1L+xVTIBEIVi9tAYRQDa+8xkHKT6B7KHNi506S+DzH9Br3kC4S8OESQipqeZdG/BOBBeeO6VBP4RX6wxX/gI11Am0GjjUMcC/ulyljLhzdpR/VU0VZeCRcRroeTujYySJ2xABbFpa7bSz21rO5M1rEQQIfW4/JIbs/SYLT7d4zSGAMCJ9awBYgOmLTRZ7xzqGY75lKHJU5W8xzQkR4486907ztCJV0fHvUm1bqC4pxjMxepiL+Jrfn0cx49QkDTzaCMV2GraSrt51K1cjtmtfAtEIi3m6pZIcBwN485nbJp5Tzn2UdYJqXg/yOSGFqgfLLLECOYiQiVod90jBnUMq8ijYObNssDMk= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: YwJJuWX15M4OYpJAm+ZEHumK8RhnIoJUAxURTMGc9o6CREhmnr5zC0vRkgfhH7xbIoi99NXuY7AbZLWBS1PYwhqqqvjnHq6K8v0upQD3ThQQo1Gq+/ZStFP724E/q0dfcFtieDbFRbLmaL51bPGsXWCoQ33sr6m1vOm3x/IsHijhb3in99FhdrUVWHcR3ZJnptz1nxdS5XVfOJnEbtCFG3AvLIpgM363iMfM0pHpKK69LkM8Z7wEkjK+GLfZeprMMgfRT/zuWZJOtcH3ekloRi5YeQAD8ApjRixQFLEzgVdj5euwKlNr2r7+2jBqQwEh3/8H0WUMJXwdTK3guGxElA4GDRAPBsVmpWr9GrYZf8kS1UMKHR3qBjhm3E0VKpSigxa/SOQFGEstsFtTfi1DxN2bNxcmsQhcEEVKsSeaAeUYAiClyGRK+5xmJ+imCkOy2KarHzy50cvMbkPWTzIe+8COiRb15K+RCF9mFD+x/uNxxOX4h2HxpnE+k+yVOthc7tpfloPC96v7dU/bJ1egYsevKM6zB1d+hysCm7ELgyLKf9JbvmiHsdJ1zt8zOa0VSPrl5+esdEogx/I+R6f4WfDX5Lz2De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CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2024 20:34:17.4642 (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: 5NUs18tRBEE7Wj1RhSOJmh4sjUikoHh324BexNwPnZbH4NsCWpPDkDpfJ3CzsTZKfFVqKL70drgPiLwWU1N5wQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9820 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791995079372071352 X-GMAIL-MSGID: 1791995079372071352 Add adc0 for imx8qm-mek board. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 77ac0efdfaada..0c4972724b041 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -39,6 +39,20 @@ reg_usdhc2_vmmc: usdhc2-vmmc { gpio = <&lsio_gpio4 19 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + reg_vref_1v8: regulator-adc-vref { + compatible = "regulator-fixed"; + regulator-name = "vref_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; +}; + +&adc0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_adc0>; + vref-supply = <®_vref_1v8>; + status = "okay"; }; &i2c1 { @@ -130,6 +144,12 @@ IMX8QM_GPT0_CAPTURE_LSIO_GPIO0_IO15 0xc600004c >; }; + pinctrl_adc0: adc0grp { + fsl,pins = < + IMX8QM_ADC_IN0_DMA_ADC0_IN0 0xc0000060 + >; + }; + pinctrl_fec1: fec1grp { fsl,pins = < IMX8QM_ENET0_MDC_CONN_ENET0_MDC 0x06000020 From patchwork Mon Feb 26 20:33:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 206905 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2319576dyb; Mon, 26 Feb 2024 12:34:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWMClSuyFO5GjwcvSFGX9x+zcvNLcfDyqbNqp+hbOl4XW1EkFxqrgL+Z0cVUxUinCIZNhBaKmMat+4luF3BVX8xekCpog== X-Google-Smtp-Source: AGHT+IGaM9ur1KX/hQOMaTVH6qacFsAp1BYT9qmQclNIxcdMv8XaBCIbXzY+1UC8SqR+o/hTLoby X-Received: by 2002:a17:906:2bcc:b0:a3e:6f98:c69d with SMTP id n12-20020a1709062bcc00b00a3e6f98c69dmr5450991ejg.63.1708979692415; Mon, 26 Feb 2024 12:34:52 -0800 (PST) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w22-20020a17090652d600b00a3ec680ee34si71844ejn.469.2024.02.26.12.34.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 12:34:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82292-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=oFFCX6pI; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-82292-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82292-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C3A111F253B4 for ; Mon, 26 Feb 2024 20:34:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BA6C13175D; Mon, 26 Feb 2024 20:34:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="oFFCX6pI" Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2088.outbound.protection.outlook.com [40.107.14.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DEA5B12F592; Mon, 26 Feb 2024 20:34:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.14.88 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708979664; cv=fail; b=YG594PzxVLsZKPDVdpy/a1Zrdjj2xVzEQKP2ZRPAcmHS9e5GHDPCUAvEv6eMPqtPpVB2o832uZKQeymL+Mui9128lRtWXFjW0gRZk5iX6iSofHBRsUkJ2JAs5GJrTvvHibe9oHHy7AxAcBpti7m5Spjdwd+rNIVDgDD/i+QUe7w= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708979664; c=relaxed/simple; bh=GeoPg2+Ud5gJZAGdEfAeGQxXL1gzpT96oxfP33y0w/E=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=s+3ZzOvNmRFomuLkQYswF+73RkMb+xOrhGAQINM70YuOgzKxqrj3qIhpzVkJH4O4+oziOx0BWbe6Eus3wJ/dHC3wzx3jEdPRve3KrPWSi00pdm72bEf5Zw9/Kosu+MrNHWstIagOBZMRvpvcp03HP0KLC5tHEWalB+Hygc9PhU4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=oFFCX6pI; arc=fail smtp.client-ip=40.107.14.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TzLqezbfkBCJR3Av/cvB8bVJGqQrrnLbkGeA9Qzkkw+lZ8iNCtg7yONEoF0P3PlPeFk2SSIwBCZdPbNKykha6hP1piEUfYUVncKfhHg2f4ozHk9rsDg16N4MG8cD1gkS9HHGvdMgqm+ZVF2rpw8KRO3FSYpLCqjF30CH7ZVveY3j/oVNp7i7zVsHpggH/3KJ8+WNaTXtf1JYh/enQzfx1wChkeW7IOK/9DSwpI3ZrVy069fqwikJVdLD+jwc4OfnQbSiT+fdVRkbF6nXhTyEwYcZViwsZfGZ5ZpZ2TZW2w8dBtpDAgw25WDOzu8Hg8dzaCJjEL9fo2mgtHNCOoR/Eg== 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=p88hGTQRJgJkqWH7aUjxSUyEFcouoAzrQOG2xuXaQp8=; b=nlnaLGlgD0BKh3zDJi5bqtHt4YC62kvXL2NEuzQ7PwIqNdCSIapmrISXz0u7zbxqg9o2KHubInnft272xxGv/JFWQqXMzlj5ognCjsDlUbjk0XjEQM+kr38/Mu1egFkAnk9q98bpwuYXmm5G9GeLF6PsWhHCbqqNyYzbRfZjJXQnKQJsXlMvnqvLIDlaN67NGunbwTjeJemHS5gMYrNyqRPjoSxYXEvJyQkTKIfCUDbqjYPBisXKTBOAMzZ8WTpE2VY8TPGQYKkfBl++yJi1iSCvUrCuovuPODRxoOms+gTw7BOV2SIIKuSXIMPWtkXm5A4tqOM6hOenLEQP9e/Xnw== 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=p88hGTQRJgJkqWH7aUjxSUyEFcouoAzrQOG2xuXaQp8=; b=oFFCX6pIrxWEWIiR2ZAeJSECMJJXFerM0CLohdsz9jPuqBRNOiANVOFnBMGvogSWQx94F3QYLXsUpxwvI1UOYUVpPlNyU2PnYr0D2rOZWONIQjtfiZm4biofx7J4clthIq5CjXjy8eXO8yqwXqIqsq0Ohg2QXOHjLtlwcix67aE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DB9PR04MB9820.eurprd04.prod.outlook.com (2603:10a6:10:4c3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.36; Mon, 26 Feb 2024 20:34:21 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa%7]) with mapi id 15.20.7316.032; Mon, 26 Feb 2024 20:34:20 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), imx@lists.linux.dev (open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/3] arm64: dts: imx8qm-mek: add lpspi2 support Date: Mon, 26 Feb 2024 15:33:56 -0500 Message-Id: <20240226203358.275986-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240226203358.275986-1-Frank.Li@nxp.com> References: <20240226203358.275986-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR03CA0229.namprd03.prod.outlook.com (2603:10b6:a03:39f::24) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DB9PR04MB9820:EE_ X-MS-Office365-Filtering-Correlation-Id: d5a11fe3-68c1-4111-f5e5-08dc370a4f97 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dYwLe01QAq5PRZBFAWX1ao9C5VCtSzMhmhb2aDtCdRVlSHFbh/a9658jc5AEpUFE0dUVAKmcrPLcXniEYfMfIPsURy9qvGWtsJ3XZlJeVTVz4ytZDvh/g1VphWY5Ciyd6w++7xnm9kI4dfD1TI8HX/OgRtPinEqKq/fbW3Tm19/Qj75w/WYiIknmdhEClYEq6HEu1rClHAg3kW3Idm4LNmsbxgbcvs7GVS2vzT5xFneHBD1TIXSVxtHj0WQCO0uDJ1mXmAH+IewPGp/MHJ42fTpDn3ECm4sDagc9PSvod7N9e7ucjvSoM8rSjgIjUm6twsEAiUZLCqqe2p5VviJk2SBe75dyjVkT5EUBJJ9liXCnpjyMo4czDGWToSKOQfvzPXNwm0sQH4zRcpgZp7ZEbR2V+IEjLLgXmLYMKsAPrgBCntSykBb0GwsloaDQRwtOnrA/H3k72+PfBXrm2g00FxO+uVgiIh25W779ytvrlbaL+HMqasZ9ndSZX1QnKo0u42I8jWXrbjNQC9A0qxHJzear3J2L5Mqt6kX9FjnB2Cg/zZ3DdxRAFLRQO3ggy7AHgbhs6szjfm2rEB1dAptRrOnBag8R8sUzWWs/0YZ0r5CSXofTTM8CZtLpFWbClu1XctBP+7380e7KmwJRJVWcOVvHUrBZITd+9upLE3UrfCmvit9ig8A9sQDNhVpaxxPZicwzQnXL7vxflAJF0BIlKukytBOTrEIVYW3H7Wb1PGc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hGYFPzdAiIXoJ4+IAdr0EagYgumpFvaDXfFZsUZEimrzSp49dPyaqMIk1Y8fR5wZsofVOCY3dg6drUYNjfwME3ocrs7u3m/AaaayFtFngBNz/5reRK6hJMPrdGrGz+t+u0tzubv8nVWCjIP7/tqDBy+T9Ip2BcGu0jBcgpzfg1sygsNSl6umj6GWqQhdPAe+/g7rfucNqfsGpyDivigEPPGLlFzj2/lt5HDELUfR7qYQCMZGYzb19Dup5ebIqi6WWrKzCd+DDPIlT5gvRi5Kv7I340kO+VFX0wrdM0UYosAGSinAv9hA40mj/QrfPJiduwY1gfWfT+qvGCmwdm6ueg+ErVvnvyKhzFMc4VUvFjnQbE+atU0ieJnsdxiZC7S/Io8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z0loISx9lNHSBeua6xEk5B4pmTx437+ewDrITFia6QTVAp5kSaNxh3vPhQpH3cYGofwtXTpOxQ2l/dg9rV5WsYVUD9TEmkzxHv2J6oOGB0jZ9BgpaNV/SK9WW/YJUdWcYqkBdXncqaMaWRA/C X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d5a11fe3-68c1-4111-f5e5-08dc370a4f97 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2024 20:34:20.5549 (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: jUc2fDI/AK9+lmmxtXCp9GqmmoxrYCcpBU20HG8u5FTCc/0BbNddkI3UBwkDLKNJgFpsW0jalrQfsZ30okFwfA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9820 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791995089815995871 X-GMAIL-MSGID: 1791995089815995871 Add lpspi2 support for imx8qm-mek board. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 0c4972724b041..800dcb67642b1 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -85,6 +85,22 @@ &lpuart3 { status = "okay"; }; +&lpspi2 { + #address-cells = <1>; + #size-cells = <0>; + fsl,spi-num-chipselects = <1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpspi2 &pinctrl_lpspi2_cs>; + cs-gpios = <&lsio_gpio3 10 GPIO_ACTIVE_LOW>; + status = "okay"; + + spidev0: spi@0 { + reg = <0>; + compatible = "rohm,dh2228fv"; + spi-max-frequency = <30000000>; + }; +}; + &fec1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_fec1>; @@ -169,6 +185,20 @@ IMX8QM_ENET0_RGMII_RXD3_CONN_ENET0_RGMII_RXD3 0x06000020 >; }; + pinctrl_lpspi2: lpspi2grp { + fsl,pins = < + IMX8QM_SPI2_SCK_DMA_SPI2_SCK 0x06000040 + IMX8QM_SPI2_SDO_DMA_SPI2_SDO 0x06000040 + IMX8QM_SPI2_SDI_DMA_SPI2_SDI 0x06000040 + >; + }; + + pinctrl_lpspi2_cs: lpspi2cs { + fsl,pins = < + IMX8QM_SPI2_CS0_LSIO_GPIO3_IO10 0x21 + >; + }; + pinctrl_lpuart0: lpuart0grp { fsl,pins = < IMX8QM_UART0_RX_DMA_UART0_RX 0x06000020 From patchwork Mon Feb 26 20:33:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 206906 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2319644dyb; Mon, 26 Feb 2024 12:35:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUp4DLJczGmbx690osF8NY6zrIfRNd/CCs9wIgzIEn7X5XE4lWGAnglR/BdufVCIKUXwPclwrK1EygG6WpA/wFSHZ6BcQ== X-Google-Smtp-Source: AGHT+IHZMtgwuZtaTtFulWRFvU9ui7LD7sDeMr1Lc7XB6it6O8GbgH7LoGvHG7fYXsqvWtAo4wY+ X-Received: by 2002:a05:6512:1243:b0:513:32a:3448 with SMTP id fb3-20020a056512124300b00513032a3448mr483311lfb.12.1708979704017; Mon, 26 Feb 2024 12:35:04 -0800 (PST) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r13-20020aa7d58d000000b005646fd4769asi75914edq.279.2024.02.26.12.35.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 12:35:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82293-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=DoyYUA3i; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-82293-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82293-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 724001F25491 for ; Mon, 26 Feb 2024 20:35:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9C6C4131E2F; Mon, 26 Feb 2024 20:34:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="DoyYUA3i" Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2088.outbound.protection.outlook.com [40.107.14.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FE1E131723; Mon, 26 Feb 2024 20:34:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.14.88 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708979668; cv=fail; b=SwuUsxkdU+iUX+QY6ZC4+qQZxiAqdp5SCVk/IOMBF6cVEgBMsfPt/1dQOmOPgnLN099G7TWBHESnegSoVWpNCqf9LWwJuRnN0rJLtE4v8cUeFadDkIOHWyBZrNiRsmHhpRJpvrI23fe/pfh0f1Mmu5HuiUxffWLILaCOsCPGXBA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708979668; c=relaxed/simple; bh=RalpsgDEhFuwbr13RLo8XzOFoO+R11/hLWW7jPiFWhk=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=pnCptqrSKLAhPZpa3zjo5GI5aZESI1Yqx/xfVftk8rxJFD+rlelkauIa4NWUx/sYw2U2YmtAWTrE9olhZjpOvaUGK8TEtibjrRWkXcIQcaevzGEZehPJOGQ5JSUm1JqQtO5QtkmcQjVhqcMWOBYXEZTqmgd6ZVNLJtzHey33a40= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=DoyYUA3i; arc=fail smtp.client-ip=40.107.14.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y3GAnXPEaaZbVv2WMZSWK+ZKIqKJWPFC61v9XtVG5ELgbS6o8o7TO6el4NxcmiYthrOcUsZHhedziowZXq7HhX3XQM4sL5GHbzwJc8Aq1EbyYNkemswvalEVtdRVLAtV3+H/WIyGyg/hw++VqQ4uHMj6GH+aYXD4Nb601EXvhhsiLacTH0ppgafAr+oepw/1I8g3HU8pWRbs9f1lGb86onoAfcCadctQcTP85ddB148a0sRuAs74WoBFOV6uiYhWlf+qu82L44ywQXUgYtyuOUAKEWLtVxtbBmDKiSFMPKfwtpJ07kHrjDBmpId2j9iRFkm0DL5R8lR7AE8rotuSgA== 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=94elUAyqTRsGdLlF8H+i+PTZkxKog/OG+KH62Wpp7WY=; b=RKHkeV6jvgNafsiYq70TjiXpC9MQujNx4EJwapZR0r6UAZGQCrbCPw/Ma0+DSGiVaBTCN7bK1zAQBN1J98wQym6sYZoYgdJ+snuWAnbNAqT8I71GtxsBZft6aN/19TkSKCbw2pbtEubUW03Vk5tyZvGG6ptZDRmHi1/JKOaxDS5hTHJ8WhmaJdGps5uo/1WunnfpEMhQ2N3Uzq81gkmPJgha4xHa19uOwL6bl5NWYT4eArR3JzQgb5h9vFcM3UDQcHj4vpKg81HTIX/hueNtuFaFU8zi/KUusNnO6hQIlyuKeU7FKcpSGmW5p6+SKXO6i5GKb4rcr1ClD1GXsEaZcg== 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=94elUAyqTRsGdLlF8H+i+PTZkxKog/OG+KH62Wpp7WY=; b=DoyYUA3i4v7vy0ooQ+9/i9m6nCy+3yXW8wC69/WS2jd7LMqJ2SpZks6wqvBpo+aEbd8qKyRsWushETfoKRNQab0wkMF0u2PTsUto+3l0MD+PAcUvtmvfuXeTSkH9NgLMyuAqCI8SHICo2Iff3lMk20ojv8W9apLangwHsy6Wvkw= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DB9PR04MB9820.eurprd04.prod.outlook.com (2603:10a6:10:4c3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.36; Mon, 26 Feb 2024 20:34:23 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa%7]) with mapi id 15.20.7316.032; Mon, 26 Feb 2024 20:34:23 +0000 From: Frank Li To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), imx@lists.linux.dev (open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 3/3] arm64: dts: imx8qm-mek: add flexspi0 support Date: Mon, 26 Feb 2024 15:33:57 -0500 Message-Id: <20240226203358.275986-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240226203358.275986-1-Frank.Li@nxp.com> References: <20240226203358.275986-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR03CA0229.namprd03.prod.outlook.com (2603:10b6:a03:39f::24) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DB9PR04MB9820:EE_ X-MS-Office365-Filtering-Correlation-Id: bcd76360-5fab-4c8c-acfa-08dc370a516d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Qiyi189Bo+0DtnrUH1HSsHpSt803z81B/XCbsqfe+7Jdku5hh0H2Cg7xYXNAMCMY87kydnck96WxZwuSBkG087lqVGoVjy2uioo4WKeMd41bedZV9fABHdT7vMs6TNaDI+9lysNxL8q2sJMxk+KuwAP1q7PANBYtF4n8Rt6QqaFc6WLdrEsNJPr0CTk5Df1XARofPwhaMrmS0qROJI0Nj92TrBA7Xd0ndtJWHzMrGWIheNecJ5GDUk/fGD+h5E7rJjmFBwhhChlgimAIf86nVA1FX1LVifhFwID+KksHk7QyanzEv6w61XdAOQVDk2eZ8IZAA4WEu97K6gSsGzAlYRedyCnp7ois+6tFcbv7kXNgwPxfSsdsz6f232psk4pJWXnFXXGkylMZ8uResEicbBcEPD/xsDTNu5H5soolFjyjO1l2r2s+mE2gnF/XKN1WYjSQMCuTBkh4YdJjhDmXf/IlovlVrrzKjpXuS7a80vTKyU4VusduxEVRwksKB7IOVgma560zVRaZSarYltRalY1tiRKEZF/bj0aUN6HIdPq5oNHf79rT9vj0OXiQamU7Xq0s2zsnIPTDBHuf85fQt8b8HDALxZSzDgLEwgIVnoGGxRgLsckdMklNdl9tqeLoWG6Z4zbs5GdcnaqUfevK3nV3toay73KRPnO2wop25tl70pTZst5wg8HP9n+MHDnqW4NP97X8UxcZg5lWGKVuTAkqe5AoDaaowegpwLNX3e8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(38350700005)(921011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0wlnoZ7Ly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bW0d/Wdm/k23zypqYO1/MHekfwjAwjQ+G48QWW6XeahZQr0YQ6VeWVuIilBQamwtv0bPb8NIqgq09SeROMhrWOhfCN53NNYbnvQGVGJIiJrSoIggdvKfYDZqzIFnCWtAbsOrAmJB8Oui2hlYI+wvwSZjD+ouOkxloyMO2BlhmYtP3q/FJVFU4Jlsv2tHGPnx8TZYfOR4pLPTX0j0VbHRYpO9+TBk7Rq8wXg31s3yB/cqQ3yubhCEYwgdFfd6/6RcroisK+XMTMsYaKc+AG4xjU62jNxJqjfrXXaaQ3rCmHNYv9Z/qkvWRVLsxd9SodCwKRlmCdFUInls4joV54mVtQJTqSL65AEQ5pa74jheVo/n5ECjIAF+kHsiyiMj8Wmth1qZfqQqOUQicGd9CfpzgkLzyDigaC/bRFaqTCedOSv//iUQC0oSYFz82fmBRsR4xA4K70wxxmPxPpHDVhvER5GBJLn879XUbZRH36hsBP2fJUMTmOvuQXRgNVe2Rqw1Tf7K1HramOj1NSxb X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bcd76360-5fab-4c8c-acfa-08dc370a516d X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2024 20:34:23.6971 (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: uhUAmzOcaFJu5noBPAwwkizjj9Dq7AP3mG8lUMHsAVQhPRw1hZmWCnboju1p30ragwfGJKpRTyTt4HxribCoZQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9820 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791995102204008158 X-GMAIL-MSGID: 1791995102204008158 Add flexspi0 support for imx8qm-mek board. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 38 ++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 800dcb67642b1..7077e394e855b 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -101,6 +101,23 @@ spidev0: spi@0 { }; }; +&flexspi0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexspi0>; + nxp,fspi-dll-slvdly = <4>; + status = "okay"; + + flash0: mt35xu512aba@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + compatible = "jedec,spi-nor"; + spi-max-frequency = <133000000>; + spi-tx-bus-width = <8>; + spi-rx-bus-width = <8>; + }; +}; + &fec1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_fec1>; @@ -199,6 +216,27 @@ IMX8QM_SPI2_CS0_LSIO_GPIO3_IO10 0x21 >; }; + pinctrl_flexspi0: flexspi0grp { + fsl,pins = < + IMX8QM_QSPI0A_DATA0_LSIO_QSPI0A_DATA0 0x06000021 + IMX8QM_QSPI0A_DATA1_LSIO_QSPI0A_DATA1 0x06000021 + IMX8QM_QSPI0A_DATA2_LSIO_QSPI0A_DATA2 0x06000021 + IMX8QM_QSPI0A_DATA3_LSIO_QSPI0A_DATA3 0x06000021 + IMX8QM_QSPI0A_DQS_LSIO_QSPI0A_DQS 0x06000021 + IMX8QM_QSPI0A_SS0_B_LSIO_QSPI0A_SS0_B 0x06000021 + IMX8QM_QSPI0A_SS1_B_LSIO_QSPI0A_SS1_B 0x06000021 + IMX8QM_QSPI0A_SCLK_LSIO_QSPI0A_SCLK 0x06000021 + IMX8QM_QSPI0B_SCLK_LSIO_QSPI0B_SCLK 0x06000021 + IMX8QM_QSPI0B_DATA0_LSIO_QSPI0B_DATA0 0x06000021 + IMX8QM_QSPI0B_DATA1_LSIO_QSPI0B_DATA1 0x06000021 + IMX8QM_QSPI0B_DATA2_LSIO_QSPI0B_DATA2 0x06000021 + IMX8QM_QSPI0B_DATA3_LSIO_QSPI0B_DATA3 0x06000021 + IMX8QM_QSPI0B_DQS_LSIO_QSPI0B_DQS 0x06000021 + IMX8QM_QSPI0B_SS0_B_LSIO_QSPI0B_SS0_B 0x06000021 + IMX8QM_QSPI0B_SS1_B_LSIO_QSPI0B_SS1_B 0x06000021 + >; + }; + pinctrl_lpuart0: lpuart0grp { fsl,pins = < IMX8QM_UART0_RX_DMA_UART0_RX 0x06000020