From patchwork Mon Apr 26 12:53:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1718 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 312503F0D7 for ; Mon, 26 Apr 2021 14:54:05 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id r22-20020a63ec560000b029020eba8e44f7sf1041520pgj.4 for ; Mon, 26 Apr 2021 05:54:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1619441644; cv=pass; d=google.com; s=arc-20160816; b=xyR2h9atdeNsTydF6wktRiheZgNXD6MziCYgrQm4um2uI18RhLafbbl4Hs/1abunkM s40DIMXani2QDWsB/7MrriUZruLo5SP48mGyqjRXCbTacJWyxlEPSVwDch9JThz6Sy+B RT4EUsjWr+TyNU59LndW471SCoqfqvOBKFHZsGjsKVwQABOwedyZaaxdrmxvX+Bkvk5F lI6J8rp98xLFt4Weys9XOQBCHGzpILHIKaoDc8MXR6GD9/ALCqREga6PuqBxfsVL2bbv zWyampQ8KTveNLtwCACHhq56xrOOkMVhSINd7+e+5QXXB6lDPgCJKGLl10FUxiPXZsXW WCxw== 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=ZddM0OJdbtJrv5Rf3h3kKqjZXD7zQAjduFehtcJGOyQ=; b=ZPF8arHqyl3Asom4qjmi2xgxa6bI1F0k7+R2Ddff60byqCLiBTUauVvtkk7NykEIpx Qk+zao3B3z5CmKsDHQcVVVupZYsSGujtDpETxmNcyXkquEKcUAszl8BqovjWeu/UCIY2 elXwIbw8NCtQYiv7IW9KnsaOU1K9iEneT/07XQXRHUw6eyYObYgnhGtBR5y74mLD49Em 5Lq6X92+55k1RPKr12qQbNhdyAyKPJUk9Eu1c9kJc6h/YOom+RRHQ0h+7NX8EkxD1G7k 0B2JLzXiLnBVGJjj9rk0VHkPuwp62qm8yO8HDVRf90lnChM3+xrSk7ZuFnzNrYaoKAYj vbqQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XmLvLg7t; 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=ZddM0OJdbtJrv5Rf3h3kKqjZXD7zQAjduFehtcJGOyQ=; b=BH0001nLgZGLhuOb5HVv9ovGo44E5bRakmRrI5/fk7hKkVIhu21QZvBQU1od5sEC17 DRsECv6LL/J3wb6sERzHaHlmK3SkAuxY3VEXX+yOf/gEP01cpmp30RunkZUT6Wx7w0ys tu92oCfPkDNZjBN70ombd0AW6Maqt4vkDCCt8= 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=ZddM0OJdbtJrv5Rf3h3kKqjZXD7zQAjduFehtcJGOyQ=; b=UkYywIflkqsbOjsMBiUohHuHtBwKsM4Ema+d0VDKB+d79l0aIK3/xhax02kloZXldb n7dws2qVB7l33mYHKpPrZ69ul+zk9LE/44DGfNhsIcvO36C/5ITVD3JBHqvZA+34rRMT pJzENK5qvdC9Z5qvWF2CYlfE66HCG1Of0cx/waGpTwB5MsyaNEOJ5UXvNYkjjJanAqPy RSbBXQob5tO7KzbOk10VDjRcAeGv80bSzDOUcCXG+y3GNliAjqsJXsc9Ez9m5dIruP0M +PLzpy9CHSQyfC2KKoqPXUrqLfYmVjXDyvkiUxYt0rG6mwNFQFS9Ka096HRDWOdKWxuR vlRg== X-Gm-Message-State: AOAM530862lL+v6up51650i6LQIKpTVHWz57fOkZ7HOYme9zO2N6dVyG dlN9G8sNF4HW4oa332lJgLlqYWEx X-Google-Smtp-Source: ABdhPJyzbZDgeFARN8/2JpSzxGb9jfrD6KGytMwJKbQUu9n+yDr1wfHXAMsHYIVCVIi5GadB80oL/g== X-Received: by 2002:a17:90a:f40f:: with SMTP id ch15mr5755209pjb.113.1619441643986; Mon, 26 Apr 2021 05:54:03 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:b710:: with SMTP id d16ls1856176pls.3.gmail; Mon, 26 Apr 2021 05:54:03 -0700 (PDT) X-Received: by 2002:a17:90a:f0c8:: with SMTP id fa8mr21612016pjb.96.1619441643348; Mon, 26 Apr 2021 05:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619441643; cv=none; d=google.com; s=arc-20160816; b=hNdlmAv2mCPi0WG7grYX1Kbw47EU7PPOARZ5pNtf9b6KiyV7UnEIXdGrft9GTegPaE qsnbbtAyzSxNKhVUQqf/luKsXNYY5crfjIc4k16IXy0m16qKFFmZkqmhgEXljVM3HNk5 qLtFQO81TQwiYWMguwETG56FlT3Sryl1kunLvXbRF47SH6JJwmNM9dETsRHPJDGfwHzt cAc1D0k+Bv3W5CZGe4fuiLClBqk8uesOAXIWGkCeXAQl4qZd2zyST/otWHA0/8XfKetJ SmprvNz/ig0u3172Pk9oJUTK07V8whYRWQiTMnBJJDJy7Hwy01BZGhjJDc376fy2+cBV 0MVA== 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=E6kQDrMuFB3GZAYWAmv5i36uk4pxdZNmH2ooIfevfcg=; b=BZD+omfRUWQVcduAxEi8NY9x7DVH6RnKYazL9kqyfvS6zR5NlO4mCqHIhUJyI6kTUv FyrutHV5sm8kbtYtweDgagBDDGTv38ynYsfvcpdyVgZM/yMDgDJzCFQSlQIGcbaY97Lu sJZp5sza31WbenndaJMjxqtszNe2oKHE4P6OCj2c2IvDjO9V25L7XKvlf2Pyz8azP1DD jKE2/dSdWzodRMC3T4XUEF7fMJYjc3um6yjn3xg7YxwMHl6EjcKVyK4Whs74cpJWIF+O X9+IlxP4lY0DSEkXY/JvpFlLExnn7sKfiOukp7zX2VRcg0O1zQDc4ELp0d87g2mX0om9 f6Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XmLvLg7t; 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 u63sor7685938pfb.26.2021.04.26.05.54.03 for (Google Transport Security); Mon, 26 Apr 2021 05:54:03 -0700 (PDT) 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:a63:130f:: with SMTP id i15mr16423237pgl.151.1619441643038; Mon, 26 Apr 2021 05:54:03 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a884:5e0e:690c:2b67:19e9]) by smtp.gmail.com with ESMTPSA id m9sm11257628pgt.65.2021.04.26.05.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Apr 2021 05:54:02 -0700 (PDT) From: Jagan Teki To: Stefano Babic , Fabio Estevam , Peng Fan Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Matteo Lisi , Jagan Teki , Tim Harvey , Adam Ford , Teresa Remmet , Igor Opaniuk Subject: [PATCH v3 1/4] arm64: dts: imx8mm: Add common -u-boot.dtsi Date: Mon, 26 Apr 2021 18:23:46 +0530 Message-Id: <20210426125349.6416-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210426125349.6416-1-jagan@amarulasolutions.com> References: <20210426125349.6416-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=XmLvLg7t; 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: Tim Harvey Cc: Adam Ford Cc: Peng Fan Cc: Teresa Remmet Cc: Igor Opaniuk Signed-off-by: Jagan Teki --- Changes for v3: - add evk changes Changes for v2: - add venice changes 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-venice-gw700x-u-boot.dtsi | 35 +---------------- arch/arm/dts/imx8mm-venice-u-boot.dtsi | 37 +----------------- arch/arm/dts/imx8mm-verdin-u-boot.dtsi | 38 ++---------------- arch/arm/dts/phycore-imx8mm-u-boot.dtsi | 37 +----------------- 7 files changed, 51 insertions(+), 209 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 3701557dec..f200afac9f 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" + / { binman: binman { multiple-images; @@ -22,41 +24,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-venice-gw700x-u-boot.dtsi b/arch/arm/dts/imx8mm-venice-gw700x-u-boot.dtsi index a4487e20c3..1a15d6a2ad 100644 --- a/arch/arm/dts/imx8mm-venice-gw700x-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-venice-gw700x-u-boot.dtsi @@ -3,40 +3,7 @@ * Copyright 2021 Gateworks Corporation */ -&{/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; -}; +#include "imx8mm-u-boot.dtsi" &gpio1 { u-boot,dm-spl; diff --git a/arch/arm/dts/imx8mm-venice-u-boot.dtsi b/arch/arm/dts/imx8mm-venice-u-boot.dtsi index 5b06d872c6..42b2903f04 100644 --- a/arch/arm/dts/imx8mm-venice-u-boot.dtsi +++ b/arch/arm/dts/imx8mm-venice-u-boot.dtsi @@ -3,6 +3,8 @@ * Copyright 2021 Gateworks Corporation */ +#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; -}; - &gpio1 { u-boot,dm-spl; }; 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; };