Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752110AbeACPqW (ORCPT + 1 other); Wed, 3 Jan 2018 10:46:22 -0500 Received: from mail01.prevas.se ([62.95.78.3]:52280 "EHLO mail01.prevas.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751185AbeACPqU (ORCPT ); Wed, 3 Jan 2018 10:46:20 -0500 X-IronPort-AV: E=Sophos;i="5.45,501,1508796000"; d="scan'208";a="3027864" From: Rasmus Villemoes To: Shawn Guo , Rob Herring , Mark Rutland , Russell King CC: Rasmus Villemoes , , , 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 Content-Type: text/plain X-Originating-IP: [172.16.8.31] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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>; + }; }; }; -- 2.7.4