From patchwork Mon Apr 1 13:38:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Jourdan X-Patchwork-Id: 10879971 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 279251669 for ; Mon, 1 Apr 2019 13:39:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0910827E71 for ; Mon, 1 Apr 2019 13:39:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC89327FAC; Mon, 1 Apr 2019 13:39:33 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 89BF527E71 for ; Mon, 1 Apr 2019 13:39:33 +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=yOyl7nIueBsZgyHRToyzPgMOhh1txgFSPfv+RpdBA/s=; b=JFKNOzDMUcVMfz cIW8BMHPeXPZULqVGWllSWsQU3NSnklcUtx4a8W3ClzCS4dGc08/lWiOyo3sD31BIrKbMT5ncXJgf 1kIdhNiWCc4tOLzjUMmZO4KW4l2TNatcavaNXQA0ZPsknM+qk3D2E2tgXMjstesfcrb+1Pw1iI9kZ e2dVRdzMp1OeUjrs+rKpPCX9MyyZ/d7/gmua8VjwwTsfGCfmDRWaDXedHyUxV2NfhdzU6RfYG1Geh A7ga9Uj1B0GWPw91Ne35CatTcWtgV84pMuaElMoa3KWytdW2EmyPv+nF9ViF6MERRN5BGnQI2PIxO ohmLX10kUa7yl45GQpCA==; 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 1hAx9u-0004en-7e; Mon, 01 Apr 2019 13:39:30 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hAx9R-0003rq-PB for linux-arm-kernel@lists.infradead.org; Mon, 01 Apr 2019 13:39:05 +0000 Received: by mail-wm1-x341.google.com with SMTP id z11so10553899wmi.0 for ; Mon, 01 Apr 2019 06:39:01 -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=3Z3XkroftFEOZ+oKRERn/ytHnCEs/zdgDA4cYGSY7DY=; b=eIPaW3AhGstj48p5E8VufgaCSExLZ2GXmlZZvTXR9ULIGxQVvxPHxtgqmwGCrIeAq+ RV8QlRvJlm8EXyOWBCB+onpIV1i1xmODEckDYcEXHHtMLugPoITawuE5FBw3xyxjsIcg 6Swx4aOUBS0DSkdWbebbA0cS+YHx9bcNONAhVge5fh3U35mU9h93cJJQaIoc12rkAF+K Bbouln78t4NI9220mnFwfJwGgoWuBukMcOImiK38TVP7cakOiLUkMH9mg1y6efmDQe7B UAjgKW/PkDK9w281bm969lijO0M64K5Nk8YHr7YpKnfVbvOuJ+vRj8XEHssW4LFiDY6E J7JQ== 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=3Z3XkroftFEOZ+oKRERn/ytHnCEs/zdgDA4cYGSY7DY=; b=XeiYI/QFqbCALY7COfNxAShszjku5X52WwMhvzsxuV/06WS6HUo7anjYuM+dndU1df SG3bBgODdCA5uzR7tVF0F9Es0XH33p3espnbUztRTUQ2YDh6S6bwG3nCudo6bs37ctpF MXgwda6KySEjzt9ddqIcYw23eKIiDXcbPlcSNPiFQfwrv3iki0MP82IVrsG8030ISjYH 2EJ2uEpN+wdYtXpClncBW76jB8fTfOEfIcHzQjKGxtMmYTpukaS++6uTCgp/0uvdV2Yo zxNxre0Vpn5cGuWy/2L+Po0GjTVK4lzk69b05LRqfqJps6Q2nEbDUIMUOfhlCwtMHYIr jGpg== X-Gm-Message-State: APjAAAUNnX/5sgbbq08bnDjC3DLdll6ULRZSPOEn8y3I2YgulERhsiFq bW+Tc+wioJ4K0XZSxy3q2kBZuQ== X-Google-Smtp-Source: APXvYqyeHEv0rTN2wKOsMuZTuRwwa8N7lhGDMCngE1lzgn6On26UIBktvwJmkCLQjYS7ly3qUC04dA== X-Received: by 2002:a1c:f014:: with SMTP id a20mr12278697wmb.122.1554125940162; Mon, 01 Apr 2019 06:39:00 -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 v184sm25205996wma.6.2019.04.01.06.38.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Apr 2019 06:38:59 -0700 (PDT) From: Maxime Jourdan To: Mauro Carvalho Chehab Subject: [PATCH v5 1/4] dt-bindings: media: add Amlogic Video Decoder Bindings Date: Mon, 1 Apr 2019 15:38:42 +0200 Message-Id: <20190401133845.4171-2-mjourdan@baylibre.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190401133845.4171-1-mjourdan@baylibre.com> References: <20190401133845.4171-1-mjourdan@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190401_063901_835240_ADBA039B X-CRM114-Status: GOOD ( 12.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, Hans Verkuil , linux-amlogic@lists.infradead.org, linux-media@vger.kernel.org, Rob Herring , 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. Reviewed-by: Rob Herring 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"; +};