Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17434459ybl; Thu, 2 Jan 2020 05:27:48 -0800 (PST) X-Google-Smtp-Source: APXvYqyI1F6NqIXvT++rEhz3dWrF5rnxwXxh8eValJNvrqpfiVkdJZXJlh0qn7FFdwvuLO1fuDPz X-Received: by 2002:a9d:7342:: with SMTP id l2mr92387248otk.98.1577971668328; Thu, 02 Jan 2020 05:27:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577971668; cv=none; d=google.com; s=arc-20160816; b=djI6p0XtFjnfZ/s5Ymcc6k5vIkJ1psIJ2BIqWIXB5ftWg8fkP8fExhIfbIAhP4Wn48 xVnSMm34MJSs7Vfhm9dGliCY/ue3z+bAwQPn4NSLmdBqF9rUWxT3+wp6l+8KRSNiJ/Vc u4/AkaNrP8WnC2sgqpzGP5dyDMLw86sPa+nxQ/qVCNVHPTbF9K2+TlvHwktypITpEOf1 vnG12ece98JjOeCr03pvu9Hh6eNIfQRwKsPfA1uvfEf9zjgA4pM3lXREHfv6tdK8cGi2 zxaNvuMzGqQiULZZi0EhFoFjBfTQeDN9LxI1FKu8u5gtG09z6zE5C6qEdHhbTdHPhhQj Chtg== 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=KfvZK0c9HWa+yMw9jEsi3qggGIC6f4rV3y7fjYcYps4=; b=UkqANdTLxoanqGes3Mi9Ok7T+bZ50uJY1JqeS+gWJO/PPe1lMRtFG/69RikrQHAr39 spdFN1N9K4sGZZ7fSp38uEkqTOyoX9KGX3iit6NgKGrGAuH1EnXvAQDMUxS20vTbTm70 GNbilbAS86wIkOl5k3mH12YAKR+UOQqloxGdo5lvvp9XqnhWf6m/FWioc2ct9XPFBP9W 1MMSetpCdQVnlQCXNrwAgRlM0yBUzWx4m1G+0iPbEIuOYyANocA5srThJS099zUhUyAZ J3lUtCVWHCOwGOCEPVkxdWz/PPxG7ZyoowtaP60ai56dRDXSLSoWKXbx5/WVyCm7hf0Z nrFQ== 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 n14si29646213otk.179.2020.01.02.05.27.36; Thu, 02 Jan 2020 05:27:48 -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 S1728486AbgABN0x (ORCPT + 99 others); Thu, 2 Jan 2020 08:26:53 -0500 Received: from alexa-out-blr-01.qualcomm.com ([103.229.18.197]:55851 "EHLO alexa-out-blr-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728341AbgABN0w (ORCPT ); Thu, 2 Jan 2020 08:26:52 -0500 Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by alexa-out-blr-01.qualcomm.com with ESMTP/TLS/AES256-SHA; 02 Jan 2020 18:55:47 +0530 Received: from dikshita-linux.qualcomm.com ([10.204.65.237]) by ironmsg01-blr.qualcomm.com with ESMTP; 02 Jan 2020 18:55:36 +0530 Received: by dikshita-linux.qualcomm.com (Postfix, from userid 347544) id 24B4434E1; Thu, 2 Jan 2020 18:55:35 +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 V3 2/4] dt-bindings: media: venus: Add sc7180 DT schema Date: Thu, 2 Jan 2020 18:54:59 +0530 Message-Id: <1577971501-3732-3-git-send-email-dikshita@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1577971501-3732-1-git-send-email-dikshita@codeaurora.org> References: <1577971501-3732-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 | 136 +++++++++++++++++++++ 1 file changed, 136 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..b78952c --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,venus-sc7180.yaml @@ -0,0 +1,136 @@ +# 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: + const: "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: + 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 + + additionalProperties: false + + video-core1: + type: object + + properties: + compatible: + const: "venus-encoder" + + required: + - compatible + + additionalProperties: false + + 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>; + + interconnects = <&mmss_noc MASTER_VIDEO_P0 &mc_virt SLAVE_EBI1>, + <&gem_noc MASTER_APPSS_PROC &config_noc SLAVE_VENUS_CFG>; + interconnect-names = "video-mem", "cpu-cfg"; + + video-core0 { + compatible = "venus-decoder"; + }; + + video-core1 { + compatible = "venus-encoder"; + }; + + }; -- 1.9.1