From patchwork Wed Dec 18 13:22:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 182003 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp646781ile; Wed, 18 Dec 2019 05:24:13 -0800 (PST) X-Google-Smtp-Source: APXvYqw24t6RcWER0OtFqC4reK5dRKNo3aQm4iqqhH9KSLx2XgPfYnWRqE0Iyjk2o+FrJ/r3hPf7 X-Received: by 2002:aca:f1c2:: with SMTP id p185mr201853oih.87.1576675453174; Wed, 18 Dec 2019 05:24:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576675453; cv=none; d=google.com; s=arc-20160816; b=fX9KoW6pZAH1PkiUwc7lA7BI2jaHTdEylo/W0dMC3kaVvH7Bp4x64U0RYbFvN6HC9w C5k9ijtgEdLNVxoeGYXTnTihFNZBbC52X9N6gWFLKSI3FDTYd5qCwUiYuB07gL83pMP1 R56fstTWXTFVHXOkyQ0NtuWy/tTXk/Xf10/f/t+7iPTxfSAFdCvNBk0hgbS1LU6Deq0p /LFWSfwZV/HRnhnK7cywTek64G+eYA2PX+WtBIqLTiRDU8lLjvWSCuUK2jrxcn0EBHKz Lj2l54OqWaa9NkUOTeRRtmFUaJuKsrpANFBbKkbFwYWUABqpCDmUdZR0itPX6LFGcvC9 pqMA== 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=elchFhZaQqCljObbrVWX5gAwlUOkHif5wtGb7OTNVrQ=; b=LF4A4i0/psJXNpBwCPIhWZ2eBIR6T+xhsrVe4X1FbiWqK/Rg3vNsvf7swYTDt51wnN 3VQNWOm2i/rnOXVNj/gfl1iey9rgG4m2kGf4nj1WXWUflHhQqQ9qHFw/a1QZTY/6tOGu /xscC01k+4Axv8+vs3XO5yUflchObuY4tilglnOg9YWaj5K4fBNqgFjT8h1g8hVqLCKN /ZKJeNNv8s553lvF/cbE8WphB+NGyCh0FyO0d5hTa5uOdy8izlIn4bE8pr0xQvv4I8O2 0JFe2ab8dy/S/m4+VB48L6WjTzp4duzEtaoNQutinS61R3JN+bNy4sth2IddbSaQOLvC 1DsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Sd9/Owv7"; 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 t18si1408196oij.133.2019.12.18.05.24.12; Wed, 18 Dec 2019 05:24:13 -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="Sd9/Owv7"; 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 S1727345AbfLRNYK (ORCPT + 27 others); Wed, 18 Dec 2019 08:24:10 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:37320 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727097AbfLRNYJ (ORCPT ); Wed, 18 Dec 2019 08:24:09 -0500 Received: by mail-lj1-f194.google.com with SMTP id u17so2125388lja.4 for ; Wed, 18 Dec 2019 05:24:08 -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=elchFhZaQqCljObbrVWX5gAwlUOkHif5wtGb7OTNVrQ=; b=Sd9/Owv7c4QCll0EOO34jDhL1TvjTR3zg7RdBLhRq2l9YNY56Z+nkVsfGhAhPnTr6W kXP2Qpq3mdlhErLzCofHRUpBbfac4KpS4c9LIe3R98MVHNJajyGzDZkrQrJMvb78uhqH xi3PG1w3+dH1997lQCiCT4GEf/4WgV84185mRRfolgRVgTgZWEunmprO17CqINodLAKC 8orR+BZQHIyN6J9tLaUChiggcnED4oLFTZ+6g0AF+RFlLxX5ND9kjKhmDX81y27rjsBu V+CNNTZT7nWL8o7OhwUQJ/4zP7XhgwA0RFdsiIUo8WsskKxMSB24ZC46t1K7EiHXeWyF 57qA== 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=elchFhZaQqCljObbrVWX5gAwlUOkHif5wtGb7OTNVrQ=; b=gLjwE3YffwXUV8R8ACsh7oJ6aC/wKUoD7MKlKrch7g0ODxrpbauXzWiodIzFocnR31 iWvtMdUB6P2PdrNmtPudP1Gzxw6RDIiEiAj44WHkcUekWchtBkeIEcI84igBYYrdNXmz x03XpADahTlO9G/tOlP2cvIpLtUCaN6vYLyqC9g8oW+6mUFdtrwerb4qBqeLz3x1gink mDiHYGlVH65jakKAQP0BNsBDpocCyMjS2pNU8DTspBRIDu5iozN1ac60C2D58flH9OwF a5RY1giGSAwrj/PkNOPNxDxjSxLnTMwkgilVt6VkFi7P+RguiLebjOnyBA91RCatw6xl emfQ== X-Gm-Message-State: APjAAAWyEOUaH2CxTJWgEJqyAfD0gkDLAPROYP9LA7GvNNaxId0iqkNN NhxMyKz3ndvscKr1TytjnglUJg== X-Received: by 2002:a2e:999a:: with SMTP id w26mr1783354lji.142.1576675447780; Wed, 18 Dec 2019 05:24:07 -0800 (PST) Received: from localhost.localdomain ([37.157.136.193]) by smtp.gmail.com with ESMTPSA id z7sm1440667lfa.81.2019.12.18.05.24.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2019 05:24:07 -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 06/12] dt-bindings: media: venus: Convert msm8916 to DT schema Date: Wed, 18 Dec 2019 15:22:45 +0200 Message-Id: <20191218132251.24161-7-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,msm8916-venus Venus binding to DT schema Signed-off-by: Stanimir Varbanov --- .../bindings/media/qcom,venus-msm8916.yaml | 115 ++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,venus-msm8916.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/media/qcom,venus-msm8916.yaml b/Documentation/devicetree/bindings/media/qcom,venus-msm8916.yaml new file mode 100644 index 000000000000..f82a8d968202 --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,venus-msm8916.yaml @@ -0,0 +1,115 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/media/qcom,venus-msm8916.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,msm8916-venus + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 1 + + clocks: + maxItems: 3 + + clock-names: + maxItems: 3 + items: + - const: core + - const: iface + - const: bus + + iommus: + minItems: 1 + maxItems: 20 + + memory-region: + maxItems: 1 + + video-decoder: + type: object + + properties: + compatible: + const: "venus-decoder" + + required: + - compatible + + video-encoder: + 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 + - clocks + - clock-names + - iommus + - memory-region + - video-decoder + - video-encoder + +examples: + - | + #include + #include + + video-codec@1d00000 { + compatible = "qcom,msm8916-venus"; + reg = <0x01d00000 0xff000>; + interrupts = ; + clocks = <&gcc GCC_VENUS0_VCODEC0_CLK>, + <&gcc GCC_VENUS0_AHB_CLK>, + <&gcc GCC_VENUS0_AXI_CLK>; + clock-names = "core", "iface", "bus"; + power-domains = <&gcc VENUS_GDSC>; + iommus = <&apps_iommu 5>; + memory-region = <&venus_mem>; + + video-decoder { + compatible = "venus-decoder"; + }; + + video-encoder { + compatible = "venus-encoder"; + }; + };