Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8100139ybi; Thu, 6 Jun 2019 06:44:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHll4wHUz5G4bYq6ddJGRXKj/oHotLGTFReIkITFn9e9UEutVdPyPE5UaSC/2VDX+2FKGz X-Received: by 2002:a65:52c9:: with SMTP id z9mr3406041pgp.177.1559828691966; Thu, 06 Jun 2019 06:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559828691; cv=none; d=google.com; s=arc-20160816; b=gKsspSmO4Y0MGqU3LS0AcZE+Mpbl8QuU/aTXbFD0GFROsmkiSPCoMdC7JHuWbp7WWv 0463zZXZG7KckxUULFY1triSogc1v968KbmjfBu+J+oKx+r6VRawa7ZXNiMLFKqdp3Y1 Iwu4G+JADDhyMsZ3ml+/BdPqxxGzJK/Ur1Y/OaStIOuuZSnzz7688DoSq4Hw1W/Nmn1L tOnQ820Ra+Zps4kjBvJpjT1JvTOce20hKe27PYdLCZUl6AnD39pOpK5h1T+T8xxpf/f/ NVQxN8iZx4KZaUCYyqNNdgyc8U5p9aJ2rtqPJEpl8+p9ghWxXRUrE0XaKQoBBnt3+R3E TvgQ== 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=rvJtQg+661w+5Ir5BueWWyrmozrX3JR+SPJBE4ojBNo=; b=Iqx++2VuwNZAU3vPcKeGX3uEr8kFuJSKRx87j7+YQfrFSJsmpQ8ZsWmLjf6ogiLp4e 7w9Gv8GP+HBtlAUM/mHM8QroHXJXivtS4VbUbBEgEsc2BfeweFsJHuuRpSSsk0oujm3j cbnBV7YspD9vO0TrOjbN6JcACCVLqUEH786HPe3BpT9HJiCcf1/XdEcQ1DbqwIyMxAvo UJ06hoDo9evFZoHogKoLt2E+AlypvkJAmJgjFsT29kWPWiXq2wMltwL+NTj3y7FNFzjO ur2cjF901S1JLX6j+mK9pcyI7spxUAzZmyLGUojxjALjEK16Rnt3pxhIBwpI/LD+g3lU i1mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=epqA8sni; 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 b22si1510556plz.189.2019.06.06.06.44.34; Thu, 06 Jun 2019 06:44:51 -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=epqA8sni; 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 S1728299AbfFFNl2 (ORCPT + 99 others); Thu, 6 Jun 2019 09:41:28 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:33305 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728149AbfFFNl2 (ORCPT ); Thu, 6 Jun 2019 09:41:28 -0400 Received: by mail-wm1-f66.google.com with SMTP id h19so1884031wme.0 for ; Thu, 06 Jun 2019 06:41:26 -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=rvJtQg+661w+5Ir5BueWWyrmozrX3JR+SPJBE4ojBNo=; b=epqA8snisuMOJjsCRHRs4ABxlZ4Ah0ynD5cOGieOCE6xNXqIKHS9naxqBPAKDX/ljA s2BHAXGh0Da0FPyfBVTHnyMwDXj5mv2NE9qO6tiQIYbYIldEFjY4u1AkeFjy6lPqxhb4 GKf6UuBk8ReIbWkN+adsBrSeMzydKbOQX6xR+B7EtkKIXAHVorej+hhjbc5Zp2sd6n3d ROOCUmS7figyruVean2pjoZ76e6d7aaGxr2p9DX7juN34u9YMjgiLZ3vzN2SgDpTMcVS cndGynpLHxtAWVelFgfeHN/iT1SVcEe3yxjw26+j7Tj3+XT0CHdlkU/mQw2CsU68ebjx kMpA== 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=rvJtQg+661w+5Ir5BueWWyrmozrX3JR+SPJBE4ojBNo=; b=ZjNIFMxKI9Qa8vsVcQOUe//NHIS6kavX8bIy55r1gXPkwwErOVMOcTNvVhuOQuyGF6 fj/ZoTpIqvx2G3lw+wMQ+Yu3D8y0Chse2FbOTYEgUePMmDIiO3giO35QMf+Y2FQcXOZm OBdVcVbf683U//63/QFfnns/WP0M/eyMc5EbFI/Q/USMga7fovJ89n2YnplyNLMXOtFl bQpcQBokDVBJ5/HOXynRLFhw5m2R51mBesSl2G+ankZN1qgBfH6crbF5It1HpWeLuqhh 2/HEYrktsKQMxdrNzRMZc2CeIDKDxN45x4n+F3LJc1GBuA3oDVt6Z9DId+BjVxU/qAGX eFVA== X-Gm-Message-State: APjAAAWONZAxTeceD6CRb7YrG3zSoMtZJOFgM299gLZDGYbLddmAGW2z 1iUqEoHkly1fOP9t/fy5uRmMpw== X-Received: by 2002:a1c:1bc9:: with SMTP id b192mr51169wmb.152.1559828485613; Thu, 06 Jun 2019 06:41:25 -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 c11sm1847367wrs.97.2019.06.06.06.41.24 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 06 Jun 2019 06:41:25 -0700 (PDT) From: Maxime Jourdan To: Mauro Carvalho Chehab , Hans Verkuil Cc: 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 v9 1/3] dt-bindings: media: add Amlogic Video Decoder Bindings Date: Thu, 6 Jun 2019 15:41:20 +0200 Message-Id: <20190606134122.16854-2-mjourdan@baylibre.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190606134122.16854-1-mjourdan@baylibre.com> References: <20190606134122.16854-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. Signed-off-by: Maxime Jourdan Reviewed-by: Rob Herring --- .../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