From patchwork Mon Jan 6 15:49:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 1218272 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="LKjF/Z2x"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47s0Mc1kvFz9sRk for ; Tue, 7 Jan 2020 02:50:20 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727170AbgAFPuS (ORCPT ); Mon, 6 Jan 2020 10:50:18 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:38815 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726814AbgAFPuR (ORCPT ); Mon, 6 Jan 2020 10:50:17 -0500 Received: by mail-lj1-f195.google.com with SMTP id w1so29428839ljh.5 for ; Mon, 06 Jan 2020 07:50:16 -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=/+dblA6Wy0tDMwHasv9xRaZyCud7/rwb9gx5/QrCftY=; b=LKjF/Z2x7BaM5oYy018MsZLuE3DY4Xdj4wALpx+CXzic9zxuyJSkM973+bW0LXZ7Jt iNAoxzCASRvEHUrn5pmPPwH5uPfi36WQcWWioTQvXH2lB1ahobp6SUbZXu1YhQtLTnvg egPsCM1ZtLSJfXQSBVl2HMOP1K+Viru0c8/fhVr/E4YhplS8/YHCT1VqGpPWE2BA2y6N ky4S+R23oHGHQ9E+xTWm6mftMg8MuLDRtzdLuDP28FV1YWg0SpN50w7GZgOD14tCT/P4 E3ML/yezZxKOJudOEF20ZzHtedGvlG0bl5IiVcHh0a+ay/91DJJ6aPn1TLr8udQ44iHE RDjw== 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=/+dblA6Wy0tDMwHasv9xRaZyCud7/rwb9gx5/QrCftY=; b=YHHm9cuBYAF+QhOZXXX78lst4SHMvKzErqp+hRqap3ONvI2oFEHoQj1uKRr3N9hcz7 27HUiLxEXs2BRUYoaznSksEUarepg4P+F7cwc6xqe0VrgsZG/rG+qtGJ/VYt7FJsqT92 B7lLI+JBHbqpF178sIyn5swlFe4Nh8itV4p0r6e/bDESD/U22wuDP/3awDVoVp45hewR +Swdu0XM4ho6X9k73jbJtVkuyYKEWxSql46y3dK0eG3rmc3MJof+X4xy6qUkR1nffJtB EWKohYk60JEeKQInjrju7tdzJdQ7kCztnLf94R5zRyC8C0FMEh+qFTQATZLxD41na50P +xKQ== X-Gm-Message-State: APjAAAVoHhgVYBQCytqGOdz8LuTEEvHtx+pZyqWcD49iB83IRx2c3wKn wxqPSh9FuN0cAZ4uILnj5Gi3Xg== X-Google-Smtp-Source: APXvYqxTqabEyznutx2Q7Gem5cLQGCFZQVURZpqpzJS7jK/BM63SY9X8gAYeOTTmIYzbwe4lXwKyVw== X-Received: by 2002:a2e:9183:: with SMTP id f3mr22972214ljg.64.1578325815438; Mon, 06 Jan 2020 07:50:15 -0800 (PST) Received: from localhost.localdomain ([37.157.136.193]) by smtp.gmail.com with ESMTPSA id x84sm29388259lfa.97.2020.01.06.07.50.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jan 2020 07:50:15 -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 06/12] dt-bindings: media: venus: Convert msm8916 to DT schema Date: Mon, 6 Jan 2020 17:49:23 +0200 Message-Id: <20200106154929.4331-7-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert qcom,msm8916-venus Venus binding to DT schema Signed-off-by: Stanimir Varbanov Reviewed-by: Rob Herring --- .../bindings/media/qcom,msm8916-venus.yaml | 119 ++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/qcom,msm8916-venus.yaml 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..f9606df02d70 --- /dev/null +++ b/Documentation/devicetree/bindings/media/qcom,msm8916-venus.yaml @@ -0,0 +1,119 @@ +# 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: + maxItems: 1 + + 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: + maxItems: 1 + + required: + - iommus + +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"; + }; + };