From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B64082EACFB for ; Thu, 26 Jun 2025 14:37:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750948669; cv=none; b=u6dNy3YAEyiqiZ1QZIPCvX5JAiyX0NeW4fVxaGso8/LjTUaMA3YuRzHv+yPK1FkoaHS4lNOzbO87IFlAQ49VQp44X5ccFvXMkOGlCm5NaD7ZMhoMoB9+sJ5yMEQzx1Rw+aVAX80ewStOE+c7Efa2NcB93kQR+OcIf/iYKJa7BVw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750948669; c=relaxed/simple; bh=j9P7Y9k+d1qUN1LH7k7uyoyd043tfylXAAkm4D+rmLA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=aVO8vzXmq7oMdW7CbjMhpwuFVixBDNhPMcWyoIdiJ2gRPaGXyANdWx5P/UKbcUWsW+N+98IISbsWIR1Icr8JY1XPxfFGu3OAjoani2PKBM+heTfC+IQHmxhoKNW/5NQ/YO5fhJZ6G+GKAnnsRmK1Dva9L/XKQC11eN5NBZO/eGw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=y43KUiSx; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="y43KUiSx" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4537fdec33bso6829745e9.1 for ; Thu, 26 Jun 2025 07:37:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1750948666; x=1751553466; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=S1AOh6zFRHKrc6fml+09g5+eTgQ+NcQY8jLNiJxnmas=; b=y43KUiSxwwUsC+kxWzoN08sFvWosK/wOJl8qGBh+YOa8ybgtHl/6v3hbafXtrW5lOH PpIOl+U0YsoOjiqD9EDOs1pnhBYAAGQ6flw80Osynu81qp9l27KxZdbUqsJZCA1O7w6d +R/r8HRJ1tynzL4MF0BLPX4ZOXyn/MnVRYCpRhpanI1Yzmfa8l01C+aQ87lPz6JaF8x9 mflGKNCf1eMt2DjGJAwEnSOX+1Mft1OVzpKrg6vxfKIWefUtHGkz84QnNRMXqKBZxo2X KrEhVsQBu4m3W9gXgbnLQYr/US60WP0BDBBWUEg3W+r/8OybqtmWwxX3HOB/csmjCW/k 1UxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750948666; x=1751553466; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=S1AOh6zFRHKrc6fml+09g5+eTgQ+NcQY8jLNiJxnmas=; b=GGPBCbolTHLOBXx1mjs5MTw/5nTMr910i+x7/+4f+81N0eiETaIwzaog2q4rkho3Ts kN0NRtUNvydhm50vwj6VmummdBBkC8nSX37+TZbauSTXXfqHjmbTl02ekX6p+iyY5hUN y3KrkqSUW3IhXHDbPITfKovdBUt6N6onh4ANf6AdwTJhz0dxsqeoch4zpjRcSZv2ptZa N1AJb7dMP2STGyP77WY0KKWeK1iYrJWjA2Ft//bvckEy9XQ8Jp0lpFZbyTXiz+QOKezW Et+eT20nZ9ngPYL4o4mJPZtijGxE72tKg/9MT+FZPlj+LhRW7Omts6XLo3aRkpDHX9Af neuQ== X-Forwarded-Encrypted: i=1; AJvYcCUtprRpzHZJyUyIcQuQAq41MjOH82VG2xoRneA1/P0AH7hLHVXoGpFUE1FSzFYmZDe8SU3oQ1iWCNs/@vger.kernel.org X-Gm-Message-State: AOJu0YwKv7Pj1m/8IWPMSZk+ZRcp4IQnL7y8UzIDxL8a1tcsutoGKMiJ njj8yiBAndLBe0c6KdpD1G+zMv7QY5GObcI4ferTBYAXaD6lwPlxJchz0CJr3OgW7qo= X-Gm-Gg: ASbGncvCcg7TjddyPTSMn3/C5lNyKfkhWg5490yYLrVEYVswe+gnc7uiGRxPn4zLfr0 KFmiK0Xov1K2wMGCyhWozHvt3cdtmaZL3SJTNSHWTvBQJkj5rB6Fur+PPjxyCY4XOqY63IfA+ym tEjxvaYFt5JnG6L6//QBsJu/+JhuGm0JYwQ18gJ7KzpC336LSrbLIMvZ9jf/+4hRaAhVLg9mCst YEQoRBu2xypz/7zQFxS1NTu5z81qpVyiFqza8Vc/Zcy8lx/b1UTk3084uLV6duy+8Elhshg34Sx HlMS75qXvjaPSScfvaedpB4tHd4whoqIBsqn3OOdvOaUEvwxUPTU1441n61Fs8DhstEdPQgpgmX S7Wn8y2lC4rXIasL24g2uub/xKh4= X-Google-Smtp-Source: AGHT+IHTUDQzELvy6oqBw8zJr8Bm+VBPGXCOgJa1zh4Kjeaae/Qc9Ajc6QxCV0Bm5N0eMq1HGfMA7Q== X-Received: by 2002:a05:600c:190b:b0:43c:e70d:44f0 with SMTP id 5b1f17b1804b1-45381ae45d4mr69774515e9.19.1750948665981; Thu, 26 Jun 2025 07:37:45 -0700 (PDT) Received: from [192.168.0.35] (188-141-3-146.dynamic.upc.ie. [188.141.3.146]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4538234b30dsm52097475e9.12.2025.06.26.07.37.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Jun 2025 07:37:45 -0700 (PDT) Message-ID: <4aa924e9-d570-45eb-b874-133f12d00fd5@linaro.org> Date: Thu, 26 Jun 2025 15:37:43 +0100 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 4/5] media: venus: core: Add qcm2290 DT compatible and resource data To: Jorge Ramirez-Ortiz , krzk+dt@kernel.org, quic_vgarodia@quicinc.com, quic_dikshita@quicinc.com, mchehab@kernel.org, robh@kernel.org, conor+dt@kernel.org, konradybcio@kernel.org, andersson@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20250626135931.700937-1-jorge.ramirez@oss.qualcomm.com> <20250626135931.700937-5-jorge.ramirez@oss.qualcomm.com> Content-Language: en-US From: Bryan O'Donoghue In-Reply-To: <20250626135931.700937-5-jorge.ramirez@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 26/06/2025 14:59, Jorge Ramirez-Ortiz wrote: > Add a qcm2290 compatible binding to the venus core. > > Video encoding support is not exposed until the relevant hardware > capabilities are enabled. > > Co-developed-by: Loic Poulain > Signed-off-by: Loic Poulain > Signed-off-by: Jorge Ramirez-Ortiz > --- > drivers/media/platform/qcom/venus/core.c | 39 ++++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > > diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c > index 736ef53d988d..f1f211ca1ce2 100644 > --- a/drivers/media/platform/qcom/venus/core.c > +++ b/drivers/media/platform/qcom/venus/core.c > @@ -1062,6 +1062,44 @@ static const struct venus_resources sc7280_res = { > .enc_nodename = "video-encoder", > }; > > +static const struct freq_tbl qcm2290_freq_table[] = { > + { 352800, 240000000 }, /* 1920x1088 @ 30 + 1280x720 @ 30 */ > + { 244800, 133000000 }, /* 1920x1088 @ 30 */ > +}; > + > +static const struct bw_tbl qcm2290_bw_table_dec[] = { > + { 244800, 2128000, 0, 2128000, 0}, /* 1920x1088 @ 30 */ > +}; > + > +static const struct venus_resources qcm2290_res = { > + .freq_tbl = qcm2290_freq_table, > + .freq_tbl_size = ARRAY_SIZE(qcm2290_freq_table), > + .bw_tbl_dec = qcm2290_bw_table_dec, > + .bw_tbl_dec_size = ARRAY_SIZE(qcm2290_bw_table_dec), > + .clks = { "core", "iface", "bus", "throttle" }, > + .clks_num = 4, > + .vcodec0_clks = { "vcodec0_core", "vcodec0_bus" }, > + .vcodec_clks_num = 2, > + .vcodec_pmdomains = (const char *[]) { "venus", "vcodec0" }, > + .vcodec_pmdomains_num = 2, > + .opp_pmdomain = (const char *[]) { "cx" }, > + .vcodec_num = 1, > + .hfi_version = HFI_VERSION_6XX_LITE, > + .vpu_version = VPU_VERSION_AR50_LITE, > + .max_load = 352800, > + .num_vpp_pipes = 1, > + .vmem_id = VIDC_RESOURCE_NONE, > + .vmem_size = 0, > + .vmem_addr = 0, > + .cp_start = 0, > + .cp_size = 0x70800000, > + .cp_nonpixel_start = 0x1000000, > + .cp_nonpixel_size = 0x24800000, > + .dma_mask = 0xe0000000 - 1, > + .fwname = "qcom/venus-6.0/venus.mbn", > + .dec_nodename = "video-decoder", > +}; > + > static const struct of_device_id venus_dt_match[] = { > { .compatible = "qcom,msm8916-venus", .data = &msm8916_res, }, > { .compatible = "qcom,msm8996-venus", .data = &msm8996_res, }, > @@ -1072,6 +1110,7 @@ static const struct of_device_id venus_dt_match[] = { > { .compatible = "qcom,sc7180-venus", .data = &sc7180_res, }, > { .compatible = "qcom,sc7280-venus", .data = &sc7280_res, }, > { .compatible = "qcom,sm8250-venus", .data = &sm8250_res, }, > + { .compatible = "qcom,qcm2290-venus", .data = &qcm2290_res, }, > { } > }; > MODULE_DEVICE_TABLE(of, venus_dt_match); Reviewed-by: Bryan O'Donoghue