From patchwork Fri Nov 4 19:21:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 15754 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp594946wru; Fri, 4 Nov 2022 12:26:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4AmnflT4PYJe3MURDRESWDyX4Jod1NO7k8yd7rzIwB3rlIgNP4Rw/2fnNhQscCQChr7/Vk X-Received: by 2002:a17:907:a2cf:b0:7ad:a693:abf8 with SMTP id re15-20020a170907a2cf00b007ada693abf8mr34926349ejc.137.1667589962173; Fri, 04 Nov 2022 12:26:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667589962; cv=pass; d=google.com; s=arc-20160816; b=uY/o7rha/LUiRkr4sj888YbxMZDBZBIKaosyrzMzFeiAuNOw2MMBlIC7Gkd8cP3+Je HS6z+Dl/4Z9t3HaCot1fz+s3gxwCkwhS2Ts36mQu4K+nRCj08mkKtPewoj0P1ktmlI68 mgkNKPCmvgCl026VHK0RPUijJD0WuNX9QH73NFso3ilfDBgxY0L78046BfhXMlxz2+vV Y8ai6aFKLAY+9o9YOw8m8kR297DNwCHn1HbmVy/ZKeNpx9jTgrr74OEBWNrbD2CQKxux TdGHmA0oiVClE+gCnQa/OSJaHu6ytFbVphZo63xnWiFU7agVh84IasxGwBnkJ5C3gBfe WvPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=wSlyb/z2NgF7IIQoTFzg5Txr6NKrw734zlNeYdTD/cE=; b=t5/1aHvgIK3vxrJA6lzcbW11C0iDWOtT6B/6ZwmGzhHHeleBI/VqjIu/sJwz7z9j1e KU8AYJIMyE85nUbiV1n2kjOsx5uNzOz3pHftb/yx658lG2tKtw1MOcgiEJbqCwC6FNsY uNkiTy9tcjUqasK4iF4RWukhO4g5S+AJkQ/0eaStysp5jcyEbB0IRQBikeifb/1J5Txw KOmZCE/4pvIMPsUSsCWz4mfTP0w3UuBuuTZXpfnaCnXOAigvjan5U0keDZK4R7CtuJpI NgLFMJmnOHFrLBsWHcWVkpE1dL810AlfQutnmR/BDh7kVP14sgmc3llUKauaI/UCCIt7 YlpA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=VwfvdcYL; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r2-20020aa7da02000000b00461c9bb5205si297545eds.152.2022.11.04.12.25.35; Fri, 04 Nov 2022 12:26:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=VwfvdcYL; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229812AbiKDTWb (ORCPT + 99 others); Fri, 4 Nov 2022 15:22:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbiKDTW3 (ORCPT ); Fri, 4 Nov 2022 15:22:29 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2048.outbound.protection.outlook.com [40.107.21.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A9071900A; Fri, 4 Nov 2022 12:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UzX2cLEgKRBVFpWxmAziQzrk1D+edB3kDAh0KppbNqn/LS5IxKlklIRG8yG9XaAxtcotQCm/l4+p4yHLYt67DSnRscczRwDEy7ojjbEqaqs3BUkB3L1CCt7ETXmW2KCnrWilYRjnfRioJbEdz3VdbnFzxv2loKZNG3XY0AB6Z+gsaDqHd/1LiRRibTBkt9VRYXKpvnhc6v5O6Wop5sPDK8e5VZFkHkuZ1buQee/jeGWsbDu0LKB+uXo3/xWLw1bFfVqXaC5YdXvQFZrbn7QNCFGHd5E/B+jlkiHl0ATdMARUWTE9ceW1iq7Ur6ff2MzQgBH5ug7hS1TtXJR56UVhng== 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=wSlyb/z2NgF7IIQoTFzg5Txr6NKrw734zlNeYdTD/cE=; b=k4l5h7L4m6ya5fzpjrPFYyEUpjBUeXf/Vkq8PFllcLLap806UkSyi6mdCKTbIh7Cq2bIz6JEBTLhJ5PE3iIYUZvm/sE7rFiKK+h1Y8EGiZ2K8T1uTEnkI4nbZyDqLgFJ7HVZ6rUppV1il4FdyELhCqQlQEeVT201ToLegjYERW3PC13Zdg7xaVRUTMAWhuhWH68q2xR5ZbswTGkkxdjo27HWCPRlYML8vixZ/jcx+NZjpnawxsDLTIGmrr1HvaU83zte3BtB862EjMiLzChqyiEUSYfWCHjDSsX6H2iYGmGn5r6ZDpk1/SViBQoscVsrbFHhtbeCbNjTu0eP3vvGCA== 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=wSlyb/z2NgF7IIQoTFzg5Txr6NKrw734zlNeYdTD/cE=; b=VwfvdcYLWJlRT7ejDFSWOfNPOZUv4hjvI/X8zayRYZq7/RUaKHXrsND0RtS7SjNlaidoio0y/+yJf89X24g5koVLtoGEtDJry7CelrZ/V2rjncZcYuPvoVyjLYLtYYiNTmRTjbh0n8TDDBfrCU8gm8gwpd6J5OJB6xVFMfkuEsY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from HE1PR0401MB2331.eurprd04.prod.outlook.com (2603:10a6:3:24::22) by AS8PR04MB9110.eurprd04.prod.outlook.com (2603:10a6:20b:449::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.16; Fri, 4 Nov 2022 19:22:25 +0000 Received: from HE1PR0401MB2331.eurprd04.prod.outlook.com ([fe80::a405:3557:91bc:9230]) by HE1PR0401MB2331.eurprd04.prod.outlook.com ([fe80::a405:3557:91bc:9230%11]) with mapi id 15.20.5791.022; Fri, 4 Nov 2022 19:22:24 +0000 From: Frank Li To: han.xu@nxp.com, Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Dong Aisheng , Peng Fan , Shenwei Wang , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH 1/3] arm64: dts: imx8dxl: add adc0 and adc1 support Date: Fri, 4 Nov 2022 15:21:25 -0400 Message-Id: <20221104192135.1661541-1-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: DM6PR01CA0004.prod.exchangelabs.com (2603:10b6:5:296::9) To HE1PR0401MB2331.eurprd04.prod.outlook.com (2603:10a6:3:24::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1PR0401MB2331:EE_|AS8PR04MB9110:EE_ X-MS-Office365-Filtering-Correlation-Id: b2e81d0b-ae7a-4809-4b03-08dabe99e741 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: S11dlZRvCKuFUZS7SrjbiVOjmewSr2QajMyEgETgywbkmCq/YQmFfnFx5a+RdsajY7BvEfepsMor4Qx7Y2G7WBdGSJ8AqGE5LhD5V+FP2Ka5LyzEdgKKlBzTTWLYEnFQwjQxGaOANuoDcTdCxErKSawhNt7VD2eKR3vpeI/zNNQ+1yJqC3ztT83yZzBzQ5WbCjKnmojdcC1DEVPKLeKj0jWuX9MSJoJO21IjNn0EmabLnJEGD6gTMQYl9cxIQoAhrPLoRuOE0zik6HT0YNQh0B3aodjYdewdbWhBMm0Sz18rMJzC53z7A3nai39JqnDU69AdX1sz8HETpLVji37R7jRkr4oFdlTSBj6VIxRsH/qKiEzFE2wHinkc4LVD/lb7BqVw3XW+O0zH4oNzcp09JUJSpqmNQ27QPJ+2VMbAEF82OWOhxZH0B/PsiKCDoEwcFLdY75cDrVb8r7JbQXm8p3uJ9Vac7Cm0zo88IMTIQndDYjvV5PSaWqyK1gB0MhpSgCUNWo1uKqK9VVwj+opBRHonUwhtkrdzrjl76zOgYlWvGPw29QR49x+QKQkZ4vgkXMiPr/QcyGliljt3atVATnL6OGeHh53leCuo+pldWMo6fml34jMWHVqk/W1oFvGu2zPV0xI7ifPtoYedMU7rG9mq+8dbOKaDdgyySv4P5dq8XkF3xQjIlb4GN4wWfNX+V0ENIQ2JweIXb0QYlVx8UAzhdfBzswyd6DupqxC4OYIlJzJARPVsHFFnFTEmZ3szTQrsCH6d/JxRzZHdiKoK37ELQpdYSbXBV0TCV6ku4nq709CtPYvAxpFx7UGGWZZp X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HE1PR0401MB2331.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(136003)(39860400002)(376002)(366004)(396003)(451199015)(36756003)(110136005)(478600001)(2906002)(83380400001)(7416002)(5660300002)(86362001)(921005)(38350700002)(6512007)(8676002)(38100700002)(316002)(2616005)(186003)(6486002)(1076003)(26005)(66556008)(66476007)(41300700001)(66946007)(8936002)(4326008)(6506007)(52116002)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: a3+vTITzLJ0fPPgiSfamP270LreZ/uAk92qflhWRpr4ccdDeDiaVDvoA2vUrvlveNMTQEU2y+teEavg32dAHR1xWe/ws4nTOI90xGIr2u52OjyvbzemFNZhR4gNRckGqVJzcKUG/vjZkRlLLWg27Nvjyq4UoOmH4JMLLWdiOT/R1XImYtNw+vQgKgxnn+4aL+XZPuGFHNi5wTGaRNknmxETVR9WIX3/UFgB2B/zMebm7v/+bSIqh/R+ip12gGXqGbGjLYdpBlkhoM2rvpT/zY1rgkNWbKBKMN8iVp+rBhijU2E3aQRPKM/ls8NwtxJGuZFpkruF2963CiiyiEnqiOOkq1wDBZOBnrXh6GwnVo07aiN+/zn/7KL2vbgq003HwfxVIXAWH/ntR/+tiXGBL0VrM8YQYHyyqqcEtb/JvNJGmxYeq7Km6WRAwBLEiBoUxKDZEMi9itIQnWRWoQtIQ1r18wgqezMp4dzwVtYErAL+wI09JkZwbFM4WzvVlpp/kWhwyNl4Ykf0/Cwco/HYBH38jJbtGZt0WSmMFdXyqG/IBF/OrRiJU7FXPLPpiUtY0g2FpqQ5ZUDuqKrGmsPmvQsL8OZlCOn9oRz3I2oaqpTUU/318UDd/mgxXYymUHfZ/WkwPcwEnj/wTUXwBcYWOWlaEfu02YRcgwdA06d25Mk4bkZQUhZYUVSXjsJQYTmnW3NepDUHaLPRYSpsazZS0kS/ls/3j0ptIY8uIQQyWUFXFAef5LF5F56O8UdFp6YQ+QhSDgzUpLPDZXfExaLYxFIs3dLcqgq2VoHBbSr8vRsa+ys7+UdMMOJz53VbzYP5n7IOOA97QCMaANMOF2TsyEzIzrSCgE37DGtpTyM/4k4vCUqtyo5BfrWRgkj3nDU4cl7QGNuZt3Se/O5w3D8leo9wlEJDTkQcL771JLPf9C+mtFuRwHnFsHVx6Yf8HzyE3i0II84JZOckUEIyXIG01UhTeY3mLp0tb19mag20bv4ATNgziNdYjgJQGF1K0DlXCdeC7vfyShZhOy1lv3g2cUAJRX7zPDo5qE2tvP9kmjUwtGC4TaepyVVtKb2Y1HjX8YgdJxx8YuU1l3E66MyEXSI3fn0fZ5gxTqnnHwBl+uvjUq2l/YeHmcRTTLp93pkS1A+7gtTTavhB+1P5T0Uku4gjy3ksAQ/Fd//5A+HPSZKbeuR49whYAPkaTaUOzYSAWxTq1vX5k0V9PWfyBr+ZmEggcvPVUBQ8sB9VOpbVxRh00SAML8N6rKBnWNsPQnUmhe+pdOmy+5GRitmoo6ABQfHLAO7cnz4zekVrL+wGtWFO8gGn0Oe9HX0DEIrq4l0+DDQTjdWaQKTWmhh5jMbjeZhDCUYwJZO2MQwojTcAmQnvY+kMjw3kGkHq12BUUupk7gPHYnb+mW6Tx2Gnk9N8ir/vq7yzCyXEg/e88cfJJjNssJHSx2WJ7MxyEfP3sjQK4VWiNNo6pNN5b7L3Z4NwSamrUBzjAKwYx0bYHapMb+ka9HqvGVnSfi+0WWUWaQy5JIZQQXOyXc49ojUVaaUrm1hx6tByJO6xx1NgamTt5qmfYLG4nqPJHQuG8MT9DFRGY X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2e81d0b-ae7a-4809-4b03-08dabe99e741 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0401MB2331.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2022 19:22:24.7650 (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: 8YiimhDRCbTiYmyN/3Gp5zGk6iY9CK6o+ZoC0i7KmauWrIuEM6Orh+lqh0ObxfQeiWDoD4lQimVmpLKsdA923Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9110 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748594812221293724?= X-GMAIL-MSGID: =?utf-8?q?1748594812221293724?= There are two adc controller in 8dxl. Add adc node at common dma subsystem. Enable adc0 at imx8dxl_evk boards dts. Signed-off-by: Frank Li --- .../arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 52 +++++++++++++++++++ arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 12 +++++ .../boot/dts/freescale/imx8dxl-ss-adma.dtsi | 4 ++ 3 files changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi index d7b4229bb4a2..bdbb660c2682 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi @@ -156,6 +156,34 @@ i2c3: i2c@5a830000 { status = "disabled"; }; + adc0: adc@5a880000 { + compatible = "nxp,imx8qxp-adc"; + reg = <0x5a880000 0x10000>; + interrupts = ; + interrupt-parent = <&gic>; + clocks = <&adc0_lpcg 0>, + <&adc0_lpcg 1>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX_SC_R_ADC_0 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + power-domains = <&pd IMX_SC_R_ADC_0>; + status = "disabled"; + }; + + adc1: adc@5a890000 { + compatible = "nxp,imx8qxp-adc"; + reg = <0x5a890000 0x10000>; + interrupts = ; + interrupt-parent = <&gic>; + clocks = <&adc1_lpcg 0>, + <&adc1_lpcg 1>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX_SC_R_ADC_1 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + power-domains = <&pd IMX_SC_R_ADC_1>; + status = "disabled"; + }; + i2c0_lpcg: clock-controller@5ac00000 { compatible = "fsl,imx8qxp-lpcg"; reg = <0x5ac00000 0x10000>; @@ -203,4 +231,28 @@ i2c3_lpcg: clock-controller@5ac30000 { "i2c3_lpcg_ipg_clk"; power-domains = <&pd IMX_SC_R_I2C_3>; }; + + adc0_lpcg: clock-controller@5ac80000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5ac80000 0x10000>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_ADC_0 IMX_SC_PM_CLK_PER>, + <&dma_ipg_clk>; + clock-indices = , ; + clock-output-names = "adc0_lpcg_clk", + "adc0_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_ADC_0>; + }; + + adc1_lpcg: clock-controller@5ac90000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5ac90000 0x10000>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_ADC_1 IMX_SC_PM_CLK_PER>, + <&dma_ipg_clk>; + clock-indices = , ; + clock-output-names = "adc1_lpcg_clk", + "adc1_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_ADC_1>; + }; }; diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts index fc9647ea50e9..11b1ff90c06d 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts @@ -91,6 +91,13 @@ reg_usdhc2_vmmc: regulator-3 { off-on-delay-us = <3480>; }; + reg_vref_1v8: regulator-adc-vref { + compatible = "regulator-fixed"; + regulator-name = "vref_1v8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + }; + mii_select: regulator-4 { compatible = "regulator-fixed"; regulator-name = "mii-select"; @@ -102,6 +109,11 @@ mii_select: regulator-4 { }; }; +&adc0 { + vref-supply = <®_vref_1v8>; + status = "okay"; +}; + &eqos { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_eqos>; diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-ss-adma.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl-ss-adma.dtsi index 795d1d472fae..ac3362e32811 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl-ss-adma.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8dxl-ss-adma.dtsi @@ -11,6 +11,10 @@ &dma_ipg_clk { clock-frequency = <160000000>; }; +&adc0 { + interrupts = ; +}; + &i2c0 { compatible = "fsl,imx8dxl-lpi2c", "fsl,imx8qxp-lpi2c", "fsl,imx7ulp-lpi2c"; interrupts = ; From patchwork Fri Nov 4 19:21:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 15755 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp595230wru; Fri, 4 Nov 2022 12:26:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6mGUT2QQzIs3IqJJt6OmFDY49QaclRqA0ocEXAa6z6XLC5bMaW2kIOv1sMO4KNkbUyYkAn X-Received: by 2002:a17:906:eec1:b0:782:6384:76be with SMTP id wu1-20020a170906eec100b00782638476bemr35826832ejb.756.1667590011927; Fri, 04 Nov 2022 12:26:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667590011; cv=pass; d=google.com; s=arc-20160816; b=o+bUkNMKZUyFSrzXAs5e10Ax2EFNuuU/+kovDcH9AbJKgR0FqhMAOM7kzsHJy4Gggw 3Zr9ofMg4fPf7F3p0NS3pXdndViCLLrPYJKrryZX2QivzOHZOMriCVfIG/EAG83VA5HM dorpE+oHl2nMPhjttO69kstCipRwNpSAcnJuIZOmYwL55adZ8a8BgJpgT++ZthogdIU6 vFq6MtAydMxxb060KIRGr0F0L2aoVinFSuzv0PTK6VCIoYnv1V6dQZKpLjIe9c8J7o9C Omi1QtOZMwTVDgSRonOnfaLxwsSkHxItTi5YuvKdpBRYCs0O8Vrqlw+lRdQK7NpwSedr 43pA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sI8T5xRaMAHdP6raDpe9ht3wbW1wEmqh2K3whXBsdTI=; b=Xg0NdWQ1b7cm8Z+8kEdLxtzbQLmEnAUmQp4ma7C4hgAjKtZ/NATg2iU0KQcO7On5h7 DMQVWkBwyV9Wpr4qQx0imxy0MKaaShBbL/XpHHtd1MiB7+SKjT8VsUaanuDbNZATmDta zlMVINgBphkrkR6DKyUlad3KB14QrqhXUAJg4/MOhs2Gl08JbzWqWs7o/7PyDO8FYGjr 3UbogreXmqLKzlnuJmoUyUZK6iF1KmPCJEb4S2ncgooJ4LXmbuckDTwv4ktQ5d89huF0 daG7nF4tPCUy2WNEyUlq0apbgj//juQFZDHugukHNlrgc1Oa04P9Fppgo3AnC6PIJMpi +m+Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=fujCvpSX; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n15-20020aa7db4f000000b00461f9648c7dsi236435edt.422.2022.11.04.12.26.28; Fri, 04 Nov 2022 12:26:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=fujCvpSX; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229632AbiKDTWr (ORCPT + 99 others); Fri, 4 Nov 2022 15:22:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbiKDTWl (ORCPT ); Fri, 4 Nov 2022 15:22:41 -0400 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60063.outbound.protection.outlook.com [40.107.6.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32CB54874E; Fri, 4 Nov 2022 12:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AQo0ERtFUGkHUr+C07lNaTTA+aPR8gYv3IIic0V/Hmk+smwS8SXHjJGacGdBdL3eyLh1nhkl6CZ+irPfSxdxzg6mQBxzIllokLdiMXmxWAy7caE9NWz0ie5hrwnBFoPbp2QCSmU+fUOIhUJBSUocO5iFReTd8RVdiSgXphP7Ax1La6aEJYNroIC8rVEbEMGJyaAuGte9fs+nw+YWlMfD01rYLX1on+NwKgu/Eh3sy02q6wzSXkQGYZTJ3pz3JLKiJIRmES+IumZgMIra3UZTdNehtLsY/uRFV35NDJ6QwU1lQ3ukfZglgVkdxzWaaCUC0q41NkFN56piUtq0/MaUKw== 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=sI8T5xRaMAHdP6raDpe9ht3wbW1wEmqh2K3whXBsdTI=; b=CB2dAd/CUPr3VJfyPmj2Y0vbgf1tAC5LZFkfwG7qfgS0CPN/Y+unfTxD6MirBV/mx7y1YAAcfCpIeiIUnReoJFeXk4UaZEPCchFzS5jHZ8DAqIPelRf9WECMHPg9x7FgOCCbPHQi8SBTFI6pqADo9d5f1kpxXXF109ZrhUBz9W6PL0lA58lMMhRtTsyHwJ6olIp0cvgdM1z3y7ch3splLf2HjZKB/ZqLexiewIWX9VsMwmTK8Pz2JB93fljMMoU+AePjGa57ZHMfTLlx7dj4NSER6h9itey9MmpdQ8tv4Y5fWaKxT/oMzBjbrfZBQF0GFLR92Gas9RJysuT/nHgZTQ== 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=sI8T5xRaMAHdP6raDpe9ht3wbW1wEmqh2K3whXBsdTI=; b=fujCvpSXK7d3AWqnjvjGjaZwAKAxizdiBtX6rPCQNPZqXTSPIEQPuk96ZatAc3zblzJy3Q/jn/adnucIKFQNGppxxbet3ECSaVRBzQwwsnGUGCkUak/Hh19q54yN5A3+lgSeJdzjZShxlHLOadtYaiC9F0A8vwz5Svxnk05P/yA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from HE1PR0401MB2331.eurprd04.prod.outlook.com (2603:10a6:3:24::22) by AS8PR04MB9110.eurprd04.prod.outlook.com (2603:10a6:20b:449::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.16; Fri, 4 Nov 2022 19:22:35 +0000 Received: from HE1PR0401MB2331.eurprd04.prod.outlook.com ([fe80::a405:3557:91bc:9230]) by HE1PR0401MB2331.eurprd04.prod.outlook.com ([fe80::a405:3557:91bc:9230%11]) with mapi id 15.20.5791.022; Fri, 4 Nov 2022 19:22:35 +0000 From: Frank Li To: han.xu@nxp.com, Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Peng Fan , Shenwei Wang , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH 2/3] arm64: dts: imx8dxl: add flexspi support Date: Fri, 4 Nov 2022 15:21:26 -0400 Message-Id: <20221104192135.1661541-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221104192135.1661541-1-Frank.Li@nxp.com> References: <20221104192135.1661541-1-Frank.Li@nxp.com> X-ClientProxiedBy: DM6PR01CA0004.prod.exchangelabs.com (2603:10b6:5:296::9) To HE1PR0401MB2331.eurprd04.prod.outlook.com (2603:10a6:3:24::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1PR0401MB2331:EE_|AS8PR04MB9110:EE_ X-MS-Office365-Filtering-Correlation-Id: c3e206c9-ea14-4af7-6318-08dabe99edd0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WqJnyR+BRnQebziUQaNCV/sfQ6gA/Nm2e+0hw8pt9ASrU+ESAy+2nhzgLG54fCmPOoJXV32OWPVdNyoDTbnvkpXuKcXdu9sdbR5fxEdXZq5LBgcQMKtsOGWoOK2U1j6wyw5hvX2Op/ySYvpoJpggwAE7vtZqkNlmKnkOEscVHDYuDsmoQooislpDr7bsSPOVDBdlv1KZjoLxPYIaWPWLlSiGL/Xp/dUrVqtsc4h63txtxMGhPo4Ymytey70a16I8l94rq1BZQ95vcxn6aAI1PBctfTGJ1PVbb+hXw7w85efi+/6Lo3OqA3jiOXEe2K7Pllx7/smjxDNA1DWReMH8METeARYjGUmdp0CClyU//a/YQ/rbaZ1L1hiyscahzj6wGj4fvsxyHGPrquwKZ/668DiIPaGM3RHBSy0qZeIy9UxSeMhDAL0IqQmZaL5Pgjndi18dvvErrHvv1wzlLIKL279eeq9mwc+khEE5MivvHuOO6s628Ci22w4umUntUOFWvExXxK5197lvuad/HCqRK7x6M+pPmze44/Pll6NhFdxD5ounFyxPc3i8LZdLF1JWNDy60SMfM49BAVa3hlseJ+Gu2KxlS6zrT9l9gSqX03b7Voi2t3xUPu7NjHMsF+e1+7nxc1tX+qFnxM7k6fKX1vYHm0cqf4GNDmz4/eaRxOqO79uKjrXivIrTvfkzuSiyekC+E3/DNhnuCVAqPIcomdz+y/7bF5EB5pm4v35mDbXaoRs1H56Ki69TI5q7RcKNrkMH/AkLXSv3ldepXakKZHJmhHJ+uEs9wwBEZps3CsXUASmt35aOqbAuHzzTuqRGZt5s0vXOrhK6cJl1JLt/esc9Ny/8TNaYms4eB9ZqtIY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HE1PR0401MB2331.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(136003)(39860400002)(376002)(366004)(396003)(451199015)(36756003)(110136005)(478600001)(2906002)(83380400001)(7416002)(5660300002)(86362001)(921005)(38350700002)(6512007)(8676002)(38100700002)(316002)(2616005)(186003)(6486002)(1076003)(26005)(66556008)(66476007)(41300700001)(66946007)(8936002)(6666004)(4326008)(6506007)(52116002)(32563001)(414714003)(473944003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aTLpTK0oRaCblyVsufuEFjyFznjCnglynwxAma67AYY5/4Rz3WTQD7sz3MBj0kmo6EfrennKjS4FI7T3LXKceJDR35BPNLhnprPZwxrx6uwxknDP3oZcBsiEczTZ0PnlzIs0CqndPu0CwKOKbbLS4Ya/2ABR/ZW46Uw9tj9f/l0H5pN31dy31mUc6VHB6DjAtr5ETB3/njCswdR2dlrl9W0Z48b/iVTFOzddnWmAgTzHy6FvaSHdvq7r6ARPm47UVtEk6VZJmZTDOJQWZZYmWz6pV5lPb1YA+5K9Nf4dWAuU0G1amNUPE7x/eUqpyy8w1sQ7lR2S3TFT84qhDG387XnDrhOS9Jxui1K77AYIwbzFn22dY8oSTEAfgW6Na8DnsIN2Snx+5bg9sUy60lrG/fHawh4HXAvNaUEsq3IWHU6GCQT7DsSwdptch6TamdqKyuAqTA7UZgpAMGbs1ftn4KqPBBivSQjW7w9i6YAE58G7LQYy4/+5AoVQ4X/ijkoQbLAcjdARuEGN8Nh1mf10KWr9hN7SgK5SzI66ebOEurRBwGPdmauYOzWCy8CLkeeLoCOsysgkEkE3zpnLgBO1GraMMCH6VVNlbzeaJCVnt935bsWYpoWyhJuIc9Pf943/LdoCdyXYjowyoYUR4JCatsWEIR0N/QcK2HJ2l/B9+d0ZgifVCnqw1tZSERuVvcoyqWzbp5bRN1UPSd5BN+LgcbuMqyOcO2G/oXraOc51+Oy0/onHLzn7fw3i1IgIkIF9mSuSwQ5sCpKp72rqXSUTNtsxzkUKmjfogma2gk2Pwzzh5QpTpzmPsomJXWfBilqwGVoS7PQr5VC/y0ZOrOhsewNUDQe08hypu1fKYSqS1Awc3NLx7y8EP+Tvn/fvavGEsUGWleb8UK9A96SbE+sK317Oh7SRVX/hBiUGwXogqy/QhEQ8bIomBatr4csVHny9owt/UfBwzaAUwqxaIMTtm7M/4yiPj2t1dFsIqnF1kcXYsThkW97/udu1nMzaYbKPOANAz7nmIQlNx3rBcyMntib8blOfhIZh5Le0JOaVESqn4wjcYJa6qlliGXPapr77lgLPaLQfX8TAT8WfNwzbEBvwq0LKBcOXxFJVX+apgyM3+pG82Y0AkNTJPuGi8Az7Xi2lFIl28rT+Pomf5dLIIUCFDaQenXxoRRf4xlksDjQ0rOg4fOuAHOkR/r5e9usSIfOOd9NZutkJh5zSVLgGwTzBouL8atVykdToNqJEARAzFX/yLb8Wd4BmLO3ibHTjsUCCbrtq2RdiIrrGuguoAM7kQvRNG5TajuC2AF36CCVMQaAhUL+sB6MLTQ4xgEaQGi93EmWMYGu3kRG1PoN8hGdmRUUuNh2Q6JerGUEcNZO3OM1pBa256Vw7W+QTCHqHW0R+ycE3vHPC2OrWp3uhGflTaKInmDAWtYZOlz8VfAhwtE7Gu/Q9wFwHN5pGcDXMMhbVBrgEIotrqFD5/DOxe7K1A36QtLCoTL1fc+qrsy2mSzdhvCE4yRTyRIk454wLt0I/GOqRh+RSyfYxJD1xZm8KDWzM1sksuLw9dya69dflwGx0BoNL+lXS/lP0ASth X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3e206c9-ea14-4af7-6318-08dabe99edd0 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0401MB2331.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2022 19:22:35.7096 (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: 4pKam3RdKkzmkbf+UddbTMtU59RGyLCwPj8YtxJNxSaTKdaEHgRkVzJw47XRI+a22Cf/8qkKgJ8PJuEfyM00bQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9110 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748594864810915880?= X-GMAIL-MSGID: =?utf-8?q?1748594864810915880?= Add flexspi0 node at common lsio subsystem. Enable flexspi0 at imx8dxl_evk boards dts. Signed-off-by: Frank Li --- .../boot/dts/freescale/imx8-ss-lsio.dtsi | 17 ++++++++- arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 36 +++++++++++++++++++ .../boot/dts/freescale/imx8dxl-ss-lsio.dtsi | 5 +++ 3 files changed, 57 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi index 6446e6df7a9a..1f3d225e64ec 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi @@ -11,7 +11,8 @@ lsio_subsys: bus@5d000000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; - ranges = <0x5d000000 0x0 0x5d000000 0x1000000>; + ranges = <0x5d000000 0x0 0x5d000000 0x1000000>, + <0x08000000 0x0 0x08000000 0x10000000>; lsio_mem_clk: clock-lsio-mem { compatible = "fixed-clock"; @@ -107,6 +108,20 @@ lsio_gpio7: gpio@5d0f0000 { power-domains = <&pd IMX_SC_R_GPIO_7>; }; + flexspi0: spi@5d120000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "nxp,imx8qxp-fspi"; + reg = <0x5d120000 0x10000>, <0x08000000 0x10000000>; + reg-names = "fspi_base", "fspi_mmap"; + interrupts = ; + clocks = <&clk IMX_SC_R_FSPI_0 IMX_SC_PM_CLK_PER>, + <&clk IMX_SC_R_FSPI_0 IMX_SC_PM_CLK_PER>; + clock-names = "fspi", "fspi_en"; + power-domains = <&pd IMX_SC_R_FSPI_0>; + status = "disabled"; + }; + lsio_mu0: mailbox@5d1b0000 { reg = <0x5d1b0000 0x10000>; interrupts = ; diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts index 11b1ff90c06d..f8d416f7fd92 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts @@ -181,6 +181,23 @@ vddio1: vddio-regulator { }; }; +&flexspi0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexspi0>; + nxp,fspi-dll-slvdly = <4>; + status = "okay"; + + mt35xu512aba0: 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>; + }; +}; + &i2c2 { #address-cells = <1>; #size-cells = <0>; @@ -386,6 +403,25 @@ IMX8DXL_ENET1_RGMII_TX_CTL_CONN_EQOS_RGMII_TX_CTL 0x06000020 >; }; + pinctrl_flexspi0: flexspi0grp { + fsl,pins = < + IMX8DXL_QSPI0A_DATA0_LSIO_QSPI0A_DATA0 0x06000021 + IMX8DXL_QSPI0A_DATA1_LSIO_QSPI0A_DATA1 0x06000021 + IMX8DXL_QSPI0A_DATA2_LSIO_QSPI0A_DATA2 0x06000021 + IMX8DXL_QSPI0A_DATA3_LSIO_QSPI0A_DATA3 0x06000021 + IMX8DXL_QSPI0A_DQS_LSIO_QSPI0A_DQS 0x06000021 + IMX8DXL_QSPI0A_SS0_B_LSIO_QSPI0A_SS0_B 0x06000021 + IMX8DXL_QSPI0A_SCLK_LSIO_QSPI0A_SCLK 0x06000021 + IMX8DXL_QSPI0B_SCLK_LSIO_QSPI0B_SCLK 0x06000021 + IMX8DXL_QSPI0B_DATA0_LSIO_QSPI0B_DATA0 0x06000021 + IMX8DXL_QSPI0B_DATA1_LSIO_QSPI0B_DATA1 0x06000021 + IMX8DXL_QSPI0B_DATA2_LSIO_QSPI0B_DATA2 0x06000021 + IMX8DXL_QSPI0B_DATA3_LSIO_QSPI0B_DATA3 0x06000021 + IMX8DXL_QSPI0B_DQS_LSIO_QSPI0B_DQS 0x06000021 + IMX8DXL_QSPI0B_SS0_B_LSIO_QSPI0B_SS0_B 0x06000021 + >; + }; + pinctrl_fec1: fec1grp { fsl,pins = < IMX8DXL_COMP_CTL_GPIO_1V8_3V3_ENET_ENETB0_PAD 0x000014a0 diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-ss-lsio.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl-ss-lsio.dtsi index 815bd987b09b..85e6131ec406 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl-ss-lsio.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8dxl-ss-lsio.dtsi @@ -3,6 +3,11 @@ * Copyright 2019~2020, 2022 NXP */ +&flexspi0 { + compatible = "nxp,imx8dxl-fspi"; + interrupts = ; +}; + &lsio_gpio0 { compatible = "fsl,imx8dxl-gpio", "fsl,imx35-gpio"; interrupts = ; From patchwork Fri Nov 4 19:21:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 15756 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp595483wru; Fri, 4 Nov 2022 12:27:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5CGhFUZH2zYy+NOcGPBMaw3X3hBG/sxHY+Kswsc7Km/aU4jt/hexGcaNTmR0dxZuIBoRa2 X-Received: by 2002:a62:bd15:0:b0:56e:aa67:4c9d with SMTP id a21-20020a62bd15000000b0056eaa674c9dmr2013059pff.10.1667590050529; Fri, 04 Nov 2022 12:27:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667590050; cv=pass; d=google.com; s=arc-20160816; b=e+X+f1rrQbP1/1UKaPB6GKiippY/0Z8EWewxB/C2caOoQD+TOmamrQHDHwDToPsMeb +yMqnlYpnSiLG8CVJyG8FzqcR8AtMPt/lsVn7VSs36XC//bxI1ieHojhVwhpF+rBpM5L JIn2cIj6PQPSmlaPhnuE5XSk8O02psM+Mrdn2PJBfiKrkMz+3IF2h68jS3ZGvMwgJl2k s5ynuZzaEyYmKDy6oQktAXTAlcBuUpGlCh6quzy/n9FBrF2cZvOdgKU6AvJwDsQbZ1Pu cvSeBf8YOWcpCe7ecaWC9S6AtkNFX6Ts3jVUcuGZCuJfkAuzeAfZgCQJzKxj0z7dCCu5 OFOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wlI13wTV0jL2UsZewP0Zrv3lKQOH21Ic55LlKC/8+TE=; b=X5fNoFfpW6WjbgEbA7bo4wKBuKBe4VbXh/WZxK6aUNEyuh2MJVTBwlPfe1DlJZaiax HL3PehlfEyu6mirpXPlqtZd3KXtnK8gkf5OBumfG0tr229aAr+yXQ1o5Ny6dVMUjigQt kLF77CjGm8ajvdUCbRXu5eveW8iAVfnzCkX+jRiYu65NTt+ykon1vNZzM5dKRCuW7yV2 egr4NzbFaLzaIkw6hOpI+BQtfEWPliDDaN9pvVG1/hjEdDIiW7jQRZzYOVxYDVCRU8/i kPDnwlWNFifxJTnBLQCGHT2dKJTfVVADUlX5Nb49R9vSlgwkHBQAACM2taIYobE9Osd+ 1/AA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="ZJnL/4Ez"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c14-20020a056a000ace00b0056de69b0c76si4327433pfl.283.2022.11.04.12.27.17; Fri, 04 Nov 2022 12:27:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="ZJnL/4Ez"; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229557AbiKDTXT (ORCPT + 99 others); Fri, 4 Nov 2022 15:23:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbiKDTXL (ORCPT ); Fri, 4 Nov 2022 15:23:11 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2079.outbound.protection.outlook.com [40.107.21.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E310E48775; Fri, 4 Nov 2022 12:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JLLNi6A6tChAOFJ2N3Da7f0JkNmSL912qpwTuuamMPz+RzjWSOCTS/+dWU1hdqAzI+c4wEDcA0jalZ89hEazg6BT0S73TFWG01bewkUW/5qE80d3sxWiR3sdnypcUKbAfb4N1EWuW09avRG6AWuDlMEV+Wb4p/HfLYBF/soRE2oKNIZ4iKiVYviv98UwtLg1KVkj9uqrg85OvlfEtKdR6Iunwo8dMSfJ2hd+ojQoN+aAWLFPkvSy17HFN947MAR2nuwIDkJg/ganwZNJ6pLY8AM00/evmJNPWF1UEOWJAM27N1P3djE6leyIDvCVOIp4YnqcpOFjk6Go8g2nq8WDtQ== 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=wlI13wTV0jL2UsZewP0Zrv3lKQOH21Ic55LlKC/8+TE=; b=k/YCh1YP28O+85Hm33HURyQ9E8WVYmQohlVW6ZCJrGSq3W3xH33RVxakZMkUQuhHTr+2+2m9L47LzrMEDVxfHoCysOJvuvyiZtCAqTxsS/avcoSBjEfXs0grdk85kCcrknUscahhQJcm6WnDHLMWrUBQhNvKd+S/7/M4n78fXp2WXpbCeBpIO3biVyFtSey/Gq4o9qUzQyPQky2VRBltVlpPahbVIDz43ZjCkYdZLBI1l7kMCGqinAIPljHUij8uOqeC1WQSZZtYIh2zbmz4n0aN0GKIWWE3sLaIPElfEmUzYBNxlyWwCjg6jEpYFTqk4INIEYYzN9mi5x7oLbmqvw== 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=wlI13wTV0jL2UsZewP0Zrv3lKQOH21Ic55LlKC/8+TE=; b=ZJnL/4EzqJMdOLNP9VdGmfp6v0NkCYhkKHS2NKhp9P0vTOmDWRipyKk4MYhDthEnn743XLjONQEi1aeEJaoFUDZh9dugOjVI566TN7b/cOlRTWwIzi3eDjsO6ekdi+CxYXZQsluikeRbfpY6Me2qw8FaY21VJavPVajPSo01t7I= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from HE1PR0401MB2331.eurprd04.prod.outlook.com (2603:10a6:3:24::22) by AS8PR04MB9110.eurprd04.prod.outlook.com (2603:10a6:20b:449::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.16; Fri, 4 Nov 2022 19:22:44 +0000 Received: from HE1PR0401MB2331.eurprd04.prod.outlook.com ([fe80::a405:3557:91bc:9230]) by HE1PR0401MB2331.eurprd04.prod.outlook.com ([fe80::a405:3557:91bc:9230%11]) with mapi id 15.20.5791.022; Fri, 4 Nov 2022 19:22:44 +0000 From: Frank Li To: han.xu@nxp.com, Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Dong Aisheng , Peng Fan , Shenwei Wang , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Cc: imx@lists.linux.dev Subject: [PATCH 3/3] arm64: dts: imx8dxl: add lpspi support Date: Fri, 4 Nov 2022 15:21:27 -0400 Message-Id: <20221104192135.1661541-3-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221104192135.1661541-1-Frank.Li@nxp.com> References: <20221104192135.1661541-1-Frank.Li@nxp.com> X-ClientProxiedBy: DM6PR01CA0004.prod.exchangelabs.com (2603:10b6:5:296::9) To HE1PR0401MB2331.eurprd04.prod.outlook.com (2603:10a6:3:24::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1PR0401MB2331:EE_|AS8PR04MB9110:EE_ X-MS-Office365-Filtering-Correlation-Id: b94404be-11d9-467b-b8ce-08dabe99f2ea X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0NL6vS9wulRX2BAnKY+2x105siQidCrBKQs04CNDi/fLr6KHiLZ8KtMwOyhLm51Y3wgNiLasBkgcrCwtY9qKR4tgOhyZ3jIIm2nqDWOHCps/uHKiVvQICFErXylni4lcJGsiU/AAJBtAqeN0l1lQVYHrKYGtppYTPAh+j3tgBLxGL2k8Kgvl7NiDl5yKt+TPK3x0xiTlz2lnAJxwQa4y9mO6DJREJYMvTJQ5C6kHEVt/mLGrZx1kqRtSpGtXnUV5Yj2Ty1zyt5B51iXQjt+dZXJLXJvWRCAoZYcXFPZrgJqqLycusWYedNDhEBcBdiNwljpGIMzKdOXo59lcykUSJqA+wd2iMxvpcjOQP0VXe0E0m+qERC/afVyVkEugOvpAk1D7V0kSvmyxfwDQZv4XALYm6enYwGaYtlXWgugJ6G6I59ZoIDLBmdaL18mkPy5Fd5TGlPxFfUVOL/7dqt+mtDs1s+reO8POMumgoir4Xc+3GtH9dBvBrxtFZyUntwDDS58bZV7qWPvrc1Oqp5pyGqvjpWTPjceAYl13F5bV0EYeCxMEujZpFHgDbo34LlJsCpDy/C+VxVmF5tnZw1wVEdgD/4iVYaMoqeG0HTvMeqJzLDV9zOdyAQZdmATmkuzL/H7mAHTAgSQqupRRsbyfndWYMlHrVVoAqkbLzlrcxSwJC0V2f8aTA+o7rv6dkkBJlqgin1kE5CAdJsjHRXO63R2VWOfZEgDPYYnxiWcmklFx8MIV5dNMOkwIugi8JSCR+TnQPOSIq5jtzJeTq4lTLQoL2K+iHdW4759z1P6GID6Qn+M0xdQWaJIHgNxGeQYG X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HE1PR0401MB2331.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(136003)(39860400002)(376002)(366004)(396003)(451199015)(36756003)(110136005)(478600001)(2906002)(83380400001)(7416002)(5660300002)(86362001)(921005)(38350700002)(6512007)(8676002)(38100700002)(316002)(2616005)(186003)(6486002)(1076003)(26005)(66556008)(66476007)(41300700001)(66946007)(8936002)(6666004)(4326008)(6506007)(52116002)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: o/aYRinbjmEO/5LQremt2gwxSg4gQCPDiE34yG7V46Td6++XXrcKecYVsR//iXATRlCUWwbWH2746qj+MVS/8gEzSRS2+zqgVg86/pD9L2HPxMjGRTh5c5Q8IAHOQm6Aj+S+o3K3SKjX5bnAvWUxZlQNj1XeLlBLr9cE9vk2hmQAWpv5Sg7xh8w09KiwmbF40g3TRoz0rIlC8GkyjyAp8pnIpZrPh89QRAH47si2PCcwnx0haTuPjXVPgXkF7vkny+v1voGjzDmBPhy9GptYR7BrSWTERbhtqXo0JepbnLX3PMWY/pkGDk1eT4mx10e1fLidGqQmRgiub4uclZi/plyozG6+PSUf2EeNuvgpmUPnXyY6d9oaqgYTd9GMcNrKw37ryo3jDNn4ktlB9NCz8/rUi9PX7Uv8MBiYsQRNJbcQJul5BC5Qz+c7H5pVzFPla9A2vu16qsyQvY3KH9D/j8G+5IC6muIO58iF/gLz6x0uRWxsydb+o8gPkQ5ZS6SI1RvL1e6NvtOPUhX6+1DZHVuoi4B3nETe+ThgN9CjEFwDB755n2PI7sgMmEbK57+gtI2Ay8wBgTVOx890/Jp4tAZg88lwje2Q9UYuWcn6eJFGKggCaMYSbktd+V0KB4hfvATqVsmZO3jOaRaKOnIxOY6X87GDFwPPyKmTKxy9E1m/oEs8GbtWZWbCLJXntZXxY/YvJ7fn23EKaSLM62jmlJNcfL+nLhD/olkLtNYKHia26OUmooQNcvE3YFAeuEol7Inb9pzhvDnA+ePG5VnOPajitgEufncjqYec6WJSfN67o0mD7wE7SMlD/ROtIDS8jKrms/6um7g5h1dHDitu5ZogEH2Rvz6rKql7Dt1BnAhz82PPJM/ruin9FPanMWbG5HU2NoRMMcvB/FMh8apvddUvmUKFGE3g7ufAVJOUEkvYZNj4VP42A5910QOLtj+7L1/N/0WCwr2Mcqj5GeqLHLKWMKswVkTeTQZ9k9bH0tIZGfCrxlTnKNE2QXveOLuro1zql7LYlT+43OD0RexHHvuC5FT6/3iuCKxMAGaXeum/ucZwuuzZBpgPcA+Jm4NPEGbYBa+EauLWPwmZpwTbX1bJ/YzyLH0OxtRaof2emtZBk8dFSzTwIZ6soe/qR0pH/8fCMwoPmmn7pjq9Hlr0NYW8AITLpLP4kv3Up6Cr/5rSNfPcm/P+1c4xKNsrnnDRa0zui+DAgXqSrJeOBj9L7qIMLliaZhCBg13D/+dy14Iqmv+3NOYnZOhdcf9sWsuzpCZ46f2Qm3r3ubJ/Nelf9yFmsyGRUYJspdqEcYrpVznAq+vSPozmPg1xWHr2G1DAbtcF0VBsdH0mOgW4n4eAIcuNKGEJX28o1aTlJd66A3CaZx339ShVu3pixOqeprCvDpebtc0vjMnK0eTX8J2/SGWt0rOEakyLTIf/f+d5ofE9IthfHwny+hUZWYpjzriBnn0xyg2zeBBZvh5kYJFbKRuejJ48nsvFaRZH1gZfHLFLSLs2JG2jXrQcwyYm2arLo/MSxk45l2snkbFSM9HUgLh6Z3JrlNVbO3Tpy+EvLIVlYSq72djGa94AAPZeU+vN X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b94404be-11d9-467b-b8ce-08dabe99f2ea X-MS-Exchange-CrossTenant-AuthSource: HE1PR0401MB2331.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Nov 2022 19:22:44.2878 (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: 0Y08vLjMJTi9wGn6YpIRsTEu+4HViY49Lhdeqe6HlHA5AQDrxi2LpjMyu62/xtL08jOwJBXWDgdcZV+jrPWhOw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB9110 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748594904732399171?= X-GMAIL-MSGID: =?utf-8?q?1748594904732399171?= Add lpspi0 lpspi1 lpspi2 lpspi3 node at common dma subsystem. Enable lpspi0 at imx8dxl_evk boards dts. Signed-off-by: Frank Li --- .../arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 112 ++++++++++++++++++ arch/arm64/boot/dts/freescale/imx8dxl-evk.dts | 15 +++ 2 files changed, 127 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi index bdbb660c2682..a943a1e2797f 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi @@ -20,6 +20,70 @@ dma_ipg_clk: clock-dma-ipg { clock-output-names = "dma_ipg_clk"; }; + lpspi0: spi@5a000000 { + compatible = "fsl,imx7ulp-spi"; + reg = <0x5a000000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + interrupt-parent = <&gic>; + clocks = <&spi0_lpcg 0>, + <&spi0_lpcg 1>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX_SC_R_SPI_0 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <20000000>; + power-domains = <&pd IMX_SC_R_SPI_0>; + status = "disabled"; + }; + + lpspi1: spi@5a010000 { + compatible = "fsl,imx7ulp-spi"; + reg = <0x5a010000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + interrupt-parent = <&gic>; + clocks = <&spi1_lpcg 0>, + <&spi1_lpcg 1>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX_SC_R_SPI_1 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <60000000>; + power-domains = <&pd IMX_SC_R_SPI_1>; + status = "disabled"; + }; + + lpspi2: spi@5a020000 { + compatible = "fsl,imx7ulp-spi"; + reg = <0x5a020000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + interrupt-parent = <&gic>; + clocks = <&spi2_lpcg 0>, + <&spi2_lpcg 1>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX_SC_R_SPI_2 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <60000000>; + power-domains = <&pd IMX_SC_R_SPI_2>; + status = "disabled"; + }; + + lpspi3: spi@5a030000 { + compatible = "fsl,imx7ulp-spi"; + reg = <0x5a030000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + interrupt-parent = <&gic>; + clocks = <&spi3_lpcg 0>, + <&spi3_lpcg 1>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX_SC_R_SPI_3 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <60000000>; + power-domains = <&pd IMX_SC_R_SPI_3>; + status = "disabled"; + }; + lpuart0: serial@5a060000 { reg = <0x5a060000 0x1000>; interrupts = ; @@ -60,6 +124,54 @@ lpuart3: serial@5a090000 { status = "disabled"; }; + spi0_lpcg: clock-controller@5a400000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5a400000 0x10000>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_SPI_0 IMX_SC_PM_CLK_PER>, + <&dma_ipg_clk>; + clock-indices = , ; + clock-output-names = "spi0_lpcg_clk", + "spi0_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_SPI_0>; + }; + + spi1_lpcg: clock-controller@5a410000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5a410000 0x10000>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_SPI_1 IMX_SC_PM_CLK_PER>, + <&dma_ipg_clk>; + clock-indices = , ; + clock-output-names = "spi1_lpcg_clk", + "spi1_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_SPI_1>; + }; + + spi2_lpcg: clock-controller@5a420000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5a420000 0x10000>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_SPI_2 IMX_SC_PM_CLK_PER>, + <&dma_ipg_clk>; + clock-indices = , ; + clock-output-names = "spi2_lpcg_clk", + "spi2_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_SPI_2>; + }; + + spi3_lpcg: clock-controller@5a430000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5a430000 0x10000>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_SPI_3 IMX_SC_PM_CLK_PER>, + <&dma_ipg_clk>; + clock-indices = , ; + clock-output-names = "spi3_lpcg_clk", + "spi3_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_SPI_3>; + }; + uart0_lpcg: clock-controller@5a460000 { compatible = "fsl,imx8qxp-lpcg"; reg = <0x5a460000 0x10000>; diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts index f8d416f7fd92..280a9c9d8bd9 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8dxl-evk.dts @@ -359,6 +359,21 @@ &usdhc2 { status = "okay"; }; +&lpspi3 { + fsl,spi-num-chipselects = <1>; + fsl,spi-only-use-cs1-sel; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpspi3>; + pinctrl-assert-gpios = <&pca6416_1 7 GPIO_ACTIVE_HIGH>; + status = "okay"; + + spidev0: spi@0 { + reg = <0>; + compatible = "rohm,dh2228fv"; + spi-max-frequency = <30000000>; + }; +}; + &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>;