Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp99720ybg; Sat, 25 Jul 2020 21:40:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdlPR+S3RuAsYijsl+4/onNWR4rKTkFEA+zi8rvdNMiEq1YlAt3iCFPtRy6nNvnKYeB79p X-Received: by 2002:a17:906:1104:: with SMTP id h4mr6649418eja.456.1595738440770; Sat, 25 Jul 2020 21:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595738440; cv=none; d=google.com; s=arc-20160816; b=N/nMhCTLVIUqKaQixmySVqxuNyCECrGW5R9FmjnCSyMuQoFVEulH6Pz/aTRjhvNjcx +Nci8D2DYFkuKSdoneZVe7IWEb5K3wZalXJrVM7i2m/qg4QD7YsBJ7bOoE4viW/dWksV jQipUudBpkt6y6nsKi1+4f7iX3yLwfvysIi+BMAGFRwiHPghMdbjO0C/jWL8tXfaR040 CBHqc6DWGd8g0SfISwqHDKtJwmqQjCta5jJOyDwBpVGMRJwhMcYYZO2APJ9qbYLU5Xk7 n6tDDLHYiPM4kegV7jnNVNIIgUIY7wLjV5DWEYGeo3NLijM4fUPf0lAD5A3FsC3Tk1Ni A7Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TOWjKhpTAUxQGzRJ9viFhazH/fxYC7lH/fcb5nYvYF8=; b=H64IXwbLB5uyvSwj9y3BkVjxdRrE3OJSlEpH6cL6xYCQySwso5z4mZqIBEh1wbrsTJ d8PsjpgrfKLrjvekJ/8YoMwG9ngUGOAOlrb/T7lk/HGZ6gf21Gv/10AcHT2brS0byn/P +7uP4WjhrZFIJqUebQ4cbBkXSuDmqCio24DyfPgPzx1pTKWZXhoZxm6F8s+0N27JkVpo FZWQGMdOtHUgikZe2ogLTCcZb1SRrXkN53R2JMyNWpVQgq5fDxyig5MttnSjPcvF1790 yHXV4V4UkwG5ScswGggPnRMASMWEl12x5p4dEFfK/efYJB3jByu55seUNl5OxvG9eM+9 hkcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=JKPAyqM7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si3124929ejr.349.2020.07.25.21.40.05; Sat, 25 Jul 2020 21:40:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=JKPAyqM7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726081AbgGZEj7 (ORCPT + 99 others); Sun, 26 Jul 2020 00:39:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbgGZEj6 (ORCPT ); Sun, 26 Jul 2020 00:39:58 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6163C0619D2 for ; Sat, 25 Jul 2020 21:39:58 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id il6so1697516pjb.0 for ; Sat, 25 Jul 2020 21:39:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TOWjKhpTAUxQGzRJ9viFhazH/fxYC7lH/fcb5nYvYF8=; b=JKPAyqM7DYs8ZxV2wxCYxmRX9YIbRDi8htfCF4Iosv2ft0c+yX6CcF7e8oGlxBFZQd tbEMr76Ja2sFM5x3o77uGnz75XZRJiOwUdwOEadXmo5WE99JA8Ajkj3WLDXOPCHiR3oz KZ6YYQZ2O6yNgOvDuse6P9nGN9NGm6FfAmDrI= 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:content-transfer-encoding; bh=TOWjKhpTAUxQGzRJ9viFhazH/fxYC7lH/fcb5nYvYF8=; b=WscZdeFS0GFdgZhDuA7A9EZDQCnUCUzxSpV5ykpPV2G9kLLxgqjWMdeKjZdCuLGwwB HJxkzzRY21mXhQpGFGov6aRM0JsrBwMwZLG5IslhuVsU2XR4Tu+IhJ6pdzZytPFjSsTt zcQQkRSHSUVwFbI/oOUZRRr2fqs+1llgHseM36Fw6vsJHBnqXcFIoDzx95fmCJvBITrC effkk/KS4vVedrgIRAIepHwGaWUXxcqss3gj74Xgz55ZchFB8di5p0jRwO0O9PoyFjGf QOeixkQTuGPCwXG12yFFkh1T/G562Q+oFt62cn2m7i4ZX7Zzfiks/aE0hKZgkCgJhepu dBmw== X-Gm-Message-State: AOAM5310cP857GYw+mkeOyLFgsQH/0IaPG9YpxC25cbqlAxYhHckhYiJ tTX5I97yeaSnTLemZZqB/jxEy6zt7Zs= X-Received: by 2002:a17:90b:11c7:: with SMTP id gv7mr12685172pjb.175.1595738398347; Sat, 25 Jul 2020 21:39:58 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id t1sm10507372pje.55.2020.07.25.21.39.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2020 21:39:57 -0700 (PDT) From: Daniel Palmer To: soc@kernel.org Cc: arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH 1/7] ARM:mstar: Add IMI SRAM region Date: Sun, 26 Jul 2020 13:39:42 +0900 Message-Id: <20200726043948.1357573-2-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200726043948.1357573-1-daniel@0x0f.com> References: <20200726043948.1357573-1-daniel@0x0f.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All MStar v7 SoCs have an internal SRAM region that is between 64KB (infinity2m) and 128KB(infinity3, mercury5). The region is always at the same base address and is used for the second stage loader (MStar IPL or u-boot SPL) and will be used for the DDR self-refresh entry code within the kernel eventually. This patch adds a 128KB region to the SoC and the minimum 64KB SRAM region to the base dtsi. Families with more SRAM will override the size in their family level dtsi. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-v7.dtsi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index 3b99bb435bb5..6bc55fdbee04 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -45,7 +45,8 @@ soc: soc { #address-cells = <1>; #size-cells = <1>; ranges = <0x16001000 0x16001000 0x00007000>, - <0x1f000000 0x1f000000 0x00400000>; + <0x1f000000 0x1f000000 0x00400000>, + <0xa0000000 0xa0000000 0x20000>; gic: interrupt-controller@16001000 { compatible = "arm,cortex-a7-gic"; @@ -78,6 +79,11 @@ pm_uart: uart@221000 { clock-frequency = <172000000>; status = "disabled"; }; + }; + + imi: sram@a0000000 { + compatible = "mmio-sram"; + reg = <0xa0000000 0x10000>; }; }; }; -- 2.27.0