Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4377968pxj; Wed, 12 May 2021 04:27:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyG6ACmUJJOmPtu3ESfvNUk/mnQx4q2sXp5wWp9/VBggSscBGdUxmdYLejNJnutbiicbJ9u X-Received: by 2002:a5d:9ada:: with SMTP id x26mr25536611ion.209.1620818863408; Wed, 12 May 2021 04:27:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620818863; cv=none; d=google.com; s=arc-20160816; b=pWLoAtojgXBOXUjn3QnuNyU9CpPHrZlrL9aBCkvAxTjn0TcztEaDvNRZiL8SWIcV3n JhK7I2UnK9w57D32XEkagdDY3MIwBO3RjI4J0gWJDIaqIpTUbmg0s3YixTGdsrNgim1Y I7KJtsDElICsFfZh7ePPjKYkDwRQiPFZPQbB2Bc/dakb7/Bn8fHLAAxDEGOPXduGy7vp 8uM49N0dmjUVIFihSeieNhxYJJ4pS6m2AJCkcUCrgbzM0jTu+37gjhvVT9QE0Xg1AITp tLmDSTHZh8tKCVC9l1LktBMDtrP3Pj8U1qSAr4iVbG+2JWhPk47MWbgAghmwAEEmZZrY faOg== 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=sW3jMCftDfiFtBgZttGt05xUZb6de8CfShosPvhcNg8=; b=SvrB4zfvZ1Rt6sN9s/DER1r4qCBgcAn8HLWJJpyoACI62FoW7MxPexYW/VYJEd8kW5 Jqwpv31wIbEZt43+DW6zINy4kJaHUzgBnEVgfRfWIWp5xDQg2sBW+1XF55msO2Aa7WKv yf6jmEBEBuBkhBx6UVkTdu4u+knbLO3hh72r1upIuqUrx4lVcWnX3TK9Qn9DoDW5s0FD Ohs5FWkap01f5fX/n3v5lwB2Fz+ZBrtCdR0Bgfj1pCm/WqfG3m/DHVgsYIcA6P8n+L0m U675jXvzuA1vTkHDfvbtj+GM6fGpluE/HcbsnXH5UVyD9dWqsoLzATvBagE1TyN2c5+v G/Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Ct/bixgp"; 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 7si22803388ilj.22.2021.05.12.04.27.29; Wed, 12 May 2021 04:27:43 -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="Ct/bixgp"; 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 S230134AbhELL2J (ORCPT + 99 others); Wed, 12 May 2021 07:28:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbhELL2I (ORCPT ); Wed, 12 May 2021 07:28:08 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1405C061574 for ; Wed, 12 May 2021 04:26:59 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id f1so4390316edt.4 for ; Wed, 12 May 2021 04:26:59 -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=sW3jMCftDfiFtBgZttGt05xUZb6de8CfShosPvhcNg8=; b=Ct/bixgpdm8CwXOzW7AiVcDbDzPjEfU8A77D9J6D6jlIx5sqJwfho3+XVoMriZhDLL O6hzC/4bxdM9imU5OShWs00D1DM+NMZcDp1ys3mUsVXewPv390xPrkLPWGCgeuNFDfM4 HfyLLiCIi4twItp7eqqLlO7quZdXDxY7NBh9t+1POIxaXX/ohNSJG91ti9OA+xst7AqR xO8ErxgVWmtDupIyr202+s1wTsZPgss0vfZpYHHMVaIXAfzZmIc1l6vEpafIchFirIcz di6LD2V8fA8xYqJpIwt5S+4ncv9b1lAzD8HZ7iUOD6ccrD3IdyG8vp8YOBivakI+wE4q N8hQ== 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=sW3jMCftDfiFtBgZttGt05xUZb6de8CfShosPvhcNg8=; b=ajZhjgYlZgOnF+hfPFC4a/5uI3a4Mh+HS2R+fwAsHJbU/PyhBCnt3diwQXIZAup9rf C83JtfEfK3ihjWhyXJ6au5ktqjiQkp10vOPTUlWI1hP3k8w3gyQumsJJkGsVB0Ap8+PQ ZgI2HsB+5eGNRNdMSYfuXQ2dzm3injaQAvApTo3Z18vc+EXkxPQsCPjTKcbjZMirxmOQ 2F/P/4/NbiaA2srHeAar34tGEs3ywi0guCj9D/PrHWFKl9WzOv2AOfHcF0fWfDVau5RI Tk4scE0CyoLPfeahTKHZ/acI5CH4e0OzJuMYJoIXZX+bKXQK+2n4knOF2rWklyU4dXU/ 7AQg== X-Gm-Message-State: AOAM530xY19ibrucMzsL3DYWjzbgjLWb/L+KaKffabYSU/xZbMF7D4+z ixqW/36LN2RK/OUUKvPAUtEx2Q== X-Received: by 2002:aa7:d41a:: with SMTP id z26mr44229923edq.54.1620818818509; Wed, 12 May 2021 04:26:58 -0700 (PDT) Received: from [192.168.1.14] ([195.24.90.54]) by smtp.googlemail.com with ESMTPSA id e19sm16703339edv.10.2021.05.12.04.26.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 May 2021 04:26:58 -0700 (PDT) Subject: Re: [PATCH] dt-bindings: media: venus: Add sc7280 dt schema To: Dikshita Agarwal , andy.gross@linaro.org, david.brown@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Cc: 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: Date: Wed, 12 May 2021 14:26:56 +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: <1619432515-9060-1-git-send-email-dikshita@codeaurora.org> 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 On 4/26/21 1:21 PM, 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 Maybe we can mention that this is Venus Iris2 IP? > + 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 The sm8250 (the same Iris2 IP) has one more MX power domain, I guess we should have it here too? > + > + 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 I'd suggest following names: core bus iface vcodec_core vcodec_bus > + > + 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"; Do we have sc7280 interconnect binding somewhere? > + > + 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>; > + }; > + }; > -- regards, Stan