From patchwork Sat Feb 27 08:39:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1656 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 79A773F0E8 for ; Sat, 27 Feb 2021 09:40:07 +0100 (CET) Received: by mail-pf1-f198.google.com with SMTP id y142sf8264630pfb.21 for ; Sat, 27 Feb 2021 00:40:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1614415206; cv=pass; d=google.com; s=arc-20160816; b=NKGjBXs/hkyCEV0Zc5C/53CZiiYlyGHf03/oKTlSY/hR8XPq9guGP4equ1gj472uZt JvBnGYJk17LGQLWAjk4AshCIdGlmLRwj0cPVdbuQr1KIry90e0Ng60IVCeyPyC5yVQ+C Rv80XKRryz/J/AriF9JvXDqkI4LhI7+MRpIH+7SkAmnCoFPwsNbVY4ktnHxHqZeUjgzZ F7U4qmfRnyzYzhHepiE6r2ycslDQnJEPNpL57Eppn+rzEFrCz0pJjbJVZCujTlOUn5A9 15NoPpznX3MV5VDcHIK4cIJJknj1HrL9rcGRPuVkJNz+xaWD7C/XtaI+qN1EH95OXY64 NYYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=MWaOu3vGCZjDKzOhy4/XIvM5QJvWsyWrwAnGJyCPDb8=; b=CFp3ZFuCVt9Gx/Porn45U5yRFIKn4FQQrxvHDXE+4445pCLaAR1W2moWoDUFR/umxA UdVf5KsdhNCvxo5aNWv+zBm1jkAfMbOdGNkhCsmq80hnwPI9EXj62BX+dIyXUsFz08Vx n4lNdNYS/qXipBu4Fv34W7do3gDhlNe0Iyk86qyLeGZsc6IFTzXavPVw1RFfc8vpFZpg oQBSTth8CJyvtor5p67U9RinOthBEcU0mkRGbN2sqP/e1coRYjAPiupyhCyUPo4/nNwA RXm/F7O0iezInXgmxTt6MqubRjUncOS50L7+ZAAdrQRga0opvLjVItEdvcgFKM/Uts67 aThg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RJEROyc9; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=MWaOu3vGCZjDKzOhy4/XIvM5QJvWsyWrwAnGJyCPDb8=; b=fRkEFoESyDIjBpXVWWePkYyTL4gAhBqS/BWHBDa25kVAHTLEREW2Wj0vKYLcycpZ7O 4vx24kcu2FZV3KeHyw40UFyuUzoLkr5f6DaWdM1sKYnKL9mPlL5X8tdqqKofsqbD2l8m eSJKocWu2uFOE9GZ3O4vc4sr1/f4xH25Mk8gc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=MWaOu3vGCZjDKzOhy4/XIvM5QJvWsyWrwAnGJyCPDb8=; b=PtnBfMsmQEpfgjXFd+U+PIUR6xwJS+NdhMy8t3HCkcAGZL4r0tXuBz4M0NbxdyPgEY nTW9ZTUI0P1LzPaD8S3WPrlmw5hkrgmQb2fSH/wHnw5+pmT9C7uTFBVdalBSeZyNa13k 7p4yU8itOAUFzbcJItbkqY5p7Ohbdi8eoVFZ9xskkvGLvcF18pd77AL32wTn0wADdNUt GksK28dN6rM6CKlccdGWsAk+JKmQdWkPilrn3nl8kNBl6qUrx9Aqsq86KveDaZ/FZrq2 j5caVOsLxJowce5mwk3YmBwPIiz5O3WgEY8FxOR/joDGWRNt/imxSdBUAf+okGIsPiNI y1TA== X-Gm-Message-State: AOAM533uyLRrvFhz+59F/RTeA5KyWya0KTO16DrxSNUbL3TauvtwJAxT RTYRq1KgzMnzANOfGTY81rNrc8fz X-Google-Smtp-Source: ABdhPJx39TuXy++qIEhORAX9XbqVkQEyO7SRcvmkiODPq9iOB+S2mvo4yMqAFi7e//jDihAVZYnaOw== X-Received: by 2002:aa7:8c49:0:b029:1ed:c1dc:4421 with SMTP id e9-20020aa78c490000b02901edc1dc4421mr7184887pfd.43.1614415206288; Sat, 27 Feb 2021 00:40:06 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:7541:: with SMTP id f1ls4450705pgn.10.gmail; Sat, 27 Feb 2021 00:40:05 -0800 (PST) X-Received: by 2002:a63:df01:: with SMTP id u1mr6241662pgg.341.1614415205687; Sat, 27 Feb 2021 00:40:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614415205; cv=none; d=google.com; s=arc-20160816; b=EIWJaOq36+DzCqs7a/fwFfCm+UcuYwUDwWpJLpWdAsEAnxsLMtM49ooRmVPV7XA7gB LLDI0ABJvC+KynmOsQSVhDal+gvWu0M9xcprkLU/w3Omo7n/tMesaeiTyAcDOb+MFsXm cFESOicvVaRSRVGY6ZLC8Sg3tibaL3pmkP6wDcZxqCW7I1fsa57lnvt7Ldvg9Tp+gbB5 trr5/3d6DPTv/dFv04M7iSZCPCz6IigHc2qEUot5bkcUXdYT9TAN/195iohSkvfG0+Q9 +7yBOBPSinZjlJxyscd8lGogotSztzL13KNyYIYhfgFh+X78avijlSA6AuzqJQFLWSWX Ld1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=h20c+gbAwov21WkSc1izOh/2CwYIZ90PQYlLSqaR7t4=; b=VslfvA6bgBXv1hZOP9IvbQVf7uAmBiKa4TjlemFIZvIEb9ipMNPlMEudPvwwYEOcTC hZEznfVtUCyqstsEm5uQE7+acFMmhebW762HOx5ye/TiGLkrshvF/qNTvXmDwW9FqXz0 cQjXsWE2O1cUI0lv2X3iA40z6ZNEmvwFUnlRyVXHkmIB0xAc3eT68JistF1L/dvSrt20 CAcYcaIL3L1CcZEHqtR9PrCeB7JU9UMKI24A2VP8Whoql4SY7O0wYy14hDW9ATT6E7Of Dm2pxDpKimtvOT5zyHrTCQ4iEQeAyy4/25BZ2k9rXZFBUO80Acye1S5/A+fsJhm3kT6n L84Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RJEROyc9; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id p28sor5488334pgl.48.2021.02.27.00.40.04 for (Google Transport Security); Sat, 27 Feb 2021 00:40:04 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a65:6645:: with SMTP id z5mr6079045pgv.273.1614415204551; Sat, 27 Feb 2021 00:40:04 -0800 (PST) Received: from ub-XPS-13-9350.domain.name ([103.161.30.242]) by smtp.gmail.com with ESMTPSA id x6sm9769676pfd.12.2021.02.27.00.40.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Feb 2021 00:40:04 -0800 (PST) From: Jagan Teki To: Stefano Babic , Fabio Estevam , Peng Fan Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Matteo Lisi , Jagan Teki , Adam Ford , Teresa Remmet , Igor Opaniuk Subject: [PATCH 1/5] arm64: dts: imx8mm: Add common -u-boot.dtsi Date: Sat, 27 Feb 2021 14:09:35 +0530 Message-Id: <20210227083939.81679-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210227083939.81679-1-jagan@amarulasolutions.com> References: <20210227083939.81679-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=RJEROyc9; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , /soc@0 aips1 aips2 aips3 clk iomuxc osc_24m are common node enablements across imx8mm platform for dm-spi, dm-pre-reloc stages. Move them into common dtsi, imx8mm-u-boot.dtsi Cc: Adam Ford Cc: Peng Fan Cc: Teresa Remmet Cc: Igor Opaniuk Signed-off-by: Jagan Teki --- arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi | 37 ++------------------ arch/arm/dts/imx8mm-evk-u-boot.dtsi | 37 ++------------------ arch/arm/dts/imx8mm-u-boot.dtsi | 39 ++++++++++++++++++++++ arch/arm/dts/imx8mm-verdin-u-boot.dtsi | 38 ++------------------- arch/arm/dts/phycore-imx8mm-u-boot.dtsi | 37 ++------------------ 5 files changed, 48 insertions(+), 140 deletions(-) create mode 100644 arch/arm/dts/imx8mm-u-boot.dtsi diff --git a/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi b/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi index 6d80a529ae..73ddfdade6 100644 --- a/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-beacon-kit-u-boot.dtsi @@ -3,6 +3,8 @@ * Copyright 2020 Compass Electronics Group, LLC */ +#include "imx8mm-u-boot.dtsi" + / { wdt-reboot { compatible = "wdt-reboot"; @@ -11,32 +13,6 @@ }; }; -&{/soc@0} { - u-boot,dm-pre-reloc; - u-boot,dm-spl; -}; - -&aips1 { - u-boot,dm-spl; - u-boot,dm-pre-reloc; -}; - -&aips2 { - u-boot,dm-spl; -}; - -&aips3 { - u-boot,dm-spl; -}; - -&clk { - u-boot,dm-spl; - u-boot,dm-pre-reloc; - /delete-property/ assigned-clocks; - /delete-property/ assigned-clock-parents; - /delete-property/ assigned-clock-rates; -}; - ®_usdhc2_vmmc { u-boot,off-on-delay-us = <20000>; }; @@ -65,15 +41,6 @@ u-boot,dm-spl; }; -&iomuxc { - u-boot,dm-spl; -}; - -&osc_24m { - u-boot,dm-spl; - u-boot,dm-pre-reloc; -}; - &pca6416_0 { compatible = "ti,tca6416"; }; diff --git a/arch/arm/dts/imx8mm-evk-u-boot.dtsi b/arch/arm/dts/imx8mm-evk-u-boot.dtsi index e843a5648e..79dffe7ccd 100644 --- a/arch/arm/dts/imx8mm-evk-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-evk-u-boot.dtsi @@ -3,6 +3,8 @@ * Copyright 2019 NXP */ +#include "imx8mm-u-boot.dtsi" + / { wdt-reboot { compatible = "wdt-reboot"; @@ -11,41 +13,6 @@ }; }; -&{/soc@0} { - u-boot,dm-pre-reloc; - u-boot,dm-spl; -}; - -&clk { - u-boot,dm-spl; - u-boot,dm-pre-reloc; - /delete-property/ assigned-clocks; - /delete-property/ assigned-clock-parents; - /delete-property/ assigned-clock-rates; -}; - -&osc_24m { - u-boot,dm-spl; - u-boot,dm-pre-reloc; -}; - -&aips1 { - u-boot,dm-spl; - u-boot,dm-pre-reloc; -}; - -&aips2 { - u-boot,dm-spl; -}; - -&aips3 { - u-boot,dm-spl; -}; - -&iomuxc { - u-boot,dm-spl; -}; - ®_usdhc2_vmmc { u-boot,off-on-delay-us = <20000>; }; diff --git a/arch/arm/dts/imx8mm-u-boot.dtsi b/arch/arm/dts/imx8mm-u-boot.dtsi new file mode 100644 index 0000000000..f833d9df59 --- /dev/null +++ b/arch/arm/dts/imx8mm-u-boot.dtsi @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2020 Jagan Teki + */ + +&{/soc@0} { + u-boot,dm-pre-reloc; + u-boot,dm-spl; +}; + +&aips1 { + u-boot,dm-spl; + u-boot,dm-pre-reloc; +}; + +&aips2 { + u-boot,dm-spl; +}; + +&aips3 { + u-boot,dm-spl; +}; + +&clk { + u-boot,dm-spl; + u-boot,dm-pre-reloc; + /delete-property/ assigned-clocks; + /delete-property/ assigned-clock-parents; + /delete-property/ assigned-clock-rates; +}; + +&iomuxc { + u-boot,dm-spl; +}; + +&osc_24m { + u-boot,dm-spl; + u-boot,dm-pre-reloc; +}; diff --git a/arch/arm/dts/imx8mm-verdin-u-boot.dtsi b/arch/arm/dts/imx8mm-verdin-u-boot.dtsi index 249b0f8f66..67c31c49b6 100644 --- a/arch/arm/dts/imx8mm-verdin-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-verdin-u-boot.dtsi @@ -2,6 +2,9 @@ /* * Copyright 2020 Toradex */ + +#include "imx8mm-u-boot.dtsi" + / { wdt-reboot { compatible = "wdt-reboot"; @@ -10,27 +13,6 @@ }; }; -&aips1 { - u-boot,dm-spl; - u-boot,dm-pre-reloc; -}; - -&aips2 { - u-boot,dm-spl; -}; - -&aips3 { - u-boot,dm-spl; -}; - -&clk { - u-boot,dm-spl; - u-boot,dm-pre-reloc; - /delete-property/ assigned-clocks; - /delete-property/ assigned-clock-parents; - /delete-property/ assigned-clock-rates; -}; - &gpio1 { u-boot,dm-spl; }; @@ -55,15 +37,6 @@ u-boot,dm-spl; }; -&iomuxc { - u-boot,dm-spl; -}; - -&osc_24m { - u-boot,dm-spl; - u-boot,dm-pre-reloc; -}; - &pinctrl_i2c1 { u-boot,dm-spl; }; @@ -84,11 +57,6 @@ u-boot,dm-spl; }; -&{/soc@0} { - u-boot,dm-pre-reloc; - u-boot,dm-spl; -}; - &{/soc@0/bus@30800000/i2c@30a20000/pmic} { u-boot,dm-spl; }; diff --git a/arch/arm/dts/phycore-imx8mm-u-boot.dtsi b/arch/arm/dts/phycore-imx8mm-u-boot.dtsi index fc0fa22d1b..91515b8df9 100644 --- a/arch/arm/dts/phycore-imx8mm-u-boot.dtsi +++ b/arch/arm/dts/phycore-imx8mm-u-boot.dtsi @@ -4,6 +4,8 @@ * Author: Teresa Remmet */ +#include "imx8mm-u-boot.dtsi" + / { wdt-reboot { compatible = "wdt-reboot"; @@ -12,41 +14,6 @@ }; }; -&{/soc@0} { - u-boot,dm-pre-reloc; - u-boot,dm-spl; -}; - -&clk { - u-boot,dm-spl; - u-boot,dm-pre-reloc; - /delete-property/ assigned-clocks; - /delete-property/ assigned-clock-parents; - /delete-property/ assigned-clock-rates; -}; - -&osc_24m { - u-boot,dm-spl; - u-boot,dm-pre-reloc; -}; - -&aips1 { - u-boot,dm-spl; - u-boot,dm-pre-reloc; -}; - -&aips2 { - u-boot,dm-spl; -}; - -&aips3 { - u-boot,dm-spl; -}; - -&iomuxc { - u-boot,dm-spl; -}; - &pinctrl_uart3 { u-boot,dm-spl; };