From patchwork Fri Sep 28 14:28:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Jourdan X-Patchwork-Id: 10620093 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 7E2A515A7 for ; Fri, 28 Sep 2018 14:41:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B4D92B894 for ; Fri, 28 Sep 2018 14:41:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BD822B8DA; Fri, 28 Sep 2018 14:41:48 +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 4F4472B894 for ; Fri, 28 Sep 2018 14:41:47 +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=pCVLQU48fKlWhxPy+FhshcebL0aucIXcdKSF/1qMxAY=; b=Nxil1+Bj0d+S0w iEFGBoXfWbmLTAkAzDc5bilPomIWjSIOnuStPwV2JTbHcDUcLtgbcCuIBikBHvunXfkqXdDdqyXG1 +vphelBN7y65dLoAYAvks6hUWd3uEGt3w+MdBdNxo5xtN0nbSXmqZuP87KtukCn8vG9MsBmvTgWqi 9iWz7Nn/21Cvrvyr9ra4YJbyP4LExct++4hR8FKsKahQ3FG3/RbNboLIxr+XP3ap1F7R6LjDMV4X0 erbGQU8JEAmoCJerCIDgY5xpWuBgX08/0WWP6XeUvsowWSFbs7w1TCBlPfswU1uxD8R9yM9SkmXq4 3HeW0zCWblQe/yD0NuVA==; 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 1g5txU-0001ys-Kz; Fri, 28 Sep 2018 14:41:32 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g5tvO-00087o-Si for linux-arm-kernel@bombadil.infradead.org; Fri, 28 Sep 2018 14:39:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=4jB5yG7vnPoz0naWS+wWp8I2sA55oi3H10WcvhiLckU=; b=qcop4gDNZ9SaR/l/5rpjhEXoG5 SP3nJl57CjBcttW0nKsMgJ3RC1A4eGtzZGkJskX96euzIF9rnDc2s4xgWDwINNTl/x584+/EewcCj LfqvEtNr74lIoTjfKeh8xEPh15FMXzRxFs2vT5ve598WIV1aQA/SI8CHYxHj428yGOQRyQrTY7grR u6SX/kLtYnnRKOUzArrr1tFONyX8B6QHEtjVyiVpqHr1e7r+qNDxk43HeUBcsXzxj1xh4hL1eRRWQ KXX55ZLTv48KQ2SLHENmy4FNNMSPld4yzzlbksTvt9i2w4sS8p9S9qcBD2HtybzS2jSChn/XJxi4f idwpc1fA==; Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g5tm2-0008S6-8c for linux-arm-kernel@lists.infradead.org; Fri, 28 Sep 2018 14:29:43 +0000 Received: by mail-wm1-x343.google.com with SMTP id q8-v6so2430366wmq.4 for ; Fri, 28 Sep 2018 07:29:29 -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=4jB5yG7vnPoz0naWS+wWp8I2sA55oi3H10WcvhiLckU=; b=0puoQ/fnFauHBVHBpyTWxfZhCBr1quSY1OFkY66NlCv3Uy00uORLQzAju7otlGlov+ 6XCvr9xAXqRK8h87qdRVt1AN4Cv+NPuvJUi8fiHPZWYCE8Cx3v4uwN49X0KJMo3R9Skt hUn/dX4+LzlIBD7wEvxI6o64sBNFR2iEMnfpU4FIzUQbanKF2PHkOoqNeCXJf8C369NA sro18C448WuyBziXfdIPLkWRyXSOC1pjiouRR86pp8kk4mdoT3E4TqUKoa5t1lDEBLiz 80RvBqB6EDaUk/K4/xaXSANk3t5ts7KAMi76pe1NsU1654rp5KbDUH74q4C+NvShORaI H1Ow== 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=4jB5yG7vnPoz0naWS+wWp8I2sA55oi3H10WcvhiLckU=; b=ZJpdBW22Kac49r/YsLO8Gpmuws1riJ58KudzYtIFxRjat4Z5n5Mic9SCwKQ4U4zjm/ Tmr2/wUm3cnLQztsQFJ3ogA8j0hg1uS8EqVLffy7lEaIZEjuSE7lPvGHbGsjww77owvK 80nMoVfRN6d4WYmdNa0SrC31N4ZGDkUzFUbZ3bvTDWYkCCQ1xxBR1duQZ1hAybONxKBg GA4pB9So5/rwij1NatuwrJOOFDP+M8BgpeClf6J16tBaFLg1MpguOdn4sbWdI75vZAl4 C0CSuMD8g5y1JT5abVKKCZdQp6G2bhqz4eOXj8oT2IU6zV+MFquLyX2Ks9HLiNWwJPDY iydA== X-Gm-Message-State: ABuFfoh+shYjJQtC0hrft1wHz40FNmHXjRlUAzToPO+0d8byQm35IOu1 xczjybqAR9NIxrxVwTL2L/i2Kg== X-Google-Smtp-Source: ACcGV63PAR/+uIGuaE7diogwFOvEzVb8KGXTXIIyyTd2vZKb2s82KpDSZNkxODj2774QiipaqDaVig== X-Received: by 2002:a1c:ce0b:: with SMTP id e11-v6mr1967821wmg.47.1538144968709; Fri, 28 Sep 2018 07:29:28 -0700 (PDT) Received: from localhost.localdomain (ip-123.net-89-3-157.rev.numericable.fr. [89.3.157.123]) by smtp.gmail.com with ESMTPSA id w72-v6sm6827477wrc.52.2018.09.28.07.29.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Sep 2018 07:29:27 -0700 (PDT) From: Maxime Jourdan To: Mauro Carvalho Chehab Subject: [PATCH v3 1/3] dt-bindings: media: add Amlogic Video Decoder Bindings Date: Fri, 28 Sep 2018 16:28:14 +0200 Message-Id: <20180928142816.4311-2-mjourdan@baylibre.com> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180928142816.4311-1-mjourdan@baylibre.com> References: <20180928142816.4311-1-mjourdan@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180928_152942_328682_EDCC96CB X-CRM114-Status: GOOD ( 16.48 ) 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 , 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-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 | 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"; +};