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: 10583399 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 6C3DA17DB for ; Fri, 31 Aug 2018 08:53:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A5482B06F for ; Fri, 31 Aug 2018 08:53:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E2E22B090; Fri, 31 Aug 2018 08:53: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 909012B06F for ; Fri, 31 Aug 2018 08:53:27 +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=XYKKCKUabsjTpiqlAl7Lo5fRhjxIDnFFWPAXa/croEE=; b=oMew2YbiAi89AaOB3xL/YDf2dh 7azJAUik3UfO6/w1BumxuiDMABwQk3cWVkKxfzzh0NUmAe9NNqij+pYAc8li1Ryt8kMkNkkUhIoNF eVGs8syF9x1mg9RstlaoG43/Mm2gDBzfWVXZstERJcozI4mBnnCwm0GswL6R6+HrNHQsoMSiFydFT S6GprGegMBVYWJVqcRaUdLdRap0Gr/7jTMsHL24MyvM6PeBBS1sW1axINcSq7MeJ6et5mqVH1bOGY lx4UgDx6OclwcAxY618CqSIUaxqdUSYJ5vrffFu3tmLSeKdW4pLKQ1j/nyzpBIiVdeQOX3hm+IKmx vnJcA1Pw==; 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 1fvfB9-0006dC-D1; Fri, 31 Aug 2018 08:53:19 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvfAF-0006F2-9g for linux-arm-kernel@lists.infradead.org; Fri, 31 Aug 2018 08:52:27 +0000 Received: by mail-wm0-x241.google.com with SMTP id q8-v6so4562238wmq.4 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=AnpJfCSGemz7N1+0UizOHZ4/T7hdKSzFhyZCAivFg/wpw+unUwrLbj8liOu6opUUzw BFJv1nQ0okWvDTQ81OueBTpYvehd+gMPgXHy3IBXwJqw+9As8kRS8mwy2AasEPT4n6rU 06gu8Vud2eZr2wT4MjVN9gkeKfMlys5OLsip5BfjsQ93JVKB1MmjZJ7S6i+9GcnreEu7 4koJ/225UrDfJmhqZagC1uXWHJg2fz/3kKUDi2gUP8KEr4iAA91pcVUz7ZfzR5ehj5CO JGRPDln9GUu2iuEsrSy6TK2FsNiGD5vrbkJNZYXp30ppSaKMdWxgHf1Vs6bEoaUlqph/ /cVg== X-Gm-Message-State: APzg51BUC8VJqX0HH98MtY0s6lV1nMexeB/RMkhyVPvDNCCgh7hvWVlA btD+ivEBSlmdd9l/jYzW8gBQzg== 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_397852_26C7F366 X-CRM114-Status: GOOD ( 13.99 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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"; +};