From patchwork Fri Oct 18 03:45:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Song X-Patchwork-Id: 13841073 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 41E92D3C53F for ; Fri, 18 Oct 2024 03:40:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=qy43nKwTHiXOjDw15yMl8tTJdF/l4Ci3EOYCKW3mVo8=; b=w4lxxxvI0nUEQs9OksgrMU4hfI hZyk5DlMOMdDdka1MYjcOhGXKM6+gPc9U6tr967b2LeHulm3VcL1qk2LNyupTA+5eZKQxHPB17mlC eWkMo1lyRuJFuHXKy+0OXigDOlY2lizDc2aFjBMGd0qBnvruXNRsgMd9GRAqbBxrf2siR5JsN2BXk ppTy+JStdeA4XWZd/klbfr3w/78gDF/r43bt2wj5J4d8R7pxHO2k2+qIoa2fA7G4aL4yP6UNeNDlk xfmXCIkd0U8JJGX1oFRGnvjBp/RgsBlbjF1A+IDhlox5APQ33GFZ8jwYZQqDHuylQ8JoheNSOlerZ iuF5PLDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1dqS-0000000GoKT-1hzm; Fri, 18 Oct 2024 03:40:08 +0000 Received: from mail-vi1eur05on20613.outbound.protection.outlook.com ([2a01:111:f403:2613::613] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1dnZ-0000000Gns9-0lOy for linux-arm-kernel@lists.infradead.org; Fri, 18 Oct 2024 03:37:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hTTme1c3CevH6Ww4XgUCA5KOH5n02l7/3A1hmBobU11RPTpBl7zZ6jzJ/pw5gjW1Tm2i64O6hgl9YvcgvNvS2ijzk/AH0mF3k/gHxyTVr1gwRzNV/kDWJvHuDx8Mweedp56xLJ7uTseMy32HEEwjJ355eAzGbI2akMtD2v+BhzQLjVrOjLLvtc7aRAWyFYN9ZNf9GMuyNjnRreAuGjR1HnvmM9VUoQrqzwRDpitj+HeA6pnk/wnBqGydZp6f9Ekq+cr1XY17yqhhnMO3wDy/SWPesw0AzOGWC6w0tgYBz+90jRWx9BblsWVHR9vTfo7Dm/ub4Q++etwEhABeuiwDBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=qy43nKwTHiXOjDw15yMl8tTJdF/l4Ci3EOYCKW3mVo8=; b=izB9TSpoOwviVLhSA8GOIQ+wtzXFRLuSG0H69zXm2XRC4756rw7SI51+bX723lV09cNqi6f2TGapNuLl1n4JzfffzusGe4ksfg7cG05U14JC/Tpi8XPsdVIMFtjw4iYvksFiLgXeliH+wpjMJpVowI8N+CYffViVd3cEH9gj4/6+M6AsdQ50+AyzlUXpUtwTyR/mVO6dG+MAAs45qBFWEDOkJqYvO9fyid+NntJLNH991pK6o7HlbQ5RBTNdTSetMVxJuhm5qGDFVFnt+TL5j5GuI2QO5fYutnobXOIt2fp5FWIjD3M9fc5dHa7szGJ5lv87izJIs61aw6p6eOz/1Q== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qy43nKwTHiXOjDw15yMl8tTJdF/l4Ci3EOYCKW3mVo8=; b=PVUM3yYVxSaGQOmTlBgfcbCV0Vldros5vCWK555MoATGAgiHLnIFnaD7HcpYcutRfA60G1yeCZvO3kFCtPWhZ5W90DXhgnlRPwgH1OxghNlHol9Zf8naW58B+I6aCMIJAR2hDSC6xGs39OqK23DMNJ3vYcl/Ibqc5d9A6hp6H8IgkXqOPXRhIHqqD1f2ptkQwYxmvEUfxGfeLOzTIBSA/XqZsHvgs6ZdLyV1qHOXWzZIbdEjlP54/Ub0qcVfp9fIjbDwkHLbDCETcDWkeyAMItrW8Xf8KmMuplvAtmZhyox1ItXh2yP13s/D0qFwT9lhP0au9wr+2KEP5LnVvtY+AQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM0PR0402MB3937.eurprd04.prod.outlook.com (2603:10a6:208:5::22) by PAXPR04MB8110.eurprd04.prod.outlook.com (2603:10a6:102:1bd::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.20; Fri, 18 Oct 2024 03:37:02 +0000 Received: from AM0PR0402MB3937.eurprd04.prod.outlook.com ([fe80::4e37:f56b:8a3e:bff0]) by AM0PR0402MB3937.eurprd04.prod.outlook.com ([fe80::4e37:f56b:8a3e:bff0%4]) with mapi id 15.20.8048.020; Fri, 18 Oct 2024 03:37:01 +0000 From: carlos.song@nxp.com To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, haibo.chen@nxp.com, frank.li@nxp.com Subject: [PATCH 0/5] arm64: dts: imx: Add LPSPI alias for I.MX8ULP/8QXP/8QM/8DXL/93 Date: Fri, 18 Oct 2024 11:45:27 +0800 Message-Id: <20241018034532.2552325-1-carlos.song@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SI2P153CA0001.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::7) To AM0PR0402MB3937.eurprd04.prod.outlook.com (2603:10a6:208:5::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM0PR0402MB3937:EE_|PAXPR04MB8110:EE_ X-MS-Office365-Filtering-Correlation-Id: ea1f9d66-de05-4c0d-0316-08dcef261433 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|38350700014; X-Microsoft-Antispam-Message-Info: RoTkow9XOgKZAHF7qmxvy7ONliyBFbqpvsr/5Kmy+504GMST3utKK/bpOfXG63KgmXAH9f48WEdh4K+vWKNoKSna1s3GgwmUsZ+0DH0GRoFEzI9mfuogR6j7XGNFImngzSn0v9vnVbBBQSzYZYEdQNoeUwyo7EUx9fsdLl0oM4P8aY63DeFlczXw1j050guiEeF6lmNaD6en4XXp6joAQXSvZykvGXzCNXfWHqbSIpaqoDIpeH+8i32uWf1JyqpMu0k6xlnLItGNnGBWep8IYPqDrXhOhgE68vSwj2hk1NHy4qwCiAUqY/kgf1vGzm90m4LLLdnm/6Kidkele0GvlmouciTf4Jnh67WaL8QCIHqIn+MnqGIfZYpGJK38xvSEpmmCSvPY1Cz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.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(52116014)(376014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2f/zcJHOIcUmYcKyCF+GbFuEzliwxX488tyCZAt+Jlbb584G2oczCPJSsszQ1P74kSnVLTL9gaC94eaVahpIO9hU4rnoNqUa93HReT6dUXp8pucZSgarOEyjFmRzbTOflYcofLUz7hWkTsiVy3VoWVy7DgxdiYTUVC37YxqmXVEupvFCc9744kYTKYgiv9PfwZmh08r1i+EPRIKqJKMjW7Tu2OxK7x920iNK6KudE2d4Hpt+1yf02hkrSAWhHMpSe+co7pakiFHODZDxyjb7pIVjYhlNjAg337SpcslsFwRfCqQhyA9TxmfIWiTGJXVLKMmzmK+jiqgtkL9HnqaNl8B2+3xbXIrSum5e8uqM0+LMdXnnSkH9T1/DOpZi5sQPI3sCT3kF1epywUNX0NIzIM16XazJckI8mLGp0mg1fNkQ6/4o3viyL2yZN3TfpuKUB43mshkWvvoopQlJ2jJq3g1tWi1DIzw3H0Ji9p8TAg2PJ6o2oVpcLMYSz7Vc3+LFs6301RsEl3x/ukhmOz9IJY5fSVoKWLe0iTy2JFRSK7DFZe/9eZIsTeTcJUo63YfBrIUMw/rQgu0JnswKxmbdbgdm/8l95XvmKmZQA1qKfkjcAdD9OIz1b30qEYz8tY/8sq/GOwtX+Fahr3HiXDPKrQMj8yXglAJvX3xQXkj6TDS8p6tiR9LFgJim1BjiRVwRQ3TyJeMndMaFRwwG8fCcu2Isp8whh7aZcIXa80gUNGRx/UPd3FFTB/b+6wgWi3F4XmJigBrzI1d8u/YMX2nuljQHR72HNlaHwtxpOnOwkgH2SDGSMJ4orv09TIKwrqs7GiEIoxfINgIKMPXnaKdIT/OeJiLm82X0q3CdUwBdG6tLzC8zgIBrOcHWifE4eTmXJC8Lt0k9aPsDCiVqmcVSjNLm3+6ifUVuxQuQ4BgV0Eoj9fI26rVrTPOpdakKaBWxCwV1JrPT06Vi0wSwftLtYIWQ1Q+4N3E84gFAnoJV9QIrkGltLsemFrssSHtorKrJTWxbaWxegypzIF2QV4cLdSJA5GkJCursdnx7KMVArVKwk26RLMBL4pDTsAPVHLhnKVWYW9W2vV/dcrCtY2h8MkGeuYISEv9dOTCk6BTxKACoR4TdQxyRo4k1ZjEgERePZVQFFy8ZCq0NKMzZ8gTwQ7I1aAmg7KdOGJFBrhLK1xpp2viBFDsMW+o6jsaim1+PH5Zd9eC6J66OG1D02GF5r99Vc3CY2qsmaYszHCGaIH6a+1NpGcchwID0X5ws7rLvTVmKFBVPWfjgOsMaARj29zHcYAc41eE0fv0dXDk6wroSWu8KuUkpyQ0g3AD2sdwY2Cbvav2SFOik5HrjOAVLR+vjTq2oaD9+uikDS9jZHHwLUwBkL1lpTq5blLPSmZpCEnSakc+KZzOQ1gqVrBJkqa7obGD6tD06wNvIYF2dHIC2qmS04dg+9u9bi7SC8oszyox152acBH+6RUXG4kKuJMgT9/PkEz/3XT2rnE0ZWQMMfkuxcMXixF/LIsXHsXL54HqwTUa3ftnXhUSmtLX2gxnbiPX6dgxmMe5nCUXYKkNh9nPjShNrHQetJrBYXcC8 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ea1f9d66-de05-4c0d-0316-08dcef261433 X-MS-Exchange-CrossTenant-AuthSource: AM0PR0402MB3937.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2024 03:36:40.8104 (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: 8SQbckNfwqrdg0GES8/sXag3Yn87ojd+xIhN6FIFg9jaut+ZcRMcXjSnxybuFROIAm1up2vxZnlXipbSdy8eZg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8110 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241017_203709_249590_065A795D X-CRM114-Status: GOOD ( 10.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Carlos Song Now there is no alias for LPSPI on I.MX8ULP/8QXP/8QM/8DXL/93. So spidevB.C index B will be automatically allocated by kernel incrementally from zero according to the order of registering spi controller. In this case, it is hard to determine spidevB.C is spi interface of device C on which LPSPI bus. It will cause confusion when operate spi devices in userspace. For example, in I.MX93, When LPSPI3 and LPSPI5 are enabled without alais: :~# ls /dev/spidev* /dev/spidev0.0 /dev/spidev1.0 After LPSPI alais is applied, fixedly B is the LPSPI index and C is the spi device index in spidevB.C. They are the pleasant spidev names. Directly spidev2.0 is the device0 at LPSPI3 bus and spidev4.0 is the device0 at LPSPI5 bus: :~# ls /dev/spidev* /dev/spidev2.0 /dev/spidev4.0 Signed-off-by: Carlos Song Signed-off-by: Haibo Chen Carlos Song (5): arm64: dts: imx8qxp: Add LPSPI alias arm64: dts: imx8qm: Add LPSPI alias arm64: dts: imx8dxl: Add LPSPI alias arm64: dts: imx8ulp: Add LPSPI alias arm64: dts: imx93: Add LPSPI alias arch/arm64/boot/dts/freescale/imx8dxl.dtsi | 4 ++++ arch/arm64/boot/dts/freescale/imx8qm.dtsi | 4 ++++ arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 4 ++++ arch/arm64/boot/dts/freescale/imx8ulp.dtsi | 2 ++ arch/arm64/boot/dts/freescale/imx93.dtsi | 8 ++++++++ 5 files changed, 22 insertions(+)