From patchwork Mon Mar 15 17:45:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1696 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A17163F067 for ; Mon, 15 Mar 2021 18:46:33 +0100 (CET) Received: by mail-pj1-f70.google.com with SMTP id b13sf2775746pjq.7 for ; Mon, 15 Mar 2021 10:46:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1615830392; cv=pass; d=google.com; s=arc-20160816; b=wNOAbUmTIvKSJD1vr89lP2Jb9mOlTzkj2+T9SvgSrAPNje3bcBMvocy+mDNzWwELcX hObrJbGyL70k0LmJj6JW2+wcjrw5KHjWHFbNt2EtRFUpyHm4/uxt4YzFa8RnQFy6S5HM nvLEai0nB1yjYfedC+cBDXmlbmyEC7a2pbtqMJFD+BXmcdsA+S0VzCkhOneFJnSY60TK c/O48KdsF8o300rpmR9PrH/qXj7lVMyWYiG7/b8IQt+W5cxq3XL+Yhwd+WbSu6/89yT3 YvQ0WfyYM0VZE7AMSza2kQ9vLCFn+upR/NUVbkLZSXfNGIRcvh3W7tWVne54BAQcyB9r EAjg== 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=nhLuZP+/jorwyHgGoBq7N7pOdo0aTG+oRbY77yMBPxI=; b=pu9oc2i1OVQ9YQunk1agcM2mYFSbD5ARnWCcC7Xxf2ICOToCoHn0UcGbzv0erV9LZe l7AKVb9Z1R+miVbAhrObFupAO90n7nYoXzjO12ZW8NIcw7ZXehHV7WMpEMQqe+evYR/Y iF7odKy5BVITgYFQxm/BVBBEh/Pt3xxughTpvXCMHT4M1oHIHlIOSYySahAyIdvk60/i SYmC64YQvMCqJxVvJ5C2/Kv+j+s7aOFGC0u0kWEm3LFK/4p3XXqxcdiPJAW3Pfo30XU8 56iBWLUFaBZjLhBCrst3D5X/ERRHuKYz6FN0CJtoLWLpT52ZvHIhqzfwm6EoMsoEY2zC TMuw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OghHWlAJ; 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=nhLuZP+/jorwyHgGoBq7N7pOdo0aTG+oRbY77yMBPxI=; b=oOah/gWRrwFhKLvFpYD9H9w96nYIzhzwGlOETTYbOIs+pYRa9UfTDEoAo3emVICDHT 2EXCy3gvkGzAiLG4jcLfEVrDNYpGmD3J9kOX6OqJGz5S/Xvy0+Of7fWJS+Vnlsw5AUU2 EqM4ZKKwTVclPLKc16quI2GfTKgWqihErVPYE= 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=nhLuZP+/jorwyHgGoBq7N7pOdo0aTG+oRbY77yMBPxI=; b=MNfCNLOhBnBs0nQqYeZ4mXRwiSoQ/wSsJCEcooIkP7u/wFoRp2QsDrL1r2Swln8yfA CGbX2YJA78wbnPFvavSigM1xbLj8RdA4MPC/3kE6NpOl+d/GKWQMe9UYhfYZ66/ZzzNS MOa2NWj8t6waliyPmghEWiBWXpAqI0mY8hRdF6YY4qb8V9uo8FOcKGcx/S/IbNS0kBZH RdrsLyt9o6wM9DsHLmrK4kGgWD3OPfeQ72RMx82fSXz0N9qFPvwIAjZzxAAFUoSRSrHb lB8n5QnRpyIyH5L0pB9oRpCJ4Flm03TIjIk4TqbA1mlBm7yqSWHwR/baGcckZKhl9F8K 1pDw== X-Gm-Message-State: AOAM530F1UQK0DMjhHrRgFwnhGCi38QXOb1Kvm+FDn9ZM11UVIP1Mcra RbTGF7pE9kR2qfp4oi35dFIaZspJ X-Google-Smtp-Source: ABdhPJx+HXuLKUwuwmGKaS2bklplsRSxoeEvRxQQBVgtO9QYY5PW5CdPADx0R9FUcEgnkkxTpyv8GQ== X-Received: by 2002:a63:207:: with SMTP id 7mr249219pgc.346.1615830391949; Mon, 15 Mar 2021 10:46:31 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:4a1c:: with SMTP id x28ls6473872pga.10.gmail; Mon, 15 Mar 2021 10:46:31 -0700 (PDT) X-Received: by 2002:a05:6a00:2cd:b029:1f4:c3db:4191 with SMTP id b13-20020a056a0002cdb02901f4c3db4191mr11099433pft.71.1615830391287; Mon, 15 Mar 2021 10:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615830391; cv=none; d=google.com; s=arc-20160816; b=yT1aeAfHJaRORoGqVSSmwvnpVw+Y9KDorh6ADthtKCrmP8W1R2ypn6P2UtyfmVPYBj XlmFtikxvWjkmDpbL1fCVMfg2ImUdDGjZFDkm5sVq2p9FxOMEVYCnukh3f9J8e9Dhl8o JBolQZ/Cq6QRMeQqqgoEleF/+ADtEa3HgRBkthZHUBRm0rNAlZb02jyz4C7ITnPS7ViF FCf7c67tCh6CTZPdZKgq/LA6/IGdjlKNL2smoDytOBs8cXOlUpM0IMOQq61T8usSObZB sGhhOo8J5FYxGZ9uR8+SXTSr1/7tJudTodw7DHfvo0Vbw8ii+kxRLZumvn2MlN2uveXw a/YQ== 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=k9s7qcRvraqHoS5ysyS2aY3DNBkyA7d0AZomawEuuiA=; b=g71/FjpieBwYKuD0wYT7iZ0XuB1dnPjiuVIKnV6t0kknxOZ+AcAUk7u8o46LR/Waqe 3RLnKWX1Tqr+kd4kDuzl3fMfcD+Drp1CSNsCOcxEIGqDaTmcwPsyRr++pVGp7AMq85sd 7lyM8eh3Tk3X0CiKaTlswI/kpupxqzp1a1J6gw9b0exlx9Ras75uj1ExeZ7jV/KXzd6M QxtXlHc/RckisBvmMRvanhJs/MfGwkwnaCwdS2NyJ866aIYpH6cy1AaZLHL1ZcqJ/20z 8WofAB9FAAdhYKnnNRLIW9rtT4ml3Azdf/+bz+M04NKL8U8UJip4SdrbdtMtJIcP+FxS u1bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=OghHWlAJ; 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 cp19sor7203625pjb.1.2021.03.15.10.46.31 for (Google Transport Security); Mon, 15 Mar 2021 10:46:31 -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:a17:90a:f2d4:: with SMTP id gt20mr234215pjb.212.1615830391059; Mon, 15 Mar 2021 10:46:31 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a884:6f76:4267:118b:2085]) by smtp.gmail.com with ESMTPSA id y9sm259494pja.50.2021.03.15.10.46.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 10:46:30 -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 v2 1/5] arm64: dts: imx8mm: Add common -u-boot.dtsi Date: Mon, 15 Mar 2021 23:15:39 +0530 Message-Id: <20210315174543.104002-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210315174543.104002-1-jagan@amarulasolutions.com> References: <20210315174543.104002-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=OghHWlAJ; 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 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 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-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; };