Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2896829ybl; Fri, 20 Dec 2019 00:01:30 -0800 (PST) X-Google-Smtp-Source: APXvYqwK6xpTE75wUNrEkIpukIpGXTYnDiNBmPHoWffXulyGZ54v0gJ+3e1S2wpiDqGRavbouTp3 X-Received: by 2002:a9d:133:: with SMTP id 48mr13195108otu.15.1576828890079; Fri, 20 Dec 2019 00:01:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576828890; cv=none; d=google.com; s=arc-20160816; b=xJQmxd8SuicKtb7ckYScCggBu/1IiidXDLQingozdKmnexFqlovDhUWgk1rFWV3Q9e TSQf2wXTRGPx/pR0b20XWxwT7A2Jed3UZiDaytMWa9n+9+kmyLrHKUNnct+7YuGu3hCF Bihajz5aNgaLPlJxqK7IEcezAFLDsGXKAvDYIUXxx/F14Mi3hu+zeoGgbBxiViPGRI6K OpS/Nr8PSh9K87gblJf+TP91X2GWViPD8TQyI54tE0/uyFC4tn7tt/LhYsRYxKVkkkxf XGHzZlx4lmE/TXpd2hvMa0C/HaQHNGqj/L1OhzT7BfMzULxArodIvMF+6NK5JRarxMIc b7mQ== 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; bh=0ra/Y0LDdrobfFZ5JGeXIlP/5Y6wd5med+O1Y8QoTVo=; b=LGMZblcPDdVqE/cwYVg9eLp0/mPapzgI8uN1Y5YtaWjxdFfqCkQethmp5hEelx3Jk7 z21lK9/Qrz2mlRBKhQ0gDVCzW3h3KGE7mJI/fA7QUiQPlQVtB23IZBkgjX19qMGIhHCS V0+djHoqu484aLwqaFU5qmDJNjXueI4uUZGj4ENQ5dbd3hcLMSL0akaYGnMPg40ZMi+T HEGDo0LEvxDMjxGxNMbyYy2tinehRunAZQ5E2IipuY3PCO6X/9P3FEJjhzmsCMNtvFn7 EeqWI3oSFaB93LaOtgk0xyxVASu1tznoWhcOTOGMvo2L+IYKIdOo8VLp6sZinDEbWZYI 5pPA== ARC-Authentication-Results: i=1; mx.google.com; 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 d13si4706895otp.196.2019.12.20.00.01.17; Fri, 20 Dec 2019 00:01:30 -0800 (PST) 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; 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 S1727291AbfLTIAe (ORCPT + 99 others); Fri, 20 Dec 2019 03:00:34 -0500 Received: from alexa-out-blr-02.qualcomm.com ([103.229.18.198]:33528 "EHLO alexa-out-blr-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727197AbfLTIA2 (ORCPT ); Fri, 20 Dec 2019 03:00:28 -0500 Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by alexa-out-blr-02.qualcomm.com with ESMTP/TLS/AES256-SHA; 20 Dec 2019 13:30:23 +0530 Received: from dikshita-linux.qualcomm.com ([10.204.65.237]) by ironmsg01-blr.qualcomm.com with ESMTP; 20 Dec 2019 13:30:16 +0530 Received: by dikshita-linux.qualcomm.com (Postfix, from userid 347544) id 296A3348A; Fri, 20 Dec 2019 13:30:15 +0530 (IST) From: Dikshita Agarwal To: linux-media@vger.kernel.org, stanimir.varbanov@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, vgarodia@codeaurora.org, Dikshita Agarwal Subject: [PATCH 2/3] dt-bindings: media: venus: Add sc7180 DT schema Date: Fri, 20 Dec 2019 13:29:19 +0530 Message-Id: <1576828760-13176-3-git-send-email-dikshita@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1576828760-13176-1-git-send-email-dikshita@codeaurora.org> References: <1576828760-13176-1-git-send-email-dikshita@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add new qcom,sc7180-venus DT binding schema. Signed-off-by: Dikshita Agarwal --- .../bindings/media/qcom,venus-sc7180.yaml | 131 +++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,venus-sc7180.yaml diff --git a/Documentation/devicetree/bindings/media/qcom,venus-sc7180.yaml b/Documentation/devicetree/bindings/media/qcom,venus-sc7180.yaml new file mode 100644 index 0000000..a609739 --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,venus-sc7180.yaml @@ -0,0 +1,131 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/media/qcom,venus-sc7180.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Qualcomm Venus video encode and decode accelerators + +maintainers: + - Stanimir Varbanov + +description: | + The Venus IP is a video encode and decode accelerator present + on Qualcomm platforms + +properties: + compatible: + enum: + - qcom,sc7180-venus + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 2 + + power-domain-names: + maxItems: 2 + items: + - const: venus + - const: vcodec0 + + clocks: + maxItems: 5 + + clock-names: + maxItems: 5 + items: + - const: core + - const: iface + - const: bus + - const: vcodec0_core + - const: vcodec0_bus + + iommus: + minItems: 1 + maxItems: 20 + + memory-region: + maxItems: 1 + + video-core0: + type: object + + properties: + compatible: + const: "venus-decoder" + + required: + - compatible + + video-core1: + type: object + + properties: + compatible: + const: "venus-encoder" + + required: + - compatible + + video-firmware: + type: object + + description: | + Firmware subnode is needed when the platform does not + have TrustZone. + + properties: + iommus: + minItems: 1 + +required: + - compatible + - reg + - interrupts + - power-domains + - power-domain-names + - clocks + - clock-names + - iommus + - memory-region + - video-core0 + - video-core1 + +examples: + - | + #include + #include + + venus: video-codec@aa00000 { + compatible = "qcom,sc7180-venus"; + reg = <0 0x0aa00000 0 0xff000>; + interrupts = ; + power-domains = <&videocc VENUS_GDSC>, + <&videocc VCODEC0_GDSC>; + + power-domain-names = "venus", "vcodec0"; + clocks = <&videocc VIDEO_CC_VENUS_CTL_CORE_CLK>, + <&videocc VIDEO_CC_VENUS_AHB_CLK>, + <&videocc VIDEO_CC_VENUS_CTL_AXI_CLK>, + <&videocc VIDEO_CC_VCODEC0_CORE_CLK>, + <&videocc VIDEO_CC_VCODEC0_AXI_CLK>; + clock-names = "core", "iface", "bus", + "vcodec0_core", "vcodec0_bus"; + iommus = <&apps_smmu 0x0C00 0x60>; + memory-region = <&venus_mem>; + video-core0 { + compatible = "venus-decoder"; + }; + video-core1 { + compatible = "venus-encoder"; + }; + video-firmware { + iommus = <&apps_smmu 0x0C42 0x0>; + }; + }; -- 1.9.1