From nobody Sat Feb 7 06:27:25 2026 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 4AB791F8F02 for ; Wed, 27 Nov 2024 11:44:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732707867; cv=none; b=etbT1xdGCfp8Z1/Gj475OhOQBExS858ZVPnnn4gsrmEPN/qbsdx/kTuxL/rpFAHl4N79FM1I1S2M2cRlAB3AZL3ustmj8URAKKprcRlXKuUhGpvpFZlZ9pMXGHgkVomIUdbcTrlbSP3/rT/fJaTLcP7aGGvVI/zTjkT+G1JD1mw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732707867; c=relaxed/simple; bh=mPLzIOsMXumVzsSYo04I9Sy6D3KL3+6b4VayfdBVWQw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=GU1MMN6BRufDRdU8W/ZnA0DYX/BxxY5x/ZYe1VqEsh0Rh+K+AetNCLCzNl42pohsrFfaRYGhDzXvmTzsrqkHJOvgMEzTg8jOtMGKNJfCNlNcvS88RecUi4jUjVYKLKxaMn+ifGJMuOMC9zEex6DQpHkQ+UGnCNBktcLPDpoALzg= 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=BI3fWVAh; arc=none smtp.client-ip=209.85.128.47 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="BI3fWVAh" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-434a752140eso13751135e9.3 for ; Wed, 27 Nov 2024 03:44:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732707864; x=1733312664; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=qgRvASRnNGPqVsywLIM5NoewkMzzRPcFogNk/blUYTY=; b=BI3fWVAhl9tdbMu/sBydbAuiH8nI8haGo7E1YSDLROVu4SskmkgfDTyrUyE/sr2R9C 1mEqQvSH3tq0igsunNy24Owi6GfRpwUFdBSJRZnaQ4mCfs+OG++v5mCrC+G2h5PMSS12 tkCVr83AIcm8jtRVgMARaLnwoSW4FP/l2mlcR5cHW6272GC0j8x50CH+6oxXhiE5B1Ui +hA2pN6mgqG//xsP9wYXXgno175CH7F7dzeLditey78ibHVy5sZrCJnKNuSJpGgqNKFP y2egmFH+g4hSM1jorQIeCJtnSngo9k6eelcWHNLnchBkbDivQ00As33W/feMZB2I9Jfi h/kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732707864; x=1733312664; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qgRvASRnNGPqVsywLIM5NoewkMzzRPcFogNk/blUYTY=; b=ptdM/UJoIO2R+whMdF0w2jfdSwhkk/vNiDNCEWBoMlAs6uY/iWK0ksOTYzyT5xMhF+ fLigNqETGHUsJtJuCDFRmUiiWdDGMQhZPztU6lGEIDTqouaf7VJ9zcjyZcpIMwkmog89 Sfbl5Fjd/P38VkXaoaiBEHbGKXM7JiBRbFgJi3yQOG2E6nUk7kYeDZS59skqjTDVqp5o PZHTtBA2bb/rS47P9izRj0YXXTNRspKkKWCyHbIVX3qaYf/5PO97mtD7mYyt9NqtinfK PEFSkRKnBGI9E2/f+B9+g2Ri92IYh8yRtU2SvkEbi6HjGmdJ3ijH6XSKG+QVuptb3/xZ ro1Q== X-Forwarded-Encrypted: i=1; AJvYcCXrX48TiPvXPTj2bsGDQiQn3UWK4KPABKikmA7ZsmH2Xm5NDoeW30cg/Hl5SRkpYDYSahtJYKCAIJn5KJA=@vger.kernel.org X-Gm-Message-State: AOJu0YznWeIIpV2FMxlemb0HMP5lLPKQD5S3D/I6i9wWgIqgNl74XDF/ hQAa4Zho6HG3KSNCxT33UeOq7M5qhKoLrFnqAihvUaZTs1rZVB11ld7AhCw5FtM= X-Gm-Gg: ASbGncvt7jIJ1lv5vNUHBMbxa/8YHM5LRveaxYV6Y3syvjiQMyazcQQc1QQUKPTyHP4 8FhAo3kYLDc1kTAKOAvMiCIVFjXEXgXkDvU3fkSfJU7CAfiZobQYi1C8PXUZrOf1eYO6WrzxrCk N3hLXb4fFrCOEAto+0t7J5+Y2nXewOzM2BzGKIP0rIITKVk2ok0e1Wt++fq3IrmD6/OWDaK8kcQ LkzCbVTnXfwWEH98RkwdWH5AEbeE2ZH769M6H5n0rnx9DCfHHAZS7Nc3E4= X-Google-Smtp-Source: AGHT+IHqACPaFAaxruo9TR3lJj0Md9Eg11jQTX9vNf4np+dj3QDhLTs6KMShKGdLl9uNDRr1Oq/wvA== X-Received: by 2002:a05:6000:4819:b0:382:35e8:9818 with SMTP id ffacd0b85a97d-385c6eb7688mr2091643f8f.23.1732707863698; Wed, 27 Nov 2024 03:44:23 -0800 (PST) Received: from [127.0.0.1] ([176.61.106.227]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fbc3531sm16463586f8f.80.2024.11.27.03.44.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2024 03:44:23 -0800 (PST) From: Bryan O'Donoghue Date: Wed, 27 Nov 2024 11:44:20 +0000 Subject: [PATCH v2 1/3] media: venus: Add support for static video encoder/decoder declarations Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241127-media-staging-24-11-25-rb3-hw-compat-string-v2-1-c010fd45f7ff@linaro.org> References: <20241127-media-staging-24-11-25-rb3-hw-compat-string-v2-0-c010fd45f7ff@linaro.org> In-Reply-To: <20241127-media-staging-24-11-25-rb3-hw-compat-string-v2-0-c010fd45f7ff@linaro.org> To: Stanimir Varbanov , Vikash Garodia , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: quic_renjiang@quicinc.com, quic_vnagar@quicinc.com, quic_dikshita@quicinc.com, konradybcio@kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Stanimir Varbanov , devicetree@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.15-dev-dedf8 Add resource structure data and probe() logic to support static declarations of encoder and decoder. Right now we rely on video encoder/decoder selection happening in the dtb but, this goes against the remit of device tree which is supposed to describe hardware, not select functional logic in Linux drivers. Provide two strings in the venus resource structure enc_nodename and dec_nodename. When set the venus driver will create an OF entry in-memory consistent with: dec_nodename { compat =3D "video-decoder"; }; and/or enc_nodename { compat =3D "video-encoder"; }; This will allow us to reuse the existing driver scheme of relying on compat names maintaining compatibility with old dtb files. dec_nodename can be "video-decoder" or "video0" enc_nodename can be "video-encoder" or "video1" Signed-off-by: Bryan O'Donoghue --- drivers/media/platform/qcom/venus/core.c | 56 ++++++++++++++++++++++++++++= ++++ drivers/media/platform/qcom/venus/core.h | 2 ++ 2 files changed, 58 insertions(+) diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platf= orm/qcom/venus/core.c index 4e26b18790537885a77d66c1917a4e7a146eaf57..17506d547a6172b89acb7787933= 7750c22f993cf 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -286,6 +286,36 @@ static irqreturn_t venus_isr_thread(int irq, void *dev= _id) return ret; } =20 +static int venus_add_video_core(struct device *dev, struct of_changeset *o= cs, + const char *node_name, const char *compat) +{ + struct device_node *np, *enp; + int ret; + + if (!node_name) + return 0; + + enp =3D of_find_node_by_name(dev->of_node, node_name); + if (enp) { + of_node_put(enp); + return 0; + } + + np =3D of_changeset_create_node(ocs, dev->of_node, node_name); + if (!np) { + dev_err(dev, "Unable to create new node\n"); + return -ENODEV; + } + + ret =3D of_changeset_add_prop_string(ocs, np, "compatible", compat); + if (ret) + dev_err(dev, "unable to add %s\n", compat); + + of_node_put(np); + + return ret; +} + static int venus_probe(struct platform_device *pdev) { struct device *dev =3D &pdev->dev; @@ -365,6 +395,32 @@ static int venus_probe(struct platform_device *pdev) if (ret < 0) goto err_runtime_disable; =20 + if (core->res->dec_nodename || core->res->enc_nodename) { + struct of_changeset *ocs; + + ocs =3D devm_kmalloc(dev, sizeof(*ocs), GFP_KERNEL); + if (!ocs) { + ret =3D -ENOMEM; + goto err_runtime_disable; + } + + of_changeset_init(ocs); + + ret =3D venus_add_video_core(dev, ocs, core->res->dec_nodename, "venus-d= ecoder"); + if (ret) + goto err_runtime_disable; + + ret =3D venus_add_video_core(dev, ocs, core->res->enc_nodename, "venus-e= ncoder"); + if (ret) + goto err_runtime_disable; + + ret =3D of_changeset_apply(ocs); + if (ret) { + dev_err(dev, "applying changeset fail ret %d\n", ret); + goto err_runtime_disable; + } + } + ret =3D of_platform_populate(dev->of_node, NULL, NULL, dev); if (ret) goto err_runtime_disable; diff --git a/drivers/media/platform/qcom/venus/core.h b/drivers/media/platf= orm/qcom/venus/core.h index 27784fd7082c321222b23ca4b2902a04c49e19ca..4ce98a3ef186823a57ac40e2e8e= 42b08fafed575 100644 --- a/drivers/media/platform/qcom/venus/core.h +++ b/drivers/media/platform/qcom/venus/core.h @@ -90,6 +90,8 @@ struct venus_resources { u32 cp_nonpixel_start; u32 cp_nonpixel_size; const char *fwname; + const char *enc_nodename; + const char *dec_nodename; }; =20 enum venus_fmt { --=20 2.47.0 From nobody Sat Feb 7 06:27:25 2026 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 703E11F8F19 for ; Wed, 27 Nov 2024 11:44:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732707869; cv=none; b=ZVVJ8sIHbdPNPv2IYFVX2WPwy+ZhlWoThZ40IYpiY4qc5wcTJZccaRvwWKgkz1WbrcSYbUVsBHNG9SmCJX21bDhB6jNzeOCQsNkT9bzLKgIXdvbOPUy/dBiYmW1iG8wWSN9La+sPPYFQRJd4qcCfjy8D3xB+IReMypCWetqRZOw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732707869; c=relaxed/simple; bh=5nl7J9DAIXEGP6XFckA2tv9xwlEwURwQ899BzKy9f8Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EzDWruF7qkN7jWubLURgm1ltiQ1mt0o4BajsXKQrGE2PJUv+oN/WY7qR78FSJUqWbZzXNeKutb1wWZrt8tm2cBq8TstZa9mlHn8Zy1sHrQu7Os0dJTojGFrxU+rd9k1baDBBVyNmWBgHnUJbU7MzxyIb4zOlr8MbbPDcTJxz3KI= 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=KyxbHMxa; arc=none smtp.client-ip=209.85.128.42 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="KyxbHMxa" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-434a736518eso17017265e9.1 for ; Wed, 27 Nov 2024 03:44:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732707865; x=1733312665; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=O3KnIWFjjoDSB2qzMeOzFANQJr83mKvOblCgk3APOdI=; b=KyxbHMxaiZUItlR9t4tObsD1iz00aQ7JIYytg1pVcD/KLIml1EWIyvH+qlsyUoMz/8 PPf/i53BgZVpEeosvfiy1AKC4yy/9B32MJHbRaWZwlUB9bXphgpqnfzAcc8pM8BzWWLT gnQQkaEgvzxmKeDA1Lb7w3BX+f+r+3yYyJ/6BxP6Kh7LDLPJhCiza7x9UmD5o83Z3BKR t9LKq00KPcwGCRo2PfxmxRRpgbqq3CL8aqWQSvqKvfYMyaIFClp6jFr4jvst+ZGVb9vJ N2YIbKeH7PztjpeC/AFRXfwZ7+Z6gTf/z6yLEAcJSUF/grfTny5BzUYIy6l/yumc+qQM MSRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732707865; x=1733312665; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=O3KnIWFjjoDSB2qzMeOzFANQJr83mKvOblCgk3APOdI=; b=W5fo5lSITasxyKtAOVvD87qNOE9Ia0Fyny8eXAYjCL3/PwHoMS71KsGhCUSQlbxwzL jjjHUq+LI+lJCyzJtLH3s8AjqkLkWP1ogoGRosXP2qbri/on/8Qht/PCwRI9RplFsAPx UChTC9eEjkj8cLlnr4VS85G/vO9uIxj0G1ggIpyynNcU0ECA5o/p5sYrjmiC5UXIoIgR 6azvaqu7XSfA0CzK/rTif2rFPr0kLb8tAsMG/3+aOm69JBZ52a/Kojy5N9TnpnIF+dMF onwMb9xw0GZJCjhfXiAU+WFFzQ75PlvQ4w4l09Pj9ROZlFne3IbemxI8tCsqGo+d7QH4 AGhQ== X-Forwarded-Encrypted: i=1; AJvYcCWD5BBTt6AQarImSiVW6YvsmSC6VamTfrCczL0LMh96h8xLXa5v2kTekUsyiy9yP8o5rYwimjkrtKASM/U=@vger.kernel.org X-Gm-Message-State: AOJu0Yxu4lrTr5HbNizLSirNk369U6Xz5FjA6hHUz+X+tm4L/rCCVsNy wt9+8ZxuzO9N7iKZ4RtWcfy6p3+XY/SJP3XM3Q4EKrdbnqg2c4tOTZmFQ/0kdmo= X-Gm-Gg: ASbGncvgEAfi/1TlArAMt2cMC7SAGSbUUi7mc0FGfg+qiTmmcFq/VA8wfRo178sCN91 ANKJh/NtY+37E6pWWxgGb4SyhsMtCcZJp80KVMS/xyj/0yJJBvCwrmne6uioDM7awuIVqF1nos0 On3eVefwtZ4u5xv4cZae+vVYbXchUUChHrXUvqem7Cz6hS+w4sLn76VIOfPRC+B3stw68G53PCO fCJ63ld3lERQ6FpmWPOVQchyQghT0VHB8SvgxOtWBGx7NDbLOraBWKQwxg= X-Google-Smtp-Source: AGHT+IE0pK2hTwaunQOjZoX6SVQi9BmMtvCCwAMVwiCR1lY2+Tt/vnpsknckg/1+k2IZIpKPguxvvw== X-Received: by 2002:a5d:5983:0:b0:382:3d04:9646 with SMTP id ffacd0b85a97d-385c6ccaf23mr2199795f8f.11.1732707864752; Wed, 27 Nov 2024 03:44:24 -0800 (PST) Received: from [127.0.0.1] ([176.61.106.227]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fbc3531sm16463586f8f.80.2024.11.27.03.44.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2024 03:44:24 -0800 (PST) From: Bryan O'Donoghue Date: Wed, 27 Nov 2024 11:44:21 +0000 Subject: [PATCH v2 2/3] media: venus: Populate video encoder/decoder nodename entries Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241127-media-staging-24-11-25-rb3-hw-compat-string-v2-2-c010fd45f7ff@linaro.org> References: <20241127-media-staging-24-11-25-rb3-hw-compat-string-v2-0-c010fd45f7ff@linaro.org> In-Reply-To: <20241127-media-staging-24-11-25-rb3-hw-compat-string-v2-0-c010fd45f7ff@linaro.org> To: Stanimir Varbanov , Vikash Garodia , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: quic_renjiang@quicinc.com, quic_vnagar@quicinc.com, quic_dikshita@quicinc.com, konradybcio@kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Stanimir Varbanov , devicetree@vger.kernel.org, Bryan O'Donoghue X-Mailer: b4 0.15-dev-dedf8 Populate encoder and decoder node-name entries for the upstream parts. Once done the compat=3D"video-encoder" and compat=3D"video-decoder" in the dtsi = can be dropped though the venus driver will continue to favour DT declared video-encoder/video-decoder declarations over static declarations for compatibility. Signed-off-by: Bryan O'Donoghue --- drivers/media/platform/qcom/venus/core.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platf= orm/qcom/venus/core.c index 17506d547a6172b89acb77879337750c22f993cf..847caf4d9cdb6fc3f4133450d40= b69a4baba522d 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -638,6 +638,8 @@ static const struct venus_resources msm8916_res =3D { .vmem_addr =3D 0, .dma_mask =3D 0xddc00000 - 1, .fwname =3D "qcom/venus-1.8/venus.mbn", + .dec_nodename =3D "video-decoder", + .enc_nodename =3D "video-encoder", }; =20 static const struct freq_tbl msm8996_freq_table[] =3D { @@ -847,6 +849,8 @@ static const struct venus_resources sdm845_res_v2 =3D { .cp_nonpixel_start =3D 0x1000000, .cp_nonpixel_size =3D 0x24800000, .fwname =3D "qcom/venus-5.2/venus.mbn", + .dec_nodename =3D "video-core0", + .enc_nodename =3D "video-core1", }; =20 static const struct freq_tbl sc7180_freq_table[] =3D { @@ -895,6 +899,8 @@ static const struct venus_resources sc7180_res =3D { .cp_nonpixel_start =3D 0x1000000, .cp_nonpixel_size =3D 0x24800000, .fwname =3D "qcom/venus-5.4/venus.mbn", + .dec_nodename =3D "video-decoder", + .enc_nodename =3D "video-encoder", }; =20 static const struct freq_tbl sm8250_freq_table[] =3D { @@ -950,6 +956,8 @@ static const struct venus_resources sm8250_res =3D { .vmem_addr =3D 0, .dma_mask =3D 0xe0000000 - 1, .fwname =3D "qcom/vpu-1.0/venus.mbn", + .dec_nodename =3D "video-decoder", + .enc_nodename =3D "video-encoder", }; =20 static const struct freq_tbl sc7280_freq_table[] =3D { @@ -1012,6 +1020,8 @@ static const struct venus_resources sc7280_res =3D { .cp_nonpixel_start =3D 0x1000000, .cp_nonpixel_size =3D 0x24800000, .fwname =3D "qcom/vpu-2.0/venus.mbn", + .dec_nodename =3D "video-decoder", + .enc_nodename =3D "video-encoder", }; =20 static const struct of_device_id venus_dt_match[] =3D { --=20 2.47.0 From nobody Sat Feb 7 06:27:25 2026 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 1408C1F9408 for ; Wed, 27 Nov 2024 11:44:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732707870; cv=none; b=HjznDF6Z7CbS6qwypQD1aX9u3t3RCK73RteX0gJwRjbz+W397/K3dL4zXrAjHrPJKIBld3k/HJhY6kdbVdcO6f7Yih/l/uIV1B9jnkPrQYeDMZP6+Rr6O7mE4yBiVdANI4MWvoKwrtpLRI/HYYtIdr5lfxVTAO0eOFpRSkURCNs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732707870; c=relaxed/simple; bh=1/9/VRiAd3mFuJE0x6u0oROPGPE9qYr/1F5OkY7DYEU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jx/iX4JVT6hwfFQMAbxjCqfVNLVTQ1Zac4EvP/EVRPS+OQGBb/3UIxH0L0W2VQEcHLCV79jCNxWAeHvukYBsdRU/Vs6TVlINTqrpRBHQU8iyGa0N/7sIpNWPYfyQYSiBSMz3JF/zeaWewrEiBgcyhYxnv772bIXK+YQSyuVPzbo= 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=zCLs69t7; arc=none smtp.client-ip=209.85.221.48 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="zCLs69t7" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-38248b810ffso5041012f8f.0 for ; Wed, 27 Nov 2024 03:44:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1732707866; x=1733312666; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=LnTMbYbEVvxii8W+l8ai6UooboM0MmZTrUVAFR7MtHk=; b=zCLs69t79ZWirMPyxEsZXr0KR5JG2QW+AjCd/CzTbwfGLCy/creAlRF1RSkZzR1R68 d1fRh8muV3MCkVqX3yRH4P+JJH1fypZwkpegdGW4Bzul4KpYMvLlsjEb6KSk01w2cs1k y8JvmNWJuLj1tWuJwqBpIOdFzDt9xAz+H7xWfcwCYu1evNDyIxY+GFA+s4VEmw2uvLcZ AU1hQmLPKn+U8q1l+2JvnXFshEwP2by/FHYZe7TeRZxFj4xkDCO03joBKTDs94LyJPtO lVNPIru+44Zj0D0EzIZ6ARhtb1Jc/49eWuNapvDN7VDT7i4e28nGQegoJPz9nRLfy/Eu Xvsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732707866; x=1733312666; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LnTMbYbEVvxii8W+l8ai6UooboM0MmZTrUVAFR7MtHk=; b=NJgmnvy7HJiDre+e/ITYSJ6Uiyv13dBO0EUX0QYH+9sNd1Fv5xeKQB9dG8F921tX4L s/WpR4hr2k3f5hfprVVLxqJLhqbmSEqeWi/aTEvadiZi4krxg2Vgf4KzxpQifW7XuFea etW+LMFyAqd7/YwQGdxb7tudXze1AlxSWeF1QbA/DuGKLI75RX0BneLz/yXx1RVyZzd7 MFmKVkT2i9CEacyYkdz5nxIEKGahPYm813o+baD/afmV1GubKBu2DdmQvEG0jemPoFI4 ZzvDd+JoI5e7Prl+URe+LIFm0jcjexmyLReblqkDdSNlVoc3z2v2yYrtzQS6bXgkT9o5 smmg== X-Forwarded-Encrypted: i=1; AJvYcCX2u+7T9rUwNsxSFRXImzj9Acylz2++ni0pCJCdjir7TrqE3mdnC/gYSEfEQoH514sqdxOzEa60WLgP06Y=@vger.kernel.org X-Gm-Message-State: AOJu0YwH6ym1tkQHFAxWvF7mzjjSIlegfAnoKd5cNtSLB7xWslz8J2NA Phq6vcB8owU0lE2raMPlrn7gCEAbBAcemZgsiJ/uZIr0k1TwoX3K9ozaiX89D+Q= X-Gm-Gg: ASbGncsJxZbusPGi9J3Hyzc9ljmoEcJvfUyQHmORSuP5YWDYqOHvzJM2bbtaO2cMP22 tLKcIDnGrYlLq5Ax+puANydlsVvh+jVIUzmlJ5BmWr2cg54w2TxjVlNc1Ow1okk8wS+9E+yOI5w 2a7qnvT7Z1Q2jppk9drP4zHVL0rVivFRdLKrYiYuzFT5S2VJFux1/ojOsq4yIpuDlPy3QrW1H4D NYE0Nm86VnDIs7w9tZw5ejbfA8Xh9Nn6m4wdhYYpe719vctw9L/dt7abL4= X-Google-Smtp-Source: AGHT+IF5ZhbCzEdkKznd3LHBZsnasdt6BaSYSH7dOIUFLv/x9YltrVQYTK9B2mfEuyaqXO37/Rv+9g== X-Received: by 2002:a5d:5984:0:b0:382:5206:8b7e with SMTP id ffacd0b85a97d-385c6eb92femr1958078f8f.15.1732707865964; Wed, 27 Nov 2024 03:44:25 -0800 (PST) Received: from [127.0.0.1] ([176.61.106.227]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fbc3531sm16463586f8f.80.2024.11.27.03.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Nov 2024 03:44:25 -0800 (PST) From: Bryan O'Donoghue Date: Wed, 27 Nov 2024 11:44:22 +0000 Subject: [PATCH v2 3/3] media: dt-bindings: qcom-venus: Deprecate video-decoder and video-encoder where applicable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241127-media-staging-24-11-25-rb3-hw-compat-string-v2-3-c010fd45f7ff@linaro.org> References: <20241127-media-staging-24-11-25-rb3-hw-compat-string-v2-0-c010fd45f7ff@linaro.org> In-Reply-To: <20241127-media-staging-24-11-25-rb3-hw-compat-string-v2-0-c010fd45f7ff@linaro.org> To: Stanimir Varbanov , Vikash Garodia , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: quic_renjiang@quicinc.com, quic_vnagar@quicinc.com, quic_dikshita@quicinc.com, konradybcio@kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Stanimir Varbanov , devicetree@vger.kernel.org, Bryan O'Donoghue , Krzysztof Kozlowski X-Mailer: b4 0.15-dev-dedf8 For the list of yaml files here the video-decoder and video-encoder nodes provide nothing more than configuration input for the driver. These entries do not in fact impart hardware specific data and should be deprecated. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Bryan O'Donoghue --- .../devicetree/bindings/media/qcom,msm8916-venus.yaml | 12 ++------= ---- .../devicetree/bindings/media/qcom,sc7180-venus.yaml | 12 ++------= ---- .../devicetree/bindings/media/qcom,sc7280-venus.yaml | 12 ++------= ---- .../devicetree/bindings/media/qcom,sdm845-venus-v2.yaml | 12 ++------= ---- .../devicetree/bindings/media/qcom,sm8250-venus.yaml | 12 ++------= ---- 5 files changed, 10 insertions(+), 50 deletions(-) diff --git a/Documentation/devicetree/bindings/media/qcom,msm8916-venus.yam= l b/Documentation/devicetree/bindings/media/qcom,msm8916-venus.yaml index 9410f13ca97c181973c62fe62d0399fc9e82f05d..da140c2e3d3f3c3e886496e3e23= 03eda1df99bb4 100644 --- a/Documentation/devicetree/bindings/media/qcom,msm8916-venus.yaml +++ b/Documentation/devicetree/bindings/media/qcom,msm8916-venus.yaml @@ -45,6 +45,7 @@ properties: required: - compatible =20 + deprecated: true additionalProperties: false =20 video-encoder: @@ -57,13 +58,12 @@ properties: required: - compatible =20 + deprecated: true additionalProperties: false =20 required: - compatible - iommus - - video-decoder - - video-encoder =20 unevaluatedProperties: false =20 @@ -83,12 +83,4 @@ examples: power-domains =3D <&gcc VENUS_GDSC>; iommus =3D <&apps_iommu 5>; memory-region =3D <&venus_mem>; - - video-decoder { - compatible =3D "venus-decoder"; - }; - - video-encoder { - compatible =3D "venus-encoder"; - }; }; diff --git a/Documentation/devicetree/bindings/media/qcom,sc7180-venus.yaml= b/Documentation/devicetree/bindings/media/qcom,sc7180-venus.yaml index 5cec1d077cda77817f6d876109defcb0abbfeb2c..83c4a5d95f020437bd160d64568= 50bc84a2cf5ff 100644 --- a/Documentation/devicetree/bindings/media/qcom,sc7180-venus.yaml +++ b/Documentation/devicetree/bindings/media/qcom,sc7180-venus.yaml @@ -70,6 +70,7 @@ properties: required: - compatible =20 + deprecated: true additionalProperties: false =20 video-encoder: @@ -82,14 +83,13 @@ properties: required: - compatible =20 + deprecated: true additionalProperties: false =20 required: - compatible - power-domain-names - iommus - - video-decoder - - video-encoder =20 unevaluatedProperties: false =20 @@ -114,12 +114,4 @@ examples: "vcodec0_core", "vcodec0_bus"; iommus =3D <&apps_smmu 0x0c00 0x60>; memory-region =3D <&venus_mem>; - - video-decoder { - compatible =3D "venus-decoder"; - }; - - video-encoder { - compatible =3D "venus-encoder"; - }; }; diff --git a/Documentation/devicetree/bindings/media/qcom,sc7280-venus.yaml= b/Documentation/devicetree/bindings/media/qcom,sc7280-venus.yaml index 10c334e6b3dcf25967fa438f8e6e5035448af1b9..413c5b4ee6504ba1d5fe9f74d5b= e04ad8c90c318 100644 --- a/Documentation/devicetree/bindings/media/qcom,sc7280-venus.yaml +++ b/Documentation/devicetree/bindings/media/qcom,sc7280-venus.yaml @@ -68,6 +68,7 @@ properties: required: - compatible =20 + deprecated: true additionalProperties: false =20 video-encoder: @@ -80,14 +81,13 @@ properties: required: - compatible =20 + deprecated: true additionalProperties: false =20 required: - compatible - power-domain-names - iommus - - video-decoder - - video-encoder =20 unevaluatedProperties: false =20 @@ -125,14 +125,6 @@ examples: =20 memory-region =3D <&video_mem>; =20 - video-decoder { - compatible =3D "venus-decoder"; - }; - - video-encoder { - compatible =3D "venus-encoder"; - }; - video-firmware { iommus =3D <&apps_smmu 0x21a2 0x0>; }; diff --git a/Documentation/devicetree/bindings/media/qcom,sdm845-venus-v2.y= aml b/Documentation/devicetree/bindings/media/qcom,sdm845-venus-v2.yaml index 6228fd2b324631f3138e128c918266da58f6b544..c839cb1ebc0999e10b865f4bb43= ea76ffa2bf46d 100644 --- a/Documentation/devicetree/bindings/media/qcom,sdm845-venus-v2.yaml +++ b/Documentation/devicetree/bindings/media/qcom,sdm845-venus-v2.yaml @@ -70,6 +70,7 @@ properties: required: - compatible =20 + deprecated: true additionalProperties: false =20 video-core1: @@ -82,14 +83,13 @@ properties: required: - compatible =20 + deprecated: true additionalProperties: false =20 required: - compatible - power-domain-names - iommus - - video-core0 - - video-core1 =20 unevaluatedProperties: false =20 @@ -119,12 +119,4 @@ examples: iommus =3D <&apps_smmu 0x10a0 0x8>, <&apps_smmu 0x10b0 0x0>; memory-region =3D <&venus_mem>; - - video-core0 { - compatible =3D "venus-decoder"; - }; - - video-core1 { - compatible =3D "venus-encoder"; - }; }; diff --git a/Documentation/devicetree/bindings/media/qcom,sm8250-venus.yaml= b/Documentation/devicetree/bindings/media/qcom,sm8250-venus.yaml index f66033ae8b590e7b6f1e344c368994744411aca2..da54493220c9dc90e7d9f5fcfce= 7590acb241c85 100644 --- a/Documentation/devicetree/bindings/media/qcom,sm8250-venus.yaml +++ b/Documentation/devicetree/bindings/media/qcom,sm8250-venus.yaml @@ -73,6 +73,7 @@ properties: required: - compatible =20 + deprecated: true additionalProperties: false =20 video-encoder: @@ -85,6 +86,7 @@ properties: required: - compatible =20 + deprecated: true additionalProperties: false =20 required: @@ -95,8 +97,6 @@ required: - iommus - resets - reset-names - - video-decoder - - video-encoder =20 unevaluatedProperties: false =20 @@ -132,12 +132,4 @@ examples: resets =3D <&gcc GCC_VIDEO_AXI0_CLK_ARES>, <&videocc VIDEO_CC_MVS0C_CLK_ARES>; reset-names =3D "bus", "core"; - - video-decoder { - compatible =3D "venus-decoder"; - }; - - video-encoder { - compatible =3D "venus-encoder"; - }; }; --=20 2.47.0