Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp831436imm; Fri, 28 Sep 2018 07:33:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV61/Ww7gF1i+jqdPiamRvmtfFV9M0m8WgliRjFNapz52tL2NSsrXtDHRLHV03tnJJpXMBlSq X-Received: by 2002:a62:41d6:: with SMTP id g83-v6mr17349935pfd.44.1538145208536; Fri, 28 Sep 2018 07:33:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538145208; cv=none; d=google.com; s=arc-20160816; b=sInUtDzWOB8P+nYKakWJMOQcquOL2c/vCe8InTT/5qbtNSj+8/S5KqNvcCwBOHeUQq JaGnoDIP68XW2xiBAT7sYeXX3e5PtVTxU6pVaLOoJ2MHNKuzKIkkHwg9QxRHGjhYX+q+ nXQRqSHlaB4Ogv6IKp/Al83r2JlYz2MBJQ4KllFf4nUsyZEdRfFv9z8AS5KW291YOvpi AbGCxjd2uVTrCVBWxU7AzPKBwyWnAoaRclfrs3MOZ71MHZ7tm/t7MGnmZG17D0hnpEDk sBHl0qwhjpm6KmGQ7ystLv+lzqtfa4MfCk6XmGc01RsoiTSzcBsfecECRdSD8BCU4Y3n e6FA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4tDKLPmuxUhe6l7qNGxjdkZP+rVlFN1lBKcvyX+xKF4=; b=J5m9Oy6aaqbrT2ic59phsAxSDk9taquTj8XsQR5+eZMmbQ8SlXkXAK3Rp82EvxSRf9 YZ/lWzTcwOpmwLW7MphXw7AS7OdDIA1nh97XM5ReBamW073yCIpeUjm4JtleASWxEE71 GIWQGKRHJhooOdgoGkYZ3cPwc5luw2lE2D9BjgPu95upZ6sR75/o3Q5RT0xfPupd005Z tOtcLDtBdZ0tAWE0vTdRi1ERgAUCwE3eAHedKuAEguT0RAuV2y8r6wUJNtnT6kb892Cy rfFH0NSOnqtWcWqSuazxZbzY1+vm2o0tkb+J2+EWfRFpmbpCktkh1PRg3jk9HMPh6fHR EDRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="W/deg7ad"; 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 m125-v6si5021475pgm.541.2018.09.28.07.33.12; Fri, 28 Sep 2018 07:33:28 -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="W/deg7ad"; 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 S1729405AbeI1U4Z (ORCPT + 99 others); Fri, 28 Sep 2018 16:56:25 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42193 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728889AbeI1U4Z (ORCPT ); Fri, 28 Sep 2018 16:56:25 -0400 Received: by mail-wr1-f67.google.com with SMTP id b11-v6so6610756wru.9 for ; Fri, 28 Sep 2018 07:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4tDKLPmuxUhe6l7qNGxjdkZP+rVlFN1lBKcvyX+xKF4=; b=W/deg7adVipgFSEx2/Ez+cQMfUcY1EviszjIjTx+3/fVS+OB1jBJAWLFsbWE/aTbIG SCE7an9tYnOQojlTHtfmF0mz2ijgb1JbGpbY+zFOMwlRH9gOYLdhA4TFAH5oAm5anTtB FbJJRF+DSECKgKRXn08iUAYKgksOhbFBs1diUz/AOfsp1fiSHECTy23Lfur6rzZIadH9 iUyGF6Mvyg69jRt0WutmIOvcRebrNIE1X+mJzIqKXOFCS8u3GXQwpOYodzWfYv4xW2bJ wMXr8Wd7iBkRzdiq0AIbJgMS3BNsMe+chZc+wREhm6qpT07xcvdhqxbphabf83YtPDeF +nyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=4tDKLPmuxUhe6l7qNGxjdkZP+rVlFN1lBKcvyX+xKF4=; b=k2JHaR5Qm8OFlVyX35D2ahEoHmy78tIe1Q6aRSWFN/VvqedW9D2q+Ehk3H+meXtxd0 P4DhlBpF7z7UDy+aYf5BKYs9/zVwU2XCcz6V7y1LS/QNpau/0h7U/6PxVpDNdNnHn9bK brmpYMkcLEZKL9Dfz0g3ZOGTxZzTTlGgYlhxGT5cHgiHgEoyNudNFi6PChsOZDPCxJPS D8pyR1hU9xzzfhXvjwwGziY0vqTHHVt1ovMMGMv8+DSO17dQFpp9GOxChzNLzFelqm4I 1NvBEeZ27F+FUfe4lIrd0wR3qw4T+5kPVDopIZ3IGOnPYCRwWKDe2WpPxibteM+Jz5mP waDw== X-Gm-Message-State: ABuFfoiVUb9kbRbV6gyrk88JovNO2Am0VDq4gjoull3Re6ZFFLmTYqAu BcZJSp1clQSLCTyJL5PjNBy8htKjCgZxXz5eMo6Jmg== X-Received: by 2002:adf:fdca:: with SMTP id i10-v6mr13384176wrs.276.1538145140437; Fri, 28 Sep 2018 07:32:20 -0700 (PDT) MIME-Version: 1.0 References: <20180928142816.4311-1-mjourdan@baylibre.com> <20180928142816.4311-2-mjourdan@baylibre.com> In-Reply-To: <20180928142816.4311-2-mjourdan@baylibre.com> From: Maxime Jourdan Date: Fri, 28 Sep 2018 16:32:09 +0200 Message-ID: Subject: Re: [PATCH v3 1/3] dt-bindings: media: add Amlogic Video Decoder Bindings To: Mauro Carvalho Chehab Cc: 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Errata: I forgot the following tag: Reviewed-by: Rob Herring (The patch is unchanged from v2) Le ven. 28 sept. 2018 =C3=A0 16:29, Maxime Jourdan = a =C3=A9crit : > > 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/D= ocumentation/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 > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > + > +The video decoding IP lies within the DOS memory region, > +except for the hardware bitstream parser that makes use of an undocument= ed > +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 =3D "amlogic,gxbb-vdec"; > + reg =3D <0x0 0xc8820000 0x0 0x10000>, > + <0x0 0xc110a580 0x0 0xe4>; > + reg-names =3D "dos", "esparser"; > + > + interrupts =3D , > + ; > + interrupt-names =3D "vdec", "esparser"; > + > + amlogic,ao-sysctrl =3D <&sysctrl_AO>; > + amlogic,canvas =3D <&canvas>; > + > + clocks =3D <&clkc CLKID_DOS_PARSER>, > + <&clkc CLKID_DOS>, > + <&clkc CLKID_VDEC_1>, > + <&clkc CLKID_VDEC_HEVC>; > + clock-names =3D "dos_parser", "dos", "vdec_1", "vdec_hevc"; > + > + resets =3D <&reset RESET_PARSER>; > + reset-names =3D "esparser"; > +}; > -- > 2.19.0 >