From patchwork Wed Jan 3 15:45:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 10142529 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 383576034B for ; Wed, 3 Jan 2018 15:46:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED0D2290AD for ; Wed, 3 Jan 2018 15:46:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E1D8429115; Wed, 3 Jan 2018 15:46:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7646929118 for ; Wed, 3 Jan 2018 15:46:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9LCTwq5NRpQ2F2dsYlbYzD+w0HpMRir79jdtZ31H4OA=; b=qGALsiPwi0RyY4 uubGxR9VkVu2yVW83bjylCaMIfz6O/+OuM2ZXI4c96T/B/MYcUIvc9BuOdGLaP0BJVUvCL3QBSAfy wb7+HPtVsLsbWB3dk3CG5Xw61XvJpEXAmGpmD4KTYTgv2Lp5r2uEYbLLTyJpom5cy80ZnKBhjB1bJ esCvafFea6CLUMZJfvdb1mys+OVSjd31bYmvX0yVGkEBbdl30RH9YP8fj1k2PFrZvZF+9EsS2mv1S bRZrYqE0ZQ0lVLNoeseVf1cssQPtwlVFs6+/YjoPhRoDctjSJgUeNsQyRhI33wCBSgi8ktqkMANih jBf0NERcytDKQWtTqfxg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eWlFh-0003KX-2t; Wed, 03 Jan 2018 15:46:49 +0000 Received: from mail01.prevas.se ([62.95.78.3]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eWlFa-0003Fs-UX for linux-arm-kernel@lists.infradead.org; Wed, 03 Jan 2018 15:46:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=1454; q=dns/txt; s=ironport1; t=1514994403; x=1546530403; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=TxL2OhMPZAf3E9oeJTx1Dmq7kb2YiabUc5Yr/GUnNls=; b=C6Idnt80RLgPdWOHkiEP6YvUkqDM4DlPyl5aDe4rhGePCmvUV8x88OjO DnKPkoGgwP+coaqSbKjmoqbN/viXDiPp8nu6Q33//L3PmzRd+hWM7vBLc G3bAJP/gb2BownUDZ5JVkc9RzP+W9/0R8ftuH5FfUCgisXUYU6x39pVtj Q=; X-IronPort-AV: E=Sophos;i="5.45,501,1508796000"; d="scan'208";a="3027864" Received: from vmprevas4.prevas.se (HELO smtp.prevas.se) ([172.16.8.104]) by ironport1.prevas.se with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jan 2018 16:46:19 +0100 Received: from prevas-ravi.prevas.se (172.16.8.31) by smtp.prevas.se (172.16.8.104) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 3 Jan 2018 16:46:18 +0100 From: Rasmus Villemoes To: Shawn Guo , Rob Herring , Mark Rutland , Russell King Subject: [PATCH v2] ARM: dts: ls1021a: add nodes for on-chip ram Date: Wed, 3 Jan 2018 16:45:45 +0100 Message-ID: <1514994345-2471-1-git-send-email-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513870698-31264-1-git-send-email-rasmus.villemoes@prevas.dk> References: <1513870698-31264-1-git-send-email-rasmus.villemoes@prevas.dk> MIME-Version: 1.0 X-Originating-IP: [172.16.8.31] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180103_074643_619002_FF403DC9 X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rasmus Villemoes Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Although the two nodes constitute one contiguous 128K region, still describe them separately: - That's how they are described in the reference manual: "Each OCRAM occupies a 64 KB of address region...", and the names ocram1 and ocram2 are also as used in the manual. - The two areas are treated differently by the boot ROM code: OCRAM2 is zero-initialized, while, again quoting the RM, "software must perform the zero initialization of OCRAM1." Signed-off-by: Rasmus Villemoes --- v2: add changelog explaining the split in two nodes. arch/arm/boot/dts/ls1021a.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi index 96aa7752dd0d..7bb5896b3726 100644 --- a/arch/arm/boot/dts/ls1021a.dtsi +++ b/arch/arm/boot/dts/ls1021a.dtsi @@ -748,5 +748,21 @@ <0000 0 0 3 &gic GIC_SPI 191 IRQ_TYPE_LEVEL_HIGH>, <0000 0 0 4 &gic GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>; }; + + ocram1: sram@10000000 { + compatible = "mmio-sram"; + reg = <0x0 0x10000000 0x0 0x10000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x10000000 0x10000>; + }; + + ocram2: sram@10010000 { + compatible = "mmio-sram"; + reg = <0x0 0x10010000 0x0 0x10000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x10010000 0x10000>; + }; }; };