Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4165678pxu; Mon, 21 Dec 2020 05:55:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyIpFjqhF3ZXZAHjqZeJWYQL6shKfdGqzc9KXtMgEp24LRcV8mqdW+p1BrsUouemUlJ2ELl X-Received: by 2002:a05:6402:ca1:: with SMTP id cn1mr16083725edb.128.1608558934718; Mon, 21 Dec 2020 05:55:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608558934; cv=none; d=google.com; s=arc-20160816; b=agp7Io+vQQfFaa4JsXeYq0PdmMYaV5xQ14yO1VZHAYgucqddVWjWcJ4UzQiPvCx+Mv WuCuEFm3iKA8RFJ5M9PjDD+h5N3r9hmrAMtjvy4tR48/697ZinSxIzy1wwWOmIrMebIw Tr1pdZHYdwa7FKHZYraX9gKTNay2gE31cVHzGEnp6VHWYR8ESZSndN2xdAHReX73CtTG W5UOPjGhLd4S/9ICpG2I/pHdF+XBSarNGiD3nI9O+ityc+PpKe2FOgMqF6ecOWYpXJ5g utACopckigmj2OoxMGlwyCt/EGItn/FF7Kgar+VJct4tpeLvptBdvb/A7YNYmV9UKYsI 1sCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ZGMHpoCRLlbOSEzZjyZVGgOPbJYrjNNdJ+KlSJquj+Q=; b=WxThBG+DOZBpAmoP5H9XwfsDB5CV4XKXegx9V8LYgCAoD9wm9nVNoc8es1WAfUnZLr NaLEXrbYSK751ZQWfHivQOqWvhkOmiMcWKAyzP3iKMdIiHGMI8Hy63jf3xdScu5Yyx8h WYA279eBA/3oEmbX8wth+Jfy5XqthiUznBYqtROdbNSasKScoZx2tcqRIAL+5MVzY39l DQaB2wGIefj7mtAquJSgUMd8/nYvqlJY0/mFQtXJ/xZsk8xwSSVNrDbRHlHqR3z7x3Pd 9TvJALNTt9jW3yC5jZhcqIZXze+POFO/p/tPniWNBEnEYPe1Da3xO6icxrYKnCr5DqrL 31XA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k11si10758100edq.414.2020.12.21.05.55.11; Mon, 21 Dec 2020 05:55:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726924AbgLUNxR (ORCPT + 99 others); Mon, 21 Dec 2020 08:53:17 -0500 Received: from mail-wm1-f52.google.com ([209.85.128.52]:53226 "EHLO mail-wm1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726612AbgLUNxR (ORCPT ); Mon, 21 Dec 2020 08:53:17 -0500 Received: by mail-wm1-f52.google.com with SMTP id a6so9942353wmc.2; Mon, 21 Dec 2020 05:53:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ZGMHpoCRLlbOSEzZjyZVGgOPbJYrjNNdJ+KlSJquj+Q=; b=fVBFKEvAy4x+iU+af9o/SiLvpi02hIkA6puaSWPR6BF8qFUD116hMHZOgy7brmZ75N LiHbBqvs5iSsGXnr85Gp3eK7WzAWR0OaoVaPeWoG6v5TM9ISYl7+y1bnIc4u8iSNtXqR +0aq+V+NUbwfOd7rvCGecnt18iJKF1jKYT4T4I60VdnzEGql9gFvbUVN4EheRNApjBK9 MfMAj1pDV739BCvLvdXytvA5exxRfjm7cun2x4HHS47vRUqi0TLN+xPbpjlRJy8jzZFh rrltBJZt4Xk/4r+EzeyTsZEMYgD6/ebUsHFYt2vGfP9crMQcIwf6U+r7dRVlfiAVdujP MeSg== X-Gm-Message-State: AOAM5311iD1ptsvDvUJzC0hjumeWShKP2FVzopZwpU5Tx8w3Hn+SyXqs rl3FoRv/CBwI0vo/z4cKN/o= X-Received: by 2002:a1c:7d94:: with SMTP id y142mr16765008wmc.105.1608558754985; Mon, 21 Dec 2020 05:52:34 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id z3sm27811592wrn.59.2020.12.21.05.52.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Dec 2020 05:52:33 -0800 (PST) Date: Mon, 21 Dec 2020 14:52:32 +0100 From: Krzysztof Kozlowski To: Jagan Teki Cc: Rob Herring , Shawn Guo , Li Yang , Fabio Estevam , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team , linux-amarula@amarulasolutions.com, Catalin Marinas , Will Deacon , Matteo Lisi Subject: Re: [PATCH v2 3/6] arm64: dts: imx8mm: Add Engicam i.Core MX8M Mini SoM Message-ID: <20201221135232.GC31176@kozik-lap> References: <20201221113151.94515-1-jagan@amarulasolutions.com> <20201221113151.94515-4-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201221113151.94515-4-jagan@amarulasolutions.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 21, 2020 at 05:01:48PM +0530, Jagan Teki wrote: > i.Core MX8M Mini is an EDIMM SoM based on NXP i.MX8M Mini > from Engicam. > > General features: > - NXP i.MX8M Mini > - Up to 2GB LDDR4 > - 8/16GB eMMC > - Gigabit Ethernet > - USB 2.0 Host/OTG > - PCIe Gen2 interface > - I2S > - MIPI DSI to LVDS > - rest of i.MX8M Mini features > > i.Core MX8M Mini needs to mount on top of Engicam baseboards > for creating complete platform solutions. > > Add support for it. > > Signed-off-by: Matteo Lisi > Signed-off-by: Jagan Teki > --- > Changes for v2: > - updated commit message > - add cpu nodes > - add fec1 node > - fixed pmic tree comments > - dropped engicam from filename since it aligned with imx6 engicam > dts files naming conventions. Thanks for the changes. > > .../dts/freescale/imx8mm-icore-mx8mm.dtsi | 232 ++++++++++++++++++ > 1 file changed, 232 insertions(+) > create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm.dtsi > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm.dtsi > new file mode 100644 > index 000000000000..e67865fd102a > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm.dtsi > @@ -0,0 +1,232 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright (c) 2018 NXP > + * Copyright (c) 2019 Engicam srl > + * Copyright (c) 2020 Amarula Solutons(India) > + */ > + > +/ { > + compatible = "engicam,icore-mx8mm", "fsl,imx8mm"; > +}; > + > +&A53_0 { > + cpu-supply = <®_buck4>; > +}; > + > +&A53_1 { > + cpu-supply = <®_buck4>; > +}; > + > +&A53_2 { > + cpu-supply = <®_buck4>; > +}; > + > +&A53_3 { > + cpu-supply = <®_buck4>; > +}; > + > +&fec1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_fec1>; > + phy-mode = "rgmii-id"; > + phy-handle = <ðphy>; > + > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + > + ethphy: ethernet-phy@3 { > + compatible = "ethernet-phy-ieee802.3-c22"; > + reg = <3>; > + reset-gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; > + reset-assert-us = <10000>; > + }; > + }; > +}; > + > +&i2c1 { > + clock-frequency = <400000>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_i2c1>; > + status = "okay"; > + > + pmic@8 { > + compatible = "nxp,pf8121a"; > + reg = <0x08>; > + > + regulators { > + reg_ldo1: ldo1 { > + regulator-max-microvolt = <5000000>; > + regulator-min-microvolt = <1500000>; I mentioned previously min/max hoping it will be obvious (as most or even all of DTS follow this convention... although not example in your regulator) but let be more specific: first min, then max. Don't reverse the logic. See also example in the regulator.yaml. Best regards, Krzysztof