From patchwork Thu Jun 15 16:31:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 105662 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp888221qgd; Thu, 15 Jun 2017 09:33:21 -0700 (PDT) X-Received: by 10.84.139.67 with SMTP id 61mr7111491plq.19.1497544400925; Thu, 15 Jun 2017 09:33:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497544400; cv=none; d=google.com; s=arc-20160816; b=u3MmLYeoOyuk5B7q281ZwL0MGHPUvXWHk5Pu9JronTIB1K54zpc6Cp/vr0jMcDtK3Y 4XMZr7zTJ+ECEKtXrb4QeEKu9KUPHEYafi55hzs5a1CcWVmSQPZxkIpKoGi1C10xR5ZW rQ+P8j8UVCAzDeU5P0yccc5BQ+38dBdGMqYhfeVGg7apm1FZxMJfE4TKvDrb5wxMoSo4 8+mN3hK80Y4/pcytVoKjIj2jULxX7DB4gC4uyzdwZoNZu/xNjGUAYfpQGUjZkCvT+O8V EHsQAPA2pBWfGAOYolAmAOyiidt2rseEUeus4qsJtOhn0nyxhytB0Bn7SmeZGhw4jezz Nx6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=SC+VcZH30Vt4uJHT1ED2ucbLWhilIXp0BLiV699kJ44=; b=XsCv6qPk1WGHNEYHXQ2hFT2LjBN4xtxW2T/ScERgR0L1cHkHgo2xx6YFWZDgipNqw3 xoczInxB0yIW0mQpWjS+dMpxPnyJeG4m3Ou1eM/CzfnZLyL+HPMWPMlknlw2ng1uCflU UZ6zlPOZgtN8DKjD4i7QwBIwprYRMexeyLhcuY79faqw0AkmJPoVsD8VnfhVnQmEarmI dOhbUlVyV7JmydSeZ1gDcSu/Uk4/zimgd350nvfWW0ZxfKfVi2VaZFUIl05qR/nCQriB qRzwkc3QRy0f11UqY8Lu8qoOayN8Bc/1p5DSMV2/SZry/ENFmuEKTBQLRwhV/eiNfdLD RCdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=j4b3qgn0; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si397449pfl.413.2017.06.15.09.33.20; Thu, 15 Jun 2017 09:33:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.b=j4b3qgn0; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751798AbdFOQcu (ORCPT + 7 others); Thu, 15 Jun 2017 12:32:50 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:38338 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752123AbdFOQcs (ORCPT ); Thu, 15 Jun 2017 12:32:48 -0400 Received: by mail-wm0-f49.google.com with SMTP id n195so4089894wmg.1 for ; Thu, 15 Jun 2017 09:32:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DFq40WaxCI8rbofLTPjx42XNXp1jdVfCjerwzEzn5FQ=; b=j4b3qgn0GOSLd52PtAptbUM6RUWKnSYz2DlAoCiTTsYa/ZLmDf9LNewRxAHF/z86/r Q7vF/3OjGK3yJOQxFG+XIybpcNI5u6PsPPNh02sj9KzsLdOhBw/CUdiLpH92EqzPTCbg 0n28KlawEypqnQkVGVEOkXAtxIVJOvZOkggVY= 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=DFq40WaxCI8rbofLTPjx42XNXp1jdVfCjerwzEzn5FQ=; b=Gwq8HsVdr0t+lXdew9FVGQ4Ey2rtBxp7dx0NPMQPg/UuzL2TYGs1u9hXTJzBCcHwrZ xSaJcXNKJgIhyOblz8TVjbMJl9VIW7SATiiwN5W7fxUDwbT409E6y3jJGQH++S8plYLy IjJDBk90UeYn7S7PqQ1IwutCILRP0ZWzFcy4dKERQN60jHU6NGyM6PNabMsPyBvJXqZQ oD38ydKgt3K+pQEw+dXJjmVFCehO6rSD6vqiTeEnL9bALDZfF2k/2Umt/FQrzf8RanlW 2o7Tl0Ti3KxMuD0WTT4RWN9wj7lvhTcQTUZEWHiadfrZeVbvNoNen56ZDQmoENiPytCY 4zew== X-Gm-Message-State: AKS2vOwGHtjRx8KusTqGEsH5vwINHs32P8/BgejajkDBTtgja3cm0d3F po0jWam9HuQbgy5z X-Received: by 10.28.27.151 with SMTP id b145mr4300189wmb.83.1497544366786; Thu, 15 Jun 2017 09:32:46 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id m73sm541890wmi.25.2017.06.15.09.32.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Jun 2017 09:32:46 -0700 (PDT) From: Stanimir Varbanov To: Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Stanimir Varbanov , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH v11 02/19] doc: DT: venus: binding document for Qualcomm video driver Date: Thu, 15 Jun 2017 19:31:43 +0300 Message-Id: <1497544320-2269-3-git-send-email-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497544320-2269-1-git-send-email-stanimir.varbanov@linaro.org> References: <1497544320-2269-1-git-send-email-stanimir.varbanov@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add binding document for Venus video encoder/decoder driver Cc: Rob Herring Cc: devicetree@vger.kernel.org Acked-by: Rob Herring Signed-off-by: Stanimir Varbanov --- .../devicetree/bindings/media/qcom,venus.txt | 107 +++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,venus.txt -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/media/qcom,venus.txt b/Documentation/devicetree/bindings/media/qcom,venus.txt new file mode 100644 index 000000000000..2693449daf73 --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,venus.txt @@ -0,0 +1,107 @@ +* Qualcomm Venus video encoder/decoder accelerators + +- compatible: + Usage: required + Value type: + Definition: Value should contain one of: + - "qcom,msm8916-venus" + - "qcom,msm8996-venus" +- reg: + Usage: required + Value type: + Definition: Register base address and length of the register map. +- interrupts: + Usage: required + Value type: + Definition: Should contain interrupt line number. +- clocks: + Usage: required + Value type: + Definition: A List of phandle and clock specifier pairs as listed + in clock-names property. +- clock-names: + Usage: required for msm8916 + Value type: + Definition: Should contain the following entries: + - "core" Core video accelerator clock + - "iface" Video accelerator AHB clock + - "bus" Video accelerator AXI clock +- clock-names: + Usage: required for msm8996 + Value type: + Definition: Should contain the following entries: + - "core" Core video accelerator clock + - "iface" Video accelerator AHB clock + - "bus" Video accelerator AXI clock + - "mbus" Video MAXI clock +- power-domains: + Usage: required + Value type: + Definition: A phandle and power domain specifier pairs to the + power domain which is responsible for collapsing + and restoring power to the peripheral. +- iommus: + Usage: required + Value type: + Definition: A list of phandle and IOMMU specifier pairs. +- memory-region: + Usage: required + Value type: + Definition: reference to the reserved-memory for the firmware + memory region. + +* Subnodes +The Venus video-codec node must contain two subnodes representing +video-decoder and video-encoder. + +Every of video-encoder or video-decoder subnode should have: + +- compatible: + Usage: required + Value type: + Definition: Value should contain "venus-decoder" or "venus-encoder" +- clocks: + Usage: required for msm8996 + Value type: + Definition: A List of phandle and clock specifier pairs as listed + in clock-names property. +- clock-names: + Usage: required for msm8996 + Value type: + Definition: Should contain the following entries: + - "core" Subcore video accelerator clock + +- power-domains: + Usage: required for msm8996 + Value type: + Definition: A phandle and power domain specifier pairs to the + power domain which is responsible for collapsing + and restoring power to the subcore. + +* An Example + video-codec@1d00000 { + compatible = "qcom,msm8916-venus"; + reg = <0x01d00000 0xff000>; + interrupts = ; + clocks = <&gcc GCC_VENUS0_VCODEC0_CLK>, + <&gcc GCC_VENUS0_AHB_CLK>, + <&gcc GCC_VENUS0_AXI_CLK>; + clock-names = "core", "iface", "bus"; + power-domains = <&gcc VENUS_GDSC>; + iommus = <&apps_iommu 5>; + memory-region = <&venus_mem>; + + video-decoder { + compatible = "venus-decoder"; + clocks = <&mmcc VIDEO_SUBCORE0_CLK>; + clock-names = "core"; + power-domains = <&mmcc VENUS_CORE0_GDSC>; + }; + + video-encoder { + compatible = "venus-encoder"; + clocks = <&mmcc VIDEO_SUBCORE1_CLK>; + clock-names = "core"; + power-domains = <&mmcc VENUS_CORE1_GDSC>; + }; + };