From patchwork Tue Feb 27 19:30:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 207410 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2937669dyb; Tue, 27 Feb 2024 12:07:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVEKKwn6zf7uieTLzOBdEh2ciM/Hh+iaCXGyCQ4DkwnPQi6erf2ASamS4vazHSPfmBvEjLHOQCdFL5TzdEvOJMZ8sJVPg== X-Google-Smtp-Source: AGHT+IG99yYILiavXKVE12tL7E8xe/e+C/keXJl6al9ec/ShhO6EsStlqPa6BETuKTVqNebsAGuD X-Received: by 2002:a17:902:bf49:b0:1dc:7bc:cb49 with SMTP id u9-20020a170902bf4900b001dc07bccb49mr9768561pls.60.1709064452626; Tue, 27 Feb 2024 12:07:32 -0800 (PST) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x2-20020a170902ec8200b001dcb17a9ef9si1937997plg.208.2024.02.27.12.07.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 12:07:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83933-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ZES9GKT6; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-83933-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83933-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id BCCBCB26041 for ; Tue, 27 Feb 2024 19:31:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2EDE149DEA; Tue, 27 Feb 2024 19:31:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="ZES9GKT6" Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2052.outbound.protection.outlook.com [40.107.21.52]) (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 2158C1487D6; Tue, 27 Feb 2024 19:31:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709062273; cv=fail; b=ZBrLpKKR5ncgXrkMPZA+64XT4Iqog6963lz7P75QhaoSGF4V9LSkw/JN91GEpodlMpkuEtseRqgwdEXXuzaM9LsDI0N/b8mKCUYRcTzy3Rrb2MyK42wzIYPsiqVEqK4rcM0uhsOe7RfZ6D0MHECYvR1zabRF/ufW4B6eg+0VRo8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709062273; c=relaxed/simple; bh=pee93SEQ2pTVDJ7d0+UvoKsgkeGlqMVC0dwB/mQKbhA=; h=From:To:Subject:Date:Message-Id:Content-Type:MIME-Version; b=oRDBX/uGqal/EdSStfBLnawx8f8B3CjPJWFEEBWWKZkj3qPay+DXf4FZurEl9gVyVsz8o9dEBPhO8pB1HwIVDAExZEGl0MXpo3uEJkmf/M/2XfpZ8fhxK1lhUEQmBXUVs4xWRzcWkpZEqk6gGZancrIoF+4g1fg1NE+uT+BnHVE= 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=ZES9GKT6; arc=fail smtp.client-ip=40.107.21.52 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=Qvk3B0lsOXJIjEJRbs+FXiLXvrM2oSZaVEGtTNJX2O4iCxnSDZKMGwR2kZTJ3zTNTnGuZq9GIKWOrKf/Hr7TOEnQcVJxjjnsPGmf8K+2xhex4iPCECAE1ra2nBH0+FLrCt+ncJkmDvZUU56XeRIxVOsO+36S1md7diZVHKG2MFs5+bNchCQsNUgcS2Mwd4N6UgVN36Fxx1/yT5d6VYVbQ8A1o39HcMGyjtNsb/9j9Quht+SaTT9b9C4Fiori/81m/4Vuc+XiPrt+Y3gEQ8h7Z4SYuj6EMebMhwTSLeLe2B19m3UQ+IdEIF+wtcZ/EkK5BzdYbyI96DHO5SMP3/Iq4Q== 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=q8EojhKQxOO3uSAfk8DLIUue1+Ijb5U94mPX+PI8oCI=; b=jO6M7/Xv+tuwCJnqvRCoiUv03oID6D6iWW2RrUGDKK8h+j9JV5F5aoBjixn2HVyPsPsDkn4wkRFZjA+rdkdISKXo7CNAvn4gt2vWkW0xuQPKqSg12vF51vPm8j4bW4ffbavcsdBdq0mZfAEPtCLsI/HnUIAKxPec+i/dLMxMzZOmCc9x67N3J3BbiPV3ff1+eYVhlviF6LjSRWZsYaPwslZIsLbw0CR7jb4pPzLm/riWSm100zn0Wu8Ng20nByorlu5NuO/PMTeSPTzjf0KC22Pnu3ahfuxGEKjRTpAmq9RQKAlhLtn9Kce51Cl4Rb95mwDki34OxYXEf+4I4/WXYA== 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=q8EojhKQxOO3uSAfk8DLIUue1+Ijb5U94mPX+PI8oCI=; b=ZES9GKT61zvLHZSxFbUSHCA+7ShNI40jMuXVWfMyKVcoeqGlJPf/a8scbVkacZImCAxMVNQaHLPIJ8EApCjRW688BawuSiy6ENZtdbHnPkPuLKsdoqnKzMThE3qkTBzrVgoXsztGVEn+lXrEi6hfhBt3SYeFjbxl4ufs6ECOLbs= 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 PA1PR04MB10283.eurprd04.prod.outlook.com (2603:10a6:102:463::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.39; Tue, 27 Feb 2024 19:31:08 +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.035; Tue, 27 Feb 2024 19:31:08 +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 v2 1/3] arm64: dts: imx8qm-mek: add adc0 support Date: Tue, 27 Feb 2024 14:30:46 -0500 Message-Id: <20240227193049.457426-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BYAPR06CA0056.namprd06.prod.outlook.com (2603:10b6:a03:14b::33) 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_|PA1PR04MB10283:EE_ X-MS-Office365-Filtering-Correlation-Id: 0053feab-4537-4668-c623-08dc37caa5b2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PSJxXNtFlB4afDsjuEC/DPEkxhmlNf5wHReaPBmmU68p2aO3Fgw8tXgLsoIEv7S8fcW/1zoZv0PKvvZp8QXCOpuRMcHLbAMsok3Rxu4vlv9kkSygANYyUatmAuliDi/dslHfKcQP+Z8klNhTqyEmo6HbECQHWPrL7JWkGI3FF5eGYh9tmh5L9Ooxpk/a+/tQJB2koWp7VyOuS2m41MBs5r81T01ZUnR0c77Pr3LT5VpMufMzitVNB/cklI8utxyQwG5BwNuesauapvkzZdDXuSjc9LPuC+UwAzehIkQ2g/x5WRPjZ94FPQTzIs9Oll06pWE5ih3aSL9Csfm9WIqF6T9HX7vR8FlMxJyD5ZSXhR97UesW987SiH0j1T4RihA+6c3hDNcyADXFtwVWwiZYlkrVJ2AzfWEDzLy8s90tOCEhzphNj15SrYmoXOd4SusRB/YFqFZTLQfJ8JWrO3o1oN9xaoqtj5cXO8hvZzX7SMEaUH09Uj9DXB2i3+m5GBjiwN1OW/W2eHJQk6+XS501Oz/90HE1Ry7AxmHqzbm+qwWeEWZcGYlt6pGSfHIfFdMEq6K1JPWkIIq0ks7ZUb3bvyVMXbZzGE4vbsCp+gXjmomqlDFjJXihSbAfBLnRXRZqVGSJKwJSlTB1ZtZaqYrkG95RpLg0fj5YBofG7nr/XKrmgVFPZ1g8IbkpD093R/I/H1nehN/JBBN+KBXAVNJhbpKjYmQQLUVFV7ZpRNow8b8= 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)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: k3wdduClp1qyk0VLZivgnFYulcOqmcfAYXXZZjf3gaB+sNBFPtcBEl8UYhbwZxsiq2sgI+Hc7x/NFMfj2NbyKD/0hfWpyd6Hy1G656tXdWyt44LB8/f+O5N3PcYhcJxlLPaYp0NGYeyhMUSYosQOIfHIOu7rcyl2RafCESp9ZfJSXtTWwD/xf0eXd3QTDYkm3m0jUxYqg9MvhJtJR2MHg9s2wd/kwmke76dk3FguFkjg/dqsb3axwpYBUd1MZuAA982/3aaGLrhjhqjWiivSUCne+tmZB1ImAE/+d2AW6vBQjqM+gjNuq/rHPxbVn9D+af+TNohU9wf0MfcCHTaVIGA4j/5JYw5JEozWz4QE2VoVVQOTF+N4yaZ4UpT8loOLEGgleqWp04hPplIJYZ7f5TspkZSLNA2PDsT9kV7ZoJXZqPqaJd1yoMqV0a68ylegHTJNgsT3xeyyxLxoaB4VuKpGqyY408Htu4CvjabUtiw2jZdojzelBXd/Sp2cVTLy7RSdUrKs0ug7bGz7v/62VhaZdcb5XiAszWeP6xElMUkbxe6uFqG6s8At3Lnu/bVXdZXhfgiSKv5zPyJPZ4CtXIgvAkUmkMjb99BWrggrt3YTuWibiTVLKcQ+A+gvPmOBrD6UUZnxv3zdRB3j8GluyBCdjsNOvokgSKibEcn9RllM31G7eFho/wquWP40zSLwTYrwgHhTfIbrewLCDwy7+UGFY8+U4ImZUAOMABO3QnHqwI8T5RfKuvVAvk72FAv5IIDPoyEcIPsFlRQnk1ZN23RXOHb9Ba9EJDVibCg2hoQrmLwHHEnD9Oiw4RS5HvVqK6KMYsHcwt5MyzyFV36KvSv5U8ByFgSlG8iPTVtjtcfrf8E+/wOr6EXgXEZa0n3cWgKYt0nYKn69zlxqp+oubyYw6ahfrsPBfXjXeVRKPOk2mk9+TeBURP7lHeRP/LJ6HHTmm58aOj74jWopW8vslNPpOYoY46V0Jpr2gq9Npkkp0F3SpADOYXFc/2nPl0ggmoCq/YmdF/5ML8qifcD0Zs0Ru+ZQnN2gp6vInMQn1mcUYsrHn+dWrxMUsDN4DX1hmgDXzRGVeZ+j9bDA6lpYYGiexSQ2Iqk60Up/AYILM/brYwCcm2mBdNL/e9F5WhZWMDt6902UrC7nGM6Xxu9LQOYMxGoIsyVs5ZUN9LQKV+/QBg/WTnYzxhTRs06xu1OXMUBd2IgyqIVj9sD12swrl6luzXlsrNP3JAWCRvMyaGisT/3b3wXaVC8QaeIKPOgk9UI+Rde8bFC+V/B6JBZo717/QCvoQCICBCAlpfcLpI5BB1lZbIRGW+r0mPg7rKwcEJrfR0Lj1NLjSmz6PWIJ41PFUAoa71BchWGmWwNyChIvmsfcX+0RNS1JrP+OUrsH1mdThejM5SB2Ee/XkiPgVR9zMgKWeVWTYg3EauT4eZe5n06dTNkqfwYEfNqTRk/F+KYoPmo7/gi9vhgVDo5WzoakYRtsTlYLX3NeXA6psAce0xXNib3nOYJuFBYjQq4eQajTe51mDdoWS1gQG0b97MxFYs5hU5qG2nZV63n1REJyebb5A10ew6vIYhaPn5U0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0053feab-4537-4668-c623-08dc37caa5b2 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2024 19:31:08.5574 (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: Ksb3LTjb6mmTKddBz4S9TFlYBqDEYT9z1FK/l5jVjpvdXWPEkDl394Z7IlVfKOUz6SpdYxBSw8CnK9/Ec3IPLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10283 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792083967954622237 X-GMAIL-MSGID: 1792083967954622237 Add adc0 for imx8qm-mek board. Signed-off-by: Frank Li --- Notes: Change from v1 to v2 - none 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 Tue Feb 27 19:30:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 207394 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2920652dyb; Tue, 27 Feb 2024 11:32:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCViVDW1hx2vUzqWVFh/s+8Vjxyr6I597pKYzV3Zorq1ZsKG33DAf/ibAS8Znpqd68WIr8K/ppTOWI0kDkF2TDMzFRF8lw== X-Google-Smtp-Source: AGHT+IGRv6qQroZdVsvNdhAcEy2v2vn18g5ppYPd53K7qvQdEcDbVQGsd9BTs7RY7PiwsoHlM3Hd X-Received: by 2002:aa7:d297:0:b0:565:6bbc:39d1 with SMTP id w23-20020aa7d297000000b005656bbc39d1mr6736487edq.5.1709062355999; Tue, 27 Feb 2024 11:32:35 -0800 (PST) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id di2-20020a056402318200b0056577684470si928949edb.246.2024.02.27.11.32.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 11:32:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83934-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=c5GuIbyA; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-83934-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83934-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 748261F25C92 for ; Tue, 27 Feb 2024 19:31:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C44F913AA27; Tue, 27 Feb 2024 19:31:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="c5GuIbyA" Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2052.outbound.protection.outlook.com [40.107.21.52]) (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 855F651C50; Tue, 27 Feb 2024 19:31:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709062275; cv=fail; b=PLzQh7F7+B2bvn5J6bvuU0S1DWMZtcs5yjHRON/tArtGT1lJVZ2b7VvZdSQEjAwG8zr9T0K8pqgyZuCggKCjM7KSqaJvaVzN7TEf+0woWgp7h3sRc+dRASUXkKyUbQVGx3bJFK/9u92qCtbCIjRWBb7eVFv1BcsucrLO4ZLyICc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709062275; c=relaxed/simple; bh=PdwhlRBhVaOuMCnjClwbj4R8cI2uD0jRnyx6xHGyvI4=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=UH7eItUNTxhoCKgweO8OQc9UNr+BAvCqX/8q53/rKKymcAMkt2VajWAiJAteIyW8EGtKDHXaVmqHwqYyxZXsLMFGxk7KGYIT4gPUDhQuqaUmc3ArJYzGSAw8jOgYgul4y+G5CkZc7Y8AWURV2UfYKwh78Aq7ehaUp0asAd0o9hU= 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=c5GuIbyA; arc=fail smtp.client-ip=40.107.21.52 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=fp5Mly4Y6+EPHQyFTHNexrhLfI7SbxepQRtCEZiljXlA3avbeW+vc/OIHuyldoeQksF8T56cx5ZWXvxmF8hjw9IRLWJrObaUPe/7i+WAvLmGUuVHMDfFFs4lr8DhVfemzFjmDuSvkuJoKBbelbF5RY/6Tr2NVG6P7C8rJ9CVqaNIfn+rAeLzTUmj6zemWz2UE9lY4SzKDnwdHpo065tzTJavmgOJtE16R8yDXqI22xALbNhd1JBOX5ch13WPdu/a05UFPQqsldXvMCukzOmYbsP1rVTBDOV1enUg7dLJ3ZXUO56AVLAPyWzWtpYq1jGnKVSAuxFzuxzBaxsXhOZTbw== 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=pN9RtW9mIrr0nnL4TcY/7557yfJkBbT5/Aeitge+tZY=; b=hkqyrOCbsaF1qdzecm7GDkvKJSmUTztz2sJc5gqhB93T1ympZ6Le202Djwdk10Jnvf5tiCXfvqBztSpQmoVXBSZCivI3hW1ORh8XUy75aGo94Gr+6nK9vOHO0eY/YhLEssY2Sm4fijj2X49EjwRx6w2U2SV9M2gMBIq9GDhfe4IwF7pR4f6SzzyiqDxATBMs3Dd+sj/OSMAV+OHGW81BpAx1mk+pg0yirub947e/nNRrLHPGQSQPTBo04HqJLDm6R/udKPWT5HSqDW+tjcgK+G7JL6K387YCJeLOnsQrAT1HEZMYi+ob8/fdtBDajnibjRulSk43XozfC87/10Em3g== 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=pN9RtW9mIrr0nnL4TcY/7557yfJkBbT5/Aeitge+tZY=; b=c5GuIbyArvfqL7rTYjwrLBdHCdZ0o4oB/DGQBNwg2rFZ/JLTZdJZc9l8bp6a/Vp+O04kcl3gmgfIBmmG19GuJYVMnPAak7WCak+GTMcqUoExqppeJXOaziutZQPAX2M8Z7shZkd39ow5mu7jRFhrzTwnlpPcb6rl9KMAPiLMKEM= 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 PA1PR04MB10283.eurprd04.prod.outlook.com (2603:10a6:102:463::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.39; Tue, 27 Feb 2024 19:31:11 +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.035; Tue, 27 Feb 2024 19:31:11 +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 v2 2/3] arm64: dts: imx8qm-mek: add lpspi2 support Date: Tue, 27 Feb 2024 14:30:47 -0500 Message-Id: <20240227193049.457426-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240227193049.457426-1-Frank.Li@nxp.com> References: <20240227193049.457426-1-Frank.Li@nxp.com> X-ClientProxiedBy: BYAPR06CA0056.namprd06.prod.outlook.com (2603:10b6:a03:14b::33) 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_|PA1PR04MB10283:EE_ X-MS-Office365-Filtering-Correlation-Id: 3868f2ad-fd81-4448-dca9-08dc37caa7b9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: A3Wxl1Nlgbitjs0qI4cBm01s5qyNmqoppBnlplNgbmBC8rhkaB2znmkfelWZVwbaAWmK7EsuXl7jqqwdXIBdWvGUhnnOKhd27aNxYfou54Pjj1gRZ6cn/arQ5e6S4v6Djlk3IkCUmTc0eyFLaX3E79Vgi9zqK/Dun1K2o6RNXdT1JChiUWnD4BLX16owBiZhCJbPuHUzJbcV3oIF7ZKLMRC9RtXb3Fv9yCFxDEQCdmxaYPkheosvLcb21MYioUgR13eimjc0XsJ+dQ4ksp1DfXRdGIk11f1H/UUqYTK+CKGsPoP9D7TkYZHMZDOnI5i1TUp78rQT922vUCS50g7FFN6Ku+j18HD3iY/+R+te8n6F83Xy2oEBKybqVYDKJq8R+prrYKMMkfgx3JKLfxWzvU0lGlcsOlaZtJ7lrahdVVU0zXZBT+P8MGVbaqjGjYUJSEOyZf7zzNUpp9F5/Nr+OpGSlfe0a7ifSdSo+1Iz169U6dIhfbug93oADc/tLXObt701dW1b943Obasy053XzQj6q4uvpCsDqBxEuGSh62E/aQvUEdQAwejSORwHOfSznBYo3TNACRazNZPQTZ/OPKz0eu2iiVY0g5036iI1qmhrMB5IMw1jCW93ihSVK3ZQztl3pU08vA+yEtZU/znGSreroZGPcNPAnGOKhlvaZ1Lm7stS+pAx1RUQ2AnBYERQAAQ5ShZ3RH/nFghZ6J9UEV7HlzErxNIY/pTX+h1d/ug= 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)(230273577357003)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sIIwc828dB/qGH4eW+SUM376pNL1uYefmahavee+TAyVo738NUoBQplUjL48yV2kCJG0IcRAvcEiaK7St/mEB5YtNvzE9jlkMQX+KCAO59524qiVDvCBaHrty26Fv9lVsel2gp0SPEgU5vMTrZXbb9k39El6X+3F6j8S12VGhEBHsk3Amcl9x0h8+jQDLaw7XoYC9C1s7WbSSR3dX/DbxqXI897qhdIGiPLGzNaxZZu8AOCAGpfAhCVXXiy+zoqLU736n+F5cIgKQvYW+cq9PuuQkSIJYc5gwxwtosb5qpDTIy0qKKqb2oKRMEZOS56GqWF/2dRyPz3/YyQw2QvNUUHN4hfjOsuff7yaWHSDIxxgxzRCO6BWWKL3oBvE9WBO2YTsFMkPUJU4jMtv6fnSkJ0tW/R3AYrWzWaH2otRIMpX1H/K5HqN/eE+fMtbXPWvH2sR/Lpf3EyVxvo+FZFjJ1YdTzlPPCvp4r754s57Z6QBrpLhgqkQfWNEntfRpXVcLehiwDdZP1uNVTGCSEUKsa0ihHgOmHnt5bEQ2MV0C97dYv6DSDrUS8BlgSeXSrjjrV+EffbzWwRz2O3CwlFVuB/YCrYUeZfNmzffQp5wQv+VKRrVzSIUahnPfRcvhQBFMeG2sR5kx83P6jGGu11n9962PlossvJO8qECrpYymSp87m53E5NeZQsH1Iexifkv23r1Vvd/1jTYzjkosvuHYaskrMLP1i61tt+pukYJQrKNtl6TGECrOQABSsQtR+sMHr+NIJ3dZvXbMXJj3V3Qq9mU6P20TbmEzo9i9R9yV8VtkHG7qZQWQixoH1Mc/ZiEfxNTL0VOx4UWQNi/AIkBrEaeH3z+jJO5HYf2mjfoWiSqdXId//xY9SgLqmVLFKH2B5nRZmZtGJ2xKVlYrx6hGba2z8C3XL4MoqL2sAo5Q3Fs5VQax9WI0LTEBRP/JWj0WLgItRrDQ6OkwGbn4S5GvJbLV+AaLyR5CKxj/5f65ndGhmR2NV9DyR29aL341LAbU+/MWfuiXYeK6QJf4LRuzCc4WtnC2THB/cgkiwdfGHo9IqAe1as+L7MDKK1IKNvQ/JbrJ1EiwnS1yHw3pmrjALQcp+WzACqQ+OYvLWRnwoemJ1/IAkb7I5BGzh4eLX4Hi5vA8g4yAf2hetd0P9UGopat4824/PJjybyU7pfG5Dq7eoLd570797WKxnzVPwsrI487KI/Frv27u4ozIPjyPThGGDHIAFovQFCEAN76w6CRtR8Rxf2E17kp+rvEMO7NrJuyiHPHfSX/UNhh5lMTY0AdL8OsDniJ10XwBLUVB67vy+RMMf0+EodmEgzsuEiHwRB0mpFJNIfGc5J63I57wbUNpB4tz847qMNlGjCi/4IhIUI+a4GZ9dVWujOlLWfdhNYpXJqv/rncPj7y3G17ii/DR/iEEPs74C4wemLodegn+S657qBx9DeKQV3NlWN+nTNAnHtofCb3dXs8ExvSn1B7lA8CRPTwVMEJmYPJ1CvXXGCP7BIHvXXU7mQM2H2SwtPsgo1W1g1j6d/kn1+2l4FAzBILt/pNtI6iEMLS9AXRtVr/IyRoBkAIG27bcEEL X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3868f2ad-fd81-4448-dca9-08dc37caa7b9 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2024 19:31:11.7826 (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: jTpF5bJw7vhjSeRfdRVKYckOOqOYaaaUvjrl+y6W+YgiQOslUnjUTgxwgpXalJtSbUxrAv5rr+cqyQEvpN0sYQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10283 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792081768999583827 X-GMAIL-MSGID: 1792081768999583827 Add lpspi2 support for imx8qm-mek board. Signed-off-by: Frank Li --- Notes: Change from v1 to v2 - remove unused property fsl,spi-num-chipselects = <1>; - rename lpspi2cs to lpspi2csgrp to fixed DTB_CHECK warning arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 0c4972724b041..66e0400d7bf8a 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -85,6 +85,21 @@ &lpuart3 { status = "okay"; }; +&lpspi2 { + #address-cells = <1>; + #size-cells = <0>; + 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 +184,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: lpspi2csgrp { + fsl,pins = < + IMX8QM_SPI2_CS0_LSIO_GPIO3_IO10 0x21 + >; + }; + pinctrl_lpuart0: lpuart0grp { fsl,pins = < IMX8QM_UART0_RX_DMA_UART0_RX 0x06000020 From patchwork Tue Feb 27 19:30:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 207393 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2920435dyb; Tue, 27 Feb 2024 11:32:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU5Ktq81Cn9HkGadreQvjUoFeKEKVr+3QGzVebtgCwwm7KBE02V0eVNF7J0S1Xn5LYEzhvtPyKkCVgBIyXKwY/7ruU2vQ== X-Google-Smtp-Source: AGHT+IG6rNX5ez8+LrZf9sh6sPHQ1VkXDUDIovDTjtDUJw4eqPHvmnIFYiZ0ssCY6NYHfVyNkXlK X-Received: by 2002:a05:6808:2096:b0:3c1:862d:7e2e with SMTP id s22-20020a056808209600b003c1862d7e2emr3566568oiw.50.1709062328120; Tue, 27 Feb 2024 11:32:08 -0800 (PST) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bx40-20020a056a02052800b005d24ebc7f36si5757071pgb.406.2024.02.27.11.32.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 11:32:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83935-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=om43j2Kg; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-83935-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83935-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 943D1285028 for ; Tue, 27 Feb 2024 19:32:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02B5814A0A5; Tue, 27 Feb 2024 19:31:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="om43j2Kg" Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2052.outbound.protection.outlook.com [40.107.21.52]) (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 B126A14900A; Tue, 27 Feb 2024 19:31:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709062277; cv=fail; b=fmEoOsE3XR2a4YBPe6aOGrqDNDwgXq7NcUZHkeJyaMtX25aVFJnIEnyfpXP6z0gIiMmnLNgy1Sd3VoqZCGFRWHbLob+6ottie/0UJeJ/rmX+SxYjdEWXJSejij4c945s28/nNpzrXEB9NjOjqDcFGSQmjswrNiRJP/YEIvpwaWw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709062277; c=relaxed/simple; bh=+wseBTlpnPrjswo5b2561s+EapgVyK/Xp4y6z+dDaiU=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=VKusOzwtiqhw7nAKq25zAqdNo2ePZqm/V38jVDF656ntDAzUgb5YbEIRKh4YUVQUrtSzJ59SM3xHFWbogrblmXHQvsxYgF+l+h6XH17v1nxRDu4RCx71KktLJCFy4bskIRpIGSx1MmDtOE8hGH6aoTliEKLH3sUi1OXbJq3RAdU= 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=om43j2Kg; arc=fail smtp.client-ip=40.107.21.52 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=occfNMNsuQ3ZV4gB135ZaTu2dIod2KH56bSWESx9nSDPQKv2oesU9TR7lhUi1In6HAWCXDUp5TymTvi3VhYicXPozqpacj5xItuUZq3RDFI4Hgb+DDScOk4RqIVUbVqLCDS/eroFJOxyQX+/PmPc4eeuhK1TONCb6ingRNDhOuenGabi1ZjOlxdQa5JBe3RJzU6b9Q8nXyYW7xJF8X3d5k16iDd6zOgjKtRv3tK1wnLvB7VAwi7ZXMTb5krVgKgArc2j0kJq4PHK90BWWv+7t3cqws4EuMU1cID66GNmPDSz1Sb/wDi3ygbBPGFFg+gFdN/FWFi+gs5F544VVXXFKg== 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=En3DJakeUn6x/tBA5jMtPHbdJDMvB93OvXU+bO31jE0=; b=Ss8YyhQ0nVM/yS5OSucV+v0vx0F6oeBMo1VeJjHbktkyMOETHBMMDklbgSFEeJuefILXOUjYGbBZvpu9CJkQ8gkncjBZ6T3R9Efh0qxNKTlzYT57BY1RRqJAUk74NXGiU6IaxLSWqO7EbZDTNivC0hT1LzLRNDSdFrCnD6rrdBYaM6gi407zb7R4H0MSHYOEmx4Ou5SfdHA4IR1u0DjfU7MCoTisZvNb1Irt7Ddo7PEgd1iVJwnbfSfv6/uUtFqqISLiH65pWuN8g56QU78HeLwupRkXUx4VoHTvSPbJP4nuyw+Xp232H7KcaZRarPWSx5m7DUXa2ZKdDdswDVLRPg== 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=En3DJakeUn6x/tBA5jMtPHbdJDMvB93OvXU+bO31jE0=; b=om43j2Kgt3gvdVElfCneDcy3BWIH11iVHUsCqkEOQBmqT8Z4DQlzWE25XPWqVTx1duOPdbpdSTGCP8QJj1wfufCzzOenKlZbSlyxlX7N055KWD1bVHQfmoUlgPyf86PYSUIS/pk3QCLoezCSk5mxkSadYTVeCd9ULvH4dhmKPh4= 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 PA1PR04MB10283.eurprd04.prod.outlook.com (2603:10a6:102:463::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.39; Tue, 27 Feb 2024 19:31:15 +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.035; Tue, 27 Feb 2024 19:31:15 +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 v2 3/3] arm64: dts: imx8qm-mek: add flexspi0 support Date: Tue, 27 Feb 2024 14:30:48 -0500 Message-Id: <20240227193049.457426-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240227193049.457426-1-Frank.Li@nxp.com> References: <20240227193049.457426-1-Frank.Li@nxp.com> X-ClientProxiedBy: BYAPR06CA0056.namprd06.prod.outlook.com (2603:10b6:a03:14b::33) 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_|PA1PR04MB10283:EE_ X-MS-Office365-Filtering-Correlation-Id: 19d49b5a-e74e-433d-9c97-08dc37caa9a5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hZYyKkYc9iFe8DKfp1nA+w1FS6xxZX1qTuX7/zdeXv++ab1422oShuqJPCcMP0zjQjili2dZ913hMyqF6tGpyKyisF3jEwkDQWy2FdRsnHyrzKEknyDhnkZ1FKaScaO3rpclvMkIWPrZUcqjON+SY2B8sjL4ueMxLZMnI4HX67V/4Fg43Br1HYWQ/Pgy7otylCi6NfNAxikQCOobW4hl03GEPvcTgnQlUdltYmcoiJW6kGR4iZOQHt0UVbCb60efndBTLYi0zw3DLuaL71lrLBHGudbQlf2PRI0YOWyx3m2DNr0RLBi2rn1fKJloZL5u5YPLQ3gasuB8g7xxU/j30l8V7uYarGMKacQoy3E9BBU1J3ru6rVaLeJ8xH3pspr7VwT/wG3Myqtr2vbVm8SiHvX+BHzgvMi6ejYtXACl4DQ/pomgbs4oEswYJovso9BrIgMjUwvsdNh6MsvoMo7giXiydkiI36l0aJYc24B60qxNlh1Rr96RvY5/+oWxdXjmUGcp+Gpd1qeyFSaepsYOi/EoWSBzrU+qoAFqCK6J2c15xRWTWMYfrE1jUy8eo8sa8n72vtQ+momBHKObWJmf2JweDhssnRMxz/twfEVDqxHSsnGVuNwBcxehd9/Megv7hwShqslKzh5kWHJ3SPuomYU2nsovYfGM2NAbFfuSX7q07e/M3/oyD+cA0N7piI/IPYimNF0dG1XWpPFnVti29GdE9aHja9ILBPWhS+Z/kQI= 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)(230273577357003)(921011)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 8i2jeggvOlqjzYkNjAFOw6zGloPoLYnm1PNZXmptSz3pmbvG8dk1PNLkVsVcKFKZB6o8Ve4RhSGN0BvKZG7+J/VlTT4omv7ZC9u6CEPJJFPXoDvpYPsb7oulY3PSKNnjMLVMf7RAObSjRBjAqSPnljPmJp64D8a/uy1ChKcYa7uFHt6HFJI/ubtqy2oHAUwrcEEk9vOdRx/FGWmloPdDYbuqG//QVBUgvFMSRWTh7gjAXN1aEatfcptfIqHLHzYVi5KC7zfOp74Yq+rSiD124lfB8Z+176BfpoEi0XpGiZ7H6M94KY6bqZqtD5YMjfC1S40524wExiZwbuLEMeigVGV6fYdhY8+jznri+t3dbsf8I/bRR2yKF5v6MKyYd134oO8/IYIlfBzQoK2A+vPXtihA72CSXY1RwzRNXdu0EqAgtNTpOSqbEmVeAotaS6BzRkIAFqjzFXbXWkQl7CAmxTBNAEO+vozynMQEi5Hs+5AkbT3ghmS/+s2G/PMQrarDaUpaZyYXYOKc6Q9059vwjcgBEXQWKQZITurEp3wcTI3fniN2K3WhUUUqqmt7LXOBuv2aCfhstTlYgu3qb06NadsOOSKD0GuKqEDShGMueolytzaQ8W9ekMXUiLO8qN/tndxheoFrVNcZLtjqzPGYrIBjESP3wl2ujC5NHYMsfVSwKzaSf+lhcG2BgJgOgsEeM6LgFX8RF9GJ4Z6aGtK5sGPjgBIJiIsLlzzSDm0KhKQwRoOLikUJq/dFaPYWTAHAACvglWozz41HD9TNAlDZT9++8IAD2fhmiCBo0kYy/R2+HjSexbabJXxYJDFaoSRgy0kIWkZWR0KycAIlwrLdYHeINCAFnyKZUfkKpkQXq72efFCqC8ag93+c+Xcmfhun7fRCeKLdtYBx1obVNOCYHd57JPIppxHNjFRM+KoEw1uvWUH/9pE4AyT2MTvPXF29AHUHuKrwPoi1zEC4iQhPS1w32d1I4XCQQw8DN2oknePkGS8lLmQ/smlfDRMCTtzbgcrRJsVG1fh8SHTq7/+7OKtCIwgCDwLKr1psrAn1Cdifm38ddnzOkF2tkYB+7lDE+TYqXgNor0sUWipH4akb0ccI1shtRjDp+VnhnM25Ii8ogLV+KjzU/th+MnxtgZNzDLplbYXny81WvzLpWtWhfb7N3jEPq0Uy5gxlkTW+7iT1O4g1SqxbiTJJ/t9NbiJrbWQJyhaibN6NJlN0k2OgeMdpNcJNHZl4aIJ2wDm+iNPmopO4jY6exBqfg+UZso/zeJDSECZoEw7NZLAbZtMn3OdDRdFj2ri8pE9wdjYj2MZxXc4noPBYSoPaIJkSVgCeobSI1o3cx0Uh/dLu9DglHSRybOIc6gy8CIWkI2rNfebXAN2WUsj0+43Y0pTRVF2Y+ksAi/VSSw3G1orIw9Yg3Uggxg/jIgq2PWg4KsLZmphdad6fABCLuN5sFo55A22zDxni1zEwwfy6WtAUkWaiH0WNuYYFNV2VhOwm6ish+eleTqjB+k/f3lmDotzQP7eI7T3KLXxBnkqIEV63ny479gFkbWZXhE2IfPuooosQeSHjA4ZYo68jCsK3ysHYvB3U X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 19d49b5a-e74e-433d-9c97-08dc37caa9a5 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2024 19:31:15.0258 (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: coUiz6ixloBAjHm7mtUefrkoqu0Tz6jQh/zw45bFGvsU06k7ZWVbuPgsfjHhNPojr+Z6iWNB3LQ5XH2mmbW1qw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA1PR04MB10283 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792081739830296352 X-GMAIL-MSGID: 1792081739830296352 Add flexspi0 support for imx8qm-mek board. Signed-off-by: Frank Li --- Notes: Change from v1 to v2 - use flash to fixed dtb_check warning - remove usued property nxp,fspi-dll-slvdly = <4>; arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 37 ++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index 66e0400d7bf8a..5c6b39c6933fc 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -100,6 +100,22 @@ spidev0: spi@0 { }; }; +&flexspi0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexspi0>; + status = "okay"; + + flash0: flash@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>; @@ -198,6 +214,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