From patchwork Tue Nov 6 07:59:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Jourdan X-Patchwork-Id: 10669873 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0C2A615A6 for ; Tue, 6 Nov 2018 08:00:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F234229D42 for ; Tue, 6 Nov 2018 08:00:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5D2629D65; Tue, 6 Nov 2018 08:00:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9450929D54 for ; Tue, 6 Nov 2018 08:00:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nIFCa+ndE6PJ8qRvRoPNrF/cb7OpmwXsyj0MrvmaGXs=; b=RjLmtG3VikidOB 1LElyRZ1zRK4azRYKdts8GMTwFoQhZJDl3X5QjMsHUURlizYW1qpT6QpAwrswtd1EKhoSK5BHoldm Z+cY6IXNUnqgb5giWwGlXojaWGX+By7N9PyQSkplwCtVCH2Zk7ZF82Wp0t3ueoy9LiU0IphxlM1oY Qi/GDdGJjcohqChs3SX7AAHihDs9Re7PU2mS/kRC/YjOGWmsEzze846rpiD/btHEZ7Zoq16TahCp9 TEFR4gW1Qnd1503plrErON7DO+VB3Lxk3xuEwwWDFySVc4mw1Kv/fzqvz1fk8PwGN5DTcAKEANxXR 4nmdKsz8KKaq17OeMiAQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJwHa-0001kb-Gr; Tue, 06 Nov 2018 08:00:18 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJwHC-0000JS-Da for linux-amlogic@lists.infradead.org; Tue, 06 Nov 2018 07:59:57 +0000 Received: by mail-wr1-x443.google.com with SMTP id r10-v6so12308371wrv.6 for ; Mon, 05 Nov 2018 23:59:42 -0800 (PST) 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=HvQr26dE1Pd4854P54cKSVSs7jJbMx46LgtS14t7TKQ=; b=fMT+XlXkOnhKwIgpSl4pj78cA5sK2n/XIQihgqPKSvW5cDKzMRk5opLgY7FdpAfgPA QUw7Gp7fQkY5IO9lkrNWyk310asrxb+1o07EevbdOEV06wQxsaSMPLz2HLodt9s5RxWT P0iKlp9fbiOqBDxA59euvJ5RGiwREk7qfMM8g7xtf2zw2N18uZklUhF73W+uVDPMmbHQ TvNbrznW27mj5RbxfF02G9gTad0X/zjQsbHO6PPmhGFmjG1cXLn9DyX0QBi+eaB/iDsg HjrrEeQlEZLwniLFlxDTKkTvAT0O9T97tO/y3OJIJglEVk59/GigyIbBN+oCTPOIuDMs LVQQ== 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=HvQr26dE1Pd4854P54cKSVSs7jJbMx46LgtS14t7TKQ=; b=draGCUtHFHm1eZ6DP52hUGv2+Wz+u+YDmSOVjvRCzSCa1tgteKTApCvnHU7LjWgxNU q4R3NOrLkC1RWT7GYV2BfnY2QWYYqipU+knXwnT9J0sVHnHXnGU3xSApDTgNAbVe6/u4 DXoHr3aF5jslKCBhuTWFZtb2qh93p+hIe0HLDnkGg2pYeXLaLDlZwqKyihWXUiLfmYZv 9NG/af/q9nQr+5H9S0oy+cHTOEoljxBn3Bmc/VZ+yJpSC427jQa6mA7IkXGxBOBqCKyL pf1uxqu4pZW3Fu9X+N7Y/xGeXnb+ZK6Brrsn1xQI2euC2wFsDI5k3LjXdB1iprGU1V4a D6IQ== X-Gm-Message-State: AGRZ1gJfskFnyULgsxIzhpI8DjxVc0XoY2FN0OettLTovLcw+GL/b3hq X3UyC1jW4xikRRInVdeG06WpoA== X-Google-Smtp-Source: AJdET5dc40A9V2BoFA6iP/lgi+2NoDSxDRvtJ3hMx2kGpvQ7vQRVp6AyuZ2heUsnRYQi+ovNSa1y4w== X-Received: by 2002:adf:cf02:: with SMTP id o2-v6mr23769258wrj.258.1541491181345; Mon, 05 Nov 2018 23:59:41 -0800 (PST) Received: from localhost.localdomain (abo-99-183-68.mtp.modulonet.fr. [85.68.183.99]) by smtp.gmail.com with ESMTPSA id z16-v6sm918171wmc.0.2018.11.05.23.59.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Nov 2018 23:59:40 -0800 (PST) From: Maxime Jourdan To: Mauro Carvalho Chehab Subject: [PATCH v4 1/3] dt-bindings: media: add Amlogic Video Decoder Bindings Date: Tue, 6 Nov 2018 08:59:24 +0100 Message-Id: <20181106075926.19269-2-mjourdan@baylibre.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181106075926.19269-1-mjourdan@baylibre.com> References: <20181106075926.19269-1-mjourdan@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181105_235954_467617_26FFEAB2 X-CRM114-Status: GOOD ( 11.46 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Neil Armstrong , Martin Blumenstingl , Kevin Hilman , linux-kernel@vger.kernel.org, Rob Herring , Hans Verkuil , linux-amlogic@lists.infradead.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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"; +};