From patchwork Fri Aug 31 08:52:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Jourdan X-Patchwork-Id: 10583385 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 BFFE317DE for ; Fri, 31 Aug 2018 08:52:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE99129E66 for ; Fri, 31 Aug 2018 08:52:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 989222A3D0; Fri, 31 Aug 2018 08:52:28 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 4783729E66 for ; Fri, 31 Aug 2018 08:52:28 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=dtGEXwwpZFOiObhx2J1GSPKPby/bX/ERoYGxt7iZUtw=; b=gMpUQeNV2nlJHTFJPbrsVLdM9q QUUMJR+GMWw87+VwFeYwo0XLokgp5Q+YkY/d5EvPKbfmyMEwdRl8zT3xPk42y6E3gTL64bdeAS2uz JIbIwQZFitAAqTwxior6CYf3JPZbiBofld/R/7NmJYJbsKM9T4M22qnedLinYIYm6KIg3OndjA93d QUXy+OUC7w1oMoulgbS0S1na/RlTZ2LeGV/N3hCH+PYnzJLE3iU/3PCPDazsHzvsV3/0+kbj+5aCb 4IkyC72K+KxpDc91zDNSOD7bgGt7ThhH+pq5aidM6145PqFuQn5rj4/aBvAVjPTav2XmRXQTHbKBk ww7kFAiA==; 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 1fvfAJ-0006IE-K2; Fri, 31 Aug 2018 08:52:27 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvfAF-0006F3-9p for linux-amlogic@lists.infradead.org; Fri, 31 Aug 2018 08:52:25 +0000 Received: by mail-wm0-x244.google.com with SMTP id y139-v6so4417751wmc.2 for ; Fri, 31 Aug 2018 01:52:18 -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; bh=t5ZXPohegRsBDzKYcCxu+5kCCIl+B1D8BkaNxL0J9FM=; b=t7sWQrK9FNzN90zApanyst/lB3P60bjy+mLr9HXGT72Y8VKDfT9iMidEUERnI9B0q2 QmUoOm4/fuZc0tVFRE/TDNWCJnMejfAIGBUzLO7aOCooXH7GLf26/c9PlaDokZH8sDu3 DljsVkVjnKcZDCSv1KNoFnHlTdNywS397KWcFCe7a/fLPDhaaUhMElApOHFxHUnfHxEr QdEoXnAk8sJ3RMqW61xlWvX44o41xisKUUW4G5YpaWO3V+DOmXjrO1lpPKtN77mugxzc /DNk3gPrGCoXeXlGWh5tSo9BwGib3zC/XdweqQqv4e0jl5O1yFWJBZPIyIrWwwLCOU6n NpnA== 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; bh=t5ZXPohegRsBDzKYcCxu+5kCCIl+B1D8BkaNxL0J9FM=; b=KLwZaVIFIUakdY8uWLusBzHL3E72DfSHs02ykdkW5i/pJFLOxrPspEnNeM2jL1ui8c GAia5NQOyz8sZorjX94NGev367SWtL2zcoCaj30nKpAC7jGOvkN75rBtjpXoTdR8yaFa LPFUlPV4TP0iGe9YbcLJdq5QwWVBzWpg26ZZcIM5hiJ/pvcDwqNm2co39tyTi0H1j52W FEmfjj0/mOz181GBvRf9jgQmi+XrmmNqzQiXGDp147GmsQ7O7qHvBbB3CklL+coSlN0P oDFlmXAcIYKVPGdIQR6XcnFX8Gg4qRL6vHbeheKzIePzQfy5wybTd6fWBTWnk3exx5VQ Zxww== X-Gm-Message-State: APzg51DoJE3JguuMPlFJkHleZzddMB78ut2NvrZHvRv41cBt0ZQ2HCqI XPd4zFHeKUCOXK3kjeEG3u/XAw== X-Google-Smtp-Source: ANB0VdZuF2Z7oZcRpfLKWARsOTyA5nGz1TCHpIWSS0Z2P3l2YaVafaLKCfGWu96XREgGQhau7HcxfQ== X-Received: by 2002:a1c:c147:: with SMTP id r68-v6mr4167561wmf.161.1535705537430; Fri, 31 Aug 2018 01:52:17 -0700 (PDT) Received: from localhost.localdomain (81-67-76-113.rev.numericable.fr. [81.67.76.113]) by smtp.gmail.com with ESMTPSA id v6-v6sm8920822wro.66.2018.08.31.01.52.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 01:52:16 -0700 (PDT) From: Maxime Jourdan To: Kevin Hilman , Rob Herring Subject: [PATCH 1/4] dt-bindings: media: add Amlogic Video Decoder Bindings Date: Fri, 31 Aug 2018 10:52:02 +0200 Message-Id: <20180831085205.14760-2-mjourdan@baylibre.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180831085205.14760-1-mjourdan@baylibre.com> References: <20180831085205.14760-1-mjourdan@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180831_015223_360217_9E8D04DA X-CRM114-Status: GOOD ( 11.63 ) 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: Maxime Jourdan , devicetree@vger.kernel.org, Neil Armstrong , Martin Blumenstingl , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Verkuil , linux-amlogic@lists.infradead.org, Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 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 --- .../bindings/media/amlogic,vdec.txt | 63 +++++++++++++++++++ 1 file changed, 63 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..c6450f2e7f28 --- /dev/null +++ b/Documentation/devicetree/bindings/media/amlogic,vdec.txt @@ -0,0 +1,63 @@ +Amlogic Video Decoder +================================ + +The VDEC IP is composed 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, H.263, H.264. +- VDEC_2 is used as a helper for corner cases like H.264 4K on older SoCs. +It is not handled by this driver. +- VDEC_HCODEC is the H.264 encoding block. It is not handled by this driver. +- VDEC_HEVC can decode HEVC and VP9. + +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 vdec and esparser IRQs. +- 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 = , + ; + + 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"; +};