Received: by 10.192.165.148 with SMTP id m20csp4616042imm; Tue, 24 Apr 2018 05:52:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx48ZmsZf9HtJKyvOBO1RX/b904oKC53wptQ0Gkzp7cDLe7eEf1whCfwWT7Gj0bJEaDKz450t X-Received: by 2002:a17:902:6113:: with SMTP id t19-v6mr24524439plj.372.1524574326394; Tue, 24 Apr 2018 05:52:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524574326; cv=none; d=google.com; s=arc-20160816; b=pQ9Mec9UxzT+9wOwb16UNTbXv2ik9cdPi9pwaAEykZUWOt6MmjWt/xazvwAOwmt00O Whq3tFNousga+IuookZfgGmad5FQ6YkqQS7jwNWYZqEnBUXSPpHe/mWF+HYMQy7Raolt 6+0MAgG7mE3sT9ajLPGIlC52daMLkTT4EDjxoHrGwCOucbF/dgv8TMheq6GjEN4hmPyG Muk/+2s2NfrEU9Mjmcxmn7s7kW6Qri+PzZ3k8lC1l+jFW2pGu4Kb4kGkgKss1acd8LVB cGF9Pgx5Hf/hYxzVAXsydKpZoOHnS+dhpnmBo5h7KZE+rvdd0NKzequ3oN8cG1jMOLn/ VPBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=m6lX1s5vNufLRUVw4i8W8TlqSIcTNx2wfblL4y+a22U=; b=WHH4nw3qfz2WuijmPkEEXN8mJ+gHs01GmvpnRk9xN2PWg1AC70nEzjJTXcA+HTuYJe VGYCnbBhurOGVcUhFurD7t91Hh7AICYP6IuPRNHejWgjpTWq8Ng1UDdpJEj674UMiKVR F1wHWfedRah9fu0hM94il2XUmevkRTIOaxq2gCM41WkLxP8YCFIRmPudRnkYlfbJ+XWn MW01Ysu8ZjFze71jOexULLSHH9vTRr+7HckfjDqxMneHf9kKiXk8cWlKpam+/K5lmStT btoD+oc+zBw5Cd8DWyfehkWh44qbYuDnegE2NRgqt2d2hF1hb22EdkrsOWBF4Z0g9V7/ BP5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bZkPHP76; 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 u16-v6si469447plq.398.2018.04.24.05.51.51; Tue, 24 Apr 2018 05:52:06 -0700 (PDT) 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=bZkPHP76; 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 S933112AbeDXMqo (ORCPT + 99 others); Tue, 24 Apr 2018 08:46:44 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:52386 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757889AbeDXMph (ORCPT ); Tue, 24 Apr 2018 08:45:37 -0400 Received: by mail-wm0-f67.google.com with SMTP id w195so692206wmw.2 for ; Tue, 24 Apr 2018 05:45:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=m6lX1s5vNufLRUVw4i8W8TlqSIcTNx2wfblL4y+a22U=; b=bZkPHP76594NDRV3lyjtjft7WUIQ31hV36L2BjjdN0LL4NOS03k+pnpep+v2sPTxp8 D0616Xfw73cyWK0UVxfxOgWkUX4+NsqPomWJ/9u44wXhXFiz2DwbnCqgCMBGfAf0+EQo jfEgrMn5d74AQkySecaF6pko/0mfFiQqNJAEY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=m6lX1s5vNufLRUVw4i8W8TlqSIcTNx2wfblL4y+a22U=; b=WvWQzMx/QBasLq/cvmXZrqTr8M72aBG8G+0Q3j4Zh51qDFowSt5MAQWYHJKoJELJcs LR7dLN+xP4RSUtyHQtwyebJxLucjV0oyFhOmja9oMcPJPOaD6d63FCs3OK7ANyMi0wFM PjPHtum0arPNczTU0QvT+nlwvzP6VpAbDJCows7Bnfd4TeXLoyv52aT+AyLcQmzygrhE h6xDNm4EoNqqltpU+mPC5UNVYVwXyhq+WzVYM6JbYyE2TxohbrxUmJ3uOZ8rJUc0uG1y pSL82S8iMdIM2sEbB/kxVA6vMyalyMCv9h+QBCiZ8dTZkA5TuT6tdNxtYSe/iJus789q iPhQ== X-Gm-Message-State: ALQs6tDZ6sIVwHGQ3vQPV3i6ZA3rYr4b8tSpw66paPiCGTQXjHhsGgPs rns71Bl1koGGa/YucRKPxHx9Kg== X-Received: by 10.28.174.81 with SMTP id x78mr13085505wme.41.1524573936435; Tue, 24 Apr 2018 05:45:36 -0700 (PDT) Received: from localhost.localdomain ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id n49-v6sm22666013wrn.50.2018.04.24.05.45.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 05:45:35 -0700 (PDT) From: Stanimir Varbanov To: Mauro Carvalho Chehab , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vikash Garodia , Stanimir Varbanov , devicetree@vger.kernel.org Subject: [PATCH 27/28] venus: add sdm845 compatible and resource data Date: Tue, 24 Apr 2018 15:44:35 +0300 Message-Id: <20180424124436.26955-28-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180424124436.26955-1-stanimir.varbanov@linaro.org> References: <20180424124436.26955-1-stanimir.varbanov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This adds sdm845 DT compatible string with it's resource data table. Cc: devicetree@vger.kernel.org Signed-off-by: Stanimir Varbanov --- .../devicetree/bindings/media/qcom,venus.txt | 1 + drivers/media/platform/qcom/venus/core.c | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/Documentation/devicetree/bindings/media/qcom,venus.txt b/Documentation/devicetree/bindings/media/qcom,venus.txt index 2693449daf73..00d0d1bf7647 100644 --- a/Documentation/devicetree/bindings/media/qcom,venus.txt +++ b/Documentation/devicetree/bindings/media/qcom,venus.txt @@ -6,6 +6,7 @@ Definition: Value should contain one of: - "qcom,msm8916-venus" - "qcom,msm8996-venus" + - "qcom,sdm845-venus" - reg: Usage: required Value type: diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c index 1b72bfbb6297..13084880cc42 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -445,9 +445,31 @@ static const struct venus_resources msm8996_res = { .fwname = "qcom/venus-4.2/venus.mdt", }; +static const struct freq_tbl sdm845_freq_table[] = { + { 1944000, 380000000 }, /* 4k UHD @ 60 */ + { 972000, 320000000 }, /* 4k UHD @ 30 */ + { 489600, 200000000 }, /* 1080p @ 60 */ + { 244800, 100000000 }, /* 1080p @ 30 */ +}; + +static const struct venus_resources sdm845_res = { + .freq_tbl = sdm845_freq_table, + .freq_tbl_size = ARRAY_SIZE(sdm845_freq_table), + .clks = {"core", "iface", "bus" }, + .clks_num = 3, + .max_load = 2563200, + .hfi_version = HFI_VERSION_4XX, + .vmem_id = VIDC_RESOURCE_NONE, + .vmem_size = 0, + .vmem_addr = 0, + .dma_mask = 0xe0000000 - 1, + .fwname = "qcom/venus-5.2/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, }, { } }; MODULE_DEVICE_TABLE(of, venus_dt_match); -- 2.14.1