Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1977290ybb; Sun, 29 Mar 2020 18:52:54 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtdL3jhmKmuWVC1VLygrGl8ItT88j6xnRAPjEmoesNNTkvWB2xrzwAZI59i86ffgeOHRrdJ X-Received: by 2002:a4a:d746:: with SMTP id h6mr7929675oot.21.1585533174258; Sun, 29 Mar 2020 18:52:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585533174; cv=none; d=google.com; s=arc-20160816; b=vgO9DNW4rvM1gwUyXBiDK/9joJjwmHZdcEbb8xCONNpqEzOuJ63B2MJvC6a8z5TREz 4Jly7KEGhjbmLnalQtfTxQpvx3G9KU76UuR4O06u1pNCj1kD6Sd6hc06mYJu5utpnW2/ ya1ktzcx6PlOtUoQQrbvm2hXmycYCIyvUFRhA5fYoM52OXGdhx4x+FCS+KOMz19bQnVQ mGI4IVcrdf8svTx3/5tlAp9Vk7j+FzB3yCax/6auy14yozOYjhlXzSqaIXw2Rfo40/mk kUQAGfgifgH1m9s6481gIhNs2oCkerkh0p1a31ENBeva2REV0n0yGiyZcYooJfAUkuVa nu+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Y7uwz449uo05Hf5CrgwfLUcdUm060Rb9Bnvp6YxcXwo=; b=IkUtaXWKHM9oSkLkoVfvOTtfYLUljPrIB4fmYDfAwlcyBV2CRzFGnpGD4wtOsxlNjv dkq1VlA9tvfpHBDvVvfqWvyYTdBIGbFuaf3Y4qOBLoneMnZAU4CxgASVSkIntZE8ezi0 aS85JyJt1Aeq1qcKbWvCKUQE/SRjed3SjYX6dXPzdPRnTeflVy7+eRjSTO6Qg5esgNY0 Xh4QOqkl0XiLiKF3VslLHQoHWg0FbpBZIRX80gjKtZA/6tHJIsvWVlOPK0qlFOtMx5Id ZpUCbwXlaF7Sw1qLAnRSui+GOiIOyqbfu6u/tCa1wdthc5djVVqFGAWZD9U/XIzHVjRp RWkA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k27si5117917otf.40.2020.03.29.18.52.40; Sun, 29 Mar 2020 18:52:54 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728853AbgC3Bq4 (ORCPT + 99 others); Sun, 29 Mar 2020 21:46:56 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:53496 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727801AbgC3Bq4 (ORCPT ); Sun, 29 Mar 2020 21:46:56 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id D51312947A3 From: Ezequiel Garcia To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Rob Herring , Tomasz Figa , Nicolas Dufresne , kernel@collabora.com, Paul Kocialkowski , Jonas Karlman , Heiko Stuebner , Boris Brezillon , Hans Verkuil , Alexandre Courbot , Jeffrey Kardatzke , Mark Rutland , Rob Herring , Ezequiel Garcia Subject: [PATCH v7 3/5] media: dt-bindings: rockchip: Document RK3399 Video Decoder bindings Date: Sun, 29 Mar 2020 22:46:14 -0300 Message-Id: <20200330014616.10621-4-ezequiel@collabora.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200330014616.10621-1-ezequiel@collabora.com> References: <20200330014616.10621-1-ezequiel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Boris Brezillon Document the Rockchip RK3399 Video Decoder bindings. Signed-off-by: Boris Brezillon Reviewed-by: Rob Herring Signed-off-by: Ezequiel Garcia --- .../bindings/media/rockchip,vdec.yaml | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/rockchip,vdec.yaml diff --git a/Documentation/devicetree/bindings/media/rockchip,vdec.yaml b/Documentation/devicetree/bindings/media/rockchip,vdec.yaml new file mode 100644 index 000000000000..0c68cdad9a31 --- /dev/null +++ b/Documentation/devicetree/bindings/media/rockchip,vdec.yaml @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/rockchip,vdec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip Video Decoder (VDec) Device Tree Bindings + +maintainers: + - Heiko Stuebner + +description: |- + The Rockchip rk3399 has a stateless Video Decoder that can decodes H.264, + HEVC an VP9 streams. + +properties: + compatible: + const: rockchip,rk3399-vdec + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: The Video Decoder AXI interface clock + - description: The Video Decoder AHB interface clock + - description: The Video Decoded CABAC clock + - description: The Video Decoder core clock + + clock-names: + items: + - const: axi + - const: ahb + - const: cabac + - const: core + + power-domains: + maxItems: 1 + + iommus: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + #include + + vdec: video-codec@ff660000 { + compatible = "rockchip,rk3399-vdec"; + reg = <0x0 0xff660000 0x0 0x400>; + interrupts = ; + clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>, + <&cru SCLK_VDU_CA>, <&cru SCLK_VDU_CORE>; + clock-names = "axi", "ahb", "cabac", "core"; + power-domains = <&power RK3399_PD_VDU>; + iommus = <&vdec_mmu>; + }; + +... -- 2.26.0.rc2