Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp461711ybb; Fri, 3 Apr 2020 06:10:09 -0700 (PDT) X-Google-Smtp-Source: APiQypIa8iTdMItUKhF4GlY4qs/OUGlJx5s3FwfnxQcGqsMZNr8sAt7nx0lcNVm/8VB+KOaDfyy9 X-Received: by 2002:a54:4197:: with SMTP id 23mr2985916oiy.87.1585919408978; Fri, 03 Apr 2020 06:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585919408; cv=none; d=google.com; s=arc-20160816; b=eRv02XQn7FAMrCdoVlZbSbYwIGwPIRh/Ert0O3GNYFWqOntV4QLIc1Ms1fg2ZhqHWz UUA5psm9XQ6Xp1+1kf8EJydBKaRYighKvMOEwFf5WMnbEgS5PABm2xkh6NCJurf74tr6 k4T3HNfBtvUIdPU4dI3t9VhY3TbX39Tu///aVvzYEzpIHoSOPQe95Y9npWjOnbBDnfSW qxryf6Z/7GF97ThFffzXpzBEAVCR7zKjtonjIHyhom94kXBcmiKEpv/WXNhG0t91795y cPuqXnKL/A2U433f13ZaPZvxeC4VOZaEz9/Fq0+/EQfEvuaWiQ/aW+gJzk6WkEjqy9BX 6AMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=YWX9cu/QSo8yRIN7AcBy13ogB4+/rJ1kxLeU3StGuPk=; b=G2dsHAE1OMiVNeGHu9otnKNffwTNL5iitVOAFamuSIJzG2gwbUixCCHm+4KMfFZ5iH QHODc+MBuko6B0jZCI6PFTwqYe9r48AKIfk6+sh9dTf8+y61rfyvFPUwAYhrBZi+J7jX tl8+JiKzTkWxX5FNrs9btjP6bpdoGIhGkayrMxnr1jspFhS+DcexgS0T0o5uUWVNNTCB 3cbPDmDlZKvZ7YsLdRNODxwl5Z5uoPierrPTA1vI15e90REM03LQEb30Y/QQWfWAPuNg g30qQryMO6YGUdSNRdgkNWIx6VgRUlm9iAWtYGKOJwgV/ltYk84dOBTcT+8L5Vm0ej5j 62Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qi7RSUUR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r6si3633648oti.159.2020.04.03.06.09.52; Fri, 03 Apr 2020 06:10:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qi7RSUUR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403824AbgDCNGS (ORCPT + 99 others); Fri, 3 Apr 2020 09:06:18 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40094 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403800AbgDCNGR (ORCPT ); Fri, 3 Apr 2020 09:06:17 -0400 Received: by mail-wr1-f67.google.com with SMTP id s8so6308229wrt.7; Fri, 03 Apr 2020 06:06:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=YWX9cu/QSo8yRIN7AcBy13ogB4+/rJ1kxLeU3StGuPk=; b=Qi7RSUUREUB7NjQKdlKSApbx4ENGqn4aokUL81r8T9zR3j2ArRBvIMNQ6H0MBZxW7C RSkOkxN1mazkVMuF9ZInCYn+Lc/b3aIGlISZgDoKippise92hno9knc2+W9QFwFRtya3 niaQ2NvYMGjI9Q517Xa2hzQdFKU28DDdb1T6fEpYjAdSz6hPUJmYxjVhprnul/rvxK0i TvVqe97bD++d7SdEJgolK7xZF7WdY7tqNQSfWzT5XhowIdQ9FJpFydwxJG9fOC7qdNSc +LAoVS0SSz8/V+jj4Gn0wVY/TM8cYFs19fc2b/LWEf4QwdMAgr8OTMTdheCIUcpBzLej vSdw== 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; bh=YWX9cu/QSo8yRIN7AcBy13ogB4+/rJ1kxLeU3StGuPk=; b=KkFN0vc80vdx41WjAgnsnIJS8AE971jnsWRufJ1NNdImlryytvjLhDVRk9lw8efpUy d8h4JaXdIXtd7bKmtGbhaZnZSjyOjdl8coh5XFeQ0aex7ZKV7dATwpgQ5CZ33LNoa3dU PkxeTLrZA4dkQsshbLDAGKQ0rSgvRZEpsAr+o0Z+9VBtWQA5oo/2LiPFeIjC1T7ZHeKy CT8VxO4MRzsAogMVcxJDfhrGX5Q3Tv2QFHlFe2KZF49t4vrJNRNSccwari98/VH1buk1 VWMg1DsoiwP3GS8d4YZwRO+Vk0oXf6kYv6B4Vga9nx7ehiggBUxRtqi+YgjmgqU9ysXc e5hQ== X-Gm-Message-State: AGi0PuYuWVez7cmw6Jffpmc4+Gfs7SL6hB8Kg8HQkRKW/Y9E0O/KR2MR 86Qum+teCM67ZdhZR6wWWrE= X-Received: by 2002:adf:f3d2:: with SMTP id g18mr6387844wrp.356.1585919174979; Fri, 03 Apr 2020 06:06:14 -0700 (PDT) Received: from debian.home (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id o9sm7036093wru.29.2020.04.03.06.06.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Apr 2020 06:06:14 -0700 (PDT) From: Johan Jonker To: jacob-chen@iotwrt.com Cc: ezequiel@collabora.com, mchehab@kernel.org, robh+dt@kernel.org, heiko@sntech.de, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: media: convert rockchip rga bindings to yaml Date: Fri, 3 Apr 2020 15:06:06 +0200 Message-Id: <20200403130607.6138-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Current dts files for Rockchip with 'rga' nodes are manually verified. In order to automate this process rockchip-rga.txt has to be converted to yaml. Changed: Add missing reg property Signed-off-by: Johan Jonker --- Changes v2: Change MAINTAINERS --- .../devicetree/bindings/media/rockchip-rga.txt | 34 ---------- .../devicetree/bindings/media/rockchip-rga.yaml | 78 ++++++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 79 insertions(+), 35 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/rockchip-rga.txt create mode 100644 Documentation/devicetree/bindings/media/rockchip-rga.yaml diff --git a/Documentation/devicetree/bindings/media/rockchip-rga.txt b/Documentation/devicetree/bindings/media/rockchip-rga.txt deleted file mode 100644 index c53a8e513..000000000 --- a/Documentation/devicetree/bindings/media/rockchip-rga.txt +++ /dev/null @@ -1,34 +0,0 @@ -device-tree bindings for rockchip 2D raster graphic acceleration controller (RGA) - -RGA is a standalone 2D raster graphic acceleration unit. It accelerates 2D -graphics operations, such as point/line drawing, image scaling, rotation, -BitBLT, alpha blending and image blur/sharpness. - -Required properties: -- compatible: value should be one of the following - "rockchip,rk3228-rga", "rockchip,rk3288-rga": for Rockchip RK3228 - "rockchip,rk3288-rga": for Rockchip RK3288 - "rockchip,rk3399-rga": for Rockchip RK3399 - -- interrupts: RGA interrupt specifier. - -- clocks: phandle to RGA sclk/hclk/aclk clocks - -- clock-names: should be "aclk", "hclk" and "sclk" - -- resets: Must contain an entry for each entry in reset-names. - See ../reset/reset.txt for details. -- reset-names: should be "core", "axi" and "ahb" - -Example: -SoC-specific DT entry: - rga: rga@ff680000 { - compatible = "rockchip,rk3399-rga"; - reg = <0xff680000 0x10000>; - interrupts = ; - clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>; - clock-names = "aclk", "hclk", "sclk"; - - resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>; - reset-names = "core, "axi", "ahb"; - }; diff --git a/Documentation/devicetree/bindings/media/rockchip-rga.yaml b/Documentation/devicetree/bindings/media/rockchip-rga.yaml new file mode 100644 index 000000000..3b110b574 --- /dev/null +++ b/Documentation/devicetree/bindings/media/rockchip-rga.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/rockchip-rga.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip 2D raster graphic acceleration controller (RGA) + +description: + RGA is a standalone 2D raster graphic acceleration unit. It accelerates 2D + graphics operations, such as point/line drawing, image scaling, rotation, + BitBLT, alpha blending and image blur/sharpness. + +maintainers: + - Jacob Chen + - Ezequiel Garcia + +properties: + compatible: + oneOf: + - const: rockchip,rk3288-rga + - const: rockchip,rk3399-rga + - items: + - const: rockchip,rk3228-rga + - const: rockchip,rk3288-rga + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 3 + + clock-names: + items: + - const: aclk + - const: hclk + - const: sclk + + resets: + maxItems: 3 + + reset-names: + items: + - const: core + - const: axi + - const: ahb + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + - reset-names + +additionalProperties: false + +examples: + - | + #include + #include + rga: rga@ff680000 { + compatible = "rockchip,rk3399-rga"; + reg = <0xff680000 0x10000>; + interrupts = ; + clocks = <&cru ACLK_RGA>, + <&cru HCLK_RGA>, + <&cru SCLK_RGA_CORE>; + clock-names = "aclk", "hclk", "sclk"; + resets = <&cru SRST_RGA_CORE>, + <&cru SRST_A_RGA>, + <&cru SRST_H_RGA>; + reset-names = "core", "axi", "ahb"; + }; diff --git a/MAINTAINERS b/MAINTAINERS index ce80b22cf..ca7cdd2c0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14367,7 +14367,7 @@ M: Ezequiel Garcia L: linux-media@vger.kernel.org S: Maintained F: drivers/media/platform/rockchip/rga/ -F: Documentation/devicetree/bindings/media/rockchip-rga.txt +F: Documentation/devicetree/bindings/media/rockchip-rga.yaml HANTRO VPU CODEC DRIVER M: Ezequiel Garcia -- 2.11.0