From patchwork Mon Oct 2 11:34:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 147252 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2a8e:b0:403:3b70:6f57 with SMTP id in14csp1362580vqb; Mon, 2 Oct 2023 04:40:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFl7YFu+4jgWaRJWprgZagTIkHt2P/H6PswvP6hA6X2eWYWkLLyB0RNsQ99pvDtf9O0Sh3X X-Received: by 2002:a05:6870:1650:b0:1d6:439d:d037 with SMTP id c16-20020a056870165000b001d6439dd037mr15453204oae.24.1696246857166; Mon, 02 Oct 2023 04:40:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696246857; cv=none; d=google.com; s=arc-20160816; b=CTeSMuTp53ne186lKrN+ugP/QsQuZ3VX2qaHwvk3CUlH7VmsXpidMZYksgy7/rXazv ggUqTE8ZPmcG6KtK/w/eJmV3rGKUO7qeg9veS1MucgmKy673kSN3na8Oth+IepWGY0ft 1lcihXu+uWU0ZoHYI9KEhXUMB/ktnNgvFvxrkWQTGv/OfQGafaPjvRewriPzH8+agWjS DSZhmnNrB3ZaJZhgKFo2+KVzu594+0zzqp5yVk9GZ5dicSXMEJzMsiC/dKMniLV8SMnj j8S6wjSumQgcYJfA3hLP9ESQ0RzqF0Tz4lcgzSDXXchcesh9XdX1WrAe1Ger/YSC47Un 4xYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=PVFYZy0ARB0Ir/opkUijq37R80R5ihV2iohA49i/p94=; fh=04ACP9itZc62SttanCX3mJq1IvuogvbZICF78VnV88c=; b=kaeF/mGAfI3Wzyhr28lsE1S0AduLLyUZqjpZY7V/DUicJ4kXEDy1BKh23AqTPNsnIW /CL1ZzhN0gkFqRASy610QF5cKytbod5PN5+wG9G/ndatCc0DM2Lk0eyjd1OIuDw/K0Ai eL1qxZWwX6xs7MohxK3d91nrsmB7LHVD2YQHemEl79oXGRPDy2x52pPyl6flV/I2+l1D BFe2CyPXneLvHoqW9pA4QtKIwSrZrpcCX0atGzzE+Qq03npW51MYwEgQ76Z5ppvDPxhc vr73JzHGTxC3vegwy+LRQ+/UTTOB3DVcGpxUw6gq5yYMhYb5z71o8z+rzId0Fnbtg1Vm 9RVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=dhgplXgg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id v3-20020a655c43000000b005859bd29c5bsi7861231pgr.723.2023.10.02.04.40.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 04:40:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=dhgplXgg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 70075807665B; Mon, 2 Oct 2023 04:35:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231338AbjJBLfF (ORCPT + 18 others); Mon, 2 Oct 2023 07:35:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230427AbjJBLfD (ORCPT ); Mon, 2 Oct 2023 07:35:03 -0400 Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 778C4BF for ; Mon, 2 Oct 2023 04:35:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=k1; bh=PVFYZy0ARB0Ir/ opkUijq37R80R5ihV2iohA49i/p94=; b=dhgplXggEMUmtHf8YWo1fxG2khbfD1 vANkwwzl+P9Mjv4aE0BhpYuCSI2sID79CaNcUcl1khaOVQfbWvI0niwedvS4V9qf rXfZ6ahhCgPAYrrAmvlgiAh6UkrSPPEj6KpHF6b33bFZTojyQiP0FNopZI9vtxYz SqN7Joa+czso0IIJEgwDnr2ezeRPUoTz7I82XUoaqC6aRA9nT9KzCcG6BHOCmGqw OLC4YjbbuwoCnmbgbhTNHiI+fbl+W1iSWfeWh8hN54g/6Rtum2j/zlAP+frtMBzG a+NL8d8ASaNbaL/n6MfFIOWL115gM1R8j4Ewmta7HW4KRiwdm6hyKI3A== Received: (qmail 509107 invoked from network); 2 Oct 2023 13:34:57 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 2 Oct 2023 13:34:57 +0200 X-UD-Smtp-Session: l3s3148p1@6aK5KboGfJcujntX From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Takeshi Kihara , Geert Uytterhoeven , Wolfram Sang , Magnus Damm , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH RESEND] arm64: dts: renesas: r8a77990: Add Ebisu-4D board support Date: Mon, 2 Oct 2023 13:34:41 +0200 Message-Id: <20231002113441.19571-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Mon, 02 Oct 2023 04:35:18 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778643744348323925 X-GMAIL-MSGID: 1778643744348323925 From: Takeshi Kihara Add initial support for the Renesas Ebisu-4D development board. The Ebisu-4D board is very similar to the Ebisu board, but the memory configuration is different. - The memory map of Ebisu-4D board is as follows: Bank0: 2 GiB RAM : 0x000048000000 -> 0x000bfffffff - The memory map of Ebisu board is as follows: Bank0: 1 GiB RAM : 0x000048000000 -> 0x0007fffffff Signed-off-by: Takeshi Kihara Signed-off-by: Geert Uytterhoeven [wsa: rebased] Signed-off-by: Wolfram Sang --- Resending this patch because I want to utilize all 2GB of memory on my Ebisu. Since nobody updated U-Boot to handle different RAM sizes on Ebisu in the last 4.5 years, let's add the Ebisu-4D as a seperate board. arch/arm64/boot/dts/renesas/Makefile | 1 + .../boot/dts/renesas/r8a77990-ebisu-4d.dts | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 arch/arm64/boot/dts/renesas/r8a77990-ebisu-4d.dts diff --git a/arch/arm64/boot/dts/renesas/Makefile b/arch/arm64/boot/dts/renesas/Makefile index 7114cbbd8713..ad8f13f9907a 100644 --- a/arch/arm64/boot/dts/renesas/Makefile +++ b/arch/arm64/boot/dts/renesas/Makefile @@ -55,6 +55,7 @@ dtb-$(CONFIG_ARCH_R8A77980) += r8a77980-v3hsk.dtb dtb-$(CONFIG_ARCH_R8A77980) += r8a77980a-condor-i.dtb dtb-$(CONFIG_ARCH_R8A77990) += r8a77990-ebisu.dtb +dtb-$(CONFIG_ARCH_R8A77990) += r8a77990-ebisu-4d.dtb dtb-$(CONFIG_ARCH_R8A77995) += r8a77995-draak.dtb diff --git a/arch/arm64/boot/dts/renesas/r8a77990-ebisu-4d.dts b/arch/arm64/boot/dts/renesas/r8a77990-ebisu-4d.dts new file mode 100644 index 000000000000..9f5bc7a7734f --- /dev/null +++ b/arch/arm64/boot/dts/renesas/r8a77990-ebisu-4d.dts @@ -0,0 +1,25 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the Ebisu-4D board + * + * Copyright (C) 2018 Renesas Electronics Corp. + */ + +/dts-v1/; +#include "r8a77990-ebisu.dts" + +/ { + model = "Renesas Ebisu-4D board based on r8a77990"; + compatible = "renesas,ebisu", "renesas,r8a77990"; + + memory@48000000 { + device_type = "memory"; + /* first 128MB is reserved for secure area. */ + reg = <0x0 0x48000000 0x0 0x78000000>; + }; +}; + +&pciec0 { + /* Map all possible DDR as inbound ranges */ + dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x80000000>; +};