From patchwork Wed Jun 13 15:08:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stanimir Varbanov X-Patchwork-Id: 138489 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp848228lji; Wed, 13 Jun 2018 08:09:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK7H3VibQK+D/bILuX5HyDAcIz/JTMjP/pmyPoxpiBRX/NIbIY9f7yhTFoXGtOt4b2/lEYl X-Received: by 2002:a17:902:b706:: with SMTP id d6-v6mr5604978pls.105.1528902590516; Wed, 13 Jun 2018 08:09:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528902590; cv=none; d=google.com; s=arc-20160816; b=U8qdhumJpi7iTUY0jY1wQIwfSwL4YvjN2D+R8Lg5KUpr3EzfhuJyUuwCRUDMV+zPmk WdOZmH5Tn6siufvFX7toTd+jbh6TMnt13r/KAwQgUI2TiFSBO1q1RHzLVkiknGJOfOKp TQ5eMzcdOM5zcaMrM4ZjtCBh4cfDsiNwNT5q7eQMa1VneOBfHVakpy5HuTPCkqQPOlRY W63lrdK97BJ9zgDAIxO8oobb/0/wuRtL36uKtVMobAUuYliXCeUUfaah1hjHAXw3BuNY ePulQ/iNvKbu16xYfTK4Kli4eO2XYGrIH75/7emnKX91zgmIiZjJxrTpRJFNihs7cOIY 3/qA== 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=OPshOkkgLb7YeOHqpqAi77D2WOma3eq3NP3qrEentec=; b=vZrE2lLIRXJ+dWAnbjFV7avwVke9U2/VvXjeSfCbZYE2oHztdAIe1h6GIeNHwLx3xG klxaq3mOeCcGP/eYlAluAVuZVs0vPRl5wIsj75dqGh0w3jgvtmbAU68hhrRjBsv5g2nK EfdemOwIX/nPJaTFMqL67LqvxOBAEvWJIunhQTTlOVdBPo5Wf0SGVF6iiBU4FVGXFJ+f 0JOk2NfLXr54U+f4j9Y6qLF8RurR/+QGb8P0s529qTyU9xxFU3wOOzK0z5SNMR9i8/Nj b63k5hpuOy5E4vhIkRZ8ItZI/GPzukDARZjtJ2Hfz8kZgZQ7gMSanOKS1tr1+Xi2LOld AQsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KRk1fgWs; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (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 j6-v6si2584160pgs.615.2018.06.13.08.09.50; Wed, 13 Jun 2018 08:09:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KRk1fgWs; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936088AbeFMPJs (ORCPT + 13 others); Wed, 13 Jun 2018 11:09:48 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:51593 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936079AbeFMPJo (ORCPT ); Wed, 13 Jun 2018 11:09:44 -0400 Received: by mail-wm0-f68.google.com with SMTP id r15-v6so5362503wmc.1 for ; Wed, 13 Jun 2018 08:09:43 -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=/ThhxevIU3epv9lgxlCyqJq5OSMzAnmUAMY3rX7cEds=; b=KRk1fgWsfsTwYcRkAC+meZ+lUFWkF/zVwMeaRQvN8CXkDYhy2L3SzmbgnRVcHFCxri z82SZTblgeNothGLK+VEQvQL1fCwpQrTf0KqHKZJ+XjmYUypqk6zFI1AZog1YDAcSFp2 mRXp9QwyUsrfVYdTB2JUZRuDvJ6RAgOZrNGx4= 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=/ThhxevIU3epv9lgxlCyqJq5OSMzAnmUAMY3rX7cEds=; b=sXdfGSVDiO3JYUQ8B0Rd6e+ramcDkogBOZLt1M83/TWGYPb7g3qEGOXptGwfp/MRNX gRSslDwy7Zrp6vdTYP08GBNsGJTycQRKxTov5Gu8JStufQQV3q7Q/N4JrfJq+NL9sE8u cEqC4+Ivg6UnayNiH0kFnTPwM13t2xd4xs+FSrQASsEmTcqDZNGpgQiRgwOc9JNkAHop HiUNxbagn9NPFq7jHMATx4I10GMgkkX3k95bNYleK9+HfWAQpk7do1NSlo1OA2/fJRMh COpkWENHsHOtKckx9p34rw1ptjHspejj/4ab/U/vblo2ozEpaBlRkuOWntkDg67c+aqT qJxQ== X-Gm-Message-State: APt69E1gcvK1lrU5UPZeJoG8r+DI75/+Ck76uaKtkOUYEkBRwMhbnG09 DBr6blcjKzHiwy5l0RhfdKUWLw== X-Received: by 2002:a1c:4108:: with SMTP id o8-v6mr4091174wma.50.1528902583143; Wed, 13 Jun 2018 08:09:43 -0700 (PDT) Received: from mms-0440.qualcomm.mm-sol.com ([37.157.136.206]) by smtp.gmail.com with ESMTPSA id e13-v6sm2886548wrm.45.2018.06.13.08.09.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Jun 2018 08:09:42 -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 , Tomasz Figa , Stanimir Varbanov Subject: [PATCH v3 26/27] venus: core: add sdm845 DT compatible and resource data Date: Wed, 13 Jun 2018 18:08:00 +0300 Message-Id: <20180613150801.11702-27-stanimir.varbanov@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180613150801.11702-1-stanimir.varbanov@linaro.org> References: <20180613150801.11702-1-stanimir.varbanov@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This adds sdm845 DT compatible string with it's resource data table. Signed-off-by: Stanimir Varbanov Reviewed-by: Rob Herring --- .../devicetree/bindings/media/qcom,venus.txt | 1 + drivers/media/platform/qcom/venus/core.c | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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 381bfdd688db..bb6add9d340e 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -450,9 +450,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);