From patchwork Mon Dec 23 11:33:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 182400 Delivered-To: patch@linaro.org Received: by 2002:a92:a146:0:0:0:0:0 with SMTP id v67csp305840ili; Mon, 23 Dec 2019 03:34:00 -0800 (PST) X-Google-Smtp-Source: APXvYqzgOmw4DHzngLIIKP7ntNWibkg3sSQMOz4IuWnrkGVQpMXIzUZkac2VUt5w6BdVirMTup/d X-Received: by 2002:aca:728c:: with SMTP id p134mr5959516oic.176.1577100840641; Mon, 23 Dec 2019 03:34:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577100840; cv=none; d=google.com; s=arc-20160816; b=EOIXUZYajE1p0xmAoRzZqESykPgnzvvKEm0qdVan5RbAR6nn4T8tbjk3et5rwsVmcW Bi1XNlPDA/KpEBBtOpcQq4ISi2OvCAzSRdLH26A+xE+EHiASWYwoh7h5DaXLTwZb7P9E pPgIe6ZtPOOMK/JoJ/tlAfluzf1uSYvs6qy2PCdJnN+UcR584t0AUAOG2boKIvp/M7As 3hWZdFap1ZlQR7gkSQ0ixG+uafsqiZafcysGTddGif2GzInXUKseOe4fkFoTopSVqo+B d54Ip7d0UZwVMnrGgmzaUVQsoJP772VMo+uUf7TdnLQv/ApqXVT1Z3hcOZHcWt84I/4g jSwg== 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=4Sx+Ffce1P6yPQB1Yvs6yRRad8RPj7QM5hUn0Iss1Ak=; b=k1BxUYS6JBeW7LAdoDQG6y+2M1pTjHdnJOShl/E7lmRsRKdnrU+BUf7flf4s0Ljgbn fianWCEhwsx9H/IxyB+YsfJgWZJiSaud90GcgdLJev0PgybeWnjFtGw/FtTfLuDphSw5 LjyXya3wVA2TlrT9I7iKdpLjCeDEOvoCWQG38cWuaCc8JgiyHCcnxZ/lhMjP5ZXlK8gC VK2D0TLkOSLOuY3Rvvb5uXk/mFbakcySztfhBlDAU4LApOekEia+JCC9RxeRY/uxAUwG S4RwXDN2l5eCeQSIcDmp8ci48wxT9ArTvwNrP+C1xYy7zuTMnebF8ZWiMqUISRLhvP+7 1w5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CJgFlssV; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 200si9003352oii.156.2019.12.23.03.34.00; Mon, 23 Dec 2019 03:34:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-media-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=CJgFlssV; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-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 S1727100AbfLWLd7 (ORCPT + 4 others); Mon, 23 Dec 2019 06:33:59 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:33709 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727040AbfLWLd7 (ORCPT ); Mon, 23 Dec 2019 06:33:59 -0500 Received: by mail-lf1-f65.google.com with SMTP id n25so12404015lfl.0 for ; Mon, 23 Dec 2019 03:33:56 -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=4Sx+Ffce1P6yPQB1Yvs6yRRad8RPj7QM5hUn0Iss1Ak=; b=CJgFlssV6Q26pqI4XnvLGZZpr3PUlJEKjXNorCXRAON27GCx7y19UES7qx9WSjemHL N8jjs+rNVRScoE6oX50pQb+VVM5+U6y4HDPUAdixaboQPBIY9cd4/ME5Leni5kSg4QZB hQhrHBrfjrsghxqbxsT5THsrwjYWLXDz2SNuCCpz9FAEcAs/lUf0Vo8R+zL72dMrLN8Q R/tBXhOtrjTbpou8BkOJQfnUbtk+eq+VNLwupF/9DtVrl25V+YEB1pOy4Gxpde3AbRA0 s9i9IOocRabnu5Q8OYvCtK0XDDgI6MWWQV5ZGU3+qENrUctLjaQUn8rGPGj2pAmBWgMk GaLQ== 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=4Sx+Ffce1P6yPQB1Yvs6yRRad8RPj7QM5hUn0Iss1Ak=; b=NEdltN5VKV2ZeBh136tT97ScnQVXuQgIXz0DULx8nHxj1hFEjeO4TS132fx0MhpTL8 f1OS5QcZbYkkvEnS9Nr7fmYzuwIAHCgMCa81WlTHsEDjvgVoNIBNrDRCoZ/y9GFJFvXD CfSsRQxlWRW0BRkWTeQ70OjSoqDphfE2p5dZBg6oOHU55SYQBYAtavu5nM1ZjrO5K7on poKqt0gViiU6ALevc5WWtaBjF7H+0QqHVm+PSIsIu0Z3b91H9lbEn0Ex52gyq8FaOvC0 HxHyTzXUIzSOwnmc6DiesYbBJuf6vOxKms249ugAwqK4J9vrRwkRGm1GWi/eIuW1re+c oNwQ== X-Gm-Message-State: APjAAAXjc8qapUOlzSHjMO3moQBrCOGn7Drfe1ozqobeiC5CtCuBosCl I7svK7YHEc/Yqqtg8Zcx0zdJo30c9H8= X-Received: by 2002:ac2:5635:: with SMTP id b21mr16568619lff.127.1577100836099; Mon, 23 Dec 2019 03:33:56 -0800 (PST) Received: from localhost.localdomain ([37.157.136.193]) by smtp.gmail.com with ESMTPSA id g15sm8381500ljk.8.2019.12.23.03.33.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Dec 2019 03:33:55 -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 v3 08/12] dt-bindings: media: venus: Convert sdm845 to DT schema Date: Mon, 23 Dec 2019 13:33:07 +0200 Message-Id: <20191223113311.20602-9-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191223113311.20602-1-stanimir.varbanov@linaro.org> References: <20191223113311.20602-1-stanimir.varbanov@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Convert qcom,sdm845-venus Venus binding to DT schema. Signed-off-by: Stanimir Varbanov --- .../bindings/media/qcom,sdm845-venus.yaml | 157 ++++++++++++++++++ 1 file changed, 157 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,sdm845-venus.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/media/qcom,sdm845-venus.yaml b/Documentation/devicetree/bindings/media/qcom,sdm845-venus.yaml new file mode 100644 index 000000000000..ceae04be96dd --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,sdm845-venus.yaml @@ -0,0 +1,157 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/media/qcom,sdm845-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,sdm845-venus" + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + minItems: 1 + maxItems: 1 + + clocks: + maxItems: 3 + + clock-names: + items: + - const: core + - const: iface + - const: bus + + iommus: + minItems: 1 + maxItems: 20 + + memory-region: + maxItems: 1 + + video-core0: + type: object + + properties: + compatible: + const: "venus-decoder" + + clocks: + maxItems: 2 + + clock-names: + items: + - const: core + - const: bus + + power-domains: + minItems: 1 + maxItems: 1 + + required: + - compatible + - clocks + - clock-names + - power-domains + + additionalProperties: false + + video-core1: + type: object + + properties: + compatible: + const: "venus-encoder" + + clocks: + maxItems: 2 + + clock-names: + items: + - const: core + - const: bus + + power-domains: + minItems: 1 + maxItems: 1 + + required: + - compatible + - clocks + - clock-names + - power-domains + + 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 + - clocks + - clock-names + - iommus + - memory-region + - video-core0 + - video-core1 + +examples: + - | + #include + #include + + video-codec@aa00000 { + compatible = "qcom,sdm845-venus"; + 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>; + clock-names = "core", "iface", "bus"; + power-domains = <&videocc VENUS_GDSC>; + iommus = <&apps_smmu 0x10a0 0x8>, + <&apps_smmu 0x10b0 0x0>; + memory-region = <&venus_mem>; + + video-core0 { + compatible = "venus-decoder"; + clocks = <&videocc VIDEO_CC_VCODEC0_CORE_CLK>, + <&videocc VIDEO_CC_VCODEC0_AXI_CLK>; + clock-names = "core", "bus"; + power-domains = <&videocc VCODEC0_GDSC>; + }; + + video-core1 { + compatible = "venus-encoder"; + clocks = <&videocc VIDEO_CC_VCODEC1_CORE_CLK>, + <&videocc VIDEO_CC_VCODEC1_AXI_CLK>; + clock-names = "core", "bus"; + power-domains = <&videocc VCODEC1_GDSC>; + }; + };