* [PATCH 0/3] media: qcom: camss: Add the SM8550 CSI TPGs
@ 2026-10-12 13:03 William Bright
2026-10-12 13:03 ` [PATCH 1/3] dt-bindings: media: qcom,sm8550-camss: Add the CSI TPG regions William Bright
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: William Bright @ 2026-10-12 13:03 UTC (permalink / raw)
To: Bryan O'Donoghue, Vladimir Zapolskiy, Loic Poulain,
Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Depeng Shao, Bjorn Andersson, Konrad Dybcio
Cc: linux-media, linux-arm-msm, devicetree, linux-kernel, William Bright
SM8550 has three CSI test pattern generators next to the CSIPHYs. They
report hardware version 2.1.0, the same as the x1e80100 TPGs, so the
existing gen1 TPG ops drive them unchanged.
Describe their register regions in the binding and in sm8550.dtsi and
add them to the SM8550 camss resources.
Signed-off-by: William Bright <william.bright@imd-tec.com>
---
William Bright (3):
dt-bindings: media: qcom,sm8550-camss: Add the CSI TPG regions
media: qcom: camss: Add the SM8550 CSI TPGs
arm64: dts: qcom: sm8550: Add the CSI TPG regions to camss
.../bindings/media/qcom,sm8550-camss.yaml | 7 ++-
arch/arm64/boot/dts/qcom/sm8550.dtsi | 10 ++++-
drivers/media/platform/qcom/camss/camss.c | 50 ++++++++++++++++++++++
3 files changed, 64 insertions(+), 3 deletions(-)
---
base-commit: ba86f67908354f41f269ca1d64b22e4624766dcf
change-id: 20261012-sm8550-camss-tpg-6bd0991432c9
Best regards,
--
William Bright <william.bright@imd-tec.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/3] dt-bindings: media: qcom,sm8550-camss: Add the CSI TPG regions
2026-10-12 13:03 [PATCH 0/3] media: qcom: camss: Add the SM8550 CSI TPGs William Bright
@ 2026-10-12 13:03 ` William Bright
2026-10-12 13:43 ` Bryan O'Donoghue
2026-10-12 13:03 ` [PATCH 2/3] media: qcom: camss: Add the SM8550 CSI TPGs William Bright
2026-10-12 13:03 ` [PATCH 3/3] arm64: dts: qcom: sm8550: Add the CSI TPG regions to camss William Bright
2 siblings, 1 reply; 7+ messages in thread
From: William Bright @ 2026-10-12 13:03 UTC (permalink / raw)
To: Bryan O'Donoghue, Vladimir Zapolskiy, Loic Poulain,
Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Depeng Shao, Bjorn Andersson, Konrad Dybcio
Cc: linux-media, linux-arm-msm, devicetree, linux-kernel, William Bright
SM8550 has three CSI test pattern generators next to the CSIPHYs.
Allow their register regions as optional trailing entries.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: William Bright <william.bright@imd-tec.com>
---
Documentation/devicetree/bindings/media/qcom,sm8550-camss.yaml | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/media/qcom,sm8550-camss.yaml b/Documentation/devicetree/bindings/media/qcom,sm8550-camss.yaml
index 4b9ab1352e91..05101dc97711 100644
--- a/Documentation/devicetree/bindings/media/qcom,sm8550-camss.yaml
+++ b/Documentation/devicetree/bindings/media/qcom,sm8550-camss.yaml
@@ -17,7 +17,8 @@ properties:
const: qcom,sm8550-camss
reg:
- maxItems: 19
+ minItems: 19
+ maxItems: 22
reg-names:
items:
@@ -40,6 +41,10 @@ properties:
- const: vfe2
- const: vfe_lite0
- const: vfe_lite1
+ - const: csitpg0
+ - const: csitpg1
+ - const: csitpg2
+ minItems: 19
clocks:
maxItems: 36
--
2.43.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/3] media: qcom: camss: Add the SM8550 CSI TPGs
2026-10-12 13:03 [PATCH 0/3] media: qcom: camss: Add the SM8550 CSI TPGs William Bright
2026-10-12 13:03 ` [PATCH 1/3] dt-bindings: media: qcom,sm8550-camss: Add the CSI TPG regions William Bright
@ 2026-10-12 13:03 ` William Bright
2026-10-12 13:44 ` Bryan O'Donoghue
2026-10-12 13:03 ` [PATCH 3/3] arm64: dts: qcom: sm8550: Add the CSI TPG regions to camss William Bright
2 siblings, 1 reply; 7+ messages in thread
From: William Bright @ 2026-10-12 13:03 UTC (permalink / raw)
To: Bryan O'Donoghue, Vladimir Zapolskiy, Loic Poulain,
Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Depeng Shao, Bjorn Andersson, Konrad Dybcio
Cc: linux-media, linux-arm-msm, devicetree, linux-kernel, William Bright
The SM8550 TPGs are hardware version 2.1.0, the same as x1e80100,
so describe them with the gen1 TPG ops.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: William Bright <william.bright@imd-tec.com>
---
drivers/media/platform/qcom/camss/camss.c | 50 +++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/platform/qcom/camss/camss.c
index 5128dae79103..70f327484503 100644
--- a/drivers/media/platform/qcom/camss/camss.c
+++ b/drivers/media/platform/qcom/camss/camss.c
@@ -3553,6 +3553,54 @@ static const struct camss_subdev_resources csid_res_8550[] = {
}
};
+static const struct camss_subdev_resources tpg_res_8550[] = {
+ /* TPG0 */
+ {
+ .regulators = {},
+ .clock = { "cpas_ahb", "csiphy_rx" },
+ .clock_rate = {
+ { 0 },
+ { 400000000 },
+ },
+ .reg = { "csitpg0" },
+ .tpg = {
+ .lane_cnt = 4,
+ .formats = &tpg_formats_gen1,
+ .hw_ops = &tpg_ops_gen1
+ }
+ },
+ /* TPG1 */
+ {
+ .regulators = {},
+ .clock = { "cpas_ahb", "csiphy_rx" },
+ .clock_rate = {
+ { 0 },
+ { 400000000 },
+ },
+ .reg = { "csitpg1" },
+ .tpg = {
+ .lane_cnt = 4,
+ .formats = &tpg_formats_gen1,
+ .hw_ops = &tpg_ops_gen1
+ }
+ },
+ /* TPG2 */
+ {
+ .regulators = {},
+ .clock = { "cpas_ahb", "csiphy_rx" },
+ .clock_rate = {
+ { 0 },
+ { 400000000 },
+ },
+ .reg = { "csitpg2" },
+ .tpg = {
+ .lane_cnt = 4,
+ .formats = &tpg_formats_gen1,
+ .hw_ops = &tpg_ops_gen1
+ }
+ },
+};
+
static const struct camss_subdev_resources vfe_res_8550[] = {
/* VFE0 */
{
@@ -7245,12 +7293,14 @@ static const struct camss_resources sm8550_resources = {
.legacy_phy = true,
.csiphy_res = csiphy_res_8550,
.csid_res = csid_res_8550,
+ .tpg_res = tpg_res_8550,
.vfe_res = vfe_res_8550,
.csid_wrapper_res = &csid_wrapper_res_sm8550,
.icc_res = icc_res_sm8550,
.icc_path_num = ARRAY_SIZE(icc_res_sm8550),
.csiphy_num = ARRAY_SIZE(csiphy_res_8550),
.csid_num = ARRAY_SIZE(csid_res_8550),
+ .tpg_num = ARRAY_SIZE(tpg_res_8550),
.vfe_num = ARRAY_SIZE(vfe_res_8550),
};
--
2.43.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 3/3] arm64: dts: qcom: sm8550: Add the CSI TPG regions to camss
2026-10-12 13:03 [PATCH 0/3] media: qcom: camss: Add the SM8550 CSI TPGs William Bright
2026-10-12 13:03 ` [PATCH 1/3] dt-bindings: media: qcom,sm8550-camss: Add the CSI TPG regions William Bright
2026-10-12 13:03 ` [PATCH 2/3] media: qcom: camss: Add the SM8550 CSI TPGs William Bright
@ 2026-10-12 13:03 ` William Bright
2026-10-12 13:45 ` Bryan O'Donoghue
2 siblings, 1 reply; 7+ messages in thread
From: William Bright @ 2026-10-12 13:03 UTC (permalink / raw)
To: Bryan O'Donoghue, Vladimir Zapolskiy, Loic Poulain,
Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Depeng Shao, Bjorn Andersson, Konrad Dybcio
Cc: linux-media, linux-arm-msm, devicetree, linux-kernel, William Bright
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: William Bright <william.bright@imd-tec.com>
---
arch/arm64/boot/dts/qcom/sm8550.dtsi | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi
index d21c04b1a306..1270ea8e4fdd 100644
--- a/arch/arm64/boot/dts/qcom/sm8550.dtsi
+++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi
@@ -3862,7 +3862,10 @@ camss: isp@acb7000 {
<0x0 0x0ac71000 0x0 0xf000>,
<0x0 0x0ac80000 0x0 0xf000>,
<0x0 0x0accb000 0x0 0x1800>,
- <0x0 0x0accf000 0x0 0x1800>;
+ <0x0 0x0accf000 0x0 0x1800>,
+ <0x0 0x0acf6000 0x0 0x400>,
+ <0x0 0x0acf7000 0x0 0x400>,
+ <0x0 0x0acf8000 0x0 0x400>;
reg-names = "csid0",
"csid1",
"csid2",
@@ -3881,7 +3884,10 @@ camss: isp@acb7000 {
"vfe1",
"vfe2",
"vfe_lite0",
- "vfe_lite1";
+ "vfe_lite1",
+ "csitpg0",
+ "csitpg1",
+ "csitpg2";
clocks = <&camcc CAM_CC_CAMNOC_AXI_CLK>,
<&camcc CAM_CC_CPAS_AHB_CLK>,
--
2.43.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] dt-bindings: media: qcom,sm8550-camss: Add the CSI TPG regions
2026-10-12 13:03 ` [PATCH 1/3] dt-bindings: media: qcom,sm8550-camss: Add the CSI TPG regions William Bright
@ 2026-10-12 13:43 ` Bryan O'Donoghue
0 siblings, 0 replies; 7+ messages in thread
From: Bryan O'Donoghue @ 2026-10-12 13:43 UTC (permalink / raw)
To: William Bright, Vladimir Zapolskiy, Loic Poulain,
Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Depeng Shao, Bjorn Andersson, Konrad Dybcio
Cc: linux-media, linux-arm-msm, devicetree, linux-kernel
On 12/10/2026 14:03, William Bright wrote:
> SM8550 has three CSI test pattern generators next to the CSIPHYs.
> Allow their register regions as optional trailing entries.
>
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: William Bright <william.bright@imd-tec.com>
> ---
> Documentation/devicetree/bindings/media/qcom,sm8550-camss.yaml | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/media/qcom,sm8550-camss.yaml b/Documentation/devicetree/bindings/media/qcom,sm8550-camss.yaml
> index 4b9ab1352e91..05101dc97711 100644
> --- a/Documentation/devicetree/bindings/media/qcom,sm8550-camss.yaml
> +++ b/Documentation/devicetree/bindings/media/qcom,sm8550-camss.yaml
> @@ -17,7 +17,8 @@ properties:
> const: qcom,sm8550-camss
>
> reg:
> - maxItems: 19
> + minItems: 19
> + maxItems: 22
>
> reg-names:
> items:
> @@ -40,6 +41,10 @@ properties:
> - const: vfe2
> - const: vfe_lite0
> - const: vfe_lite1
> + - const: csitpg0
> + - const: csitpg1
> + - const: csitpg2
> + minItems: 19
>
> clocks:
> maxItems: 36
>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/3] media: qcom: camss: Add the SM8550 CSI TPGs
2026-10-12 13:03 ` [PATCH 2/3] media: qcom: camss: Add the SM8550 CSI TPGs William Bright
@ 2026-10-12 13:44 ` Bryan O'Donoghue
0 siblings, 0 replies; 7+ messages in thread
From: Bryan O'Donoghue @ 2026-10-12 13:44 UTC (permalink / raw)
To: William Bright, Vladimir Zapolskiy, Loic Poulain,
Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Depeng Shao, Bjorn Andersson, Konrad Dybcio
Cc: linux-media, linux-arm-msm, devicetree, linux-kernel
On 12/10/2026 14:03, William Bright wrote:
> The SM8550 TPGs are hardware version 2.1.0, the same as x1e80100,
> so describe them with the gen1 TPG ops.
>
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: William Bright <william.bright@imd-tec.com>
> ---
> drivers/media/platform/qcom/camss/camss.c | 50 +++++++++++++++++++++++++++++++
> 1 file changed, 50 insertions(+)
>
> diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/platform/qcom/camss/camss.c
> index 5128dae79103..70f327484503 100644
> --- a/drivers/media/platform/qcom/camss/camss.c
> +++ b/drivers/media/platform/qcom/camss/camss.c
> @@ -3553,6 +3553,54 @@ static const struct camss_subdev_resources csid_res_8550[] = {
> }
> };
>
> +static const struct camss_subdev_resources tpg_res_8550[] = {
> + /* TPG0 */
> + {
> + .regulators = {},
> + .clock = { "cpas_ahb", "csiphy_rx" },
> + .clock_rate = {
> + { 0 },
> + { 400000000 },
> + },
> + .reg = { "csitpg0" },
> + .tpg = {
> + .lane_cnt = 4,
> + .formats = &tpg_formats_gen1,
> + .hw_ops = &tpg_ops_gen1
> + }
> + },
> + /* TPG1 */
> + {
> + .regulators = {},
> + .clock = { "cpas_ahb", "csiphy_rx" },
> + .clock_rate = {
> + { 0 },
> + { 400000000 },
> + },
> + .reg = { "csitpg1" },
> + .tpg = {
> + .lane_cnt = 4,
> + .formats = &tpg_formats_gen1,
> + .hw_ops = &tpg_ops_gen1
> + }
> + },
> + /* TPG2 */
> + {
> + .regulators = {},
> + .clock = { "cpas_ahb", "csiphy_rx" },
> + .clock_rate = {
> + { 0 },
> + { 400000000 },
> + },
> + .reg = { "csitpg2" },
> + .tpg = {
> + .lane_cnt = 4,
> + .formats = &tpg_formats_gen1,
> + .hw_ops = &tpg_ops_gen1
> + }
> + },
> +};
> +
> static const struct camss_subdev_resources vfe_res_8550[] = {
> /* VFE0 */
> {
> @@ -7245,12 +7293,14 @@ static const struct camss_resources sm8550_resources = {
> .legacy_phy = true,
> .csiphy_res = csiphy_res_8550,
> .csid_res = csid_res_8550,
> + .tpg_res = tpg_res_8550,
> .vfe_res = vfe_res_8550,
> .csid_wrapper_res = &csid_wrapper_res_sm8550,
> .icc_res = icc_res_sm8550,
> .icc_path_num = ARRAY_SIZE(icc_res_sm8550),
> .csiphy_num = ARRAY_SIZE(csiphy_res_8550),
> .csid_num = ARRAY_SIZE(csid_res_8550),
> + .tpg_num = ARRAY_SIZE(tpg_res_8550),
> .vfe_num = ARRAY_SIZE(vfe_res_8550),
> };
>
>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 3/3] arm64: dts: qcom: sm8550: Add the CSI TPG regions to camss
2026-10-12 13:03 ` [PATCH 3/3] arm64: dts: qcom: sm8550: Add the CSI TPG regions to camss William Bright
@ 2026-10-12 13:45 ` Bryan O'Donoghue
0 siblings, 0 replies; 7+ messages in thread
From: Bryan O'Donoghue @ 2026-10-12 13:45 UTC (permalink / raw)
To: William Bright, Vladimir Zapolskiy, Loic Poulain,
Mauro Carvalho Chehab, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Depeng Shao, Bjorn Andersson, Konrad Dybcio
Cc: linux-media, linux-arm-msm, devicetree, linux-kernel
On 12/10/2026 14:03, William Bright wrote:
> Assisted-by: Claude:claude-opus-5-5
> Signed-off-by: William Bright<william.bright@imd-tec.com>
> ---
> arch/arm64/boot/dts/qcom/sm8550.dtsi | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
Needs commit text.
---
bod
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-10-12 13:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-12 13:03 [PATCH 0/3] media: qcom: camss: Add the SM8550 CSI TPGs William Bright
2026-10-12 13:03 ` [PATCH 1/3] dt-bindings: media: qcom,sm8550-camss: Add the CSI TPG regions William Bright
2026-10-12 13:43 ` Bryan O'Donoghue
2026-10-12 13:03 ` [PATCH 2/3] media: qcom: camss: Add the SM8550 CSI TPGs William Bright
2026-10-12 13:44 ` Bryan O'Donoghue
2026-10-12 13:03 ` [PATCH 3/3] arm64: dts: qcom: sm8550: Add the CSI TPG regions to camss William Bright
2026-10-12 13:45 ` Bryan O'Donoghue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®