Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2974271ybl; Fri, 20 Dec 2019 01:39:29 -0800 (PST) X-Google-Smtp-Source: APXvYqyB86uQwi48tgO+lxaJsXQhdhgP8nMi5Xom9jhyMJAql9pzpREaaHWy32DvWVFVKv8cgQU5 X-Received: by 2002:a05:6830:22e2:: with SMTP id t2mr14308408otc.129.1576834769034; Fri, 20 Dec 2019 01:39:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576834769; cv=none; d=google.com; s=arc-20160816; b=i+Dc9GT5yteGYrARs1lX6WjsgN7bh0pjJDSxPfG0v2jdOudMSsoUVyARQZjIqmGbQV TSCN93zCVKl7pqqRXxtIf3opUKTMmb7R8m3uPdCnX2Qijy0USBmdcaODZ3UUG7ZCQZMM +yTW4WXrYASc/bntdpm2SWlmyDd2LUL663uCDFjNIjaBddT348oGai/PCp7ULsRn6okJ hQeScdE2E3v7+4wbb/gYZTqnvq3jelF13tmYRqLlMBTa7JYSMT6P5dZEp7VolLfgYUKJ NVPDJ6lyKuMxemXmRenQsBwJQKFQfUnOmR75g2D8AiRA8NOnSSF5SF6enRcyQvUKxZh9 4ocA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=zOD+/rCtXUEpuvPO7n4te3y6wG+M5leYuzLiofTN8Co=; b=R27EFPHZmAE+x61JUxfrAcCP++apFaJR0gb/atOMwUxWkjVahs23UZoUJ/huGTXb6+ tWeEQB4H1GQxpKgtFipj0ew13v7OZB5PInkmxoOzOntG099EIWPVSaXV99UhXK9doxXL CFSSFCbK6DDn1k4GLnBhn9EU87I6g93wLVGIOYrAi0uR/Q29j60rDyYVo5t91CLlGSXg f1GPqXl8mJH5qMNlLrm+4ko+dFKN3HZPbQRLJRkbbJb2Js2N0XXgJS+58cQT3aHbaBBB eyK6jNnV+wKG5O5zyPG3BYMpi6ttbJW6fWl/mN9wxYRAhI6hbWc7vJxdIjgTvdxVBy/g WCBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t+U8cH9i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id i13si4562845otc.228.2019.12.20.01.39.16; Fri, 20 Dec 2019 01:39:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=t+U8cH9i; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727382AbfLTJhy (ORCPT + 99 others); Fri, 20 Dec 2019 04:37:54 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:43966 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727192AbfLTJhx (ORCPT ); Fri, 20 Dec 2019 04:37:53 -0500 Received: by mail-ed1-f66.google.com with SMTP id dc19so7610111edb.10 for ; Fri, 20 Dec 2019 01:37:52 -0800 (PST) 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=zOD+/rCtXUEpuvPO7n4te3y6wG+M5leYuzLiofTN8Co=; b=t+U8cH9iblYlEGuw22f4vXJpGkea/lT7i3E2K2XQEZau0RsTPkegG2RVKR0ezm7+Tm ALcj3R67PKzGgWoo3rGBmDTLEaH5kfS/K03dsnjYbu1xBOtEc2Jb0C+4fx0+5wpXTv4M 4P1F/kmz0XEgOKzKDQkn1PS5EieXgFi1XJqBxE/8VyY0JiTfxiMUn3+kFJHGcLEnPECN oIMpVIK+Sd2HWnS5Btxm+uwJ26gms579fUYFvtsN7F04EvAt4UUyK+stDBfJJQRpdl8F Iilxvxw2hkQpvrDbG/kbmEs3q5N5r8JpnNHmaEHp6YOmwsm+fra7IoJxHjkY/u+rU2u+ SG4g== 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=zOD+/rCtXUEpuvPO7n4te3y6wG+M5leYuzLiofTN8Co=; b=Y/6WCfY9CdObrI0bu7i7G5Ef3RDkbx3WRJ5DrSMBQcPtcoPdj+qlhhiU27GybrPDou dwzXhmTnDm4TLRr5eiR1aKxx+YsAE1bbH5+Alh9mVgP7VLmiNCgHBuAD1WsurJ7PQVtK qTfuw2o9iF3dtsp1lQp+xSXuDW9xRdDO9RDpdyCyAM1XVpe4hOx8WFRvTkKgQh5ti6gd a7RVoNk157kjLFlTnZvWJTYN3v66eYcZ38NNDDNRSUPHvjGDgKE2RCCi7kmgEVmH3ge/ LI4QMC7pQg2hVcu7J/CuLKC7hmqPHFLVaf9GJ+e6CXJHiWwVa8k5inusI58EB4+laZUd 2dSg== X-Gm-Message-State: APjAAAWkP2+HTVIWk5aYsA/2JU4BbNbPF02F5eVryVqy4QXydUxRSaJY Xa/OmMYxQ7OC3bwdw4MaYr+Ddw== X-Received: by 2002:aa7:d3d0:: with SMTP id o16mr14913746edr.102.1576834671481; Fri, 20 Dec 2019 01:37:51 -0800 (PST) Received: from [192.168.27.209] ([37.157.136.193]) by smtp.googlemail.com with ESMTPSA id m5sm855526ede.10.2019.12.20.01.37.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 20 Dec 2019 01:37:50 -0800 (PST) Subject: Re: [PATCH 2/3] dt-bindings: media: venus: Add sc7180 DT schema To: Dikshita Agarwal , linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, vgarodia@codeaurora.org References: <1576828760-13176-1-git-send-email-dikshita@codeaurora.org> <1576828760-13176-3-git-send-email-dikshita@codeaurora.org> From: Stanimir Varbanov Message-ID: <0b38ad39-4601-2b1b-2710-63796ed0c730@linaro.org> Date: Fri, 20 Dec 2019 11:37:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <1576828760-13176-3-git-send-email-dikshita@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dikshita, Thanks for the patch! Please see Rob's comments about DT schema for msm8916. You have to address them too. On 12/20/19 9:59 AM, Dikshita Agarwal wrote: > Add new qcom,sc7180-venus DT binding schema. > > Signed-off-by: Dikshita Agarwal > --- > .../bindings/media/qcom,venus-sc7180.yaml | 131 +++++++++++++++++++++ > 1 file changed, 131 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/qcom,venus-sc7180.yaml > > diff --git a/Documentation/devicetree/bindings/media/qcom,venus-sc7180.yaml b/Documentation/devicetree/bindings/media/qcom,venus-sc7180.yaml > new file mode 100644 > index 0000000..a609739 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/qcom,venus-sc7180.yaml > @@ -0,0 +1,131 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > + > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/media/qcom,venus-sc7180.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: > + enum: > + - qcom,sc7180-venus > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + power-domains: > + maxItems: 2 > + > + power-domain-names: > + maxItems: 2 > + items: > + - const: venus > + - const: vcodec0 > + > + clocks: > + maxItems: 5 > + > + clock-names: > + maxItems: 5 > + items: > + - const: core > + - const: iface > + - const: bus > + - const: vcodec0_core > + - const: vcodec0_bus > + > + iommus: > + minItems: 1 > + maxItems: 20 > + > + memory-region: > + maxItems: 1 > + > + video-core0: > + type: object > + > + properties: > + compatible: > + const: "venus-decoder" > + > + required: > + - compatible > + > + video-core1: > + type: object > + > + properties: > + compatible: > + const: "venus-encoder" > + > + required: > + - compatible > + > + video-firmware: > + type: object > + > + description: | > + Firmware subnode is needed when the platform does not > + have TrustZone. > + > + properties: > + iommus: > + minItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + - power-domains > + - power-domain-names > + - clocks > + - clock-names > + - iommus > + - memory-region > + - video-core0 > + - video-core1 > + > +examples: > + - | > + #include > + #include > + > + venus: video-codec@aa00000 { > + compatible = "qcom,sc7180-venus"; > + reg = <0 0x0aa00000 0 0xff000>; > + interrupts = ; > + power-domains = <&videocc VENUS_GDSC>, > + <&videocc VCODEC0_GDSC>; > + > + power-domain-names = "venus", "vcodec0"; > + 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>; > + clock-names = "core", "iface", "bus", > + "vcodec0_core", "vcodec0_bus"; > + iommus = <&apps_smmu 0x0C00 0x60>; > + memory-region = <&venus_mem>; > + video-core0 { > + compatible = "venus-decoder"; > + }; > + video-core1 { > + compatible = "venus-encoder"; > + }; > + video-firmware { > + iommus = <&apps_smmu 0x0C42 0x0>; > + }; > + }; > -- regards, Stan