From patchwork Sat Apr 27 11:42:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 289 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B30103F08F for ; Sat, 27 Apr 2019 13:42:36 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id e128sf3876521pfc.22 for ; Sat, 27 Apr 2019 04:42:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556365355; cv=pass; d=google.com; s=arc-20160816; b=CtO7OPxa/SVaKK4Zaz35rzGy2QDLPW7RhgEhEGlltX3Znb7XsHHl33nJT33Rx6Cs9A k6cFWy63Fb8JgJ4pbK9UkLZrlPvvQCe9YA5GSUR1asoiJ467q4GvNivS5GMDqej2AxMt +VhypJKAntnt2qqzV3GlG//jvxiiAcl+1iBeXbxvAZO4JuTwO5ChJvJinJtOQIPIJNtj L8A5Cy3ZIX1V4VWkCEF6l+8sqvH1f8CXU8niOAxtTdfaK4hWBBlh1LSNOzi5c7NBMII7 qwYCo+TlWpKGx7m+CRM1bUfLQCpEcUjUFcFdq4tY37hTQWOSUCzZVc1V2R9DFIUSxksr O8uw== 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=tFw10nKGKZD/2aXeYLWNUt9UyZrpvQ7T4UdIZnKi5AA=; b=mLmGMse/2QPsE0A/Vx/SzVY/M4OR3Dt/I0OxsqFb2xvmlzXOWOkruU6Q2/9T9yqE+N fYr+BjzPlo0GMYaowolWy+nxyFUKdpha2ORgPOhRofl3rT2cJPCLFffIaNEluScnfEPg hx3xmNp3jHKah1YwSPMlgkjenZzwYuiyFikC47e1s1PaFYDPwf0Wne57wDomLIee8Q9i vXnI32cOeZu8w+DMnUjAY63ei90Pr06f6pg556FW6ZwSoFPndDrYS7Wrupy2IWVxTDJH M6Q/mueI7oeTa3tSeTTNBMQss6dLDJsPmPe1VF8uFgMHyXbEQDZBuh09Wpm5JrYL+Xow u8JA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VRZqtB27; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 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=tFw10nKGKZD/2aXeYLWNUt9UyZrpvQ7T4UdIZnKi5AA=; b=RJ0YG4+w6UbGnJ99JY0farss70JdxVquDLXd+u2rwm5aHs9Sr0UD8q3EJ9aAuBR/Jp vobxVnr9bHkburwRbQnO+I8UeMl98ONHQxXgvYr4XxAzWnneMELFcq6+5uaZyD9Rczas Cwnq3N/P3YH7xRqJJahcsM8gTUqs5gs84L+S4= 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=tFw10nKGKZD/2aXeYLWNUt9UyZrpvQ7T4UdIZnKi5AA=; b=tdb3SA00jLdhZflxK3XfOW6N0d93Q//Q4sMQWPmU5h20Qn4x09pFcLQeTq4Q2Sgse0 bgcRRbd6OpVqgL591gVyY9S47/4otEaY1kP5x6Ef0R3p5f/bhBUplBH3K5sCFR1wvkmj EX3gT9UiaLuNY8NEdwgNgvfGDWxGQrK8wXMZ5evv7rUQ1qA6Bs1umYu920HOoKXAQTNu F/C8lxfX4MvZ641FB16TfDTceLu+KoVjM9oa47lQ4NoO5O6lndljqreiIj2rEx/aKj/4 YJEyTdjjGPOPR39GK7U8YalVbgW8mJ4IPKj58Ht0fFb0JLrrgxkQQvvp+qw1orPvNaf8 zKVA== X-Gm-Message-State: APjAAAXuADAdhZw+szlW/te+bcZgJGolpxDsGyKO0+iHiymsTvBXMuwA 2aQONWdvFUAY2YJp37DlohvWkE1k X-Google-Smtp-Source: APXvYqxCJCmdGoCJVWiH9Abp80MaCYtM9YZK/rjsYlfwu3iziO+BHidjHvfcrAv6/LoNdRTO8zIpog== X-Received: by 2002:a63:de11:: with SMTP id f17mr38910818pgg.94.1556365353769; Sat, 27 Apr 2019 04:42:33 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:54d:: with SMTP id 71ls74169plf.10.gmail; Sat, 27 Apr 2019 04:42:33 -0700 (PDT) X-Received: by 2002:a17:902:29c9:: with SMTP id h67mr51753784plb.114.1556365353147; Sat, 27 Apr 2019 04:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556365353; cv=none; d=google.com; s=arc-20160816; b=L9W2MLwTaUjc+UvH1NAx5nNxRB8SsBYgCA+4wr9VwsIB8Gvzl/3YAkGHpLzcysIq67 wVPftSYiEWlTOePDeJ41mhy2YIIazTB+3mitqFLW2um+KUqAfc8jhZvUoGqx+t/4BxfB P19Hy6SfeAMxI5KFCst9JiMSRlh8LM6GVXRLw62UwsJi/RYRjrsCTMPvQlBC3MuCl3MF FvpmZVeEKX0P0GD1Ez6iu6ypqjsya4MHU2Ft3ZvrX0y/HyyHL/FdD6TVI/to5Xx6pb07 gcmRB6Bq/cnlJRrSFZZBgnqhBqFQ7DP7d7/gZUarVtevkzF0Pxpfs26gc7ykNxgAqZPn FS9g== 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=w0N4ouP2DUFUgXUhjYEbGzSum/fljQInZXnPEQuOOj8=; b=cPB4V1XioFvrS7TpaNj3388BnmEF2R/iUoapYYFvntT50w0AD5BvbhZJXCcn0+EShk TisIE8QysRUKfM7MGibE78zQcFX8sOo4srPUGQT4I0fi3pTnG6C7UjbJFKQkYVeWr3ge FUSSHVtRtBuMI2c39PLKoBUuRE0r9usYtohJwO4+lU8C1YXv7C0idUBG7bewH89qIvV7 eToFSOl6WBbgWjYKYEDt9cTS7gD9JyHLVSoWm2y7z/kOHw+2MR0kSMPRVQ5ggyTzAxK4 YvtP7mfrooWZTbcy7k3sbdLFMpmbrq7ie+8wPNvan+aGvZrFf1vLXCmNvnbENYMqr8fm 7xcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=VRZqtB27; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 88sor20682464pld.6.2019.04.27.04.42.33 for (Google Transport Security); Sat, 27 Apr 2019 04:42:33 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:864b:: with SMTP id y11mr48537243plt.1.1556365352829; Sat, 27 Apr 2019 04:42:32 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id k79sm68958973pfj.28.2019.04.27.04.42.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Apr 2019 04:42:32 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar , Tom Rini , Manivannan Sadhasivam Cc: Paul Kocialkowski , linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH v6 1/3] arm64: rockchip: dts: rk3399: Add board -u-boot.dtsi files Date: Sat, 27 Apr 2019 17:12:00 +0530 Message-Id: <20190427114202.7358-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190427114202.7358-1-jagan@amarulasolutions.com> References: <20190427114202.7358-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=VRZqtB27; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 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: , Devicetree files in RK3399 platform is synced from Linux, like other platforms does. Apart from these u-boot in rk3399 would also require some u-boot specific node like dmc. dmc node has big chunk of DDR timing parameters which are specific to specific board, and maintained with rk3399-sdram*.dtsi. So, create board specific -u-boot.dtsi files and move these sdram dtsi files accordingly. This would help of maintain u-boot specific changes separately without touching Linux dts(i) files which indeed easy for syncing from Linux between releases. These board specific -u-boot.dtsi can be extendible to add more u-boot specific nodes or properties in future. Signed-off-by: Jagan Teki --- arch/arm/dts/rk3399-evb-u-boot.dtsi | 6 ++++++ arch/arm/dts/rk3399-evb.dts | 1 - arch/arm/dts/rk3399-ficus-u-boot.dtsi | 6 ++++++ arch/arm/dts/rk3399-ficus.dts | 1 - arch/arm/dts/rk3399-firefly-u-boot.dtsi | 6 ++++++ arch/arm/dts/rk3399-firefly.dts | 1 - arch/arm/dts/rk3399-gru-bob-u-boot.dtsi | 6 ++++++ arch/arm/dts/rk3399-gru-bob.dts | 1 - arch/arm/dts/rk3399-rock960-u-boot.dtsi | 6 ++++++ arch/arm/dts/rk3399-rock960.dts | 1 - 10 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 arch/arm/dts/rk3399-evb-u-boot.dtsi create mode 100644 arch/arm/dts/rk3399-ficus-u-boot.dtsi create mode 100644 arch/arm/dts/rk3399-firefly-u-boot.dtsi create mode 100644 arch/arm/dts/rk3399-gru-bob-u-boot.dtsi create mode 100644 arch/arm/dts/rk3399-rock960-u-boot.dtsi diff --git a/arch/arm/dts/rk3399-evb-u-boot.dtsi b/arch/arm/dts/rk3399-evb-u-boot.dtsi new file mode 100644 index 0000000000..7e2c57af22 --- /dev/null +++ b/arch/arm/dts/rk3399-evb-u-boot.dtsi @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +#include "rk3399-sdram-lpddr3-4GB-1600.dtsi" diff --git a/arch/arm/dts/rk3399-evb.dts b/arch/arm/dts/rk3399-evb.dts index ce004d0d18..2366e7ed3a 100644 --- a/arch/arm/dts/rk3399-evb.dts +++ b/arch/arm/dts/rk3399-evb.dts @@ -7,7 +7,6 @@ #include #include #include "rk3399.dtsi" -#include "rk3399-sdram-lpddr3-4GB-1600.dtsi" / { model = "Rockchip RK3399 Evaluation Board"; diff --git a/arch/arm/dts/rk3399-ficus-u-boot.dtsi b/arch/arm/dts/rk3399-ficus-u-boot.dtsi new file mode 100644 index 0000000000..eab86bdb30 --- /dev/null +++ b/arch/arm/dts/rk3399-ficus-u-boot.dtsi @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +#include "rk3399-sdram-ddr3-1600.dtsi" diff --git a/arch/arm/dts/rk3399-ficus.dts b/arch/arm/dts/rk3399-ficus.dts index 4af0e4e383..4b2dd82b67 100644 --- a/arch/arm/dts/rk3399-ficus.dts +++ b/arch/arm/dts/rk3399-ficus.dts @@ -8,7 +8,6 @@ /dts-v1/; #include "rk3399-rock960.dtsi" -#include "rk3399-sdram-ddr3-1600.dtsi" / { model = "96boards RK3399 Ficus"; diff --git a/arch/arm/dts/rk3399-firefly-u-boot.dtsi b/arch/arm/dts/rk3399-firefly-u-boot.dtsi new file mode 100644 index 0000000000..eab86bdb30 --- /dev/null +++ b/arch/arm/dts/rk3399-firefly-u-boot.dtsi @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +#include "rk3399-sdram-ddr3-1600.dtsi" diff --git a/arch/arm/dts/rk3399-firefly.dts b/arch/arm/dts/rk3399-firefly.dts index f90e7e88db..5d52319393 100644 --- a/arch/arm/dts/rk3399-firefly.dts +++ b/arch/arm/dts/rk3399-firefly.dts @@ -7,7 +7,6 @@ #include #include #include "rk3399.dtsi" -#include "rk3399-sdram-ddr3-1600.dtsi" / { model = "Firefly-RK3399 Board"; diff --git a/arch/arm/dts/rk3399-gru-bob-u-boot.dtsi b/arch/arm/dts/rk3399-gru-bob-u-boot.dtsi new file mode 100644 index 0000000000..9edb8cf841 --- /dev/null +++ b/arch/arm/dts/rk3399-gru-bob-u-boot.dtsi @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +#include "rk3399-sdram-lpddr3-samsung-4GB-1866.dtsi" diff --git a/arch/arm/dts/rk3399-gru-bob.dts b/arch/arm/dts/rk3399-gru-bob.dts index 0e3d91fc28..1ee0dc0d9f 100644 --- a/arch/arm/dts/rk3399-gru-bob.dts +++ b/arch/arm/dts/rk3399-gru-bob.dts @@ -7,7 +7,6 @@ /dts-v1/; #include "rk3399-gru-chromebook.dtsi" -#include "rk3399-sdram-lpddr3-samsung-4GB-1866.dtsi" / { model = "Google Bob"; diff --git a/arch/arm/dts/rk3399-rock960-u-boot.dtsi b/arch/arm/dts/rk3399-rock960-u-boot.dtsi new file mode 100644 index 0000000000..5256f6d3f2 --- /dev/null +++ b/arch/arm/dts/rk3399-rock960-u-boot.dtsi @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +#include "rk3399-sdram-lpddr3-2GB-1600.dtsi" diff --git a/arch/arm/dts/rk3399-rock960.dts b/arch/arm/dts/rk3399-rock960.dts index 25c58b4261..7e06bc97e5 100644 --- a/arch/arm/dts/rk3399-rock960.dts +++ b/arch/arm/dts/rk3399-rock960.dts @@ -5,7 +5,6 @@ /dts-v1/; #include "rk3399-rock960.dtsi" -#include "rk3399-sdram-lpddr3-2GB-1600.dtsi" / { model = "96boards Rock960"; From patchwork Sat Apr 27 11:42:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 290 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 30C423F08F for ; Sat, 27 Apr 2019 13:42:39 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id d21sf3910939pfr.3 for ; Sat, 27 Apr 2019 04:42:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556365358; cv=pass; d=google.com; s=arc-20160816; b=SfLvO1DSPfDthxBU3cgZO8qPVN6MhWsqbHUn04gwJbJKUPaB2X6jMUh/vzO2jT7C55 ErLXvTMytZznIYZeb29j+M65T5oTRmBk0NxcxaUna1zu9Ua1ZCIAaCV3qFC0fUYk/LS/ dUsJ0lLVsuKXi4VHxy9CaodhyBhhv8fLcBYCaHPPxS1nc5HMBtnHF1ZzVTwQMCkV4HgS p9nUDgPbNGQZD/gQ6QAVZtjxhYT4DFpNE2RQ3DNydUDwHj+btvSkLMvpQihuFwwaQktg P/px5SW66C8qv+biDGSeUFX/0dIQqIg3/jgsFhLKSZLtf+yPoMkg2uSLfr0aVtJYrCsy QmJg== 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=3quha4aqmwDgL0npqXI4Lghw8OFJr0YqdmzlhtpQHB8=; b=O6ocGDUkyifLNePWuun6DGu8BLo3rDKx3v5m3ybnm/9TktoHCU0CJLJPSHw/LPGzX/ VWClfe33nUu8ezOGVfL5MtfoStZFpTFw+ojJkiJ78Z0PgD+6jgEoimcTGwaYLoeGeerq Z02cns9WyJOPSHYZGUM3onqUDrQ4JbIP/Z2feOzN0InAdVIk1B6F6qKvXnixNBUJr67K aO08o9oe3jccADy3ouqYrxTK8yumwD6X2q2dEUfuT8MDpIP+azaeeeaqGyVQM7heWaql 7ggMoxp+c4VzHfWseQGjVVCStnCZJXUZqoipCQM0qv/a0Atp0FW/k6um2DcWl1l3HPtF kh3g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=P7iFw6Qx; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 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=3quha4aqmwDgL0npqXI4Lghw8OFJr0YqdmzlhtpQHB8=; b=lh9PAEYO1qSITCZEm7hwiIWIvkLeqayJId1ZqkMo1N/2Trj4Y8x0TpUkIRE0GsntO3 j9BpTiVs7RpsKfXB2HuLnbMIOmUAwW7Kj1eSZbR8AfkfIt/De1RjTFazDrmDl8SZJPDx CzlGySMju7edb3EJfsBbIlVLIS1w/T2MXBw2k= 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=3quha4aqmwDgL0npqXI4Lghw8OFJr0YqdmzlhtpQHB8=; b=YvdF+r8t7EUa9WtxPnr0f7yQ/csOI2FxRnTAgMrbAfugikGWe7VvclVgKComiCQSWd rB8XXVzMTaTsUFrMauU8m/Ykoifo2VSMPibB/vxNNc5R30wHv3oONbJ8thJ5wn5WSSHs efdHGGP0phe7ROW/2ompwWZTrg/8PEUvsP2jsGRg97+0KkcL8abYCZ/aGU+vx9oIURzi YjrWQh8GA7O6rGBvdvmCpHtJFEiafT8azCzLgPhai5plp8d7hVllfeOjCk+9WPriSCkA MKp3FKvJB+UZ4cOs/IVw2oXG6WuKw20dgxlyhrtMGmXhR/h11sqcBcvK4eiydaDTrNVs TUEA== X-Gm-Message-State: APjAAAV77GRXYjoAQP6ti0pzuTCMbsJY/n3A9K03alHF158/X2uc6tsY aE3sFuMxOtC9QAcS2uVns1cj7yrc X-Google-Smtp-Source: APXvYqzTgLWDDX/I/6Pj3Sfz7WYDMpipfp9eiPCSHEMuEnsCOqsU/a5HiNkbe1zcpy8RvuJWk+uQqg== X-Received: by 2002:a17:902:e101:: with SMTP id cc1mr51883229plb.129.1556365358000; Sat, 27 Apr 2019 04:42:38 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:461d:: with SMTP id t29ls31728pfa.1.gmail; Sat, 27 Apr 2019 04:42:37 -0700 (PDT) X-Received: by 2002:a63:c10d:: with SMTP id w13mr48404744pgf.311.1556365357647; Sat, 27 Apr 2019 04:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556365357; cv=none; d=google.com; s=arc-20160816; b=t8WXkk32gCsSppqRyEhZwaYC3U8spFhjxEV47/1O1teJZjIuHjNAQX72e0fHCAwOhX T6LSY8hbPpYJ+BOaV56LGswn2X5JhrpruLs7+qMe1Fhafla00MTN95DyTjELqZ0FnCXJ sKE0OsPGKnQ4+esiiFOsIX1P2CYEeX5e7EC0RIuJ/vr/8+qsMIRwLhN2eqUU/9fcXhJI xJq70OYQ3doj3DuMD6X+gu68mnteFpjQu9OrxyOLM/cuV/Yu8GfCryYQSB5zw4sC8iwW Iu4kvDWwOQ8MQW8DIRLCNTHnG8YrqABz8Dhz1oRewGVH96oOPQIaFu6Sz/XsYJlcwOwL PG9w== 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=IpZFneVy9JVt/DR/0/w8JKHfiyseQp/ECVAIuWSjprc=; b=Oh1VB26XdjdrbagpGo/DzP/xTdN6lI/GhMueNWzs1NQJFbl6pJdx0lIAgy74u3VnKZ O9Q8ILW3l4i2Ki4qNMjaCiF5kyADvQW0eKXij5KAJ2lN3NMiIaeH8JffXHUOE/s8hy/Q MxMSrJrjpXj6/fN3YZe4IJH7Kmta3YPoi0WLKBQIhaLRja01jSz5zbY0My0Rnow7Y5qF zLtlko3LJbFs9N5ZOcarWkPC+GeQrhz8fA5+JZJf9jht4bF6Ocy/+7enlAsRgKWSc2Hp e4Sw2ip7sCzfdxSFT1cw/3ZrEuYh5+J4mJR3DIIk8+vPPR8G7TgxtpD7h4h2ELqrZ775 y1xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=P7iFw6Qx; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id t23sor4633155plr.33.2019.04.27.04.42.37 for (Google Transport Security); Sat, 27 Apr 2019 04:42:37 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:820a:: with SMTP id x10mr12306899pln.316.1556365357360; Sat, 27 Apr 2019 04:42:37 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id k79sm68958973pfj.28.2019.04.27.04.42.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Apr 2019 04:42:36 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar , Tom Rini , Manivannan Sadhasivam Cc: Paul Kocialkowski , linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH v6 2/3] arm64: rockchip: dts: Add initial rk3399-u-boot.dtsi file Date: Sat, 27 Apr 2019 17:12:01 +0530 Message-Id: <20190427114202.7358-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190427114202.7358-1-jagan@amarulasolutions.com> References: <20190427114202.7358-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=P7iFw6Qx; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 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: , U-Boot always managed to use Linux devicetree files with respective bindings, but on the other hand u-boot also has it's own u-boot specific nodes or properties example u-boot,dm-pre-reloc which is required for SPL_OF_CONTROL to allocate particular node. It is always better to maintain these u-boot specific nodes and properties into seperate dts files. This would help to sync the devicetrees directly from Linux. This patch is adding initial rk3399-u-boot.dtsi and move sdmmc, spi1 u-boot,dm-pre-reloc properties into it so-that the subsequent rk3399 boards can include the same on their board dtsi files. Signed-off-by: Jagan Teki --- arch/arm/dts/rk3399-u-boot.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 arch/arm/dts/rk3399-u-boot.dtsi diff --git a/arch/arm/dts/rk3399-u-boot.dtsi b/arch/arm/dts/rk3399-u-boot.dtsi new file mode 100644 index 0000000000..0786c1193a --- /dev/null +++ b/arch/arm/dts/rk3399-u-boot.dtsi @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +&sdmmc { + u-boot,dm-pre-reloc; +}; + +&spi1 { + u-boot,dm-pre-reloc; +}; From patchwork Sat Apr 27 11:42:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 291 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 E95D53F08F for ; Sat, 27 Apr 2019 13:42:43 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id g1sf3912013pfo.2 for ; Sat, 27 Apr 2019 04:42:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556365362; cv=pass; d=google.com; s=arc-20160816; b=Ort0BSuC8ZwjbGSX9yIZgpBug6x/ZXPCkccc949cmd26faz3FR6EwPdG6W50w8gbN/ Coqfv8313/JruRqFlGXDbNPlU+7WNTrRudAMEMsw70Wa/O2q67sdFKfg9rISfTO11mmr sFqdeFmCZ8buWaLD2G61hejm8X2Rnhjg1+oWk/+L7eW9OeLZLMEH+gBu74Jbkmixkshq YzxcU486nvcDYaad+fJqJACxgQErQJv5TSpuC3x/3kcYV9JAPMGcWwHnTfnfvEHnOP5M wmcL7l9Hg77apcm2kWRmnJYCOGQvuGGumjJWC3y/loBhiNYUHUE2tXmRiFmBm+njEMJ3 yUrg== 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=DjOw0Jr/C4mNV0osZLT1iN0ev6qoo/10bFuJ3ru9FxI=; b=cj079PAJ9EJ6hAuy3PnPZj4XcdE4NbFk5EKkCz8TPQg58no5li08oMjrKwUlE2EkFm ttzLxC2VlhXnATZhjdhm5bVZMztKe0GAsnA2oW9TxjOOHzqyCIbNMeqTTcLHyiMhb1rR OE+pF7vMl/F3BWXXeTi+2NYME6E+gHXslFEOo3d/237KsV+PsoVRSE8Od4UztfxQp7Pb qaWx59sXUA11PtbZQTGUO2hNG+Nxqk0uiIZzI1K+M9PVqEzlp/xQ5qbuZNu72fQVzGob 5gXKsU9RxqhlOUJeJ/oB6mUkYRxe9f27Ip0LhU+u0S+FVorVALWKVqkK36Z1Zspo2Mwa Z9Pw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J7gPbzS5; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 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=DjOw0Jr/C4mNV0osZLT1iN0ev6qoo/10bFuJ3ru9FxI=; b=cvBs9k0kJ0HWDmNIYWpf/f09y+q+qawquHvytzceE3i3lgCpfYgZ4g5ZSs156TMuoA 9oT1kfjUaP1DaaGT4wrnUg89PJQ0z4FD1RvzYmMSvGFXQniqYuuhoHcrUU8kcukdNr53 uyXdJkQ8uZxh0yScI8NbeRa/jg4x1RxRlIH6M= 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=DjOw0Jr/C4mNV0osZLT1iN0ev6qoo/10bFuJ3ru9FxI=; b=O6N+ZludwjdcudKsHvD3une/JE7R8FcjB5uWrrYHyuin+LhpK7viQgj1pd2tQaWbom vbKDO83wJMR4wo+ZAYwMpls9jYteHSc/7sPbQtG6LW8u4NHpx/y76n1JXlujD8QDGnWs 5z/KBlJPMq6lRtm24Y/IoQlBWZC/MYL/IO0Upj5UljikzFJZDiaJX7VFoNu+XFsnbWAj 24rMlC09jEdqAgzQBeVY7cur/oI504ExUrSmp3GjrIsdGTe0j2m5h7lxbYA3hReOw/wh X7zZGwbOykf9lNMpo8UB3+/KW6HWRVd633RUihs1pab4z4n0/UU57Z8CITVqDYAiLMDr HuSg== X-Gm-Message-State: APjAAAW6/HAeNxgH+kwvotDZYuNClZc5mfV7T8OdEiVCPCu5o8daVVIu TnE6HXFHpFltVmXF0GV3WoMb4aY3 X-Google-Smtp-Source: APXvYqwXClEufZLnux+ebsh5oyQFTTcMb/X3R55X7bhseWE4vcxR0p8mZVX4Nbf6FgJsCmFqDNhtWg== X-Received: by 2002:a65:63cb:: with SMTP id n11mr16946624pgv.236.1556365362741; Sat, 27 Apr 2019 04:42:42 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:5681:: with SMTP id h1ls80925pfj.11.gmail; Sat, 27 Apr 2019 04:42:42 -0700 (PDT) X-Received: by 2002:aa7:9e5b:: with SMTP id z27mr30390325pfq.186.1556365362382; Sat, 27 Apr 2019 04:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556365362; cv=none; d=google.com; s=arc-20160816; b=NqFtro337z6+QjNkV14Sw/tmcGKajU37I5xG3/nI/rIXdVuAIv7b6wLrqlLO6YY6XJ rYRkzVgCBshinyXEWvECqoCkeqdVByKVRf0XQsmEBHgFjA/sXuAQAD09E0pYvhS0K1Vk WTcY7rWmBJlIGPnzxTxn8tDAxdhAZJ6YvrCL2L6B3C/9FR7DGrI0+8KLPzAwyFT7HKve jQlaAxs3FKm+fdDWcRaiapVXFP8GqObaImWkMh0jz0o90WLp50sAFxkAMzJ33OiuJSvs sjpNb5EyHBG7sXBPtE8n05PaCaKU7mOQ7l8bG/lyJRvtLzfzIa61H4Qa/KtvwR9vj7Eq prcg== 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=mDlOKbc2vLQOvRZdD76W9yxNTBh1swonSvJjMNV8S5c=; b=Z60KcN54o1dFK4T8+o/yNFam+LHgwRPSjVqp5mum1hEZVCzsspefTs9+9eapwqxgOt 3raag6c/pr5jYBifi7aYCSVx+BqXAbUPTWT65EODXLmDa5xU2bGfhAr3yxBY1XUD2tn0 WvCkegTkQQFzuPe5yW9MIdiDi61p4Yoy+klV99Y0X6HdA3X8CcXe4hVvYHDyLq43hJ0g 3Vsa8pG3567qiJpPbXhmbQWgIqqqPHjjLo2HB43PE09jhSazwedV8IGuvn9ESUNxBHlj m213MSzI6AzMINu/LFaDLeIs8eGfthkQEKmOsgDRPjEwZU7GSxEq1jbaRf4tG/WJAdcb WgPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=J7gPbzS5; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 187sor770162pfb.0.2019.04.27.04.42.42 for (Google Transport Security); Sat, 27 Apr 2019 04:42:42 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a62:1d83:: with SMTP id d125mr15918500pfd.74.1556365361934; Sat, 27 Apr 2019 04:42:41 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id k79sm68958973pfj.28.2019.04.27.04.42.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Apr 2019 04:42:41 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar , Tom Rini , Manivannan Sadhasivam Cc: Paul Kocialkowski , linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH v6 3/3] arm64: rockchip: dts: rk3399: Use rk3399-u-boot.dtsi Date: Sat, 27 Apr 2019 17:12:02 +0530 Message-Id: <20190427114202.7358-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190427114202.7358-1-jagan@amarulasolutions.com> References: <20190427114202.7358-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=J7gPbzS5; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 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: , Now we have - board specific -u-boot.dtsi files for board specific u-boot dts changes. - soc specific rk3399-u-boot.dtsi for soc specific u-boot dts changes. So, include the rk3399-u-boot-dtsi on respective board -u-boot.dtsi and drop the properties which are globally available in rk3399-u-boot.dtsi Right now rk3399-u-boot.dtsi has sdmmc, spi1 u-boot,dm-pre-reloc property and more properties and nodes can be move further based on the requirements. Signed-off-by: Jagan Teki --- arch/arm/dts/rk3399-evb-u-boot.dtsi | 1 + arch/arm/dts/rk3399-evb.dts | 1 - arch/arm/dts/rk3399-firefly-u-boot.dtsi | 1 + arch/arm/dts/rk3399-firefly.dts | 1 - arch/arm/dts/rk3399-gru-bob-u-boot.dtsi | 1 + arch/arm/dts/rk3399-gru-u-boot.dtsi | 6 ++++++ arch/arm/dts/rk3399-gru.dtsi | 1 - arch/arm/dts/rk3399-puma-ddr1600.dts | 1 + arch/arm/dts/rk3399-puma.dtsi | 3 --- 9 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 arch/arm/dts/rk3399-gru-u-boot.dtsi diff --git a/arch/arm/dts/rk3399-evb-u-boot.dtsi b/arch/arm/dts/rk3399-evb-u-boot.dtsi index 7e2c57af22..20910e744b 100644 --- a/arch/arm/dts/rk3399-evb-u-boot.dtsi +++ b/arch/arm/dts/rk3399-evb-u-boot.dtsi @@ -3,4 +3,5 @@ * Copyright (C) 2019 Jagan Teki */ +#include "rk3399-u-boot.dtsi" #include "rk3399-sdram-lpddr3-4GB-1600.dtsi" diff --git a/arch/arm/dts/rk3399-evb.dts b/arch/arm/dts/rk3399-evb.dts index 2366e7ed3a..a506e8da37 100644 --- a/arch/arm/dts/rk3399-evb.dts +++ b/arch/arm/dts/rk3399-evb.dts @@ -154,7 +154,6 @@ }; &sdmmc { - u-boot,dm-pre-reloc; bus-width = <4>; status = "okay"; }; diff --git a/arch/arm/dts/rk3399-firefly-u-boot.dtsi b/arch/arm/dts/rk3399-firefly-u-boot.dtsi index eab86bdb30..67b63a8352 100644 --- a/arch/arm/dts/rk3399-firefly-u-boot.dtsi +++ b/arch/arm/dts/rk3399-firefly-u-boot.dtsi @@ -3,4 +3,5 @@ * Copyright (C) 2019 Jagan Teki */ +#include "rk3399-u-boot.dtsi" #include "rk3399-sdram-ddr3-1600.dtsi" diff --git a/arch/arm/dts/rk3399-firefly.dts b/arch/arm/dts/rk3399-firefly.dts index 5d52319393..a4cb64f8bd 100644 --- a/arch/arm/dts/rk3399-firefly.dts +++ b/arch/arm/dts/rk3399-firefly.dts @@ -591,7 +591,6 @@ }; &sdmmc { - u-boot,dm-pre-reloc; bus-width = <4>; status = "okay"; }; diff --git a/arch/arm/dts/rk3399-gru-bob-u-boot.dtsi b/arch/arm/dts/rk3399-gru-bob-u-boot.dtsi index 9edb8cf841..726f396f32 100644 --- a/arch/arm/dts/rk3399-gru-bob-u-boot.dtsi +++ b/arch/arm/dts/rk3399-gru-bob-u-boot.dtsi @@ -3,4 +3,5 @@ * Copyright (C) 2019 Jagan Teki */ +#include "rk3399-gru-u-boot.dtsi" #include "rk3399-sdram-lpddr3-samsung-4GB-1866.dtsi" diff --git a/arch/arm/dts/rk3399-gru-u-boot.dtsi b/arch/arm/dts/rk3399-gru-u-boot.dtsi new file mode 100644 index 0000000000..7bddc3acdb --- /dev/null +++ b/arch/arm/dts/rk3399-gru-u-boot.dtsi @@ -0,0 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +#include "rk3399-u-boot.dtsi" diff --git a/arch/arm/dts/rk3399-gru.dtsi b/arch/arm/dts/rk3399-gru.dtsi index df19263acc..8b3d90fdc6 100644 --- a/arch/arm/dts/rk3399-gru.dtsi +++ b/arch/arm/dts/rk3399-gru.dtsi @@ -545,7 +545,6 @@ ap_i2c_audio: &i2c8 { &spi1 { status = "okay"; - u-boot,dm-pre-reloc; pinctrl-names = "default", "sleep"; pinctrl-1 = <&spi1_sleep>; diff --git a/arch/arm/dts/rk3399-puma-ddr1600.dts b/arch/arm/dts/rk3399-puma-ddr1600.dts index 337e0eabb4..42763f82d0 100644 --- a/arch/arm/dts/rk3399-puma-ddr1600.dts +++ b/arch/arm/dts/rk3399-puma-ddr1600.dts @@ -6,5 +6,6 @@ /dts-v1/; #include "rk3399-puma.dtsi" +#include "rk3399-u-boot.dtsi" #include "rk3399-sdram-ddr3-1600.dtsi" diff --git a/arch/arm/dts/rk3399-puma.dtsi b/arch/arm/dts/rk3399-puma.dtsi index 8304f67192..2712ab6826 100644 --- a/arch/arm/dts/rk3399-puma.dtsi +++ b/arch/arm/dts/rk3399-puma.dtsi @@ -492,7 +492,6 @@ }; &sdmmc { - u-boot,dm-pre-reloc; clock-frequency = <150000000>; max-frequency = <40000000>; supports-sd; @@ -648,8 +647,6 @@ &spi1 { - u-boot,dm-pre-reloc; - status = "okay"; #address-cells = <1>;