Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp959168ybb; Fri, 3 Apr 2020 15:15:38 -0700 (PDT) X-Google-Smtp-Source: APiQypLjWyOK4YzxDuMOg1hYk4efncyhuRGCCzv/ROYRt5VgJwrDANpGzBsPL3/a+FrHDN2sN8vO X-Received: by 2002:aca:4d49:: with SMTP id a70mr5030612oib.152.1585952138497; Fri, 03 Apr 2020 15:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585952138; cv=none; d=google.com; s=arc-20160816; b=Mc4Nc9z0AuHCf8IWHC/d4IMX4JG5kD9/MjVYSpfgWSiUijaqJJfvIEl9kprJwEt+0Z rbqAFj5YyWQfLjqhpOJpX6QXmGniAY3dnBR5y3Is9qT0Uy99cIJW4ui01sSKzOj/8bzQ N5NuWXIp9X2PitDsmD6DsJexc5s7YJDukzS68N+DMzK9+Ps731K27wB/a55hw5HttpxI rEjUGfB6Kdi60G2XEmBwOPt64OQiHzDUSq5SeuYI0QShfxQ2WJ0z+T4S1SF0KXWgGjkK P56MMo56LAyzYRAuMeh/KLmkqvwaLv4XEbtTiIKer3qCqzIW7KvdcTdYFj6/gxPUrwHt cAFw== 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=1LfeUEpeztMyKnJ1vS/2+Eiqx2Cz/XJ9n0OVrmUiy0Q=; b=mgjKTK5ixDFZLxnJTaLsHH+g077yEaAGvg5ylFr/IWa8IEHcGQOSoIdt8aUI/rdkkP 2gD1agwEG/agmGpiuMGeMHkHIhK4w4+PJI6XpR5k5S105ODXIxBlLdw5EaPPlEizCrbC pJHW23PujctA7k8EdBKzI92qHRpUw+oLKzezjoL6HyZR9cftFLOWlHm7jVVYm1nN7LTP wAuNM3G3xbwoa7J/RTsuVjPz4a9+pSSclIXvSml1jn+5NuZ/Y4bQLmTbk94lA6URBj2c xU+WX15lpNbV9e1P4xwOBJ/Qs7OSbPkKrHRs9zMk7osGlK3umy4kGY3iD7fDrOW3IaBD s8DQ== 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 n62si4284974oig.196.2020.04.03.15.15.25; Fri, 03 Apr 2020 15:15:38 -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 S1728998AbgDCWOO (ORCPT + 99 others); Fri, 3 Apr 2020 18:14:14 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:32780 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728636AbgDCWON (ORCPT ); Fri, 3 Apr 2020 18:14:13 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 56085298658 From: Ezequiel Garcia To: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Tomasz Figa , kernel@collabora.com, Jonas Karlman , Heiko Stuebner , Hans Verkuil , Alexandre Courbot , Jeffrey Kardatzke , Boris Brezillon , Rob Herring , Ezequiel Garcia Subject: [PATCH v8 3/5] media: dt-bindings: rockchip: Document RK3399 Video Decoder bindings Date: Fri, 3 Apr 2020 19:13:43 -0300 Message-Id: <20200403221345.16702-4-ezequiel@collabora.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200403221345.16702-1-ezequiel@collabora.com> References: <20200403221345.16702-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 --- v8: * None. --- .../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