Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp354667ybi; Fri, 31 May 2019 02:33:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxKG86nK/4Wvc91038q4Y8HSZcPkd5OvYGpN3F5r2jgdMWhEJqBXtnPqylx+v6FM1NyX5wq X-Received: by 2002:a17:902:24c:: with SMTP id 70mr8082220plc.2.1559295205121; Fri, 31 May 2019 02:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559295205; cv=none; d=google.com; s=arc-20160816; b=la2WH0rnt3h8WptASf4tTzXAV4zGK4SUpLP0rcbfTwed2ucv3uJQcOZUWWzdb1xclq 1GWM/yDypea4e2OmuyIx8TUdVY62JkgAW15PNnLYNRBqzq5hQDrAbjqUh95HK2C7rRGX zFMxRt26NZSktFwpht4woDdgC/FFdE3nSu2YL6JAkxl62mtRZaMnS6sZRqg0pwm6co1N bILobTY/Ya8l2Rp3WaOp2Sk9Oq0JWw9IjZ4s6C5E7lQtiU1+K6LoGfgnWzkkSUke0CL5 +HM9lPLX71a172wRW4YYnBUbB03HnIS0v81zDuHFegVatjpElJ07igX77K7XjX0o3Z6d BOww== 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=rvJtQg+661w+5Ir5BueWWyrmozrX3JR+SPJBE4ojBNo=; b=I5LEkXObBV5CGSng0k/TAjE8znK8PO0FNtmacnn5IBd64NCYW6jabaLCBR48xmbifR Xtp/QqYMriTex/bNZkJPtyFx/Q7t3j3rj2vWAypJHyV+a277oCU3gZqNrmYliX/MQFKm mXqFolI0xtxg3Az3HbY5XZWuXB6cFmxnvocV+q5YuZM6SvnqOYu2HC5/MgC6A+yQjYfj GtMc1pfZspajxPmxOjZaHpUXvkIZrLmaseX4C6jnW/S8V+rQP3FQ8x7n8BWjsRvtP+J0 J3lFsmFcG2ukcOd38tfV63rlZNrxnG79s55d+dysrF/Ois2sRYhW//POdEeu+LthJF0u icyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=Hztvbtdd; 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 f17si5480955pjq.18.2019.05.31.02.33.07; Fri, 31 May 2019 02:33:25 -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=Hztvbtdd; 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 S1727207AbfEaJbn (ORCPT + 99 others); Fri, 31 May 2019 05:31:43 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38726 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727034AbfEaJbd (ORCPT ); Fri, 31 May 2019 05:31:33 -0400 Received: by mail-wr1-f66.google.com with SMTP id d18so6031082wrs.5 for ; Fri, 31 May 2019 02:31:32 -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=rvJtQg+661w+5Ir5BueWWyrmozrX3JR+SPJBE4ojBNo=; b=HztvbtddFm0o/wzj4gVgfBz9gDX87DCVUe5fNi3WlmKcceoMGOS59ILOIA+oppmT9i Hx+8hKK37vNOxtIAd4nhhUiZeri7/gHgLHnOjfBVLXlAhHALWhroAKyCC2E5THBWPPya QmhZzbtFpjhLZ1KwOfY/NrXW8b9fiVsyeBQHj5+z45dT/IJNHTulASsqKa4BW00ZgeAn Z36w62rK3XRlBQNyvw3nDQhpnD9ohlyfVivFd2UlsbMi24/1gL6ndr6T3SaCyT6VRmwJ vevMu25h1j1gYvqOSFLkswxt8ypnEot57oB3gyZZXeYsScqIDLWMjkmSt5+e2Z5ZGT8K r0EQ== 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=rvJtQg+661w+5Ir5BueWWyrmozrX3JR+SPJBE4ojBNo=; b=DxqHoOyVVfQndHf/7EhCiBTqOpmBOdwLjiYMiyD822To2GhDB0FhoCGRAbkPZ6cocV gFLr9iIw69c3csJmA4IWZ5sV1+dCARiH+EYOpXi8n5cBHlwgDaVPsX8vTb+9XeZCtb7n oCToZ5ibo4sl5DSZgxYFfDtgw5Xe25ALV8u79LUrZil49xEUheB74GDzu7P7G8wwJmZz VmENtskS/fLdRzduCxj5FhHLBVFxOrJ2MMGIvboWNwP3TP7ZTk+WhH8AEoeWKRaK4VYo P4ceX8NoqTsGU+cfptaxLUVWPeaBB6gqxGl6aBhagRL/wxj61FWDhqD+O/6pBjYTn3vC vo0w== X-Gm-Message-State: APjAAAXcME/XRonGQC+/Q/CnfZKOwcGN1RdGJivpD6deFOSWlpUDmcql oEfRgLPjqHEQjle1Il9LKjLNww== X-Received: by 2002:adf:e584:: with SMTP id l4mr5753247wrm.54.1559295091602; Fri, 31 May 2019 02:31:31 -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 b136sm7187023wme.30.2019.05.31.02.31.30 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 31 May 2019 02:31:31 -0700 (PDT) From: Maxime Jourdan To: Mauro Carvalho Chehab , Hans Verkuil Cc: Maxime Jourdan , Kevin Hilman , Jerome Brunet , Neil Armstrong , Martin Blumenstingl , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring Subject: [PATCH v7 1/4] dt-bindings: media: add Amlogic Video Decoder Bindings Date: Fri, 31 May 2019 11:31:23 +0200 Message-Id: <20190531093126.26956-2-mjourdan@baylibre.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190531093126.26956-1-mjourdan@baylibre.com> References: <20190531093126.26956-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 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"; +}; -- 2.21.0