Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp860397ybv; Thu, 20 Feb 2020 08:32:38 -0800 (PST) X-Google-Smtp-Source: APXvYqzjIlzQ9n4znQ2bFtf4JNSxMf1FoKMKLZQ4T/56C4mGGNdNuc17l+O1KZBQTVk771LIywAK X-Received: by 2002:a05:6830:1050:: with SMTP id b16mr24699549otp.140.1582216358333; Thu, 20 Feb 2020 08:32:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582216358; cv=none; d=google.com; s=arc-20160816; b=t8YONJdvmBDKSKVdxw9m933elMOeGN2qDGPJ5L7YmaZ0JW+SLXHl7g6afLpWs7oNWx sLJxCmfCaJfJVWHNBqQ7V3rCT3A8gGHmPVjHoFznUdDeBYTNHXOCpCRbYY1yVc2ziOwp Uu7/cRBULHBAKh+0R3rwfcui0k2bUyopO3o3zdT2TORrBXZEis0+gS+UWGtt5cHXw2x+ 7M4kaFWYqAtnmhUuHBVzENxpmu3z7ermsGCjfnJO+QosfsDe9iA7Ym46//D1rjzUeb+F OlrmjAf7d8OQhSzBe3fqlx9OQqhSvX80+Wzo4UbJcAUgPhjvuODGyOA5voXSEJvatDka EtWA== 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=uPC0ur0hgRedtwrnkdt+6UhP1TMt6HzvvZMM/76A5WQ=; b=D+vHQtiy0nT0ohE2uDr5+rWNFGGzCSWJ5XyTeoidbWoeOcPptV3JnG7b4ZOncB6KmL 148D2wkiBrXCGw3+pJ7idU77ssVHHwvEneLRqgpn3VHp1C4acy4dw6Vf4ff6GtxkDxNd s4U9qDp8ALLDLz8vK8Ph4bbm2+S/yNFSTYHi+s4+foZf2bjkqIDCB8TK4Oon39nCknnJ DwqbMA2ziWJQ4gfcwmG3+MPj8/KK34Csot4qOuuJgj90fhrD0IFXGWs0jTx5AQtpafby fJW4EB4526h7LP1Jv3wVPZ8Zz0uXcOAV66bOcbYK3py2Eqrs+QwwhByfghU0g0GAdPLL 8NuQ== 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 m12si10809569oim.195.2020.02.20.08.32.21; Thu, 20 Feb 2020 08:32:38 -0800 (PST) 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 S1728811AbgBTQau (ORCPT + 99 others); Thu, 20 Feb 2020 11:30:50 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:48038 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728768AbgBTQat (ORCPT ); Thu, 20 Feb 2020 11:30:49 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 839932951E2 From: Ezequiel Garcia To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Laurent Pinchart , Rob Herring , Tomasz Figa , Nicolas Dufresne , kernel@collabora.com, Paul Kocialkowski , Jonas Karlman , Heiko Stuebner , Boris Brezillon , Sakari Ailus , Hans Verkuil , Rob Herring , Ezequiel Garcia Subject: [PATCH v6 4/6] media: dt-bindings: rockchip: Document RK3399 Video Decoder bindings Date: Thu, 20 Feb 2020 13:30:14 -0300 Message-Id: <20200220163016.21708-5-ezequiel@collabora.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200220163016.21708-1-ezequiel@collabora.com> References: <20200220163016.21708-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 | 71 +++++++++++++++++++ 1 file changed, 71 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..eba7ead72f48 --- /dev/null +++ b/Documentation/devicetree/bindings/media/rockchip,vdec.yaml @@ -0,0 +1,71 @@ +# 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 + + 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 = "aclk", "iface", "cabac", "core"; + power-domains = <&power RK3399_PD_VDU>; + iommus = <&vdec_mmu>; + }; + +... -- 2.25.0