Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3637350ybl; Tue, 21 Jan 2020 04:33:31 -0800 (PST) X-Google-Smtp-Source: APXvYqxg2J3uN8+Dok9Ta9QHJkUS8MvmzTQyJ7xXC8NE5udmQ/OCJRXj7OJNyi1mFhq+I6PcRkgO X-Received: by 2002:a05:6830:ce:: with SMTP id x14mr3284992oto.289.1579610010995; Tue, 21 Jan 2020 04:33:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579610010; cv=none; d=google.com; s=arc-20160816; b=TUuKe2pMCkagz6rfJegiqEvxM0o9lt8xcuu8BSXEv9nZrcIfzkUrwIm4oFuOEumBvv vcc3H0T0pnsG3W9bWlr4/BScX4BpH67T5rg9MW7Am8U8KCCISI+TSlFpWcWBPqeQgWPt Fwn9xt0ipMH4phdcoRnkg8K/g30yR8kii3BE9g1r9x0Z7EqbsA+mHrLlv+ui9osgUtzv U6lSeddPka5XdTBGm/u2FeilzvwD5buZ2lPox+pD7h9eXqhqX0Ju+RlpEQbOZvGKRQXW qZg3I0rQDxY1AY5xzuPBhEDo8jfvG+2qvVKCQ/Fg5PUlJYcQrL4HjVt98Ksl1mTGzDhI 9xsQ== 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=h37iko5DIvMs0xYnBxqks04OIBG81FsI2poREuA7OHM=; b=ZPWVYhZYcmAuYRt1epjsAGzjSDxpTRV7FmsSv9nlBlDEF9kGVZj4EYI59QOGyO50TG 5VfG08bMTzLFjPv6HieRIIS3m4pJH9/vKKvMl0PN7d5RDEw4x0eBCBx4ucI3ZwImjITP HpzNy7ppVNLcopcuAGXwZSuTYgDVyDVMDYKSYp8x0+vy0IL4KF7OfiNE37M6m+mnhK0J jZMU2IzYsCTNvBO/Ux0YQfDW+5ag+Ofi3smxROpvKO0j3RbZofEGSQ26Efn8CIXjOVmL CAIlnu30Y3QOMg8uc0fgqzOEXjmRffmCeuPA57rnEtK11E3cwuGXpZ14E61iXNW4Ch+F PrrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gPjxCUcG; 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 l7si22919255oth.11.2020.01.21.04.33.19; Tue, 21 Jan 2020 04:33:30 -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=gPjxCUcG; 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 S1729619AbgAUMcH (ORCPT + 99 others); Tue, 21 Jan 2020 07:32:07 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:46053 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727817AbgAUMcG (ORCPT ); Tue, 21 Jan 2020 07:32:06 -0500 Received: by mail-ed1-f66.google.com with SMTP id v28so2740098edw.12 for ; Tue, 21 Jan 2020 04:32:05 -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=h37iko5DIvMs0xYnBxqks04OIBG81FsI2poREuA7OHM=; b=gPjxCUcG8y/LwUpZQOkE0+CHDDhb7y83Wjap6NfNpoGepeAlp6xZM7AYMg53JqMXeS 0qn1vz8Dt06YFwKk9XmYu+4LuhqjJRnzG/GcxCjGz99RjOmuULy21uo3mmNLedN90rn4 hHDQuUhWGnfKCbUwlSkDd6z8K7eScr4LnbBE3wQ82U4CCL7bB+XRriiNFRyBtvucIxvJ skjbqbeAZnjb7tv/QnNHmBz543s9491RA3T2VqE4mrNjkI0lk9fvfyn/u+D/0AGvDXOX gFucaFSIqSAzg1FYSzJUGOfdJzqNq/81scG3svUUsEehyDX84yds5xR4lrId6lYk4CZv tnuw== 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=h37iko5DIvMs0xYnBxqks04OIBG81FsI2poREuA7OHM=; b=ke9G5ZOcXTDvCRSiLDaLNBIoI34oicDpyEhtb5vnhOs9INNF10K0LH8UttKW5bGker uApoeaMd1mhIqastlozmD3lVsIbIi1/Aze8r8v5vwE/25HxhAwPeD3cwkMCL2cSv/VVX 1J4rueYQAzefRJBqmn3ACUWQfRcB4t1MBO8vuUpTM9rBPWRkP/XjD3d/3CU2KZONeylW kaoFqjzQKXBlZQNFk3hCA58Izd0l9sphfojZ5dCGyClxfJlwHOY0QVKqWZ7r5qIbf9Od V2a/P/nGIMTEUlL60bik6g/BViAuPabfTVulb8sLerNcG6ws3cAfAAm/RyjDSPwL/NsK JuFw== X-Gm-Message-State: APjAAAU1sceLc8eR9DEzc/+dFLZy765DBfMjgkfEZT0ZiUXxDuFa5+OL GQtqa4nRN4vZbPkenES5LB6z3A== X-Received: by 2002:a17:906:b219:: with SMTP id p25mr4018940ejz.36.1579609924411; Tue, 21 Jan 2020 04:32:04 -0800 (PST) Received: from [192.168.27.209] ([37.157.136.193]) by smtp.googlemail.com with ESMTPSA id w10sm1407143eds.69.2020.01.21.04.32.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jan 2020 04:32:03 -0800 (PST) Subject: Re: [PATCH V4 3/4] venus: core: add sc7180 DT compatible and resource struct To: Dikshita Agarwal , linux-media@vger.kernel.org, stanimir.varbanov@linaro.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, vgarodia@codeaurora.org References: <1579006416-11599-1-git-send-email-dikshita@codeaurora.org> <1579006416-11599-4-git-send-email-dikshita@codeaurora.org> From: Stanimir Varbanov Message-ID: Date: Tue, 21 Jan 2020 14:32:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <1579006416-11599-4-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, On 1/14/20 2:53 PM, Dikshita Agarwal wrote: > This add DT compatible string and resource structure for sc7180. > > Signed-off-by: Dikshita Agarwal > --- > drivers/media/platform/qcom/venus/core.c | 45 ++++++++++++++++++++++++++++++++ > 1 file changed, 45 insertions(+) Acked-by: Stanimir Varbanov > > diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c > index c7525d9..194b10b9 100644 > --- a/drivers/media/platform/qcom/venus/core.c > +++ b/drivers/media/platform/qcom/venus/core.c > @@ -521,11 +521,56 @@ static __maybe_unused int venus_runtime_resume(struct device *dev) > .fwname = "qcom/venus-5.2/venus.mdt", > }; > > +static const struct freq_tbl sc7180_freq_table[] = { > + { 0, 500000000 }, > + { 0, 434000000 }, > + { 0, 340000000 }, > + { 0, 270000000 }, > + { 0, 150000000 }, > +}; > + > +static const struct bw_tbl sc7180_bw_table_enc[] = { > + { 972000, 750000, 0, 0, 0 }, /* 3840x2160@30 */ > + { 489600, 451000, 0, 0, 0 }, /* 1920x1080@60 */ > + { 244800, 234000, 0, 0, 0 }, /* 1920x1080@30 */ > +}; > + > +static const struct bw_tbl sc7180_bw_table_dec[] = { > + { 1036800, 1386000, 0, 1875000, 0 }, /* 4096x2160@30 */ > + { 489600, 865000, 0, 1146000, 0 }, /* 1920x1080@60 */ > + { 244800, 530000, 0, 583000, 0 }, /* 1920x1080@30 */ > +}; > + > +static const struct venus_resources sc7180_res = { > + .freq_tbl = sc7180_freq_table, > + .freq_tbl_size = ARRAY_SIZE(sc7180_freq_table), > + .bw_tbl_enc = sc7180_bw_table_enc, > + .bw_tbl_enc_size = ARRAY_SIZE(sc7180_bw_table_enc), > + .bw_tbl_dec = sc7180_bw_table_dec, > + .bw_tbl_dec_size = ARRAY_SIZE(sc7180_bw_table_dec), > + .codec_freq_data = sdm845_codec_freq_data, > + .codec_freq_data_size = ARRAY_SIZE(sdm845_codec_freq_data), > + .clks = {"core", "iface", "bus" }, > + .clks_num = 3, > + .vcodec0_clks = { "vcodec0_core", "vcodec0_bus" }, > + .vcodec_clks_num = 2, > + .vcodec_pmdomains = { "venus", "vcodec0" }, > + .vcodec_pmdomains_num = 2, > + .vcodec_num = 1, > + .hfi_version = HFI_VERSION_4XX, > + .vmem_id = VIDC_RESOURCE_NONE, > + .vmem_size = 0, > + .vmem_addr = 0, > + .dma_mask = 0xe0000000 - 1, > + .fwname = "qcom/venus-5.4/venus.mdt", > +}; > + > static const struct of_device_id venus_dt_match[] = { > { .compatible = "qcom,msm8916-venus", .data = &msm8916_res, }, > { .compatible = "qcom,msm8996-venus", .data = &msm8996_res, }, > { .compatible = "qcom,sdm845-venus", .data = &sdm845_res, }, > { .compatible = "qcom,sdm845-venus-v2", .data = &sdm845_res_v2, }, > + { .compatible = "qcom,sc7180-venus", .data = &sc7180_res, }, > { } > }; > MODULE_DEVICE_TABLE(of, venus_dt_match); > -- regards, Stan