From patchwork Tue May 24 13:31:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 68510 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp633818qge; Tue, 24 May 2016 06:33:00 -0700 (PDT) X-Received: by 10.66.65.169 with SMTP id y9mr6991661pas.102.1464096759148; Tue, 24 May 2016 06:32:39 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o14si39888597pfi.82.2016.05.24.06.32.38; Tue, 24 May 2016 06:32:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932597AbcEXNcg (ORCPT + 4 others); Tue, 24 May 2016 09:32:36 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:20886 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932503AbcEXNbw (ORCPT ); Tue, 24 May 2016 09:31:52 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O7O005UNO90PE90@mailout1.w1.samsung.com>; Tue, 24 May 2016 14:31:48 +0100 (BST) X-AuditID: cbfec7f4-f796c6d000001486-98-574457c44405 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 56.65.05254.4C754475; Tue, 24 May 2016 14:31:48 +0100 (BST) Received: from amdc1339.digital.local ([106.116.147.30]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O7O00AJNO8VE550@eusync4.samsung.com>; Tue, 24 May 2016 14:31:47 +0100 (BST) From: Marek Szyprowski To: linux-media@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , devicetree@vger.kernel.org, Sylwester Nawrocki , Kamil Debski , Kukjin Kim , Krzysztof Kozlowski , Javier Martinez Canillas , Uli Middelberg , Bartlomiej Zolnierkiewicz Subject: [PATCH v4 2/7] media: s5p-mfc: use generic reserved memory bindings Date: Tue, 24 May 2016 15:31:25 +0200 Message-id: <1464096690-23605-3-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.2 In-reply-to: <1464096690-23605-1-git-send-email-m.szyprowski@samsung.com> References: <1464096690-23605-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCLMWRmVeSWpSXmKPExsVy+t/xa7pHwl3CDW7vYLTYOGM9q8X8I+dY Ld68XcNk8eP1BTaL1y8MLfofv2a26NmwldVixvl9TBZrj9xltzj8pp3V4tEWMQduj02rOtk8 NlzcyOqxpf8uu0ffllWMHp83yQWwRnHZpKTmZJalFunbJXBlzF93mKVgg2DF9w1vmBoYm/i6 GDk4JARMJKbNceti5AQyxSQu3FvP1sXIxSEksJRR4sblf1BOE5NE74OzzCBVbAKGEl1vu9hA bBEBJ4mFs/6ygxQxC7QwSzQ+aWABmSos4COx77orSA2LgKrEs6e/wcK8Ah4SP6fmQCyTk/j/ cgUTiM0p4Cnx7+8pFhBbCKjk2aEe5gmMvAsYGVYxiqaWJhcUJ6XnGuoVJ+YWl+al6yXn525i hITdlx2Mi49ZHWIU4GBU4uG9aegSLsSaWFZcmXuIUYKDWUmEtz4MKMSbklhZlVqUH19UmpNa fIhRmoNFSZx37q73IUIC6YklqdmpqQWpRTBZJg5OqQbG1DfHtm2InV2iMfVY6NkZrVsUernu bn4j+IlV1aCBfefUKZd010WY7wzfKLGmZ9bErEUxZ5Tlks+kVP+qEztcln2oxkC05FKAtWZ2 fPm8DX/VH+g3Fnh8jLx9ScCiWen+G9YTvdPO2+xYtm76/ts2KbdLdqSHq1ve/l+asE3g6+5z VvKcAqKRSizFGYmGWsxFxYkABt7w/zcCAAA= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Use generic reserved memory bindings and mark old, custom properties as obsoleted. Signed-off-by: Marek Szyprowski --- .../devicetree/bindings/media/s5p-mfc.txt | 39 +++++++++++++++++----- 1 file changed, 31 insertions(+), 8 deletions(-) -- 1.9.2 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/media/s5p-mfc.txt b/Documentation/devicetree/bindings/media/s5p-mfc.txt index 2d5787e..92c94f5 100644 --- a/Documentation/devicetree/bindings/media/s5p-mfc.txt +++ b/Documentation/devicetree/bindings/media/s5p-mfc.txt @@ -21,15 +21,18 @@ Required properties: - clock-names : from common clock binding: must contain "mfc", corresponding to entry in the clocks property. - - samsung,mfc-r : Base address of the first memory bank used by MFC - for DMA contiguous memory allocation and its size. - - - samsung,mfc-l : Base address of the second memory bank used by MFC - for DMA contiguous memory allocation and its size. - Optional properties: - power-domains : power-domain property defined with a phandle to respective power domain. + - memory-region : from reserved memory binding: phandles to two reserved + memory regions, first is for "left" mfc memory bus interfaces, + second if for the "right" mfc memory bus, used when no SYSMMU + support is available + +Obsolete properties: + - samsung,mfc-r, samsung,mfc-l : support removed, please use memory-region + property instead + Example: SoC specific DT entry: @@ -43,9 +46,29 @@ mfc: codec@13400000 { clock-names = "mfc"; }; +Reserved memory specific DT entry for given board (see reserved memory binding +for more information): + +reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + mfc_left: region@51000000 { + compatible = "shared-dma-pool"; + no-map; + reg = <0x51000000 0x800000>; + }; + + mfc_right: region@43000000 { + compatible = "shared-dma-pool"; + no-map; + reg = <0x43000000 0x800000>; + }; +}; + Board specific DT entry: codec@13400000 { - samsung,mfc-r = <0x43000000 0x800000>; - samsung,mfc-l = <0x51000000 0x800000>; + memory-region = <&mfc_left>, <&mfc_right>; };