Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3975553pxy; Mon, 26 Apr 2021 14:31:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEM0tUKJK84y9QF9AVPBEo6CLkzF0ZFyEOkbs7xlUD0zpmRwzRJYIIlDafAebaPjne90Fc X-Received: by 2002:a62:188:0:b029:259:e9c9:4758 with SMTP id 130-20020a6201880000b0290259e9c94758mr19362524pfb.68.1619472707697; Mon, 26 Apr 2021 14:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619472707; cv=none; d=google.com; s=arc-20160816; b=rG4yQeqUlj9qNFBoPsiN8K6nyY0ENBahzIbkreXbhSLU/SxcUiBZF6543rWkhrATjr 3nVU9fJ+7JN0BMFOdRPKHGg3WkNW2vUM+usFd21LhzwQlmkMMZ/9OUeyEfV1xdZevSKp jsH0Q9eEuWFa57/JqfpL08D31Ql9NchTgIQ5YyPLmIXZJ/JhuiVTgfVj1LZLCp5G9Alz ztFSvHjmD5MqFkfVl8hN0KpXiCTaLB8I1VbOgPuW5D8lFvJTYCVmjhMNIVndb7Ae22Rz rREbvgjMV8XBKQ+DuVK7598wea/79Cjvu7b6WFIYeCLTH5Ysy19fd4UdEp1OIaBQbqky lhGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2ckH4hUfpDdDWwuKa1ZBizdcjSL+I5Wex++8qFAuFSE=; b=i11M1bTNw37AtO8bbD/hYA0i39Ijf4eODyxbSEZNSB5+qWZsNJlwo52oW62VJc4lj2 y4KQRXk9rUgTkxlZJ1ahPZS7PKRzEtEJcunw/mCi/eoJFh01wQI2KyiM5DZCVo4YDx/w RGt6fMrsMASXhTeJyccWoeNE+OZf7jeZN92E/w8O5eINxkf+pWVcdxBIUCH4izQ49zFH 6u9pGqSpkhjY3fCgsUIFsN6U4nYnwQyCquuBMg7EZSHkKe0JsQe119HGp+Q446VZSHf+ BTlAp04vxDTLXSLxZV1yOcuk7DmNb5+XRkMxwX2HRlUE6/Xwtvrfrdgo9AMM3Jg/G33d obXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XTpFrYb1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t17si21844700plg.102.2021.04.26.14.31.34; Mon, 26 Apr 2021 14:31:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XTpFrYb1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234959AbhDZVbf (ORCPT + 99 others); Mon, 26 Apr 2021 17:31:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233964AbhDZVbf (ORCPT ); Mon, 26 Apr 2021 17:31:35 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D374C06175F for ; Mon, 26 Apr 2021 14:30:53 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id m6-20020a17090a8586b02901507e1acf0fso6070249pjn.3 for ; Mon, 26 Apr 2021 14:30:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=2ckH4hUfpDdDWwuKa1ZBizdcjSL+I5Wex++8qFAuFSE=; b=XTpFrYb10B3+0YojlYf9ZaXG/ustpKd0v0gQZcJ+WZoXI08GHZoSEWj+LTSV6svoq6 UJE3bLsaixQPJp/Wo4LJE11HKmCZk6dEUv2mpD8Nscn27L2WwRT+4aXlWqV+zvFuBAVe 8dAIo3/n5zno5DtKrWcGJ+zhmz6PyxcfzCc8k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=2ckH4hUfpDdDWwuKa1ZBizdcjSL+I5Wex++8qFAuFSE=; b=rRN5WR7V8/np/dfb4pOSgvQGLwPB6fOUjTs/y+dKASXTGVV6vodRAA9ZCMtnJgvJm9 ffibd9XtDh30jGaM9xZwtVsnMo6xWOV3Rcg4Ui5WxmzngJeCAiCK5ECvbJ7sblj4nzJv 422ufgMa28X+HZe3B5sknAPLYPTBgUB0iVWj3Jwx81wgDoyYuMOEP9Yhn3MmHIfve2V5 Ubje49Qf3C+QCU8DUkA1Uo63+BJGQbRDzpdki9ezbhhpPC/qvC3NgchzdBJC0lTcj3mQ 4O+5VNokApQQStQ1YdnWWtrSo3DSw1lQzGGMc58zEJG+8XTIEHSslAHFd05dIzfU2ECn yoAQ== X-Gm-Message-State: AOAM533I/bX5YTb605CrCMm0cUpsoo3qUTf0a1uwUYf6MJBAEI1+GcQL fv8Q4/j69cP3cXvXVAehChijkQ== X-Received: by 2002:a17:90a:c7d4:: with SMTP id gf20mr13763967pjb.106.1619472652585; Mon, 26 Apr 2021 14:30:52 -0700 (PDT) Received: from localhost ([2620:15c:202:201:3a16:de17:8721:d706]) by smtp.gmail.com with UTF8SMTPSA id d26sm535416pfq.198.2021.04.26.14.30.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Apr 2021 14:30:52 -0700 (PDT) Date: Mon, 26 Apr 2021 14:30:50 -0700 From: Matthias Kaehlcke To: Dikshita Agarwal Cc: andy.gross@linaro.org, david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, vgarodia@codeaurora.org, stanimir.varbanov@linaro.org Subject: Re: [PATCH] dt-bindings: media: venus: Add sc7280 dt schema Message-ID: References: <1619432515-9060-1-git-send-email-dikshita@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1619432515-9060-1-git-send-email-dikshita@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From a quick glance this looks extremely similar to the venus binding for sc7180. Is there really a good reason for a separate binding? On Mon, Apr 26, 2021 at 03:51:55PM +0530, Dikshita Agarwal wrote: > Add a schema description for the venus video encoder/decoder on the sc7280. > > Signed-off-by: Dikshita Agarwal > --- > .../bindings/media/qcom,sc7280-venus.yaml | 158 +++++++++++++++++++++ > 1 file changed, 158 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/qcom,sc7280-venus.yaml > > diff --git a/Documentation/devicetree/bindings/media/qcom,sc7280-venus.yaml b/Documentation/devicetree/bindings/media/qcom,sc7280-venus.yaml > new file mode 100644 > index 0000000..a258d97 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/qcom,sc7280-venus.yaml > @@ -0,0 +1,158 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > + > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/media/qcom,sc7280-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,sc7280-venus > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + power-domains: > + minItems: 2 > + maxItems: 3 > + > + power-domain-names: > + minItems: 2 > + maxItems: 3 > + items: > + - const: venus > + - const: vcodec0 > + > + clocks: > + maxItems: 5 > + > + clock-names: > + items: > + - const: core_clk > + - const: video_cc_mvsc_ctl_axi > + - const: iface_clk > + - const: vcodec_clk > + - const: video_cc_mvs0_ctl_axi > + > + iommus: > + maxItems: 2 > + > + memory-region: > + maxItems: 1 > + > + interconnects: > + maxItems: 2 > + > + interconnect-names: > + items: > + - const: cpu-cfg > + - const: video-mem > + > + 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 > + - power-domain-names > + - clocks > + - clock-names > + - iommus > + - memory-region > + - video-decoder > + - video-encoder > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + venus: video-codec@aa00000 { > + compatible = "qcom,sc7280-venus"; > + reg = <0x0aa00000 0xd0600>; > + interrupts = ; > + > + clocks = <&videocc VIDEO_CC_MVSC_CORE_CLK>, > + <&videocc VIDEO_CC_MVSC_CTL_AXI_CLK>, > + <&videocc VIDEO_CC_VENUS_AHB_CLK>, > + <&videocc VIDEO_CC_MVS0_CORE_CLK>, > + <&videocc VIDEO_CC_MVS0_AXI_CLK>; > + clock-names = "core_clk", "video_cc_mvsc_ctl_axi", > + "iface_clk", "vcodec_clk", > + "video_cc_mvs0_ctl_axi"; > + > + power-domains = <&videocc MVSC_GDSC>, > + <&videocc MVS0_GDSC>; > + power-domain-names = "venus", "vcodec0"; > + > + interconnects = <&gem_noc MASTER_APPSS_PROC 0 &cnoc2 SLAVE_VENUS_CFG 0> > + <&mmss_noc MASTER_VIDEO_P0 0 &mc_virt SLAVE_EBI1 0>; > + interconnect-names = "cpu-cfg", "video-mem"; > + > + iommus = <&apps_smmu 0x2180 0x20>, > + <&apps_smmu 0x2184 0x20>; > + > + memory-region = <&video_mem>; > + > + video-decoder { > + compatible = "venus-decoder"; > + }; > + > + video-encoder { > + compatible = "venus-encoder"; > + }; > + > + video-firmware { > + iommus = <&apps_smmu 0x21a2 0x0>; > + }; > + }; > -- > 2.7.4 >