linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Paweł Chmiel" <pawel.mikolaj.chmiel@gmail.com>
To: krzk@kernel.org
Cc: kgene@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com,
	linux@armlinux.org.uk, pawel.mikolaj.chmiel@gmail.com,
	xc-racer2@live.ca, linux-arm-kernel@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH 4/6] ARM: dts: s5pv210: aries: Add reserved memory for mfc
Date: Fri, 28 Dec 2018 17:18:17 +0100	[thread overview]
Message-ID: <20181228161819.18931-5-pawel.mikolaj.chmiel@gmail.com> (raw)
In-Reply-To: <20181228161819.18931-1-pawel.mikolaj.chmiel@gmail.com>

This commit adds memory reservation required by MFC to run.
On S5PV210 both regions needs to be on separate memory banks.
Size of both regions is taken from stock sources.

Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
---
 arch/arm/boot/dts/s5pv210-aries.dtsi | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/arch/arm/boot/dts/s5pv210-aries.dtsi b/arch/arm/boot/dts/s5pv210-aries.dtsi
index 575094ea7024..35ba009a1a33 100644
--- a/arch/arm/boot/dts/s5pv210-aries.dtsi
+++ b/arch/arm/boot/dts/s5pv210-aries.dtsi
@@ -23,6 +23,24 @@
 			0x50000000 0x08000000>;
 	};
 
+	reserved-memory {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		mfc_left: region_mfc_left@43000000 {
+			compatible = "shared-dma-pool";
+			no-map;
+			reg = <0x43000000 0x2000000>;
+		};
+
+		mfc_right: region_mfc_right@51000000 {
+			compatible = "shared-dma-pool";
+			no-map;
+			reg = <0x51000000 0x2000000>;
+		};
+	};
+
 	wifi_pwrseq: wifi-pwrseq {
 		compatible = "mmc-pwrseq-simple";
 		reset-gpios = <&gpg1 2 GPIO_ACTIVE_LOW>;
@@ -329,6 +347,10 @@
 	status = "okay";
 };
 
+&mfc {
+	memory-region = <&mfc_left>, <&mfc_right>;
+};
+
 &pinctrl0 {
 	wlan_bt_en: wlan-bt-en {
 		samsung,pins = "gpb-5";
-- 
2.17.1


  parent reply	other threads:[~2018-12-28 16:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-28 16:18 [PATCH 0/6] ARM: dts: s5pv210: aries: Enable more drivers present on Samsung Aries based devices Paweł Chmiel
2018-12-28 16:18 ` [PATCH 1/6] ARM: dts: s5pv210: Use correct fimd variant Paweł Chmiel
2018-12-31 11:37   ` Krzysztof Kozlowski
2019-01-07 20:28   ` Krzysztof Kozlowski
2018-12-28 16:18 ` [PATCH 2/6] ARM: dts: s5pv210: galaxys: Remove hardcoded bootargs Paweł Chmiel
2019-01-07 19:20   ` Krzysztof Kozlowski
2018-12-28 16:18 ` [PATCH 3/6] ARM: dts: s5pv210: fascinate4g: " Paweł Chmiel
2019-01-07 19:20   ` Krzysztof Kozlowski
2018-12-28 16:18 ` Paweł Chmiel [this message]
2018-12-31 11:44   ` [PATCH 4/6] ARM: dts: s5pv210: aries: Add reserved memory for mfc Krzysztof Kozlowski
2018-12-28 16:18 ` [PATCH 5/6] ARM: dts: s5pv210: aries: Support for more devices present on Aries Paweł Chmiel
2018-12-31 13:35   ` Krzysztof Kozlowski
2019-01-08 16:53     ` Paweł Chmiel
2018-12-28 16:18 ` [PATCH 6/6] ARM: defconfig: s5pv210: Enable more drivers present on Samsung Aries Paweł Chmiel
2018-12-31 13:22   ` Krzysztof Kozlowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181228161819.18931-5-pawel.mikolaj.chmiel@gmail.com \
    --to=pawel.mikolaj.chmiel@gmail.com \
    --cc=devicetree@vger.kernel.org \
    --cc=kgene@kernel.org \
    --cc=krzk@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=xc-racer2@live.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).