Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4380300pxj; Wed, 12 May 2021 04:31:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlnrCmd9ncZeo2paryYSM9TsAmPSo71e0T3GkGejzK92Bj3/IwR/9mpFTPOXGp6iztDOJX X-Received: by 2002:a92:c7a6:: with SMTP id f6mr30383377ilk.17.1620819082892; Wed, 12 May 2021 04:31:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620819082; cv=none; d=google.com; s=arc-20160816; b=jf25w+4YOF/gbgHgfutCsC/BMUi6AuzM0pAF74HRkN0bqLFtx1p1rwV+ZzOXL7HRgF PUmWzH/E5aEMfzMPS2cvijLT7+a7E4bIyh72sF/NrlIHMaBBMTXKJTgW77ky5VS8EUKK 76h0dzmjsQ690vcQopQIqe92PUzqSgNaTlGMKHN8C4Pi/8YY3LagF9VInrfGQdRsntHX 94pQ5O672yuz30C9Nkv0baqXzrPh/VG4Bd9S/+SXer6jGZqdyWFxpTFMkuL+Iq2ujiMF zKY2eZFn4ittGdadB3UvkytRu2J6B6oFbF8mch8f8YpsqRkmOAB0BSxjxtRoK9OeRLDA rESw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=p+0YOYaRxbFMw+uL/7LtmKF1N1pHhWl+ZjgZZT1HKoQ=; b=uV32uXA/cGpqUb215ZG+P6cQlDi99NHXYtuS7Ko3zzJrCw0bijL/cbdCReuW5h01N2 qLdo+eQU8L3OZRNCZ02Ort/wxgcg6rrU5PD3OGrcsB7rsG7IVtrup2kK9g5D8+Zi6jyJ UG5scnwWNpC0TwHbATwhO6BpxoLwpsE0Nin2iZVUi7sd1/ufqDUhUhOerpSaHjBV6Mh5 zwpmNgyVBIuTVSwa9pmDCTzeJ+yhBqCH8nsDnTIX0TR8v2z3mg2AT8zj1a8Id2UxJbWj 7PPNjIg+sW9W+4Ws+8bO2eK1GRoXN9bZGMucp2RpC9allOjOTEFYEycQkQHz6hgMsds3 yAbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W8dni7W2; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r25si22340676jai.80.2021.05.12.04.31.10; Wed, 12 May 2021 04:31:22 -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=@linaro.org header.s=google header.b=W8dni7W2; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230300AbhELLaZ (ORCPT + 99 others); Wed, 12 May 2021 07:30:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230129AbhELLaY (ORCPT ); Wed, 12 May 2021 07:30:24 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A98EEC06174A for ; Wed, 12 May 2021 04:29:15 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id j10so7405996ejb.3 for ; Wed, 12 May 2021 04:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=p+0YOYaRxbFMw+uL/7LtmKF1N1pHhWl+ZjgZZT1HKoQ=; b=W8dni7W2/iKgS4s2GmvXABI+I7ETlzol9q3RpkgFQySHdK+VDlAE6ew5oXAPqATjm9 wrul/me2EACVtHMa53KKBcN+eUiqjrMM0921B/LZ9NrtyCn1G3RQLdcQHm6JueRmE1/A TP4pIbR4ayOBSsPGd4Q6wHerDj0ayHkA8SoaDeNETd6VJyn0THlOVD9te6/ZN18P79wb /U1oP3btpGXtHPAGujnt4z2eEpowEl6rd4RaOXwTareGC9yAzdTcgnZZb0ORJchuYDWn 5pycrTSliO6DjWh8/gadoKH1bTAX31ymM9G2iKouHD3+BZS/8WtzrK6ocW4Qyc2jstbx FnlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=p+0YOYaRxbFMw+uL/7LtmKF1N1pHhWl+ZjgZZT1HKoQ=; b=U/VZ9lxgVZbjyPes486w6JV8TqryqLgepczUyXCzsUwmKCEnMUiHNUl14ZVY0mku3N S1w0AHGkwnI4S3iuce8PWpbPdUhOU0XJOlnZOy/vCp+kUnha/Iig33IW5q2dtjfL1vCH TD4GiqUMgwlFOHxnQt/mthHoQ0fUcYWjJG8DRItwP4J7mmKYDEjWAbpsidmM6Zg54HPU uE0hbn93NopiZ4RuqopHBak7RjOq44MdHUmR9ye6B563tgOeD/wGIL6dwtbByXpf+lVo XaAFwNd1lHMnlpK82tJadSMWp0eUlu3lB+XmJjbQpO01Za8dCLjEr0zwAdlbllpt1bz8 7rkw== X-Gm-Message-State: AOAM531cYKSwYndgv+bj2e3yy+sezqLCFn1i5LQHrvTorj50BejAvBpI fBOnt8Thcs1VziJkygVe5qrkOA== X-Received: by 2002:a17:907:766d:: with SMTP id kk13mr37418524ejc.417.1620818954369; Wed, 12 May 2021 04:29:14 -0700 (PDT) Received: from [192.168.1.14] ([195.24.90.54]) by smtp.googlemail.com with ESMTPSA id o22sm17412576edq.60.2021.05.12.04.29.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 May 2021 04:29:14 -0700 (PDT) Subject: Re: [PATCH] dt-bindings: media: venus: Add sc7280 dt schema To: Matthias Kaehlcke , 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 References: <1619432515-9060-1-git-send-email-dikshita@codeaurora.org> From: Stanimir Varbanov Message-ID: <9871b811-f018-eac8-1816-72f982c2b82a@linaro.org> Date: Wed, 12 May 2021 14:29:12 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matthias, On 4/27/21 12:30 AM, Matthias Kaehlcke wrote: > From a quick glance this looks extremely similar to the venus binding > for sc7180. Is there really a good reason for a separate binding? The Venus IP is different (newer) for sc7280 (Iris2 vs AR50), and I think it is clearer if we have separate yaml for it. > > 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 >> -- regards, Stan