From patchwork Mon Jan 6 15:49:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 11319585 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9D00D1398 for ; Mon, 6 Jan 2020 15:50:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 79B5F207FD for ; Mon, 6 Jan 2020 15:50:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XEEyM7WI" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727219AbgAFPuZ (ORCPT ); Mon, 6 Jan 2020 10:50:25 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:46480 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727198AbgAFPuY (ORCPT ); Mon, 6 Jan 2020 10:50:24 -0500 Received: by mail-lj1-f195.google.com with SMTP id m26so48937528ljc.13 for ; Mon, 06 Jan 2020 07:50:21 -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=avd0gAE0YudQqA9I+NWgjCLJ34qPm3zqYQKHubXVmwA=; b=XEEyM7WIm0tT0+eqHeR2s1Ea70I6YGi4OMTFIWpzskPT9FIbsE/KuhcO+Q65Qr0glO z8SM0D2NALRVNaxlyFe0KB3UamBFiUzTmshAgrYvtqCs4kRs4Q8DO8xh7xG99E1jOjX+ VTbFIi9TC+MSH/JrxlGprvzhMJ9Ef3GD0gNw9r7f1Br9AEszV2Krft1Gek14slzru1TC xlUXJWbdVA6nM+BMdSZEHC1XnssFfeA5bCPhxmG5uJHhsoZNfVXFGFXApGyaRX5htDmi KgH1E66nHeTrzIsFwJJUEfk9SIs16FlL4/aeL40Sc9H4MkvlHpog1Cjb+0kchEESnMLC RPrQ== 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=avd0gAE0YudQqA9I+NWgjCLJ34qPm3zqYQKHubXVmwA=; b=el4hWxetfR9bsct3PGqWjnUR470bnTWgV/9NsBAWnNyPvRuA+B418LyRVslEXnCDN3 /xniVvtvPZonagFt08Q6yCZz6U34JzhPLpdhQogLJeolHQm3CN5ulqB1kZIgxIyfjWmL VWG31SYlSIibWF9VXyGXbVdWZQYvdxcn7ai+rGcRy7YaOZRZXzsq/rxpum5kCnkIuZO6 /ePA8ssC1dx30uqHwmGG40VhSlPVMSJ4udRYHclZ6ZaHP3Vhzv0yWxgtbrnOhnhhSVXh HIc+OyDta3ZRV9SZx5LlA62HkJ9CecRqRkzOIlIPjqBVqWmFcH00+XbRAH1hymuzCv4D JDLA== X-Gm-Message-State: APjAAAWWaa2ljq8cEB1Zq9sJQQQ1BTKprrXSiYTCwrLnSJL1rxBKZI9S i0saI8Lv8pY3TcrbPhjiTBPwLg== X-Google-Smtp-Source: APXvYqwuW9osTzmFgEwlAwOqRx/9PhjxqTq/hXh9qxAlyPAHk0PkwPRGgSIW8aUu1G/w70pzJPuRdA== X-Received: by 2002:a2e:814e:: with SMTP id t14mr58689016ljg.149.1578325821026; Mon, 06 Jan 2020 07:50:21 -0800 (PST) Received: from localhost.localdomain ([37.157.136.193]) by smtp.gmail.com with ESMTPSA id x84sm29388259lfa.97.2020.01.06.07.50.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 07:50:20 -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 v4 09/12] dt-bindings: media: venus: Add sdm845v2 DT schema Date: Mon, 6 Jan 2020 17:49:26 +0200 Message-Id: <20200106154929.4331-10-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200106154929.4331-1-stanimir.varbanov@linaro.org> References: <20200106154929.4331-1-stanimir.varbanov@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add new qcom,sdm845-venus-v2 DT binding schema. Signed-off-by: Stanimir Varbanov Reviewed-by: Rob Herring --- .../bindings/media/qcom,sdm845-venus-v2.yaml | 140 ++++++++++++++++++ 1 file changed, 140 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,sdm845-venus-v2.yaml diff --git a/Documentation/devicetree/bindings/media/qcom,sdm845-venus-v2.yaml b/Documentation/devicetree/bindings/media/qcom,sdm845-venus-v2.yaml new file mode 100644 index 000000000000..8552f4ab907e --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,sdm845-venus-v2.yaml @@ -0,0 +1,140 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/media/qcom,sdm845-venus-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: + const: qcom,sdm845-venus-v2 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + power-domains: + maxItems: 3 + + power-domain-names: + items: + - const: venus + - const: vcodec0 + - const: vcodec1 + + clocks: + maxItems: 7 + + clock-names: + items: + - const: core + - const: iface + - const: bus + - const: vcodec0_core + - const: vcodec0_bus + - const: vcodec1_core + - const: vcodec1_bus + + iommus: + maxItems: 2 + + memory-region: + maxItems: 1 + + video-core0: + type: object + + properties: + compatible: + const: venus-decoder + + required: + - compatible + + additionalProperties: false + + video-core1: + 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: + maxItems: 1 + + required: + - iommus + +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"; + }; + };