From patchwork Tue Sep 11 15:09:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Jourdan X-Patchwork-Id: 10595821 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 A428B13B8 for ; Tue, 11 Sep 2018 15:12:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91C7D297B4 for ; Tue, 11 Sep 2018 15:12:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 850AC297C2; Tue, 11 Sep 2018 15:12:22 +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 1483E297B4 for ; Tue, 11 Sep 2018 15:12:21 +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=dLwpojPTL4L+PDz1g8EFhqPfTvIf4uo1djHmNZ51kmA=; b=nHNKMYpJjUhb8Vh/gz5iFlG6Eo H7wjcUZZNRmPK4PufOKdRGvB0s6soeuOSqz2eA+viiS1z6WhzThAWi9/iS+Quux5VFwqEefaNQNEq L5Qxv1Lg/AN6oJ2s03KTv8fkhQCt5w7VjEbxHK8XLIJXazxhoNezfHPnaEEsbwLDrcqKcrU1HNDDc ZTP2r7JVbJhDhDzCdHAa0maEg6G5ZMiT/pQYL1yF7nhCTwj6Lmz7ljOTO8FFr5Qw46NgFb/5pSpRe BQGSbjRpyST+h/d3MYUy279eYZRBlHNxS3gPBvghJ+jsAuiVeX238yHcZknndmZ+QItzWiF6joGFN 2GBi8cIg==; 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 1fzkKp-0005Vd-H5; Tue, 11 Sep 2018 15:12:11 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fzkIk-00037R-BN for linux-arm-kernel@lists.infradead.org; Tue, 11 Sep 2018 15:10:18 +0000 Received: by mail-wm0-x243.google.com with SMTP id t25-v6so1378090wmi.3 for ; Tue, 11 Sep 2018 08:09:51 -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=RQsmsBThB2HiU5fFcpahoK7bzxzFBRhYwA17fSoM3ek=; b=gUf27dsXjAYLpxM1GZxVYU3eUPCPi2/IZH79WgCwxr9dDwOzZgDB8CSNxDBSkDwVOB aMD4+EdBkQE15DW2e8XVOBm/i+TLDMmKLshmWoYiBF9N/hzcPRnYWcfhdDbe77ZpuYni MXp99gh82WxqGz5yo9bZpXTOuAwkV98ISO+BcdhsmPOlDB1ige68JyQacJwDJWVwa34l Q3n47jgx5b1tCnKjZ65DfPNxWEe4+z6TXs5xOs8CVACc/FyqBn90zTXHzUPfdG4kp0Iv RTxHwRsaIvHDWMY4KfWoRRqx3HiGLmEjHwWrAc0kGe/l2sRjZ+dV8pEE4HjgL3HDulSR YEVA== 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=RQsmsBThB2HiU5fFcpahoK7bzxzFBRhYwA17fSoM3ek=; b=XfsKCMEVwzNUCazZTVJsLtjZ7hs4CLj4zcASG9ibCxNxhaXPkcuSEPoo0XLzC5xIKP a3+NzgcbUcN2VX/a+UEuqGQANVFZCg+4HHaeO0T4PhrD4pkZvf9rKQqZJIFk6zUSLx37 1Q+OHPCRE59iYDuKWa+mAc/aP4pXXywryuDLa+6DJTocYFgw0GJ3XF8gT7rsR6vauPPX lfUDfHfIwQx0diW+72gt0g2jyj95nuYxyL5Kc3f7Lc3YLybCLtwYToLqDvhQFN8jiikN yePrE4sqjf2HVdXCStDkWmCaX/kYSuvnVxSJ/2YTzhChibs9MXejj3JOWqf27/S2LO4g 6GGw== X-Gm-Message-State: APzg51Bosx3djFt3+t8Ykxb5Dq5NGfGsjWg4wB9HdPAG4gInJRYC45Rl 9d137npVpeL8f4ttMCH/DFdMIw== X-Google-Smtp-Source: ANB0VdYC7MgsxMraS7WhRVD2IRn7/34YNhwNBTrWFN6gQZjmqVyM14HM4jmRDUqezyCpLkSyaAgMEw== X-Received: by 2002:a1c:7fc6:: with SMTP id a189-v6mr1559911wmd.42.1536678590563; Tue, 11 Sep 2018 08:09:50 -0700 (PDT) Received: from localhost.localdomain (81-67-76-113.rev.numericable.fr. [81.67.76.113]) by smtp.gmail.com with ESMTPSA id x65-v6sm618625wmg.39.2018.09.11.08.09.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Sep 2018 08:09:49 -0700 (PDT) From: Maxime Jourdan To: Mauro Carvalho Chehab Subject: [PATCH v2 1/3] dt-bindings: media: add Amlogic Video Decoder Bindings Date: Tue, 11 Sep 2018 17:09:36 +0200 Message-Id: <20180911150938.3844-2-mjourdan@baylibre.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180911150938.3844-1-mjourdan@baylibre.com> References: <20180911150938.3844-1-mjourdan@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180911_081002_435942_B9C5DDB3 X-CRM114-Status: GOOD ( 12.75 ) 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 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 Reviewed-by: Rob Herring --- .../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"; +};