From patchwork Mon Jun 12 16:27:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 103649 Delivered-To: patch@linaro.org Received: by 10.182.29.35 with SMTP id g3csp76406obh; Mon, 12 Jun 2017 09:29:47 -0700 (PDT) X-Received: by 10.84.142.131 with SMTP id 3mr57162445plx.183.1497284987785; Mon, 12 Jun 2017 09:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497284987; cv=none; d=google.com; s=arc-20160816; b=r5B6d/o/qHjRyTgZf3SzIrYkTPJGMRgmqNqoNSEFEb0RtAXCCkxCnJKyvVcYAkaC9r 18h82JJr/zqmycbXuCvGTfXd0GPOwYcXufbKwp5O/YGnGLP42RN2VJHjOkKpbe6BRhFP R2gXPomlmx6zplAsKDRK1ICI51T5x3N6eIp3ukH04E2i/f6X5FWyE1Mrj+OfSs12Ewax x/1mNBJ+3sQKo4MUmVb8z7ytIjHZNqRG69HNzVYSc76lrBbAHOZJXjEy4vsVwgcIZx0J SE5npm5T0PMQJ0n8VUP1wwZGNyio+t7FtWKtYEVHU9f6J33AHPzYWgFJuMYUEQ39oE7d hMEw== 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=ZjZXgs21XbsSmXhbRZKpSBbGcV+tYKoTeK+KITupmyI=; b=DJxQnTTcj9S8cl30fEDFp2VSRxodK1z6TAZyLfPMAS0z1tk0USL8Y1L8Y+vtBDtG66 5DO9iGQrw//oY6nT4zAVq4eREpPiSKCR+iJC7PIBJFDgeTsP9sR1pfln6n3nHEeKstCV cuhL2ZKMQAZvle0Pryl5/uerS0UGWM+LitsHH8f9f8GH5GQCqGvg8Uf9NRp7DE9M40o7 iezeq2bKK/Qzcd4QTXRhKGVPfWI7xvWCJmwGt1niMWZVIuuNWpM19mFgwh9PLKJVM5+9 3Z04ri+ADN0Lj7k2G0/oH7HMk3mZPFO3UAaKJBMDfNBBm3QSnyjP745Le/TeMCYsLQNd EfDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 r8si7262474pfb.22.2017.06.12.09.29.47; Mon, 12 Jun 2017 09:29:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1754378AbdFLQ3d (ORCPT + 10 others); Mon, 12 Jun 2017 12:29:33 -0400 Received: from mail-wr0-f180.google.com ([209.85.128.180]:35182 "EHLO mail-wr0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753225AbdFLQ3c (ORCPT ); Mon, 12 Jun 2017 12:29:32 -0400 Received: by mail-wr0-f180.google.com with SMTP id q97so103950992wrb.2 for ; Mon, 12 Jun 2017 09:29:31 -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=eSgxolTCzlLYl7tOL26cT3lhuOC8HmseHUthfPZw7SCYzeAslUBquBeHQID+n3DUAG qswdLElyp7zSzMPtw/kekegUGPXCEaOYCIa+kT1VINRlpHIstK4mP/YuEgGmIe0T7Iiy NEuoeMLTn/rK+B+HLbBfDwpvdQ95YlzkssHOc= 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=NkEQTklnoVIw77bMxf63fhLaXT9sWQKCtrvlJJDKvfwfniQgjwKGvL7kwZGOw3k+MJ +ooRizzuOeUgJs3D7o87Yzm4Q6fIHJu1pvzIkKsalmWJDEUtQ/BIO9qfLNY76txLmoZ9 1RHJduCGRMxbE4nCc0jxEiwNH/J3ltPGgY3n9na6LRDMKK8j7MVoDrvelxm+HSN2t0xX BNduMbZVXq0gZVqsP0gp1etMxo6lH7nc8TWAz7ew3SAvZ0u3+9B2s/vzLfIa1bDSvHsQ 0T3rbDruTb/bL3ZTGq2gPQZxSSrx6wqxqt1VLTuH2gL1kA87fmoGVJERrgGdMYkA95ht KMHA== X-Gm-Message-State: AKS2vOx7Ike9WrfmDoCTlS6hlM+WbaB1bJtNWdt52jAY8+PNjtGLJpnm r0JsR9Pw8RvmSjYa X-Received: by 10.28.145.74 with SMTP id t71mr1212098wmd.38.1497284964776; Mon, 12 Jun 2017 09:29:24 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id 49sm14493531wrz.8.2017.06.12.09.29.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Jun 2017 09:29:24 -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 v10 02/18] doc: DT: venus: binding document for Qualcomm video driver Date: Mon, 12 Jun 2017 19:27:39 +0300 Message-Id: <1497284875-19999-3-git-send-email-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497284875-19999-1-git-send-email-stanimir.varbanov@linaro.org> References: <1497284875-19999-1-git-send-email-stanimir.varbanov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 linux-arm-msm" 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>; + }; + };