Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp829082imm; Fri, 28 Sep 2018 07:31:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV63I3rvio+fnQcWjfvvl7hcCn2fH6Hz1C4SOsuDM46RL5shWLYHF5K66ENPdgHjKDYCqUEEl X-Received: by 2002:a17:902:46a4:: with SMTP id p33-v6mr16788640pld.205.1538145076340; Fri, 28 Sep 2018 07:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538145076; cv=none; d=google.com; s=arc-20160816; b=PQ4OOC1XRNNp/uswcb5XPY4kIS63rFDeVE5cPlBAjq9p3AfVEKPQ+6LW2/1WCVbGLL ufVCiLAI6ImSYkic5eCF07+fQrxvJdtz9qULRPvtzN7sRvRgOePUxwU0ih6YGDSlZPy4 t3In4Lkx3D+CCns2YwIXtadjrT7tFf2bXZx2kU69AP6GzysE0pUbxEiTwQ4rQyhYKfrP MsiX4Sus1yxWPGYclGxW7UAhvcv9SlKOjUvqPnINJVauG9C5ZsN9Q7sl3N+tJaJed/SD W9Q3csP4VLifdpWG2uDJSbVduEnnynKE1IAenLhWX65bm0yfk4m8veXyrWRomViTcy9L tPlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4jB5yG7vnPoz0naWS+wWp8I2sA55oi3H10WcvhiLckU=; b=qDSFBfEHXbUHlE3RTZDaZrz4AtresPy+r5YOkmSTAZU/8JRpRNKDF/WHU2Q60oOL2J irDZYtXXbth/zOpvzEy7mWlJYswQCOwoehCr13Ea5tI0ZXxCdBRtnwfj/NoKYEzrCLZM WTxwqTrD2vJoF0MrQwb3hRs1hhRxFUEoiLyTiH6afmSiA0FPRLuBV+iEKXHEHzwW7UTQ 8Jw84nabgA3bK7TBWJQpkQkDYznE4LOOw36fXQNuvxv6cb8ytb0Edn9tuOkBlh4xgsuI 2vYSUyrxjcpDtRK3oQwIbOwy40p6N49/rVxS64gdRDxnJgxZFQccYTNCZT+t2RwH1nsG hjRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="0puoQ/fn"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q23-v6si4799683pfh.353.2018.09.28.07.31.00; Fri, 28 Sep 2018 07:31:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="0puoQ/fn"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729201AbeI1Uxd (ORCPT + 99 others); Fri, 28 Sep 2018 16:53:33 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:35812 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728062AbeI1Uxd (ORCPT ); Fri, 28 Sep 2018 16:53:33 -0400 Received: by mail-wm1-f65.google.com with SMTP id o18-v6so2451531wmc.0 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=Os9vZ1uD5JuTdu8K7b8iFaK3nC7CzpaIQvuTF9NFtBiWg8XzKu1hmEEj6CdFY5z64q s9sMyDYkuNJdk14cByjr6iA6MJjeSwQUoPuqRmtCxFbUbJBqX1DWFSPxSo+Sl3UcG/Xt 9mCCYKUudNocnnW55FddvUiII5wrsu8RWIK9I0t1XhKwx8PnTxYJ23otWdIH5VmDh0hE dGLNGKnuah1FPNdxaM5WKx/L/G9A22x/s6dLDjIFeLEpS+2WQWka+f5TUi5+IKgdUNNU ilm2aeKFi/XfiZv5BR3sH3b//WRlEP/WO7peYH/SQQaNLt+wpupKoBFCZq+ZIrpxOgOc u2aA== X-Gm-Message-State: ABuFfogKBA8lYnWTitI1fkvFX8qMoSS9UdFQEpk/+Pek4U09AjHXEmCG ckgbmu5UFFXvE3COlAc6RQ+r6Q== 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 Cc: Maxime Jourdan , Rob Herring , Hans Verkuil , Kevin Hilman , Jerome Brunet , Neil Armstrong , Martin Blumenstingl , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org 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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"; +}; -- 2.19.0