From patchwork Fri Dec 28 16:18:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Chmiel?= X-Patchwork-Id: 10744555 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 712EF14DE for ; Fri, 28 Dec 2018 16:19:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6221F1FFB7 for ; Fri, 28 Dec 2018 16:19:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5685726861; Fri, 28 Dec 2018 16:19:04 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08F681FFB7 for ; Fri, 28 Dec 2018 16:19:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387427AbeL1QS5 (ORCPT ); Fri, 28 Dec 2018 11:18:57 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:42061 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730976AbeL1QSk (ORCPT ); Fri, 28 Dec 2018 11:18:40 -0500 Received: by mail-lj1-f195.google.com with SMTP id l15-v6so19056583lja.9; Fri, 28 Dec 2018 08:18:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VPTqR/NzmUP1Wul0aNxp78EL3f6kYB4v+Ag3WPPcrKg=; b=cwXSDmNZZWiczSKWBk/SCxRIp590NyY+UjX9pdCeYzjJHP4NP3AostVNWWhIr9F1UH XhwuV5sbGOR2vlaVczSTSS26T41B80JFjpWTgWbCxsykut9JlBgnXUGnM8Vr8KYv+c0X Y8VbVNwjtiXKdsgjPK6oNaUIGdGsJIEmcBfPIVGSsT3LWKQ5LNrE9b9pL7q3wnrCZAne XIm30Tgh5qqJMvAsRU+nnra7JgeRc9hgKdy++n+vDuatfwTWGgILUTfo+xiVpDyRRDVD k1xMXNojYPO15j4q/btA0u69GQZP/BX1O9hB78cBCDVOX1xxW3OqwYz7Zi7ria1WBX2h bgdA== 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=VPTqR/NzmUP1Wul0aNxp78EL3f6kYB4v+Ag3WPPcrKg=; b=rp2Bn37WDaSL86QXFTWonGa9L9omE7kVC8Mj5i5s6x6cqtOfLxuIuQB+cgAfR9wWHf aoBw5qd98SCpfd+QAOpr17vM1cJAXNcvkfkA2in+kvuXpnfwZTi9UDdV62HXM4KVPFQq FYaD63WaAvwxr7j8qMP5AxJSjyN/vwuSeDQFKepuTq8401hVBmsYG6sSVzr3P94KYRVC awIUMj/OQtWpK228iv9YgmP5m7l/fGxpjijpT+bVcMrdB40Eece9kNogvumeO97OId1R xKOk7/5nlVHeycJy0QBmD8c1M0GFRLUqZLfcu5fPvvP0/BB91vjgSkOVqlTmMyxODT1g EXnw== X-Gm-Message-State: AJcUukfdXH4yN3Rqn7giT105qAvMAAWyG4LJK+kJNRrTfBdRwt2Drg5u JI/oPeJHlF6nT5o6kOeLUAY= X-Google-Smtp-Source: ALg8bN7vhbcxBxIUfk+PmZCMDZupq1zYbzPLi0ZpXHL7/tBc90xphfD81cJH9cKIDY5cZnRYpgLB3w== X-Received: by 2002:a2e:5d12:: with SMTP id r18-v6mr18419477ljb.89.1546013917644; Fri, 28 Dec 2018 08:18:37 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:7146:fd07:48ff:9665]) by smtp.googlemail.com with ESMTPSA id r4sm8136502lfe.60.2018.12.28.08.18.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Dec 2018 08:18:37 -0800 (PST) From: =?utf-8?q?Pawe=C5=82_Chmiel?= 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 Message-Id: <20181228161819.18931-5-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181228161819.18931-1-pawel.mikolaj.chmiel@gmail.com> References: <20181228161819.18931-1-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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";