Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp296660yba; Mon, 1 Apr 2019 06:41:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxuBzSwQI0ZMElHkXFZsCa/jLa0ySzj2pkmL2y5o+zUsjyKu1v//7MyIm/JK++z9n1cKOYL X-Received: by 2002:a63:df43:: with SMTP id h3mr21706956pgj.294.1554126069323; Mon, 01 Apr 2019 06:41:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554126069; cv=none; d=google.com; s=arc-20160816; b=nMdM3ZZtSa58Do1SmRcP5FXmYhRYaZnBbhZGhh7HQmF/cClOqihAMU88F3IG2NCxIJ TmV4WPNOLZ+HTQ3v9Xko+JDA0Zu9ZD1PK2WL4lqW7uRvP28hNmNAGtmu5wBhHmyjOUf4 GloLd6xii8TZPZBlOiQuqIIC4xjwhy+zcNhAfKe2/WtaQKjqWHEH6Nxuu9f9OFBB3AXN 9+mU25EVv93nMyrTdels4OXMkDNTP5+C9aJQ7oBUFwEfCwYAKpv7tE35l5342nEw936/ gY1zjZ8BnCwsQVu7cQhpqkJtVV4LK0HRcb20/UA8mXCqxApMt0/H16WaupfAvhvgFHT3 pPGQ== 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 :dkim-signature; bh=3Z3XkroftFEOZ+oKRERn/ytHnCEs/zdgDA4cYGSY7DY=; b=A7flHCQJkVLrlznfH7+sAH6VsZP72GcV2svWuKPftgkdYmzYsX08MtiPNNatv5qtC0 VrI+A7qaobBamOKUowJ6B4bd7VYhPT/kU848nUB0ePz7cK4UntEbxkyCFTH2Dy6CRWhT 59sB0h7STdnOtUFgSiGl4yDzO3PVPBEz+GdnBctcjPt8riEv0LQtLVl+lXlv+LbdseGw jDj15na+INZDRYtjZ5LkdFQwkPAsuqkuPDiDJourNcDWpJSDwKfpDu5NY0FE/cDLMKpE 8JeAlVp0v63Pfx8+t/yrDKF612onSt60i849A0onm8hInSdWBJM+SVIE0vE4SY5gIr8R Qocg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=eIPaW3Ah; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b15si2248421pfb.231.2019.04.01.06.40.54; Mon, 01 Apr 2019 06:41:09 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=eIPaW3Ah; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728551AbfDANjE (ORCPT + 99 others); Mon, 1 Apr 2019 09:39:04 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:37228 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728019AbfDANjC (ORCPT ); Mon, 1 Apr 2019 09:39:02 -0400 Received: by mail-wm1-f67.google.com with SMTP id v14so11511878wmf.2 for ; Mon, 01 Apr 2019 06:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3Z3XkroftFEOZ+oKRERn/ytHnCEs/zdgDA4cYGSY7DY=; b=eIPaW3AhGstj48p5E8VufgaCSExLZ2GXmlZZvTXR9ULIGxQVvxPHxtgqmwGCrIeAq+ RV8QlRvJlm8EXyOWBCB+onpIV1i1xmODEckDYcEXHHtMLugPoITawuE5FBw3xyxjsIcg 6Swx4aOUBS0DSkdWbebbA0cS+YHx9bcNONAhVge5fh3U35mU9h93cJJQaIoc12rkAF+K Bbouln78t4NI9220mnFwfJwGgoWuBukMcOImiK38TVP7cakOiLUkMH9mg1y6efmDQe7B UAjgKW/PkDK9w281bm969lijO0M64K5Nk8YHr7YpKnfVbvOuJ+vRj8XEHssW4LFiDY6E J7JQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=3Z3XkroftFEOZ+oKRERn/ytHnCEs/zdgDA4cYGSY7DY=; b=Bbsgb1SIymYSPa3ynEP1lIVBktXNsDHZf3za/byUHI8qxxPWtNnTf6HD4SwdiLjk2u IVnTndRkzar2ZJkAGI6HTY3djxXly+kmGrGWDMIFe2/WyMjDH0uGXPPwKcbxzJgYUBZP ZPCl4y7lCl0KLP3c2aBb7A60sqjAUn2SJb9W7M0sUxfbx2SOz+O7zTOOBRpcNtoYj1Cr uY/MlN1cEAgN6+rjTAYA9oIhHDAQxpl2vkMAgyVcZV40vZGGGHgu4mX+ZdNk2ARb4jGS 9szH6dY0WVLMUJdlZVUg9uoc9JJvoSnSbYLonxw5GqAlrjEKwBlm+70GkHdCHMMI360X DGwQ== X-Gm-Message-State: APjAAAXFMHVDA02QKHtFj0rkYeCn3qHynfW4oc2/QA7UGDFIOX5h5sb9 5Yq7Pc79TnD97SiVyRSkx8u13g== X-Received: by 2002:a1c:f014:: with SMTP id a20mr12278697wmb.122.1554125940162; Mon, 01 Apr 2019 06:39:00 -0700 (PDT) Received: from mjourdan-pc.numericable.fr (abo-99-183-68.mtp.modulonet.fr. [85.68.183.99]) by smtp.gmail.com with ESMTPSA id v184sm25205996wma.6.2019.04.01.06.38.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 06:38:59 -0700 (PDT) From: Maxime Jourdan To: Mauro Carvalho Chehab Cc: Maxime Jourdan , Hans Verkuil , Kevin Hilman , Jerome Brunet , Neil Armstrong , Martin Blumenstingl , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring Subject: [PATCH v5 1/4] dt-bindings: media: add Amlogic Video Decoder Bindings Date: Mon, 1 Apr 2019 15:38:42 +0200 Message-Id: <20190401133845.4171-2-mjourdan@baylibre.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190401133845.4171-1-mjourdan@baylibre.com> References: <20190401133845.4171-1-mjourdan@baylibre.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 Add documentation for the meson vdec dts node. Reviewed-by: Rob Herring Signed-off-by: Maxime Jourdan --- .../bindings/media/amlogic,vdec.txt | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/amlogic,vdec.txt diff --git a/Documentation/devicetree/bindings/media/amlogic,vdec.txt b/Documentation/devicetree/bindings/media/amlogic,vdec.txt new file mode 100644 index 000000000000..aabdd01bcf32 --- /dev/null +++ b/Documentation/devicetree/bindings/media/amlogic,vdec.txt @@ -0,0 +1,71 @@ +Amlogic Video Decoder +================================ + +The video decoding IP lies within the DOS memory region, +except for the hardware bitstream parser that makes use of an undocumented +region. + +It makes use of the following blocks: + +- ESPARSER is a bitstream parser that outputs to a VIFIFO. Further VDEC blocks +then feed from this VIFIFO. +- VDEC_1 can decode MPEG-1, MPEG-2, MPEG-4 part 2, MJPEG, H.263, H.264, VC-1. +- VDEC_HEVC can decode HEVC and VP9. + +Both VDEC_1 and VDEC_HEVC share the "vdec" IRQ and as such cannot run +concurrently. + +Device Tree Bindings: +--------------------- + +VDEC: Video Decoder +-------------------------- + +Required properties: +- compatible: value should be different for each SoC family as : + - GXBB (S905) : "amlogic,gxbb-vdec" + - GXL (S905X, S905D) : "amlogic,gxl-vdec" + - GXM (S912) : "amlogic,gxm-vdec" +- reg: base address and size of he following memory-mapped regions : + - dos + - esparser +- reg-names: should contain the names of the previous memory regions +- interrupts: should contain the following IRQs: + - vdec + - esparser +- interrupt-names: should contain the names of the previous interrupts +- amlogic,ao-sysctrl: should point to the AOBUS sysctrl node +- amlogic,canvas: should point to a canvas provider node +- clocks: should contain the following clocks : + - dos_parser + - dos + - vdec_1 + - vdec_hevc +- clock-names: should contain the names of the previous clocks +- resets: should contain the parser reset +- reset-names: should be "esparser" + +Example: + +vdec: video-decoder@c8820000 { + compatible = "amlogic,gxbb-vdec"; + reg = <0x0 0xc8820000 0x0 0x10000>, + <0x0 0xc110a580 0x0 0xe4>; + reg-names = "dos", "esparser"; + + interrupts = , + ; + interrupt-names = "vdec", "esparser"; + + amlogic,ao-sysctrl = <&sysctrl_AO>; + amlogic,canvas = <&canvas>; + + clocks = <&clkc CLKID_DOS_PARSER>, + <&clkc CLKID_DOS>, + <&clkc CLKID_VDEC_1>, + <&clkc CLKID_VDEC_HEVC>; + clock-names = "dos_parser", "dos", "vdec_1", "vdec_hevc"; + + resets = <&reset RESET_PARSER>; + reset-names = "esparser"; +}; -- 2.21.0