From patchwork Mon Dec 23 11:33:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 182399 Delivered-To: patch@linaro.org Received: by 2002:a92:a146:0:0:0:0:0 with SMTP id v67csp305766ili; Mon, 23 Dec 2019 03:33:56 -0800 (PST) X-Google-Smtp-Source: APXvYqz0UGI2hhKRMBASjxWppALzDuOkAbnCvkuSQJwUB/EacnK/za7Ii3hQXfCgQgglTWGAqwab X-Received: by 2002:a9d:7590:: with SMTP id s16mr30088641otk.89.1577100836801; Mon, 23 Dec 2019 03:33:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577100836; cv=none; d=google.com; s=arc-20160816; b=ASnZV9PqnreD8IfAjuZ1ytsYUUz2wMfgNoLkLOhhz2hREI3w23vQCBGCYu8D/DQkLq 4+/j3LJllT0oxA0X/AzYAJ25SWGJg8yWW3KeNZXdcuyi5cdQd6nfkvgPs1TQS4nZvz8Z RGR3jf+pZq7iwhXrBlQIgU6DT8vHF5kzWuUQhpLkgXoCFvFjzHUuVL+pq1LeHinlzmot I+xVvk5SOmEtaHvRHVNXGXnzkEY0C+RuM+K614gOScpkeXXCKflPkvQ6ZYJK8Bc+Ikyk bH4rTkjrtkHYFpJxbEo8WnDVtOSnA9o3nAKbiKrVeCyUTeIAyzJpMmzzNhMhqeog5ULs utug== 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=jkanxD20zHkGk3fihhvJoQvRjKe+QCxfIUzc4lNxBrk=; b=o229xmR5B7QnuQhknpUCPTkL+UWYMPTLf/yUOlrop3fINWFOVtLmde1rpz8kmI4j5Z B9qSMHuhD85JUoFZuPCcLuAtWW/aLg3uBsBqsnk8uQKn8AdsSJUO8Jh7iXicjGn8Y14Q ueQvnDH96wZQp/VWIIX0k5g7UCgLAcf7uVe2pjSurePKz91Hs/HL9WceNryuwUJmzgEf 4SJG0DSSqjmuR0kdn3q7ixLD8yF+G3VKc2N8VgChj3lmYY8v2IWGHZQAdNlhdsOZmfuB nTC21HnNTVxSyZQR8UK++eEYP8H8zlNqujxG4Wawxj6viZNB20cvq3+9r6+PncGESldE eRTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=L1i18nve; 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.33.56; Mon, 23 Dec 2019 03:33:56 -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=L1i18nve; 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 S1727015AbfLWLdx (ORCPT + 4 others); Mon, 23 Dec 2019 06:33:53 -0500 Received: from mail-lj1-f169.google.com ([209.85.208.169]:44788 "EHLO mail-lj1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726954AbfLWLdw (ORCPT ); Mon, 23 Dec 2019 06:33:52 -0500 Received: by mail-lj1-f169.google.com with SMTP id u71so17404467lje.11 for ; Mon, 23 Dec 2019 03:33:51 -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=jkanxD20zHkGk3fihhvJoQvRjKe+QCxfIUzc4lNxBrk=; b=L1i18nvecldHa2M8xvd1KHs+F4+mRrL9Mhz/OTamE4p7N3xRkiUDwtZeUP4+yfhPZ3 xf+IaoIjpyFT++N8BB/9k7gDDz0bcyLHFgJFU5Zt+bbtc/uDJjD7+X+1abPG87o3m8Qw 8mHizWC2jY3EUxC4FOLNO1sAaLQTbH6bJnvoOG9hA+AQECHqgKtw0yXDPNidK/TtgHVK g9m/Ko4rvuK1Vdy9uyuNdvRcigeYQeyNclbd+uPO5Un/IaToFjlW503X79Mt7fxxTlFd 5OYknwQw04TaIE39F4q8/+I8NmMvEb10B0mQeym2MYIL7lOUMUs5TRjnXnCy5xHliz/v LIkg== 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=jkanxD20zHkGk3fihhvJoQvRjKe+QCxfIUzc4lNxBrk=; b=go9xJ+50juOWUdQp5pSYr2tZYCZfnSYe/CVJMT7xrBrhXnvGS5XA/kYX0jEnZqtMYK 8YvfhbVI8aR1lCfJusBs2uBCQw9FIMtqOds1Nm0Pvnd8Y7bZhAJhBM/9Ho0gC6eqNTKC FUi+Y7ByXj8j/gkHunihmx8wLLb244kItdEIu9W1gBryOBm9Q8W9UWJDaZYsmGLzJbhu QU+Y15DuAxOb1eWrBH4jBm+k3LCEKRbGcjUBI47y+PlyEydiqj9Lbb5nwuTH53IJmVHB szOTaxx6/Qk89izwD1Ho65AyrzwraD0i9jBSbqkFWv4cVvLnni4+wsfet1xUy/Njyxmx 9NiA== X-Gm-Message-State: APjAAAWRCWz5oA5amuGFM9P6bsqinnqi3em7yDFzIbs3K3pnKArvt4Cj vRswwim1RlZ7h6Hho5duoHLbTw== X-Received: by 2002:a2e:b4cf:: with SMTP id r15mr17687359ljm.52.1577100830595; Mon, 23 Dec 2019 03:33:50 -0800 (PST) Received: from localhost.localdomain ([37.157.136.193]) by smtp.gmail.com with ESMTPSA id g15sm8381500ljk.8.2019.12.23.03.33.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Dec 2019 03:33:50 -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 06/12] dt-bindings: media: venus: Convert msm8916 to DT schema Date: Mon, 23 Dec 2019 13:33:05 +0200 Message-Id: <20191223113311.20602-7-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,msm8916-venus Venus binding to DT schema Signed-off-by: Stanimir Varbanov --- .../bindings/media/qcom,msm8916-venus.yaml | 117 ++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,msm8916-venus.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/media/qcom,msm8916-venus.yaml b/Documentation/devicetree/bindings/media/qcom,msm8916-venus.yaml new file mode 100644 index 000000000000..14331c16135c --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,msm8916-venus.yaml @@ -0,0 +1,117 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/media/qcom,msm8916-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,msm8916-venus" + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 1 + + clocks: + maxItems: 3 + + clock-names: + 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 + + 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: + 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"; + }; + };