From patchwork Thu Dec 15 17:22:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 9476625 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 79E54607EE for ; Thu, 15 Dec 2016 17:30:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B43B287E9 for ; Thu, 15 Dec 2016 17:30:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5ECDB287E3; Thu, 15 Dec 2016 17:30:14 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D605A287E3 for ; Thu, 15 Dec 2016 17:30:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755884AbcLORaL (ORCPT ); Thu, 15 Dec 2016 12:30:11 -0500 Received: from mail-wj0-f171.google.com ([209.85.210.171]:36179 "EHLO mail-wj0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755323AbcLORaL (ORCPT ); Thu, 15 Dec 2016 12:30:11 -0500 Received: by mail-wj0-f171.google.com with SMTP id tk12so72715500wjb.3 for ; Thu, 15 Dec 2016 09:30:10 -0800 (PST) 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=OMEEn8QeK8UJi0p2F8b3kSClmUJFsz1teA+XzfuMPyg=; b=Ab7zac0xIBx6ITwpCcdfo6se7lu4gtvbT0dQ3b/EvksHiv5VHnd4mrS4VumTcAOeGO 0YiJy8r3/auOqhqeQtSzxT/Fj2BJxOe1SXNlb97EeOKOV5i+O/Rc7WA94xqe4B+miLIc P2TNYQ/aD2ZkC6EEIAUI6fkhsvMsOYlK4q7jw= 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=OMEEn8QeK8UJi0p2F8b3kSClmUJFsz1teA+XzfuMPyg=; b=Ue4XrM+mLs+ezvAiFk4IJx9831ZRtMSj6TTMh97/PvdT2UD1vTBVsAo6bvdBQp5LCx 7wpQrajniVD3lADSmnFnBzqLDBoGotQg5fHOX/BkbwNbloi1v3o/V+wDk/PbTnukB12P DyVoq5yS4ATlNcxQkwPCgwpI2GfTRO8PUFPcMNFRnQUPDh/9N9LhHbHgDEmD780IAO3/ i1FGj489qGXH1VXm8kRXehXBiQWyfRa+/TsidCal2tZheKR5N/fjmf8k8C4E5R4+fX4P fVrJKsLIl4BzetY/YY6+snGs53TVRX30pr55fkHsrhYq/ViAaeB7nK2Dlh7GHSZg7Da5 s5Rg== X-Gm-Message-State: AKaTC02Xyo2I6n/PMgh2+YT5tRfnlCBfFIYPoRC2/qlfFPNFyNDLp32ZmVJOrUH4ivPiYKUC X-Received: by 10.194.122.65 with SMTP id lq1mr2608016wjb.12.1481822576888; Thu, 15 Dec 2016 09:22:56 -0800 (PST) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 63sm13412920wmg.2.2016.12.15.09.22.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Dec 2016 09:22:56 -0800 (PST) From: Stanimir Varbanov To: Mauro Carvalho Chehab , Hans Verkuil Cc: Andy Gross , Bjorn Andersson , Stephen Boyd , Srinivas Kandagatla , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Stanimir Varbanov , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH v5 2/9] doc: DT: venus: binding document for Qualcomm video driver Date: Thu, 15 Dec 2016 19:22:17 +0200 Message-Id: <1481822544-29900-3-git-send-email-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1481822544-29900-1-git-send-email-stanimir.varbanov@linaro.org> References: <1481822544-29900-1-git-send-email-stanimir.varbanov@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add binding document for Venus video encoder/decoder driver Cc: Rob Herring Cc: Mark Rutland Cc: devicetree@vger.kernel.org Signed-off-by: Stanimir Varbanov Acked-by: Rob Herring --- .../devicetree/bindings/media/qcom,venus.txt | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,venus.txt diff --git a/Documentation/devicetree/bindings/media/qcom,venus.txt b/Documentation/devicetree/bindings/media/qcom,venus.txt new file mode 100644 index 000000000000..7b77dff52b0f --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,venus.txt @@ -0,0 +1,68 @@ +* Qualcomm Venus video encode/decode accelerator + +- 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 + - "subcore0" Subcore0 (decoder) video accelerator clock + - "subcore1" Subcore1 (encoder) video accelerator 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. +- rproc: + Usage: required + Value type: + Definition: A phandle to remote processor responsible for + firmware loading and processor booting. + +- iommus: + Usage: required + Value type: + Definition: A list of phandle and IOMMU specifier pairs. + +* 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>; + rproc = <&venus_rproc>; + iommus = <&apps_iommu 5>; + };