From patchwork Tue Mar 26 16:12:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 1065763 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=cogentembedded.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=cogentembedded-com.20150623.gappssmtp.com header.i=@cogentembedded-com.20150623.gappssmtp.com header.b="iDD4LFB7"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44TGP82tPpz9sPL for ; Wed, 27 Mar 2019 03:12:28 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732360AbfCZQMX (ORCPT ); Tue, 26 Mar 2019 12:12:23 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:32948 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732349AbfCZQMW (ORCPT ); Tue, 26 Mar 2019 12:12:22 -0400 Received: by mail-lj1-f193.google.com with SMTP id f23so11677474ljc.0 for ; Tue, 26 Mar 2019 09:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:organization:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=bChSgXhToRyrcHoAnFOWbKcmw6ZhKZxwegO2zNkAVEA=; b=iDD4LFB7uoC7J9uWSH2vWju/puvUAztHl0bJVwXPvfTRFHISovy/O4lw3zCTKh+dm6 OxAmCu7WuRTCcrSjDbXrxyJRtnaBHDfwGDbLfsU5O8vA4cjSr9/zM9DxyLJzLE2flku5 P7bDVkSDpdB78G96G/4/A5IeDiSW/+GWdh5EFbgeHO4yFCPj57qJJx21dkh8UslJveN3 Ba4m3r4RQUllUn/ObSj+agFGYLaM/SKpmulGJQbihb9E2rd+JpVjNn8XZ4NE7YuT9cHv N8jMdQfWGZX72UBvjh48XWanfEoWRDnc4L48N1dQu+xsysoZ09R66ki19iFzGvGlIyKX qdrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:organization:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=bChSgXhToRyrcHoAnFOWbKcmw6ZhKZxwegO2zNkAVEA=; b=Sk5akOqXGwPvlUv/x47gjQ7LDGmipzUL5HMBoBBEHxzYd3elCu6egpD5yUfd7dscdm n78ll6KPEylyDt+sHYg1pGJ4u1KCjwgTagsJIPeRevDxnSCzDD5eEk1ZpBElLYckfpLX OsS/F93Djuc5E0dltezoutJfzpxCIFLb2c26H/CH4EILJ3zsNzsIqdPXpXVkmtiWpaLT 1i/IQOOuvwcWtr5tfMgYxYT8mGNiL+oVbcT70SNyklO9IiBwfVG5kMAWXLZnh1CIg3Sj bXHQ6EUd1K1gv0pSGbVJ8/2seZhKt3dRU0gKTakyQdBoQ4ySye7FsJ+3xnCBLusb0aog VcYA== X-Gm-Message-State: APjAAAXcQDsiS88pS6zt9g0zHjPIFGuWunARWl6c4INUXV1lf3Ce6tRn p6fla+S1lg0a+du4+r9WDcjQag== X-Google-Smtp-Source: APXvYqyz+WocA2YU3Az1ROAkS/smKaJk4eYK1cVgXzK8nKsaybTUZP+5oqR4V4Ya9hHxSGfHF2YEkw== X-Received: by 2002:a2e:288:: with SMTP id y8mr2759361lje.62.1553616740831; Tue, 26 Mar 2019 09:12:20 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.80.251]) by smtp.gmail.com with ESMTPSA id k21sm1527696ljk.21.2019.03.26.09.12.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Mar 2019 09:12:20 -0700 (PDT) From: Sergei Shtylyov Subject: [PATCH v2] dt-bindings: media: Renesas R-Car IMR bindings To: Mauro Carvalho Chehab , Rob Herring , linux-media@vger.kernel.org, devicetree@vger.kernel.org Cc: Mark Rutland , linux-renesas-soc@vger.kernel.org, Rob Herring Organization: Cogent Embedded Message-ID: <55c5fca2-3ead-17da-e42f-04bdc1fbf1bf@cogentembedded.com> Date: Tue, 26 Mar 2019 19:12:19 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Language: en-MW Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The image renderer (IMR), or the distortion correction engine, is a drawing processor with a simple instruction system capable of referencing video capture data or data in an external memory as the 2D texture data and performing texture mapping and drawing with respect to any shape that is split into triangular objects. Document the device tree bindings for the image renderer light extended 4 (IMR-LX4) found in the R-Car gen3 SoCs... Signed-off-by: Sergei Shtylyov Acked-by: Rob Herring --- This patch is against the 'master' branch of the 'media_tree.git' repo. This patch has been split from the large IMR driver patch (which would need much more work), it fixes checkpatch.pl's warnings on the SoC .dtsi files which have been already merged (the bindings didn't change since v1 of the driver patch). Changes in version 2: - documented the required "power-domains" and "resets" props, adding them to the example as well. Documentation/devicetree/bindings/media/rcar_imr.txt | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) Index: media_tree/Documentation/devicetree/bindings/media/rcar_imr.txt =================================================================== --- /dev/null +++ media_tree/Documentation/devicetree/bindings/media/rcar_imr.txt @@ -0,0 +1,31 @@ +Renesas R-Car Image Renderer (Distortion Correction Engine) +----------------------------------------------------------- + +The image renderer, or the distortion correction engine, is a drawing processor +with a simple instruction system capable of referencing video capture data or +data in an external memory as 2D texture data and performing texture mapping +and drawing with respect to any shape that is split into triangular objects. + +Required properties: + +- compatible: "renesas,-imr-lx4", "renesas,imr-lx4" as a fallback for + the image renderer light extended 4 (IMR-LX4) found in the R-Car gen3 SoCs, + where the examples with are: + - "renesas,r8a7795-imr-lx4" for R-Car H3, + - "renesas,r8a7796-imr-lx4" for R-Car M3-W. +- reg: offset and length of the register block; +- interrupts: single interrupt specifier; +- clocks: single clock phandle/specifier pair; +- power-domains: power domain phandle/specifier pair; +- resets: reset phandle/specifier pair. + +Example: + + imr-lx4@fe860000 { + compatible = "renesas,r8a7795-imr-lx4", "renesas,imr-lx4"; + reg = <0 0xfe860000 0 0x2000>; + interrupts = ; + clocks = <&cpg CPG_MOD 823>; + power-domains = <&sysc R8A7795_PD_A3VC>; + resets = <&cpg 823>; + };