From patchwork Tue Jan 10 04:31:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SCHNEIDER Johannes X-Patchwork-Id: 13094650 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 535C4C46467 for ; Tue, 10 Jan 2023 04:33:29 +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=oNwOHwYPbFWfNJgmP6cmKBHWpcfpDYTP047CJZ8Gjm0=; b=40+xSnXBJG2hNx uez+XiKt5aAb71ne7H3b1/IRF2lFD5rd6bFr8KHlFyXuWK9oT4P2vg0dXRFDqEhCtx5P326jJ62vF o6B+YcLAupXbx0UWlv5QlS91rKAUOr08LDxgE4NXTN7N55WegGItLjYNtNqgiZpwGyHGFRKyy+HC4 Nyqy17AjHnaBW2wKaCjKewSxz3N9v1obQIsQDD136oSk39Q/VOYxjnoSC5xpC10ekK27nRS8XKXXc Zc1LDei79L4v2PGLEge9OkXjQZy+duCR6i597lcMiXDfJLjobD8Un/hJuZ8xcYwFNNb3fF6gguEsY V0+i3iUvuGPotIIa2AmQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pF6J9-005EN5-Ua; Tue, 10 Jan 2023 04:32:20 +0000 Received: from mail-am0eur02on2098.outbound.protection.outlook.com ([40.107.247.98] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pF6J4-005EJZ-VZ for linux-arm-kernel@lists.infradead.org; Tue, 10 Jan 2023 04:32:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=arB9lL4t7y4T4bPkIFliS07+/9Un3NDiE8Uh2cpp58HR1tQtqiII7h3L3/RnBGykN5RZVCeAHIh4zoSpZgWgsJmTwkBYDDPPH0JrLEdOGKsnsnH06IFElshh1RT1kdZSEcDty2VVs5t884pt5Z/f38U9LAtTMA4vpGbDVvLfgohH2wQ+zKd5pEH5hr9iU2RvYVEBjFxcsn9g/I8Up+Nq4Ckd4pwwMpERl+Z7n9td/8cnZ3pNS5kAe0WHfrQ3GQfF+yFYFXVdT4QzjlXH1RADrc7VEQGgTrYf7vtFngWDXME/DR/JUvdODyxHbWgTeaKqFIEEceDJ9B00R7Zue+7XkA== 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=UOnc/g1N5U9Mp9i1OJxcqSjIAAZbnqcwtuVhE++gcUmmuzMEWPupXqE8ZEb0eMVYzSlaP8XYyo4Yk8LIx7PTwm5T5NUs4ovmZc7RF47PLtllXCvh36YWAffnb3BihvoTU6uL6OpvIVvGDyml1/SkuZ4uzVGlRlSCqffhsfZGdMnSI6777Zd3cwGPliO1BZLxPwOb8TyBq5mCH7+Ch94jIKM7wN3jdCoEyUbiiHUq5A56cjXAQJ1iCwuDSqRK9MqEYXlPnU77UqYIeEghVEFIUdxT31i+WYhXWJ2rsDyMWGXRPV1eqezGbF57cmoi8pltIDyHM7Xd60XyxaHlKTFQew== 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=Qi3Y9j0QjhOBQSsMGm5xLkRJ+TSgeo2QKvwsRsm9y49NniLC5/5Exx6QfMKJLDmrMh6xNuVo+kfZq5EqKe0SAL4qqXjdU0dpqP0o1EpDUyulHVAxE1OAwMtZglJ5e8YgzxtUsuCxCedmoOjg/ZDcGTqnexeW477Rx5LoEQC7NrE= Received: from DB6PR07CA0006.eurprd07.prod.outlook.com (2603:10a6:6:2d::16) by PR1PR06MB5481.eurprd06.prod.outlook.com (2603:10a6:102:3::25) 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:32:09 +0000 Received: from DB5EUR02FT060.eop-EUR02.prod.protection.outlook.com (2603:10a6:6:2d:cafe::99) by DB6PR07CA0006.outlook.office365.com (2603:10a6:6:2d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.11 via Frontend Transport; Tue, 10 Jan 2023 04:32:08 +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 DB5EUR02FT060.mail.protection.outlook.com (10.13.59.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12 via Frontend Transport; Tue, 10 Jan 2023 04:32:08 +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] arm64: dts: imx8mm-evk: move PMIC setup of A53 Date: Tue, 10 Jan 2023 05:31:59 +0100 Message-Id: <20230110043200.3636458-2-johannes.schneider@leica-geosystems.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110043200.3636458-1-johannes.schneider@leica-geosystems.com> References: <20230110043200.3636458-1-johannes.schneider@leica-geosystems.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5EUR02FT060:EE_|PR1PR06MB5481:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ad41008-0aee-41da-955a-08daf2c3a2c0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W5P6fjsSQV9zOSpJcNcZL19ifWx9Cs4PXnRWRPJhhQDX0M+SjuP9U/ze2RWePF1wxF8OkUjVhNpAbNjrNUnEAQ32UclWVI3i+qj8U5g8NnKZ3BTcy20w0Eg77sdd0PI25fz9K46m9fmhmhYdW8zP73zDOuGuvYHujnJyRV4vH0sh5e4gaNQvqWqaE8rjnC+RVAGNs811InUUefoUrPjopoM689lxOIfeNmbXLbJxa7Y/RQuf2UV29g50s8zJcT8zIGCr2cEdRau4bqwcdYDqKMeM6r9tauvtcbRdmOjVSw9hgHoRUP5BMizxo/sbKokrUrKKN4DM37O37ldNX9EtIIVa1oo7oEuD7fO80oWlhuDGgc/Vw1QkfxE2UIh3Xy+3POqxicF5rdS+NsGy5mVaoKlzmVZK+qhmDrTZwVmUVfttSMLh4qSl973lcSIwryrUnScgmYVf++/U15gvEhkFxrI8d4wOHOQ4K0tCIpKc6btNkP7waRl43MmXJL9w4ANh0K7TGKQ2cymTbrtbBr4LWRw25q8cZL62rICQxQneIbKwYc/uEFwvIZvOD0EFePHgJMPOkbJu28sqjbZi2e7bYV1SYbWS3TgTNtbDWKIQfjXvW31p9OzhJQS7xfsJRFjvNycDGCrrmy09/2qqhwseVdCCTL9cj4OIYjoV5h7/scd/SwUtneBHjBPVr2ngUySgBhmgVp5BazenrniLUokKHV/eVs7NpTEm+V7nKVBfoJzOD/zAx0xLiZEVkJy3/yAE 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)(396003)(376002)(346002)(136003)(451199015)(36840700001)(46966006)(40470700004)(2906002)(6506007)(6486002)(478600001)(26005)(6512007)(186003)(6666004)(107886003)(316002)(36736006)(110136005)(2616005)(1076003)(8676002)(36756003)(70586007)(336012)(956004)(40460700003)(70206006)(4326008)(47076005)(41300700001)(5660300002)(83380400001)(44832011)(82740400003)(7416002)(36860700001)(9316004)(40480700001)(118246002)(82310400005)(86362001)(921005)(356005)(81166007)(8936002)(32563001);DIR:OUT;SFP:1102; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2023 04:32:08.4421 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2ad41008-0aee-41da-955a-08daf2c3a2c0 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: DB5EUR02FT060.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR1PR06MB5481 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230109_203215_539258_45C0033F X-CRM114-Status: GOOD ( 15.95 ) 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:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SCHNEIDER Johannes X-Patchwork-Id: 13094652 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 5DC8AC46467 for ; Tue, 10 Jan 2023 04:33:49 +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=1ZWyADOIdF4q7R QZ/tStTr9mRMjf70niUF2mF379k2OogGryRqYnNeMG5atyuQRukEf8N5qbYwgQzLuESqrqdNUEBJa D6oHwnNUuEhk20phoDfqVlSW28ak/JuKByMd89pCl1UztZhwSJqe3ndzNxgiUoo5jgYujhdhgVdhP qkH9Hstf9oYITw7C5swm/AAoB2ucZ4XQo/xyaik5+BCIhHYo4GNT/am+OLzjXvKEYvUCWPFOr2d+8 0CP6c3Lpz7uvFOGgroKX9S5eY1OTffkRzrTlQv7tQUcui/IqvsezTCTtQI7OT15Q+zQhfbRbHKmer 7qXjQM1U81D09l2GE+Lw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pF6JY-005EUG-NE; Tue, 10 Jan 2023 04:32:44 +0000 Received: from mail-vi1eur05on2125.outbound.protection.outlook.com ([40.107.21.125] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pF6J6-005EKU-GJ for linux-arm-kernel@lists.infradead.org; Tue, 10 Jan 2023 04:32:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RxrBHjN+30Br8jWVCvYubvNeWE77P86+O8x35k3qxJtGxMXPFLZhnUJlU4ML3tLEuBpuG1q514A9dQAj9PDE6bgxZdKq9ftnhtgtGmK7WptT4lPfhd6Ts60omWkDcPCEEVqTo+VqkSFvON2dUwlcNMLWnyWdeBSoVULT0npWEg4LQRCrV1je/j1rflVjpySwKq9Q59BtakiHPTXuKnXv7ziTKS8mT4f2CbnemGrJRHz+IIih5FNRd2ZGtJbWXBw2b1yGNBdZ+tOrruic8N8R4IUKPtfXXKW7y9oqNvKhZ5NVGWQKXY12oQdOQXi3gNgIoLTwPWFu1hUCAnv79/iz1A== 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=gmN9Ao0fz073rq4Rf+zKsYOPucbzwDynTXl02xVDfiWNi759cnbqDVeStnVKmY7s0f+WZMKozxAseuIkvQH+QLmM6dXeVHgV8nBGazW5pyatq6R77TNbXb4J2vshpn3lLg1TnRSFLvpkPJUMOxablYBM7/x/Nk2qJCzULINx3BkkXaW1ImrG5m30OefgaTWi35Lx2cKHmJHlPe0fYQ60CEsPQLCPxSaq2PokQR6T0osxSD4L5boIcdvUZgpkdUzgDoGXq6UbAE9OZL1xJEJm8u/syWXMoyinMiYgYNVYJ7rV0OPNcTUiSJyTTul1wxi1fFbtjUX1JBQEzf6O2QcCHw== 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=SziA9+o+Oz44abfiqJDunFaSCqttBEvTKoHfvZTeb2BvWYx5VX5OlrqDXCM9zUsYdBD1vnhzYEE4UNuxSgtHLEsPRI934rBIDPU1ZWaDkBMjc8JIuYlfMmy7DMOAyqD0XNy4rnOHp3p48fFwuDZfm6Gc+O1+T6SqxpGcYw7LNok= Received: from DB6PR07CA0006.eurprd07.prod.outlook.com (2603:10a6:6:2d::16) by DB7PR06MB5020.eurprd06.prod.outlook.com (2603:10a6:10:6f::16) 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:32:09 +0000 Received: from DB5EUR02FT060.eop-EUR02.prod.protection.outlook.com (2603:10a6:6:2d:cafe::99) by DB6PR07CA0006.outlook.office365.com (2603:10a6:6:2d::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.11 via Frontend Transport; Tue, 10 Jan 2023 04:32:09 +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 DB5EUR02FT060.mail.protection.outlook.com (10.13.59.229) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12 via Frontend Transport; Tue, 10 Jan 2023 04:32:09 +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] arm64: dts: imx8mm-evk: add revision-B EVK Date: Tue, 10 Jan 2023 05:32:00 +0100 Message-Id: <20230110043200.3636458-3-johannes.schneider@leica-geosystems.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110043200.3636458-1-johannes.schneider@leica-geosystems.com> References: <20230110043200.3636458-1-johannes.schneider@leica-geosystems.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB5EUR02FT060:EE_|DB7PR06MB5020:EE_ X-MS-Office365-Filtering-Correlation-Id: 10371419-c74b-4338-f0db-08daf2c3a33e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aDMWHnAJcBGSkYFDC28HeCsz6lZt4iWgTjYKWamDVA4FDhO4UEcOZrlvs+LZtiohnVQhtizaYkdHuKybo3L0dbFrNxNzd7nuJJzeiMgtNc6u84xGxYy8wE2rDD594wlthQFzOT9yaeKSajPn9srIFIH3NRBPTF5ZD5c2uhHCs/h+Ot0UL/mLZML9HNzscL+GmWD6tuJ6he4NcPH7GuT9VX6a+5QR2swZ4qFsPG04bQ14jidL88+cTRCkqgFH/KLJo82m8jTzFMMP6T9PZzwl3qBYPgUjTObhcbIQEj9lQ73zgWUlwrXgcQXoRLBZ812weBUmV8gHH5iPs3ymFYMthJJp4URzVoLAFHXpVUY2M363XxrUBkDJQ8e7EhoEFvwV53oJh4+o8IcUBUCudXLsaTAFpr/om1mXCbRsClwoTfsUFOo4waS8Haq6C0FdmcbKZmvszqlpYOKTJ7TnOsbb7FCbUKcXGDRHEAx1IYDEJ9rth9q7470mh92osswKWSrk03s39E1bClbAheywlOb8w2w6BHWeeGwbBxxRgyEcp8YVpuQAks3x7Q0R8w1eWKyDYg5MYHiwQ+dO+giAKljkZ+XPtwdANKeGW/rfoGyGfCFoV0DRzRM9T0RE1Q+eNki8KyvQ2cxCOQJHNWxeN/7A5aulyxGEwh881JjP/m+eE/ObuhLNH6q5XvYR9QOAOccqHTGB9JxvgGS3DdjsdJ2GjREIiPAPGs+GL2MYQc3PNNssVM6afeA2+l5rUMMkGb+D 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)(346002)(136003)(396003)(376002)(39860400002)(451199015)(40470700004)(46966006)(36840700001)(40460700003)(47076005)(41300700001)(36736006)(110136005)(70206006)(2616005)(316002)(956004)(36756003)(1076003)(4326008)(8676002)(336012)(70586007)(86362001)(118246002)(9316004)(82310400005)(36860700001)(356005)(81166007)(921005)(82740400003)(44832011)(40480700001)(8936002)(5660300002)(7416002)(2906002)(6506007)(6486002)(186003)(107886003)(26005)(6666004)(6512007)(478600001)(32563001);DIR:OUT;SFP:1102; X-OriginatorOrg: leica-geosystems.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2023 04:32:09.2858 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 10371419-c74b-4338-f0db-08daf2c3a33e 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: DB5EUR02FT060.eop-EUR02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR06MB5020 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230109_203216_603919_84FC5A36 X-CRM114-Status: GOOD ( 13.65 ) 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>; + }; + }; + }; +};