From patchwork Tue Jan 10 04:32:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SCHNEIDER Johannes X-Patchwork-Id: 13094653 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 43C44C54EBE for ; Tue, 10 Jan 2023 04:34:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=oNwOHwYPbFWfNJgmP6cmKBHWpcfpDYTP047CJZ8Gjm0=; b=cu0sD/icDIu/Xp 1x0R4uLZ6S0haeuQXLjrhLvox9/IF3+ER3Wzoy/muCcwhqtYNev/05aeL3MCwdRv/w76YZ91LaycC P383dfinnk9/Kgsk+iHQbS+UL5UUsUkSf2rHJgS0XjZjg2/b/Yr7OrAbgrKU48c+81EfR/q0Kajj1 MjoCiJiR76kWf90pc64g1+72cOG8EBb5AHlFYECBEVk6Rm5ls9cg/ER3i4rRF7/n9YeULoj0ifKY0 uClUu4PjWOOQXqE6hJeOTcwK4+o0VtHJDeYh+YyVqwwFK5PfP6rz4z+Qzkfj9+/ZYuRCDFxVuDrbp 6Uegv/oWdkc+a6whJEkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pF6K4-005Eh3-6C; Tue, 10 Jan 2023 04:33:16 +0000 Received: from mail-db3eur04on2117.outbound.protection.outlook.com ([40.107.6.117] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pF6Jx-005Ee2-NU for linux-arm-kernel@lists.infradead.org; Tue, 10 Jan 2023 04:33:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dUxammSrr5ACrDQEjYJvZPJYYhnjL1a92F6c6vdPL41Bm7WUeMghieKcwKUlV0KDA1PVtSIspaYy2MWCqwbbjSJGzU1obybd7qpSVL78VIcEuoBoKTLgbM+HQdY07w1fS3fghLHqgEVqpr0FDaoacrqi71i+vwoqmaX918xxTmTE/vxNEyf0F+Zsr+lGwyke+3JEUDyA7toUBz4o7KgMWQhtzovDTba2D2mTcim3Ffs0y1PTzT2QtYNdhPYqXWgYv5jTlJ1yaoAQSbMLIMA/Sc50g1v2YlAB7P4g3TFmRtXnriX7Tt7RvlfHVgcYMyro/mlNK2yLmtCbyEvrBYOmRw== 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=/2Dg7NtEIDWY0a95DBY/Ee7AqhSTE1WkH/N8LCF8fBs=; b=Rk/y5guq+cSy4tp/BUuUbwL7j0jcHwTFX5q3s67PcFT9jOM3dCZ2TQuuzZbNGaXc6OG3sXgE6d8utXdLyJfcGzWx9uEysb9CqjZR3d/8AkYZiO9GKVltaVMw9ioaY4S0uBRRpPDGtMlqaf0Ckg0N/iVUwLha/OIKKt4MmXSw3nCPDFTl/S7N5GjAvTFyX38I113dwUEr3dei1I1xLjqH2JEwl/F7Je6tmP6gLiHwZEZxNuzkfaHNF8sJSQLNQO25Q/kRv1FuR1l4Jmf5ll1mnM9mB8Y6+kosxoySpBBJpM/uO144bEKBr84D/tvG8AHY0x1CBEoYbagF85Qio1EJKw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.94) smtp.rcpttodomain=pengutronix.de 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=/2Dg7NtEIDWY0a95DBY/Ee7AqhSTE1WkH/N8LCF8fBs=; b=MInAFSx7kK0m271S/i/uaSL4CCx0xxdeqk5PnrHTSxa8haW7cBvJlGnm/IyCK0SFv14Ty/hR5n7lIx5AUAfscATxNO/t8WFa6F9wbNT15OXy+nWTY/ah1MJhjSwkgeE8HJbp+s2jQezxv+YfBGZ1eJlXqgkMfsgAzWrKkOJm+t4= Received: from DB7PR05CA0062.eurprd05.prod.outlook.com (2603:10a6:10:2e::39) by PR1PR06MB5964.eurprd06.prod.outlook.com (2603:10a6:102:c::32) 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 04:33:05 +0000 Received: from DB5EUR02FT032.eop-EUR02.prod.protection.outlook.com (2603:10a6:10:2e:cafe::29) by DB7PR05CA0062.outlook.office365.com (2603:10a6:10:2e::39) 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 04:33:05 +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 DB5EUR02FT032.mail.protection.outlook.com (10.13.58.110) 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 04:33:04 +0000 From: Johannes Schneider To: Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Fabio Estevam , Li Yang , Shengjiu Wang , Richard Zhu , linux-arm-kernel@lists.infradead.org Cc: Johannes Schneider Subject: [PATCH 1/2][v4] arm64: dts: imx8mm-evk: move PMIC setup of A53 Date: Tue, 10 Jan 2023 05:32:56 +0100 Message-Id: <20230110043257.3637516-2-johannes.schneider@leica-geosystems.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5EUR02FT032:EE_|PR1PR06MB5964:EE_ X-MS-Office365-Filtering-Correlation-Id: 8e3f3ff9-4e5b-4959-f912-08daf2c3c475 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uMcktLxkChnBrbTPYclYLr+Sg2NeXRMy3heXvpCLBKiwSQ/czQWcdWrc4M3dDOIN9sM+ect8FriWdqjRl5jxOgqdJjzESJhaI2orAJvStYdccEOqohUnkiUgGSBLM+3mXykjAUszZvs/VXugXoyWU4puVvk/tFP6eE8KYYeghRDrG08gDdV1ZFEvb1iQpn8HakRDvMge1yzPxFKkBB6UnBgqYTkgpdiZUkGK4+PYigwH77e4r3HVXmwZqM+Tq6hLZg69WGUuAy5yhb873WXLNEVYHu9jKIvDFiTwIjuynVNVLwJYNO8XUcCYqEd8CL/fF2bkkSGAwE5vhZzVpeOUGDt9WFgM94Iz2aVlWXR7hOvhlnaxTUfDVs0+XCXb48EiSnwU/RNbgC9eSSfVYKD3Vn/LWLqzyOSBjHAqG96sNoSXFw3uyOm6zGU22mWLv6Y2ouM5MFNHs7sWVKtnAQST/gsQmu0RkV2vJg2k8MhrKNkQ8n7agJmJ3gVpsNoAuljZSOWRYNhEbxhqu1v3T8qhq3tvHnyem6YiBPMvwiWxd8Bhknq500rMXtev1zJ7N+TVVlDgVQ9LcDtv7Sp0v9RTvGnUNla8xIn4OEwa/sd6WaQaF+OWxVNH47nb25bzyoNubUG/iTxmeTw+Wl3386ztAtCs0TIIwBQeoxTwrLbNGqRa/7sG9w5EyhC6lpCgxvjqEh27QKoNDFXqXCtkLk8aj3Qg4J4/wnWguGfjKYKUZ+WFtBMtB75rRFVg8wkvHy8m 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)(376002)(136003)(396003)(451199015)(40470700004)(46966006)(36840700001)(82310400005)(9316004)(118246002)(8936002)(40460700003)(2906002)(5660300002)(47076005)(41300700001)(81166007)(7416002)(70206006)(4326008)(36736006)(70586007)(8676002)(316002)(356005)(921005)(44832011)(110136005)(26005)(82740400003)(6512007)(1076003)(40480700001)(2616005)(336012)(956004)(86362001)(186003)(83380400001)(36860700001)(36756003)(107886003)(478600001)(6506007)(6486002)(6666004)(32563001);DIR:OUT;SFP:1102; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2023 04:33:04.9957 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8e3f3ff9-4e5b-4959-f912-08daf2c3c475 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: DB5EUR02FT032.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR1PR06MB5964 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230109_203309_790278_0F7E9282 X-CRM114-Status: GOOD ( 15.37 ) 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 the dtsi to the two dts's Signed-off-by: Johannes Schneider --- .../boot/dts/freescale/imx8mm-ddr4-evk.dts | 1 + .../dts/freescale/imx8mm-evk-rohm-pmic.dtsi | 136 ++++++++++++++++++ arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 1 + arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 128 ----------------- 4 files changed, 138 insertions(+), 128 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..10d7adcb9b91 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk-rohm-pmic.dtsi @@ -0,0 +1,136 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2020 NXP + */ + +/dts-v1/; + +&A53_0 { + cpu-supply = <&buck2_reg>; +}; + +&A53_1 { + cpu-supply = <&buck2_reg>; +}; + +&A53_2 { + cpu-supply = <&buck2_reg>; +}; + +&A53_3 { + cpu-supply = <&buck2_reg>; +}; + +&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..b26460586f68 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi @@ -133,22 +133,6 @@ simple-audio-card,codec { }; }; -&A53_0 { - cpu-supply = <&buck2_reg>; -}; - -&A53_1 { - cpu-supply = <&buck2_reg>; -}; - -&A53_2 { - cpu-supply = <&buck2_reg>; -}; - -&A53_3 { - cpu-supply = <&buck2_reg>; -}; - &fec1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_fec1>; @@ -182,118 +166,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 04:32:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SCHNEIDER Johannes X-Patchwork-Id: 13094654 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 533BDC46467 for ; Tue, 10 Jan 2023 04:34:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=v/YENisuL1GSH7/xt4h/aPvslR0syZi1x59v7gVfgEA=; b=q/JA/19U5XRvQs Cm5cbesbhqhEMtC75gMWWn72/SmeKM/yt7wpkk8kDOE8Wtp5UUV7j7RmLyxlIJ7guDPDbRuvjBEOQ 0SeF9y2mVH0TpU4hzwTcKZP6/chhr6yGFtnRJcluDu4/c0F9JulAeVVZBcqJL7ksB4SN84Mo7LywO hsyLx0JCxhFayylUwBCsicxEqOll7zAGIc96jx8Ce4eBFPHRkA/VGlncqkP6F21DDaJuUFd/iFsAf MrL0smj2PZV188x2SHbl73AyJZU89ZcHySq9mtNSIElNDVdNrmtKpWdJOXZvi+XZ9XTJzuPHbc6Cs W7C71fNw8w4B4CZiQ7yg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pF6KQ-005Er8-If; Tue, 10 Jan 2023 04:33:38 +0000 Received: from mail-dbaeur03on2110.outbound.protection.outlook.com ([40.107.104.110] helo=EUR03-DBA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pF6Jy-005EeD-NC for linux-arm-kernel@lists.infradead.org; Tue, 10 Jan 2023 04:33:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dJheqaeGpzHpQoOGORidzE8c4M4Nkh8JZfcY8EA9GvdxFKeLeu4YjkHiNqbA57drPkthfcC8+OCDrgBWHj5hH/BhlGaHuiTqbCyj5VfbC6G8kAqQVfGXWV0eanU8dXq6Ual8xyJ1w/lF7cAkTvIt9Jpx2MOu/HRLj0zmtvDWwjp1r7EOI6k8h1cqE5INFzJrX+TxrV6GI9UGZRdbkGwu77rBoFFFrSjSkjeLJq4TDM898DGk8iSs4XIMrJDPZB+4st2GoOHmGt5k0O3ivDdiYwgGMRrOjIMHbTGwH5zL1g+uDmbex4EdUhj+xcNpGoi6CPPM9okVizlvdG1272Ym3w== 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=lM+WZIQ7LFdKMYnB+dyMXjDo/zxn73psuJUEixDhc3M=; b=jDZ7Bql5+O9jDkS7aGoaWXbOczWiDKd4DvqfdwSpjZCvmtFaQkrAv6Z7S3iDbPCgk+5000mne00xn/+GvJTw81TAmPGOZDiH2mr/Gm8LCY92aA3o28ojP9KP9mxirG0DkSdPpgPfJsp22npIO/dl9LS9xS4VNS3jOrc4ACpsfYAwveCYXGG/VQHLMO3MJ8PIIjdmcboDAlXrIgv8KRo3HoH5UM6JcSE/Yl5yuoln2HQTjgtbe4/yaw8khrQKc71dlm5KsXiMz8TrHsuFWb6a33mZbHc/c6pSsHLhqkSgIvPk/5vIUy3PG2CI8T7dkRruz0uIBfPBjy//KhdvWVwxTA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 193.8.40.94) smtp.rcpttodomain=pengutronix.de 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=lM+WZIQ7LFdKMYnB+dyMXjDo/zxn73psuJUEixDhc3M=; b=hkLpWTeigWH9ZddGZSG1IPCrmpczAEWN0fnTlKBO5vA4tOGNYIO5owc1QcqRvtmkjzsALR+p8JA7E8/Mp7oE1F2ucUwTWWncFtX2ANvOxqyTGY5xNG98NJahzJt1TseEbshDFXcEOPL1w36I7pvu2WU79+6B6ynL89WRNbfqYEo= Received: from DB7PR05CA0042.eurprd05.prod.outlook.com (2603:10a6:10:2e::19) by AS8PR06MB8257.eurprd06.prod.outlook.com (2603:10a6:20b:340::15) 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 04:33:07 +0000 Received: from DB5EUR02FT032.eop-EUR02.prod.protection.outlook.com (2603:10a6:10:2e:cafe::2d) by DB7PR05CA0042.outlook.office365.com (2603:10a6:10:2e::19) 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 04:33:07 +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 DB5EUR02FT032.mail.protection.outlook.com (10.13.58.110) 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 04:33:07 +0000 From: Johannes Schneider To: Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Fabio Estevam , Li Yang , Shengjiu Wang , Richard Zhu , linux-arm-kernel@lists.infradead.org Cc: Johannes Schneider Subject: [PATCH 2/2][v4] arm64: dts: imx8mm-evk: add revision-B EVK Date: Tue, 10 Jan 2023 05:32:57 +0100 Message-Id: <20230110043257.3637516-3-johannes.schneider@leica-geosystems.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110043257.3637516-2-johannes.schneider@leica-geosystems.com> References: <20230110043257.3637516-2-johannes.schneider@leica-geosystems.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5EUR02FT032:EE_|AS8PR06MB8257:EE_ X-MS-Office365-Filtering-Correlation-Id: 34f6456d-d7ff-4240-8e84-08daf2c3c5b5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KBoZ3DZf2OlaYntPiTtlorunqgqBgaeH/KgpaCsnS88XG9XZ7vZsP2rwYeBUjhxc2p80mwhQCh5x0mj+zvZWESmIb9OPOb//KsWg6ikw3xa5E68TTHQy6mOyxWqf4MX7A+pnxwEBuzXRrve9XtpL+svgcpfaIvE88URhGDeIOycjjFsB+5BKjzS1b8drdNqxEeHZxmcfGxvT0+/LEveHlLwtrnSOFcNs/0mo115YpoWSjjobHTP8Bym6uhJmYzWf1fimwKuTJvCUyRXNIR42RgvDc18g146bA7IQjm7ET+TufhIVOl+kSXck3FldrijjNFSOrSF7RQUG1amLMEIUwqrL61H7WORn7LRakEPuEPhQUvO0BWK0bEmvSDJzLreN197/7FAqxSJ+FaNBrIo0dzHX4r+dQlCcYoJMCltbvr0j9TzRXvgV2EUdwillqmwMnO5z46nnDa790UOA0tv/VnNG2wKKGjy89Uj1k7JPsuEl+/SUR6PmW6yMTlzxTxOQh/XiiWU4iaL/odv9Vud75ph/MjZ0ZNAlorF9lxR8jKAU5zneKsfUMhlpe5VS9nSfzvvK2cRADsmtRAbmvecgwO8RWbrEHdR3Y4zV1+MaGgNS3KRWkMdVzT37tsckKslLB9I/59IFhzXLHsdMJbEb81DIig3UbhDOX92/xIp6WbQ12K65DrkHLuGeqlPXoA9xp4sKE0LW8V73Ljg7GEIddk6obrsYexopo6IZ4+ujWbck9LdEvHSuWRM6ROf4QvQR 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)(376002)(346002)(39860400002)(136003)(396003)(451199015)(40470700004)(36840700001)(46966006)(9316004)(44832011)(2906002)(82310400005)(47076005)(336012)(36860700001)(81166007)(2616005)(1076003)(7416002)(5660300002)(40480700001)(6666004)(107886003)(118246002)(26005)(186003)(36756003)(8936002)(6506007)(6512007)(478600001)(956004)(70586007)(110136005)(70206006)(8676002)(41300700001)(6486002)(36736006)(356005)(86362001)(4326008)(921005)(40460700003)(316002)(82740400003)(32563001);DIR:OUT;SFP:1102; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2023 04:33:07.0901 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 34f6456d-d7ff-4240-8e84-08daf2c3c5b5 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: DB5EUR02FT032.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR06MB8257 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230109_203310_790323_A92F322F X-CRM114-Status: GOOD ( 13.55 ) 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 the current EVKB come with LPDDR4, and a different PMIC Signed-off-by: Johannes Schneider --- .../devicetree/bindings/arm/fsl.yaml | 1 + arch/arm64/boot/dts/freescale/imx8mm-evkb.dts | 132 ++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-evkb.dts diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml index fbfc4f99c01e..9c3a02c19847 100644 --- a/Documentation/devicetree/bindings/arm/fsl.yaml +++ b/Documentation/devicetree/bindings/arm/fsl.yaml @@ -818,6 +818,7 @@ properties: - emtrion,emcon-mx8mm-avari # emCON-MX8MM SoM on Avari Base - fsl,imx8mm-ddr4-evk # i.MX8MM DDR4 EVK Board - fsl,imx8mm-evk # i.MX8MM EVK Board + - fsl,imx8mm-evkb # i.MX8MM EVK Board, rev-B - gateworks,imx8mm-gw7904 - gw,imx8mm-gw71xx-0x # i.MX8MM Gateworks Development Kit - gw,imx8mm-gw72xx-0x # i.MX8MM Gateworks Development Kit 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..1978d5dbde0e --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mm-evkb.dts @@ -0,0 +1,132 @@ +// 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"; +}; + +&A53_0 { + cpu-supply = <&buck2_reg>; +}; + +&A53_1 { + cpu-supply = <&buck2_reg>; +}; + +&A53_2 { + cpu-supply = <&buck2_reg>; +}; + +&A53_3 { + cpu-supply = <&buck2_reg>; +}; + +&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>; + }; + }; + }; +};