From patchwork Wed Dec 18 13:22:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 182005 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp646863ile; Wed, 18 Dec 2019 05:24:16 -0800 (PST) X-Google-Smtp-Source: APXvYqyFVuRBXV8res8cMO40K/j1HYXHG7s8+g8ddISAzWAzW6EOnXMxXKx8TeI/hs2jBt3qRuTP X-Received: by 2002:a05:6830:2111:: with SMTP id i17mr2484077otc.24.1576675456590; Wed, 18 Dec 2019 05:24:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576675456; cv=none; d=google.com; s=arc-20160816; b=tlKlm35CndmLzWXdfLUr5Qtk/xos7lSX6GSFWgeEoBTKg5nKr0eY6NsaXl+3fesX0z KgA05ZiwULdH2i/cUNTJdVMM7eeyoEmn7RVk1qPBEk1lZX1yH6JIIxGGpr0dVMMojmD3 3KkFuRnb5CNN9E32LrQyzXnzdWGBL0KyNaZFGUnExpNz+pz6/FrxIRdbr1tbwSmy+Bd6 KxbotnQtZaw44Xkbi+sbFrde2Hoh7PuqEQAtRs4dj7ZcxQ9evlTXP596EpqXBbAkBIRe RQnef3/Zb1j4iUxdQLG+iZrTB/sBBFxrOHCNI/NfPj2+T8uH+rQSQeFRHmivg5H7s42U Y2CA== 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=2E0JQXe1pZot4z3LbYAnlOx/3QufFKC+hmq2Am0jK/U=; b=zKGVnqT0UNncwXkv5q+TtMJqLLJRGNp+xk4g6rAuS9J3TXGl21EYbi7/+8rDsUChuv zSSGRy4VQKCO5bcfHvca7PPRRK2VM0UJ/4eMOMPF2CsHoTViylKR37WxkKlIXyGy9gl8 RezvYN1P3DiurIV9CB4h39529PdHt69lRjbG0wySik0KpXgQ1jWCKECD6mJE4+cm8zVW DC0ABiXLDlt3XvmvdEfax+TzGe3PRgTg4QtkNjMU1i5Sx/Q0lTEIKQiC6SIuslHvU4ty fkyRWB4x2Wqw3E7lJsLSK0pyIgNom5TgL4v2WR2N2EvEpMnuRaMUW87ocny8Ts9Bl0zA T8xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=w5Aojco+; 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 p7si1476228otk.81.2019.12.18.05.24.16; Wed, 18 Dec 2019 05:24:16 -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=w5Aojco+; 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 S1727377AbfLRNYO (ORCPT + 27 others); Wed, 18 Dec 2019 08:24:14 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:45385 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727329AbfLRNYL (ORCPT ); Wed, 18 Dec 2019 08:24:11 -0500 Received: by mail-lf1-f66.google.com with SMTP id 203so1664125lfa.12 for ; Wed, 18 Dec 2019 05:24:10 -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=2E0JQXe1pZot4z3LbYAnlOx/3QufFKC+hmq2Am0jK/U=; b=w5Aojco+S485wwfMKoZYKx1/YAGbrjcHffhqg5wrUy0veQzYYvwH6nkaP0DZhuhwdX 5W0JM5FNURjEYxLMd0w47qOEdmcwb5J9rBkTtlKs7ce+ZXmuyhWs6dgkGgQZKApYx20l ZcVcQWOOHm4cSSKvAcML1OVnYWD1uz0WDFPsg6QsdVJXp51VetZPRA6vfIZ3AVgCY3nY bXc7rnlkMqxpaMufndiG3vnB9ASdOA01Og0jgS3ILJwYrYG3jah+LcbhTxLnHyTU6VH3 AnxfrBw0W9mDh0UB40tG3lWXY2PW6u4Ub2Fdm3StDn2hODcC9hX19SaQzGM/uj9ZBIW+ R8+g== 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=2E0JQXe1pZot4z3LbYAnlOx/3QufFKC+hmq2Am0jK/U=; b=Ge7m4tbbKM6jV0Iy26Chv84w/qWNph+vdOnCIi7gfS+zrVVcRuA2Nbg0XWIQw1bP5S 8Y5dtBYtBwKXvGpTLQ2eJdhPz562Ot4SLdcbpwUc5DOlvwPR0xCk0bQkaLEeH2MmdVE8 Ws8n5pYahrlFemaLyhg7jd8/+7IDsBqxEFo/1TxAUBB6bfart4xVq9aW2I67ltqJkkff yQCn/tAIw9p5rRnuo5xmB/4qMSKcf4o6ShAE3AqOpJ/ycEMvlZm5HBdQlrgzYhDPZj9H ANK5NV19l8GcAxRcviCzYhwJGaMZdcvHvzCu3pHZgNKVmxC1Vx9YGuDUspmL3n7CgJNN iNbA== X-Gm-Message-State: APjAAAXPBLK2fUb7Pj+gGz0eSI1OrNfAekkjW4nmGyQzmPGbO96qhIxm FlqCmMWt5xFDdvt4qRADNghrhg== X-Received: by 2002:a19:4a12:: with SMTP id x18mr1712471lfa.158.1576675449583; Wed, 18 Dec 2019 05:24:09 -0800 (PST) Received: from localhost.localdomain ([37.157.136.193]) by smtp.gmail.com with ESMTPSA id z7sm1440667lfa.81.2019.12.18.05.24.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2019 05:24:09 -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 07/12] dt-bindings: media: venus: Convert msm8996 to DT schema Date: Wed, 18 Dec 2019 15:22:46 +0200 Message-Id: <20191218132251.24161-8-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 Convert qcom,msm8996-venus Venus binding to DT schema. Signed-off-by: Stanimir Varbanov --- .../bindings/media/qcom,venus-msm8996.yaml | 139 ++++++++++++++++++ 1 file changed, 139 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,venus-msm8996.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/media/qcom,venus-msm8996.yaml b/Documentation/devicetree/bindings/media/qcom,venus-msm8996.yaml new file mode 100644 index 000000000000..8dd852aa0d25 --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,venus-msm8996.yaml @@ -0,0 +1,139 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/media/qcom,venus-msm8996.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,msm8996-venus + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 1 + + clocks: + maxItems: 4 + + clock-names: + maxItems: 4 + items: + - const: core + - const: iface + - const: bus + - const: mbus + + iommus: + minItems: 1 + maxItems: 20 + + memory-region: + maxItems: 1 + + video-decoder: + type: object + + properties: + compatible: + const: "venus-decoder" + + clocks: + maxItems: 1 + + clock-names: + maxItems: 1 + items: + - const: core + + required: + - compatible + + video-encoder: + type: object + + properties: + compatible: + const: "venus-encoder" + + clocks: + maxItems: 1 + + clock-names: + maxItems: 1 + items: + - const: core + + 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 + - clocks + - clock-names + - iommus + - memory-region + - video-decoder + - video-encoder + +examples: + - | + #include + #include + + video-codec@c00000 { + compatible = "qcom,msm8996-venus"; + reg = <0x00c00000 0xff000>; + interrupts = ; + clocks = <&mmcc VIDEO_CORE_CLK>, + <&mmcc VIDEO_AHB_CLK>, + <&mmcc VIDEO_AXI_CLK>, + <&mmcc VIDEO_MAXI_CLK>; + clock-names = "core", "iface", "bus", "mbus"; + power-domains = <&mmcc VENUS_GDSC>; + iommus = <&iommu 0>; + 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>; + }; + };