From patchwork Wed Dec 18 13:22:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 182006 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp646926ile; Wed, 18 Dec 2019 05:24:19 -0800 (PST) X-Google-Smtp-Source: APXvYqw9k5HEkYG+RFWk8yRbL/iy0SK682zrUo8QQ1HLkEg7JLQMLQw50CoTwvyUul1l9BWfS0ky X-Received: by 2002:a05:6830:15a:: with SMTP id j26mr2486914otp.137.1576675459730; Wed, 18 Dec 2019 05:24:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576675459; cv=none; d=google.com; s=arc-20160816; b=vfoI+d3obPS1M75JSlTnR/1yudJ5ZQ+WZvF4iTcG6KY42/CuTEdQJRP9Ni7Z+VsOAJ 43Tcrf+mBA7Vssvzn3r5oOsTW3R1nqURloxdmEIVWkVThgZA5iqR0HRyw6SA6l/7jua2 lq5Cby3JwKZIaI4PRE5MkfwrjYUEy4MUIJZDiOxNKLTbi02hiU3jNfv68bgsLhoW6v9a czYJvakLbiY5+XgOQjXp/fTMR/NrbiTEKNUnTEIEhl92MyTpiwg7s+VBT7TQtoDhdL69 KUEkOFnZb+nhQrqyhP9cWsJaDx5xwnGHVAZCaKa2aB6qow3mwoqLDCF3XLeGIgbAf2Jp zdqQ== 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; bh=CITEx26ya518MBT0p0F7PP8DiduXDPXSSgjqESe9/eA=; b=gzLmhjPnnnvzYK8dk6fnyd6OjixriEPfblxq6kylGaUbtyt3HguLGN0IF5T6FeyamL d3KOZoDTvLCAtLtFqiBnRlZsJU/d1gBO6zQhK57/vF8Ap4usjJMUtBDRsb7OqQUBeMV5 s/ZgbhEVIjTc/wksq8E3APnPu/2s5an1p77bZSWmYNIIHnWovhOx/oy6Sp25LOQ+YWp7 /1FTaEcZhaQ5rkTp1mtFR6GVMtM4MIWLZIYzWO4durXhi7CmDTJZZTpKmRmYO1B+ZNii TZ8uRNVrESu+yaVnR/cWunWoE6ZkHt5ZoM0l+oef6bcAPxX17Eukwb7yRYybcKmaw0Y4 KgqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HqqpQIYz; 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; dmarc=pass (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 j13si1388285otk.9.2019.12.18.05.24.19; Wed, 18 Dec 2019 05:24:19 -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; dkim=pass header.i=@linaro.org header.s=google header.b=HqqpQIYz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727415AbfLRNYS (ORCPT + 27 others); Wed, 18 Dec 2019 08:24:18 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:44244 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727329AbfLRNYP (ORCPT ); Wed, 18 Dec 2019 08:24:15 -0500 Received: by mail-lj1-f195.google.com with SMTP id u71so2110566lje.11 for ; Wed, 18 Dec 2019 05:24:14 -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=CITEx26ya518MBT0p0F7PP8DiduXDPXSSgjqESe9/eA=; b=HqqpQIYz08yRuwZxJa+FF3HZ+sKTzhV6q+LENhfdzGZPn+Tov0WvsgDJkKRkFGV49N kQWSqMx9DM5GnfkKAntAfBgAeTUICk+BslIpWw9byKAr3Kj9JyV0SLdHuoJqxUEozMu5 FUgVYxCGGL1C0Wtoa8p6kIpeCZP3jCxu3ptDsrS5ObIln+GU4yiyfQaYJvLmpZ7KdKVe bN7OQjgFf2EM3NvejCPXNa6bkMXPQKd+uXNFuApsRkaA7DmDzywZCuWpJTQGjcI7ZYzY OCIyyN0LXc5efjPaFqsuTdEx+rz2HDIuWrtoTnScvjZF/nkT04ADMmYwgoupTV3oEmMO 4j4Q== 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=CITEx26ya518MBT0p0F7PP8DiduXDPXSSgjqESe9/eA=; b=Y5EYyyw2zb2MraKAS005K+P5wYV+OyXOvncTRwrus1WKftI7+j6I6F4F04t4csJcZf mb2Nru6opHJbAIJ+DDhRjN3NVycGax30j44JFCqArv5fyvNbhvbXWgeIBWsiJ0vpmWYx rCMFDAdyybzJLCEZW3HYfPn+4+p14kS05ThaUMrDBpUNpswUVRQT5QJcD4qeylQ7BiIf WNO7HSQrVaghGJ249igYO+PTFhZMs3nhcjWNqqZRHHgA7Mv5xFMuN6TwWqj10lxRxs2k A1b711SybgvBT9F/sskR9FMDSULjl5xeKEJ1qTA0KB/3Jc046m7L0+henwHK8ylT3sbl 8UEg== X-Gm-Message-State: APjAAAWaIt/9G5d0Oa0yTqWdm/bpdbQ9nYMVX7flZPljnKiuneUnurtC ERHWipb+iTLhERKA02y4vNVrGg== X-Received: by 2002:a2e:9886:: with SMTP id b6mr1754928ljj.47.1576675453349; Wed, 18 Dec 2019 05:24:13 -0800 (PST) Received: from localhost.localdomain ([37.157.136.193]) by smtp.gmail.com with ESMTPSA id z7sm1440667lfa.81.2019.12.18.05.24.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2019 05:24:12 -0800 (PST) From: Stanimir Varbanov To: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org Cc: Vikash Garodia , dikshita@codeaurora.org, Stanimir Varbanov Subject: [PATCH v2 09/12] dt-bindings: media: venus: Add sdm845v2 DT schema Date: Wed, 18 Dec 2019 15:22:48 +0200 Message-Id: <20191218132251.24161-10-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191218132251.24161-1-stanimir.varbanov@linaro.org> References: <20191218132251.24161-1-stanimir.varbanov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add new qcom,sdm845-venus-v2 DT binding schema. Signed-off-by: Stanimir Varbanov --- .../bindings/media/qcom,venus-sdm845-v2.yaml | 137 ++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,venus-sdm845-v2.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/media/qcom,venus-sdm845-v2.yaml b/Documentation/devicetree/bindings/media/qcom,venus-sdm845-v2.yaml new file mode 100644 index 000000000000..920cb05d17ce --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,venus-sdm845-v2.yaml @@ -0,0 +1,137 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/media/qcom,venus-sdm845-v2.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,sdm845-venus-v2 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 3 + + power-domain-names: + maxItems: 3 + items: + - const: venus + - const: vcodec0 + - const: vcodec1 + + clocks: + maxItems: 7 + + clock-names: + maxItems: 7 + items: + - const: core + - const: iface + - const: bus + - const: vcodec0_core + - const: vcodec0_bus + - const: vcodec1_core + - const: vcodec1_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 + + video-codec@aa00000 { + compatible = "qcom,sdm845-venus-v2"; + reg = <0 0x0aa00000 0 0xff000>; + interrupts = ; + 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>, + <&videocc VIDEO_CC_VCODEC1_CORE_CLK>, + <&videocc VIDEO_CC_VCODEC1_AXI_CLK>; + clock-names = "core", "iface", "bus", + "vcodec0_core", "vcodec0_bus", + "vcodec1_core", "vcodec1_bus"; + power-domains = <&videocc VENUS_GDSC>, + <&videocc VCODEC0_GDSC>, + <&videocc VCODEC1_GDSC>; + power-domain-names = "venus", "vcodec0", "vcodec1"; + iommus = <&apps_smmu 0x10a0 0x8>, + <&apps_smmu 0x10b0 0x0>; + memory-region = <&venus_mem>; + + video-core0 { + compatible = "venus-decoder"; + }; + + video-core1 { + compatible = "venus-encoder"; + }; + };