From patchwork Tue Jan 10 15:23:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Schneider X-Patchwork-Id: 641059 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BF8FCC67871 for ; Tue, 10 Jan 2023 15:24:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234532AbjAJPXq (ORCPT ); Tue, 10 Jan 2023 10:23:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239019AbjAJPXe (ORCPT ); Tue, 10 Jan 2023 10:23:34 -0500 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2099.outbound.protection.outlook.com [40.107.241.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D82A05D404 for ; Tue, 10 Jan 2023 07:23:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XVOCndfxo7RH2C2aRjnrJou5TgVIeAFPXXByDM0ZMk5DN0lrET/Bz0QRn1I1L8tupCNJtd3WMBVfxtjxPeym8o7XRWBlT9Xy4e+7CS4x+TlIfRTehHEfpUytwYjuhesjHyJG4SjoWQSHWWdO2ilrMn11l34/LpNFWKVMG5Mpni1KRtywUgLuK2LhcnCHo0puMZmHqJj3fF2iuYNZ+F+YXb15tVOgkJC1tjBDy+P2PTSAIeXxRYLEsL6+2lpGmsTsPUo2MQN+txwspNGNvttSOUjX7T3txN/UWBat0DjKb4+FzeJRKggmSw+NsAjKVecn1gz7MdndBhgo0H9CQF7Tjw== 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=hNQ3ELyGLPyl6eR1Lkxm/EEgSOhrRnOS/ucJR5Chk4A=; b=Tof5osXN4S8/msrI+3IZCMzsetkmlVWYpRyNKcZ64zLPlfbiY/ieGZ+BwEchsN2z+URfh93tD82d7t/w+Mn6wyYLeOfZ6BdhVEmI3lSR1ynkEQHKB/UdN+Mbx25jIugDzDGWqD13/vO3M4VBUwkh+cLlEAJ/H2BbMEkV+USfqekQK3QuEKvMdsPZr5rnzk96Hkadzs50i777g1CY3hPIniK1mFmex6SHndbcNq0gQcBz/C+CEjjQUVNo/zex3HKih7tlw+Dfrg2H/yLBHCegZiuFmwioygtlVJZHNeCeYbcgz0ItBWtUea0bM0suK9b4PGNLUyYrBRcWhEPEfRJnbA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.94) smtp.rcpttodomain=kernel.org smtp.mailfrom=leica-geosystems.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=leica-geosystems.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hNQ3ELyGLPyl6eR1Lkxm/EEgSOhrRnOS/ucJR5Chk4A=; b=WYVbDn+U6HrB/IbwVAGx0J2Hk5CT7mU/RiT6DJTO6RBQ9EZPHRBeQHb1JbP8YNyWsr8JVpz6tQr2Mw/E8ur0e3Ug0rg0aHseiOBHahm4aLFeb5HKYtqpYKmP5/3uNyiuXGvZIWYVrMu7E1IWFFhh6tcZMeyurpK1tRmFTXPzWoM= Received: from AM6P191CA0030.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:8b::43) by PR1PR06MB5596.eurprd06.prod.outlook.com (2603:10a6:102:a::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18; Tue, 10 Jan 2023 15:23:23 +0000 Received: from VI1EUR02FT065.eop-EUR02.prod.protection.outlook.com (2603:10a6:209:8b:cafe::7a) by AM6P191CA0030.outlook.office365.com (2603:10a6:209:8b::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18 via Frontend Transport; Tue, 10 Jan 2023 15:23:23 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=leica-geosystems.com; Received-SPF: Pass (protection.outlook.com: domain of leica-geosystems.com designates 193.8.40.94 as permitted sender) receiver=protection.outlook.com; client-ip=193.8.40.94; helo=aherlnxbspsrv01.lgs-net.com; pr=C Received: from aherlnxbspsrv01.lgs-net.com (193.8.40.94) by VI1EUR02FT065.mail.protection.outlook.com (10.13.60.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18 via Frontend Transport; Tue, 10 Jan 2023 15:23:23 +0000 From: Johannes Schneider To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Fabio Estevam , Li Yang , Shengjiu Wang , Richard Zhu Cc: Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Johannes Schneider Subject: [PATCH v7 1/3] arm64: dts: imx8mm-evk: move PMIC configuration Date: Tue, 10 Jan 2023 16:23:14 +0100 Message-Id: <20230110152316.1149940-2-johannes.schneider@leica-geosystems.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110152316.1149940-1-johannes.schneider@leica-geosystems.com> References: <20230110152316.1149940-1-johannes.schneider@leica-geosystems.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1EUR02FT065:EE_|PR1PR06MB5596:EE_ X-MS-Office365-Filtering-Correlation-Id: 95bc93dc-63cc-46fa-b867-08daf31e9cf7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PUuKz38Zz/X1Vudl+37ofkKyr1rKxxIxymSb82zUAw78IMJyNJ2ENNxV62MI4q9AQRyrBq+CkNo001yYQ3bTGYu5tmcHYq8toPuN9JQMV1MjD+aJL6AQZtvRFD6la2pwfSkyx4Mkn2A6PLTLz3x4iNSKQicKYoeG+0hiahlNBXgjW/FUjxCsosGD+e0FmGvD1GtZoR/Dfm7Dseq7P7WgLpELbizlxAmHwkpsYiu8W6vap8U+svziewcSmoHZ3w/2UbC/3AMLKawF+yLeyQxdHR9H2a4wqDfLedA8M9zTZ/gjFoqzuDt5h6VaGtvP0VnZnaAP089oKuKvKILZm1k3O0Y295Q0Wwks7x9fr8RsLJkji9QTHu86wk2qe5creSo4izjbYwgs8oNB5vd9bzVaafbi2SOiyIpY7kecinmqQYYZ6imqKEjkA5Tszlm9Ta9Ua3ZsPqWlo/TxQdXs3OtsrWH1dcV+j8bOYZlfjDId1NOX9O7GPzMjM79Z8l7cTftuRC4FPtf7r+1fo9arZt0cQG4rKtOecRue+naTG38/bKeYLSen098FLV7iEXHRyjCS29ACWhtknkh2RNBL/oeYZF0pzFWX5tmd83Aku7TX2x6L/MFfMj2rlGO1kwiNcedTDzmo+X5lz2wgqA0tqZp5RBNg1Upp9Kx/pNhPfFWsrwjVW8l5CsS54qLJYWnKiQqz6SS0ReQjYXQPL2vz7J4psJvxA+mM9/1dE5NHssz4FuE= X-Forefront-Antispam-Report: CIP:193.8.40.94; CTRY:CH; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:aherlnxbspsrv01.lgs-net.com; PTR:ahersrvdom50.leica-geosystems.com; CAT:NONE; SFS:(13230022)(4636009)(39860400002)(346002)(396003)(136003)(376002)(451199015)(40470700004)(36840700001)(46966006)(36756003)(186003)(118246002)(26005)(107886003)(6666004)(8936002)(6512007)(6506007)(2616005)(1076003)(81166007)(5660300002)(40480700001)(7416002)(316002)(40460700003)(4326008)(356005)(36736006)(86362001)(82740400003)(478600001)(6486002)(54906003)(70206006)(41300700001)(8676002)(110136005)(70586007)(956004)(82310400005)(83380400001)(47076005)(9316004)(44832011)(2906002)(336012)(36860700001)(32563001); DIR:OUT; SFP:1102; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2023 15:23:23.1895 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 95bc93dc-63cc-46fa-b867-08daf31e9cf7 X-MS-Exchange-CrossTenant-Id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a; Ip=[193.8.40.94]; Helo=[aherlnxbspsrv01.lgs-net.com] X-MS-Exchange-CrossTenant-AuthSource: VI1EUR02FT065.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR1PR06MB5596 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Move the PMIC configuration out of imx8mm-evk.dtsi into a separate file; to accommodate devicetrees for the rev-b EVK, which comes with a different PMIC. Signed-off-by: Johannes Schneider --- .../boot/dts/freescale/imx8mm-ddr4-evk.dts | 1 + .../dts/freescale/imx8mm-evk-rohm-pmic.dtsi | 118 ++++++++++++++++++ arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 1 + arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 112 ----------------- 4 files changed, 120 insertions(+), 112 deletions(-) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-evk-rohm-pmic.dtsi diff --git a/arch/arm64/boot/dts/freescale/imx8mm-ddr4-evk.dts b/arch/arm64/boot/dts/freescale/imx8mm-ddr4-evk.dts index 6c079c0a3a48..f39182ce65b4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-ddr4-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-ddr4-evk.dts @@ -6,6 +6,7 @@ /dts-v1/; #include "imx8mm-evk.dtsi" +#include "imx8mm-evk-rohm-pmic.dtsi" / { model = "FSL i.MX8MM DDR4 EVK with CYW43455 WIFI/BT board"; diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk-rohm-pmic.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk-rohm-pmic.dtsi new file mode 100644 index 000000000000..0b056996a27b --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk-rohm-pmic.dtsi @@ -0,0 +1,118 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2020 NXP + */ + +&i2c1 { + pmic@4b { + compatible = "rohm,bd71847"; + reg = <0x4b>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pmic>; + interrupt-parent = <&gpio1>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + rohm,reset-snvs-powered; + + #clock-cells = <0>; + clocks = <&osc_32k 0>; + clock-output-names = "clk-32k-out"; + + regulators { + buck1_reg: BUCK1 { + regulator-name = "buck1"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1300000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <1250>; + }; + + buck2_reg: BUCK2 { + regulator-name = "buck2"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1300000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <1250>; + rohm,dvs-run-voltage = <1000000>; + rohm,dvs-idle-voltage = <900000>; + }; + + buck3_reg: BUCK3 { + // BUCK5 in datasheet + regulator-name = "buck3"; + regulator-min-microvolt = <700000>; + regulator-max-microvolt = <1350000>; + regulator-boot-on; + regulator-always-on; + }; + + buck4_reg: BUCK4 { + // BUCK6 in datasheet + regulator-name = "buck4"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + buck5_reg: BUCK5 { + // BUCK7 in datasheet + regulator-name = "buck5"; + regulator-min-microvolt = <1605000>; + regulator-max-microvolt = <1995000>; + regulator-boot-on; + regulator-always-on; + }; + + buck6_reg: BUCK6 { + // BUCK8 in datasheet + regulator-name = "buck6"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1400000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1_reg: LDO1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <1600000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo2_reg: LDO2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <900000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo3_reg: LDO3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo4_reg: LDO4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo6_reg: LDO6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <900000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts index a2b24d4d4e3e..d2b6d7de7e53 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dts @@ -7,6 +7,7 @@ #include #include "imx8mm-evk.dtsi" +#include "imx8mm-evk-rohm-pmic.dtsi" / { model = "FSL i.MX8MM EVK board"; diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi index 7d6317d95b13..21d0614af44c 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi @@ -182,118 +182,6 @@ &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c1>; status = "okay"; - - pmic@4b { - compatible = "rohm,bd71847"; - reg = <0x4b>; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_pmic>; - interrupt-parent = <&gpio1>; - interrupts = <3 IRQ_TYPE_LEVEL_LOW>; - rohm,reset-snvs-powered; - - #clock-cells = <0>; - clocks = <&osc_32k 0>; - clock-output-names = "clk-32k-out"; - - regulators { - buck1_reg: BUCK1 { - regulator-name = "buck1"; - regulator-min-microvolt = <700000>; - regulator-max-microvolt = <1300000>; - regulator-boot-on; - regulator-always-on; - regulator-ramp-delay = <1250>; - }; - - buck2_reg: BUCK2 { - regulator-name = "buck2"; - regulator-min-microvolt = <700000>; - regulator-max-microvolt = <1300000>; - regulator-boot-on; - regulator-always-on; - regulator-ramp-delay = <1250>; - rohm,dvs-run-voltage = <1000000>; - rohm,dvs-idle-voltage = <900000>; - }; - - buck3_reg: BUCK3 { - // BUCK5 in datasheet - regulator-name = "buck3"; - regulator-min-microvolt = <700000>; - regulator-max-microvolt = <1350000>; - regulator-boot-on; - regulator-always-on; - }; - - buck4_reg: BUCK4 { - // BUCK6 in datasheet - regulator-name = "buck4"; - regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3300000>; - regulator-boot-on; - regulator-always-on; - }; - - buck5_reg: BUCK5 { - // BUCK7 in datasheet - regulator-name = "buck5"; - regulator-min-microvolt = <1605000>; - regulator-max-microvolt = <1995000>; - regulator-boot-on; - regulator-always-on; - }; - - buck6_reg: BUCK6 { - // BUCK8 in datasheet - regulator-name = "buck6"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <1400000>; - regulator-boot-on; - regulator-always-on; - }; - - ldo1_reg: LDO1 { - regulator-name = "ldo1"; - regulator-min-microvolt = <1600000>; - regulator-max-microvolt = <3300000>; - regulator-boot-on; - regulator-always-on; - }; - - ldo2_reg: LDO2 { - regulator-name = "ldo2"; - regulator-min-microvolt = <800000>; - regulator-max-microvolt = <900000>; - regulator-boot-on; - regulator-always-on; - }; - - ldo3_reg: LDO3 { - regulator-name = "ldo3"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <3300000>; - regulator-boot-on; - regulator-always-on; - }; - - ldo4_reg: LDO4 { - regulator-name = "ldo4"; - regulator-min-microvolt = <900000>; - regulator-max-microvolt = <1800000>; - regulator-boot-on; - regulator-always-on; - }; - - ldo6_reg: LDO6 { - regulator-name = "ldo6"; - regulator-min-microvolt = <900000>; - regulator-max-microvolt = <1800000>; - regulator-boot-on; - regulator-always-on; - }; - }; - }; }; &i2c2 { From patchwork Tue Jan 10 15:23:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Schneider X-Patchwork-Id: 641058 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6A679C54EBE for ; Tue, 10 Jan 2023 15:24:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231479AbjAJPYP (ORCPT ); Tue, 10 Jan 2023 10:24:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239020AbjAJPXe (ORCPT ); Tue, 10 Jan 2023 10:23:34 -0500 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on2118.outbound.protection.outlook.com [40.107.8.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 838DC69517 for ; Tue, 10 Jan 2023 07:23:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AJX1UQfzs4rFrPQJ+JF3lC2kenST4adYbv9F1BZrUkY3NmXjWZcM9KQa4q72nOBC/S7YBDQzb9XfYsShpdajfsQSc+003VjpnC1AYQOb0TsfJgphe1NOxuDwhWgRrf/cZwF1jluOWA1dsWhHkTEiraCwRXEuuHPmkU9v5caTR+kCk4V+Fotwd2GiwnS9FiQhEtyn/JuF9mdUeA0UxoNwLnCS/WMxvCBs098PIO8WSRKK12wKWmFoB2FOqrlwGhUDhsQeq+PCoAImhOokH7svadKoZAehu+lDLc8EryHe/36KlZBkY5rINrga6dfPkYkv2CXpdBipdWAo4UVJrdrZYQ== 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=IHKrdoixi2Hfq2r9EnI5dMdTWimB1/X9B0TNpG3TqtU=; b=FCKpE3eF6/7bvadDpAT/Y5NjCVJ5n9yZo9vbh8vY6eBI1Il8eJ7vY7OnLrVY+R03NJdUVKg9aesyTIYWlJ8XjJEq8Oq6AMeawBPr3T/M8lB3uG6Xf/xP4oUffsLjyfeb8zqmdgIYoovJX5JFAHEZrc5C2ozaQLg8u1ahUG4QNBGZvNL+IBuvexD8UQNmPRjRq/bgNfKOHnzKmvuSirdtxG4Cxbzmju6M8Tgb9sXu6c0i87eCqIE6+oz++lDCWiqRC0FcWzKahn9xYN5WZXdps8v9UZ9E3tYDYrNs1K5T/teLLuhcGkBhGtG2PVCEyLJWXUJcNMUsaTCplbLnrax/EA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.94) smtp.rcpttodomain=kernel.org smtp.mailfrom=leica-geosystems.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=leica-geosystems.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leica-geosystems.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IHKrdoixi2Hfq2r9EnI5dMdTWimB1/X9B0TNpG3TqtU=; b=DIJpJGH8NeujR5iFR9v7WRgqsp5LOs6Uy7ASMC3KV9zl7pNO5UPuWRkHQr7gz3XPfwcTGEE5mbgzxPW9SHi0H83tlV6b4xsbiig1nrm5O7Z4IbLArqy/EO3pfcW1wPpU8SG5lkImkmx2ExdNhoPWFIA4NY7PFHz28StLyQZAfi0= Received: from AM6P191CA0013.EURP191.PROD.OUTLOOK.COM (2603:10a6:209:8b::26) by DB6PR0601MB2391.eurprd06.prod.outlook.com (2603:10a6:4:1f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Tue, 10 Jan 2023 15:23:24 +0000 Received: from VI1EUR02FT065.eop-EUR02.prod.protection.outlook.com (2603:10a6:209:8b:cafe::9a) by AM6P191CA0013.outlook.office365.com (2603:10a6:209:8b::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18 via Frontend Transport; Tue, 10 Jan 2023 15:23:24 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 193.8.40.94) smtp.mailfrom=leica-geosystems.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=leica-geosystems.com; Received-SPF: Pass (protection.outlook.com: domain of leica-geosystems.com designates 193.8.40.94 as permitted sender) receiver=protection.outlook.com; client-ip=193.8.40.94; helo=aherlnxbspsrv01.lgs-net.com; pr=C Received: from aherlnxbspsrv01.lgs-net.com (193.8.40.94) by VI1EUR02FT065.mail.protection.outlook.com (10.13.60.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.18 via Frontend Transport; Tue, 10 Jan 2023 15:23:24 +0000 From: Johannes Schneider To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Fabio Estevam , Li Yang , Shengjiu Wang , Richard Zhu Cc: Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Johannes Schneider Subject: [PATCH v7 2/3] arm64: dts: imx8mm-evk: add revision-B EVK Date: Tue, 10 Jan 2023 16:23:15 +0100 Message-Id: <20230110152316.1149940-3-johannes.schneider@leica-geosystems.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110152316.1149940-1-johannes.schneider@leica-geosystems.com> References: <20230110152316.1149940-1-johannes.schneider@leica-geosystems.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1EUR02FT065:EE_|DB6PR0601MB2391:EE_ X-MS-Office365-Filtering-Correlation-Id: ceedd69c-7815-49e0-1322-08daf31e9d76 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: NkR34lH3eQxY5WnefOVKLFK9dBB68vahZ6eZVcJ088XA3+Ne2fi8RevzebvIqEwx6F8w6d9K7orgyzBTwOVQe9qEGhxBmhwhnOxhYRn43anJpj4bLYTPhKRxm6eE3t5QNu1DVWdiem8514nriJFAlpwH8mYP6/CCdpa6S+OaQNhi+YMWia+zscjINFOjEHxDXgdXdIh3Kx1xwTTMyZDDFLL9la/sys5QGnSpqsXMoX/6uJ1QXox9gRQ45vVl8NRFVGm/XGMgXi6Hv0vWewhT+Bb++Wmje//OGfyN+2stS4NZITpJEMwI5/eQx8CnhMvtaGgbV+G04uOVc3z1yey/ioG71m/+JH+tD248r7My77diQlRhyaOmH+Je9FVPomApC5TfJlDyNcC+BN4j6z9219RgpatZdygkMu0X04UHnbYbFkuBgnXF+D+rmg3DoHjxGLz4JmOblkNKRlqF3dkO06GRufW1L3HBLYz3bXf+Q+SwSBVrBZlcc6VNZTG3nXtDUVUNhOPcc7SGrMohEF9J031qNQHEbmL0OQqyrN5OAoIZdWEVk2FUNR/hoiqRKaMfPfWbGdrf90m06f3QhL2/J+4DHVXvYrx0WtKDEsvcHQEki8AEQUcz3BMUyHlXW2yXFaaJYJ05PWbsasjv8gZlIlDsJbHiEncv0xU76ylWPFrbxA5G+NMmlxkfY8s138bZFytEiaps9WSqrym5hUpq6exb2YFNIjKwV6TySmZj+DY= X-Forefront-Antispam-Report: CIP:193.8.40.94; CTRY:CH; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:aherlnxbspsrv01.lgs-net.com; PTR:ahersrvdom50.leica-geosystems.com; CAT:NONE; SFS:(13230022)(4636009)(39860400002)(136003)(346002)(376002)(396003)(451199015)(46966006)(40470700004)(36840700001)(70206006)(47076005)(4326008)(81166007)(8676002)(40460700003)(336012)(36756003)(41300700001)(54906003)(2616005)(36736006)(82740400003)(956004)(316002)(1076003)(70586007)(118246002)(110136005)(9316004)(5660300002)(86362001)(2906002)(356005)(82310400005)(36860700001)(478600001)(6486002)(44832011)(8936002)(6666004)(186003)(7416002)(107886003)(6512007)(40480700001)(26005)(6506007)(32563001); DIR:OUT; SFP:1102; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2023 15:23:24.0176 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ceedd69c-7815-49e0-1322-08daf31e9d76 X-MS-Exchange-CrossTenant-Id: 1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=1b16ab3e-b8f6-4fe3-9f3e-2db7fe549f6a; Ip=[193.8.40.94]; Helo=[aherlnxbspsrv01.lgs-net.com] X-MS-Exchange-CrossTenant-AuthSource: VI1EUR02FT065.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0601MB2391 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add devicetree for the EVKB, which comes with LPDDR4 and a different PMIC. Signed-off-by: Johannes Schneider --- arch/arm64/boot/dts/freescale/Makefile | 1 + arch/arm64/boot/dts/freescale/imx8mm-evkb.dts | 116 ++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-evkb.dts diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 3ea9edc87909..3bccc4d10928 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -55,6 +55,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-data-modul-edm-sbc.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-ddr4-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-emcon-avari.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-evk.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mm-evkb.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-icore-mx8mm-ctouch2.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-icore-mx8mm-edimm2.2.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mm-kontron-bl.dtb diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evkb.dts b/arch/arm64/boot/dts/freescale/imx8mm-evkb.dts new file mode 100644 index 000000000000..b2d724ad43b2 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mm-evkb.dts @@ -0,0 +1,116 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2019-2020 NXP + */ + +/dts-v1/; + +#include "imx8mm-evk.dtsi" + +/ { + model = "FSL i.MX8MM EVKB"; // with LPDDR4 and PCA9450 PMIC + compatible = "fsl,imx8mm-evkb", "fsl,imx8mm"; +}; + +&i2c1 { + pmic: pmic@25 { + compatible = "nxp,pca9450a"; + reg = <0x25>; + pinctrl-0 = <&pinctrl_pmic>; + pinctrl-names = "default"; + interrupt-parent = <&gpio1>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + + regulators { + buck1_reg: BUCK1 { + regulator-name = "BUCK1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <2187500>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <3125>; + nxp,dvs-run-voltage = <820000>; + nxp,dvs-standby-voltage = <800000>; + }; + + buck2_reg: BUCK2 { + regulator-name = "BUCK2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <2187500>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <3125>; + }; + + buck3_reg: BUCK3 { + regulator-name = "BUCK3"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <2187500>; + regulator-boot-on; + regulator-always-on; + }; + + buck4_reg: BUCK4 { + regulator-name = "BUCK4"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + regulator-always-on; + }; + + buck5_reg: BUCK5 { + regulator-name = "BUCK5"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + regulator-always-on; + }; + + buck6_reg: BUCK6 { + regulator-name = "BUCK6"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1_reg: LDO1 { + regulator-name = "LDO1"; + regulator-min-microvolt = <1600000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo2_reg: LDO2 { + regulator-name = "LDO2"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1150000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo3_reg: LDO3 { + regulator-name = "LDO3"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo4_reg: LDO4 { + regulator-name = "LDO4"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo5_reg: LDO5 { + regulator-name = "LDO5"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + }; + }; +};