From patchwork Wed Feb 3 11:39:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 375376 Delivered-To: patch@linaro.org Received: by 2002:a17:906:48d2:0:0:0:0 with SMTP id d18csp328537ejt; Wed, 3 Feb 2021 03:40:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJy72y1stFcBu0GsdgcAeRcMPr+qzhScWothw++V6zDnfHVD8DP+6G4izk3Zz9GswBy32K/s X-Received: by 2002:aa7:cac6:: with SMTP id l6mr2530120edt.357.1612352454085; Wed, 03 Feb 2021 03:40:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612352454; cv=none; d=google.com; s=arc-20160816; b=dIWTbhWNXuYdF4WHYLaKm2swFBKa2E4kY9CrzbwtdGFxqNYHmYgij4FdFfOV5dYTFy 0EdgcGnNly3OU43JzIunRuZPoA4NLzD6E/FLnp92jIYKXFy/RgOrqaNyowleo1ZkTmNF w+KXI5wQxURpqAPNwqmyOjbChscTCNiKnLk/FZgh0i0O1h/eExtg6o6PN7H6lSTAJpan Dz+jXUMpjjcUaxeFhO7jx2PWgNrgNqzteOFx6zuE+94cNHi8GfDwJZMYClPF55CV1gzS 6Xty7Sko3wDtujdY7z6pO6Barje8bFBZpiAHWu5FFqsj2NsF8tFq1/p3jB59VhD/px+y P1qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ru0gJ3FIhM/1e3zHEBGMj6OD0UrIuxrB8PYZqtSbE9E=; b=QMktJUqzNeSI6GG+Sg1hTFxbn4vYjSzfp9W9CQObg1J0zz8O2MpUSxTnL6pl+xF43R MoRmNohtoSlocr9Y0ah6JOpr3GICbcOuiDmgvIo5DA1fBgg0oBj86tFzfOe03taFG3FY BwFHmOZlH6Zc++JC0d0LuA68Q2KwUM8t122tpeV/daTVFxoJcjFh+4SUrTt17lCFNX3B qwIo3Sup/RDL5pKh2VWTA7Y5Ll02Lex4u+pTGO5TES5peCXtkRZ6u0Iup3PBudB1tORh X5ft11uZQnI/rIYhmk05xXxY2VIRFa2+lTnXihtCm4C9E9cCvQbIDW8WTBDT6MzptiuP SHtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=deGoSSBp; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si1107119edm.477.2021.02.03.03.40.53; Wed, 03 Feb 2021 03:40:54 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=deGoSSBp; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234227AbhBCLjh (ORCPT + 6 others); Wed, 3 Feb 2021 06:39:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234100AbhBCLjf (ORCPT ); Wed, 3 Feb 2021 06:39:35 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E709CC0613D6 for ; Wed, 3 Feb 2021 03:38:54 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id m1so4883256wml.2 for ; Wed, 03 Feb 2021 03:38:54 -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 :mime-version:content-transfer-encoding; bh=ru0gJ3FIhM/1e3zHEBGMj6OD0UrIuxrB8PYZqtSbE9E=; b=deGoSSBpMDV0KT+nbh0cHrqgX6TCjwZggtmcxgivZviABEGOdtSSlYMg78cRYd9Svv yPXBXn9jEOHkAl0nPdf0+I5V0XAHrzreDBjk5mY5MWmOfOmJ5AgImXqa9y05Rnq9nmu2 3mtiyfn5TX2TMrfu1wufpQBSxQW4/1QWfJKneMkf7XfdaNsBs0+PfL+q188URR9DsO/e RXwbQljCSX3X1yGyJ9SJ+gfpPNIDSHCQjLsnb1lUbJj6g+FbMpKQBP0tEd3fJojJSybT gsp4HYlFjI0pwYPlEbOGcNL7IL/3YKz8l2dWGuHQfpEYFwzz53fJO/CD0cWxrL50C8U7 rCtg== 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:mime-version:content-transfer-encoding; bh=ru0gJ3FIhM/1e3zHEBGMj6OD0UrIuxrB8PYZqtSbE9E=; b=U9U9esY85k1d+ixxqlujulfol3RtFw3tEGfg1RiJtEa/4nUPXiLay3VFoSbMDbHeMc A0zsrJE6ZBei0vOfw25xnF2i+pby6kIg/wewtBgfWIdasnJ/JVggr4hq7yP55ABIFJrv y0svcvUpd32hhkUSGxkrTvEAayzfotju0Q8Jk7DT0/DeFN6IGEvt2w1MyJa+X+dVx5L5 6+xV8qOTLZTeqzygsNpDAzogjXV4WK9FDUe7H0g1sWyhWZjVfzXUKskaXVd61Y5SH/VD kfZdFCKn8TRTWWV9NdbBmzQzON6igeo4QFUvSVDndQILMtUw0ibH3MWrrXwH2r+xJ17x 3Viw== X-Gm-Message-State: AOAM530EOy5jKcri7I5dRrooQ2apDgMmreI1YxY+9hveCrleU36++89C fwio28lpu25U+YPrj5gEGZvqdA== X-Received: by 2002:a05:600c:1986:: with SMTP id t6mr2375191wmq.93.1612352333642; Wed, 03 Feb 2021 03:38:53 -0800 (PST) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id r15sm3332540wrj.61.2021.02.03.03.38.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 03:38:53 -0800 (PST) From: Bryan O'Donoghue To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, stanimir.varbanov@linaro.org, agross@kernel.org, bjorn.andersson@linaro.org Cc: dikshita@qti.qualcomm.com, vgarodia@qti.qualcomm.com, bryan.odonoghue@linaro.org, jonathan@marek.ca Subject: [PATCH 1/1] dt-bindings: media: venus: Add sm8250 dt schema Date: Wed, 3 Feb 2021 11:39:14 +0000 Message-Id: <20210203113914.1072380-2-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210203113914.1072380-1-bryan.odonoghue@linaro.org> References: <20210203113914.1072380-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add a schema description for the venus video encoder/decoder on the sm8250. Signed-off-by: Bryan O'Donoghue --- .../bindings/media/qcom,sm8250-venus.yaml | 153 ++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,sm8250-venus.yaml -- 2.29.2 diff --git a/Documentation/devicetree/bindings/media/qcom,sm8250-venus.yaml b/Documentation/devicetree/bindings/media/qcom,sm8250-venus.yaml new file mode 100644 index 000000000000..1d4b1ab63297 --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,sm8250-venus.yaml @@ -0,0 +1,153 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/media/qcom,sm8250-venus.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,sm8250-venus + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + minItems: 2 + maxItems: 3 + + power-domain-names: + minItems: 2 + maxItems: 3 + items: + - const: venus + - const: vcodec0 + - const: mx + + clocks: + maxItems: 3 + + clock-names: + items: + - const: iface + - const: core + - const: vcodec0_core + + iommus: + maxItems: 1 + + memory-region: + maxItems: 1 + + interconnects: + maxItems: 2 + + interconnect-names: + items: + - const: video-mem + - const: cpu-cfg + + video-decoder: + type: object + + properties: + compatible: + const: venus-decoder + + required: + - compatible + + additionalProperties: false + + video-encoder: + 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: + maxItems: 1 + + required: + - iommus + +required: + - compatible + - reg + - interrupts + - power-domains + - power-domain-names + - clocks + - clock-names + - iommus + - memory-region + - video-decoder + - video-encoder + +additionalProperties: false + +examples: + - | + #include + #include + + venus: video-codec@aa00000 { + compatible = "qcom,sm8250-venus"; + reg = <0 0x0aa00000 0 0xff000>; + interrupts = ; + power-domains = <&videocc MVS0C_GDSC>, + <&videocc MVS0_GDSC>, + <&rpmhpd SM8250_MX>; + power-domain-names = "venus", "vcodec0", "mx"; + operating-points-v2 = <&venus_opp_table>; + + clocks = <&gcc GCC_VIDEO_AXI0_CLK>, + <&videocc VIDEO_CC_MVS0C_CLK>, + <&videocc VIDEO_CC_MVS0_CLK>; + clock-names = "iface", "core", "vcodec0_core"; + + interconnects = <&gem_noc MASTER_AMPSS_M0 &config_noc SLAVE_VENUS_CFG>, + <&mmss_noc MASTER_VIDEO_P0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "cpu-cfg", "video-mem"; + + iommus = <&apps_smmu 0x2100 0x0400>; + memory-region = <&video_mem>; + + resets = <&gcc GCC_VIDEO_AXI0_CLK_ARES>, + <&videocc VIDEO_CC_MVS0C_CLK_ARES>; + reset-names = "bus", "core"; + + video-decoder { + compatible = "venus-decoder"; + }; + + video-encoder { + compatible = "venus-encoder"; + }; + };