From nobody Tue Apr 7 14:07:40 2026 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 BC81D3D7D75 for ; Wed, 25 Feb 2026 15:11:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772032297; cv=none; b=fvsmVhi9F3lix6zb3ys3PwATXr3h9dfez8rdc6fFf9VFQzb/PZ6b60/i9yQtZBOi/kbEdyRa5vD4rQK0zaWpjk21+0eDLaT6Z2/rGCZ+L+WuSjWiBKRI0T3LlF3Cx6Vw4dLhne/ckb0qJu8+PA5rIcYjww0HRvuegQhYIzN41ag= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772032297; c=relaxed/simple; bh=T56zPiTpvN0GBLBYQMGo9vQwbDNYOKXq8zVh3tggF/U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=SLnlJ/Q0BPnQsnQTwAnMSJ4s29JiK7xcfTtPOn0sbsfVyEoPqxCCOBBzdlhlh4ABzAHPDOJ0w6pWWfCUvWvU3r0F4pW9chf5wkQC5iZ1JSj0V0Hc5BEpp7TO0NZlJRv2LcwSLP3+2XBWn1EDwyVMP+CfDYtsD3qX8L5d1NkrQ7E= 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=K5p8v+Ez; arc=none smtp.client-ip=209.85.128.49 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="K5p8v+Ez" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4806ce0f97bso55178475e9.0 for ; Wed, 25 Feb 2026 07:11:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772032294; x=1772637094; 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=lJflEsJoWFuWsTkTz3+7munVvf3KCvZoSO705SUTMdI=; b=K5p8v+EzOn4ymeotsHVCDBO8LqxSYbnF4IWZ0KrVadcRsQhrIG4s5Q/UQxFxJdJnTa HSXEsGtSvnFI66H6o9GfnjZXNhgENUkC3hH+daSSbg+L3USJm4dlFpbFoZyTnTo+zPsp FmFC6oWiPrgN29smep/35gGKcJAeNoUwJqP+tOa+WHdSU5uf3c6Gn/TUyCyRVYOyRstK WMnR9v3RC/dglOT3Bee8VUvJL6P+AEhEej6PCstWa1f9dH9wa75nxx3ym41WH3I+l/3k AFFuqzHXcg6pb6gENJipB9eRQ+wmmpOInses1JFUq4Wd8GcXRq5HWqlwUn++ZWArpqjy 3Y6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772032294; x=1772637094; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=lJflEsJoWFuWsTkTz3+7munVvf3KCvZoSO705SUTMdI=; b=hSdFDTozrDrDqfgLSf87iDmc0kedK822XD0VSsJOpth/L3jKKlcPgUEft6cXBuPNJD pm104ZViVAwuLeQQ33T2BI+j1fImHfUJlTvVEf/yEmkDQtVt3YsMgbVg88hKEqS8/zAY LJEka3s8vFyGBxJI8TmRMxoHF1qfob+7XjILyKdXz1VUHbazwxLi+reamDONZZhzG2/g 6mSXIzTcW6EvZLexid06s718buuEuSsekLe8eJGllkLYSLiGg0/6hFsas+cqYcZ8zXo9 3Jtx38fQIYlriUqT2hacyOA5W+qathVNFMuwMD6JfMhnwcBOibW3U74zP4okfF2E0n01 X5CA== X-Forwarded-Encrypted: i=1; AJvYcCXOFrrCvKMlen8CHwklUKfCHe0X2tt9oaY52YEvHv7LdYyil2fvW17I+nUSleNCx2fFYjiTbZc2vg1fwIg=@vger.kernel.org X-Gm-Message-State: AOJu0YwY/J+e55RQO4biKRRxrs0jz9qty3+4Ye0nxtQ/TUbFMC8eE1pD RXz6xoeDY+XOqL09UmCxUhWyGlx3OkMpwPUMq+s2lBzhi3q2ZxJURNN52rounOzq/WU= X-Gm-Gg: ATEYQzxR7MK96rcLZGDrOiDaDvApFJxoD4jINVeTVCBT1CsVxP25nInLpibH/iA2W4q wdkcNtOweJJ/G/ZrV6m1bIRdIFUScEy9T85JXRfutKETgGIx8mRmM+dUv0UU2LZz34SVleBSG4M JF+gJkwBKtn+n5q3Skl0siLjBLTzqchwBZT4ydswuOfEdB3TN/nJk4ks4BeG0S5Aq5ywIrzDLah OJw2I0PApt9eQFotHJQmIBpwYXwUQ6S8RjDHoFautIVDMFtBwJ2/YuCf4+WaZMFbpvxmToUzIGQ eoaL961a1YC/I0P9/lCwuGq1wowm6UozOy1aybmuG2SY2NwvUx3XZ8IkXbv/OQVhAQRnjRf8k+P llVd0oJpp1OYwzxbnzwomfqoT+wnA9N/M1uPc/e84sJIC7NdoxJeImVMdiQli34q+8rEzdqYfNv CaBYl9KJQmr64ckpBYZ80/7PhgngvRWEceTgLJlhkukuiy8qETzIda41wEaF/tQx8/ X-Received: by 2002:a05:600c:3f05:b0:47d:8479:78d5 with SMTP id 5b1f17b1804b1-483a95aae85mr300243205e9.7.1772032294030; Wed, 25 Feb 2026 07:11:34 -0800 (PST) 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-483bfba9a5esm33950695e9.4.2026.02.25.07.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Feb 2026 07:11:33 -0800 (PST) From: Bryan O'Donoghue Date: Wed, 25 Feb 2026 15:11:22 +0000 Subject: [PATCH v8 05/18] media: qcom: camss: Add legacy_phy flag to SoC definition structures 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: <20260225-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v8-5-95517393bcb2@linaro.org> References: <20260225-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v8-0-95517393bcb2@linaro.org> In-Reply-To: <20260225-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v8-0-95517393bcb2@linaro.org> To: Bjorn Andersson , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Foss , Todor Tomov , Mauro Carvalho Chehab , Konrad Dybcio , Vladimir Zapolskiy , Bryan O'Donoghue Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Bryan O'Donoghue , Krzysztof Kozlowski X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=6305; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=T56zPiTpvN0GBLBYQMGo9vQwbDNYOKXq8zVh3tggF/U=; b=owEBbQKS/ZANAwAKASJxO7Ohjcg6AcsmYgBpnxEaDeWqiRrxKX6nKsm0fVBtNdq3OXvpnzn80 nPDwmTICnWJAjMEAAEKAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCaZ8RGgAKCRAicTuzoY3I OshSD/sHc+DlrWPWUfH9gk+u2u19z81qJf7ZuyhkMhi4q/+sz+5yse9heIB475AoH1EEgGMsvFI tbhyYlKvPkF0/Yhp0z/blKCYMtbWw24bsI2hM0BksYBB3YSrXIzIr1efS2ObaB6bMViCZDWxq0d bW5TUepTvUIX+nL+d7TLYGXtG02Hc445W7iCiLFofNxIPXGKC//XDXyq7MrDJTnW4wlzn9QQUvj uFct9YtcKnXC7ItMywkP3SjaB2ORj+755cvzk3bssrTseuvp7k9uFwQHkvoBVWP3NBesgfHXFlm xBFNnCGVCn4qpKO0CQHzA3PJXFGH4JN7x6aRXqPFEWnlP9fE2PEYuN3V0v30TJnH7nu4n1Ftmt3 Rsh/NpD+Hudgi4oicTGl6vaGp+jYhDfOuCbO4POymNWnOUNLUS6G4kJITJtuh2Kq+b3PO3p69x3 h86m6EsewzHUTigCNvL8vdhN0WzGeLDs5X2zPoUD19PzWvtjxtQzQfuUL3zNKzGUa3u94CRIVyu 9IofOKrbkrGP7T7kZ75LQLAxIAmtjFMVoqrb4R8hawjgmkAqUXie3xymMy/4ee9O1pEIeS3/JAo OxY9Z9Wj9i+t8T0DPyzqJSA1/GInyRDc8i/Vu5EgyS4I8bAyvc0jBKjdkGXI+qXpqeDfWuIm6Bm sf4QltJ1H99s7Bg== X-Developer-Key: i=bryan.odonoghue@linaro.org; a=openpgp; fpr=E693FB2AABA36DE117AB6FB422713BB3A18DC83A Flag which SoCs have legacy - builtin PHY code. This will be useful in subsequent patches to inform PHY bringup logic if legacy bindings are available. Signed-off-by: Bryan O'Donoghue Reviewed-by: Christopher Obbard Tested-by: Christopher Obbard --- drivers/media/platform/qcom/camss/camss.c | 17 +++++++++++++++++ drivers/media/platform/qcom/camss/camss.h | 1 + 2 files changed, 18 insertions(+) diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/plat= form/qcom/camss/camss.c index 00b87fd9afbd8..5fb5ad87e1671 100644 --- a/drivers/media/platform/qcom/camss/camss.c +++ b/drivers/media/platform/qcom/camss/camss.c @@ -5104,6 +5104,7 @@ static void camss_remove(struct platform_device *pdev) =20 static const struct camss_resources msm8916_resources =3D { .version =3D CAMSS_8x16, + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_8x16, .csid_res =3D csid_res_8x16, .ispif_res =3D &ispif_res_8x16, @@ -5115,6 +5116,7 @@ static const struct camss_resources msm8916_resources= =3D { =20 static const struct camss_resources msm8939_resources =3D { .version =3D CAMSS_8x39, + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_8x39, .csid_res =3D csid_res_8x39, .ispif_res =3D &ispif_res_8x39, @@ -5126,6 +5128,7 @@ static const struct camss_resources msm8939_resources= =3D { =20 static const struct camss_resources msm8953_resources =3D { .version =3D CAMSS_8x53, + .legacy_phy =3D true, .icc_res =3D icc_res_8x53, .icc_path_num =3D ARRAY_SIZE(icc_res_8x53), .csiphy_res =3D csiphy_res_8x96, @@ -5139,6 +5142,7 @@ static const struct camss_resources msm8953_resources= =3D { =20 static const struct camss_resources msm8996_resources =3D { .version =3D CAMSS_8x96, + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_8x96, .csid_res =3D csid_res_8x96, .ispif_res =3D &ispif_res_8x96, @@ -5150,6 +5154,7 @@ static const struct camss_resources msm8996_resources= =3D { =20 static const struct camss_resources qcm2290_resources =3D { .version =3D CAMSS_2290, + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_2290, .csid_res =3D csid_res_2290, .vfe_res =3D vfe_res_2290, @@ -5163,6 +5168,7 @@ static const struct camss_resources qcm2290_resources= =3D { static const struct camss_resources qcs8300_resources =3D { .version =3D CAMSS_8300, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_8300, .csid_res =3D csid_res_8775p, .csid_wrapper_res =3D &csid_wrapper_res_sm8550, @@ -5177,6 +5183,7 @@ static const struct camss_resources qcs8300_resources= =3D { static const struct camss_resources sa8775p_resources =3D { .version =3D CAMSS_8775P, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_8775p, .csid_res =3D csid_res_8775p, .csid_wrapper_res =3D &csid_wrapper_res_sm8550, @@ -5190,6 +5197,7 @@ static const struct camss_resources sa8775p_resources= =3D { =20 static const struct camss_resources sdm660_resources =3D { .version =3D CAMSS_660, + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_660, .csid_res =3D csid_res_660, .ispif_res =3D &ispif_res_660, @@ -5201,6 +5209,7 @@ static const struct camss_resources sdm660_resources = =3D { =20 static const struct camss_resources sdm670_resources =3D { .version =3D CAMSS_845, + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_670, .csid_res =3D csid_res_670, .vfe_res =3D vfe_res_670, @@ -5212,6 +5221,7 @@ static const struct camss_resources sdm670_resources = =3D { static const struct camss_resources sdm845_resources =3D { .version =3D CAMSS_845, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_845, .csid_res =3D csid_res_845, .vfe_res =3D vfe_res_845, @@ -5223,6 +5233,7 @@ static const struct camss_resources sdm845_resources = =3D { static const struct camss_resources sm6150_resources =3D { .version =3D CAMSS_6150, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_sm6150, .csid_res =3D csid_res_sm6150, .vfe_res =3D vfe_res_sm6150, @@ -5236,6 +5247,7 @@ static const struct camss_resources sm6150_resources = =3D { static const struct camss_resources sm8250_resources =3D { .version =3D CAMSS_8250, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_8250, .csid_res =3D csid_res_8250, .vfe_res =3D vfe_res_8250, @@ -5249,6 +5261,7 @@ static const struct camss_resources sm8250_resources = =3D { static const struct camss_resources sc8280xp_resources =3D { .version =3D CAMSS_8280XP, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_sc8280xp, .csid_res =3D csid_res_sc8280xp, .ispif_res =3D NULL, @@ -5263,6 +5276,7 @@ static const struct camss_resources sc8280xp_resource= s =3D { static const struct camss_resources sc7280_resources =3D { .version =3D CAMSS_7280, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_7280, .csid_res =3D csid_res_7280, .vfe_res =3D vfe_res_7280, @@ -5276,6 +5290,7 @@ static const struct camss_resources sc7280_resources = =3D { static const struct camss_resources sm8550_resources =3D { .version =3D CAMSS_8550, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_8550, .csid_res =3D csid_res_8550, .vfe_res =3D vfe_res_8550, @@ -5290,6 +5305,7 @@ static const struct camss_resources sm8550_resources = =3D { static const struct camss_resources sm8650_resources =3D { .version =3D CAMSS_8650, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_sm8650, .csid_res =3D csid_res_sm8650, .csid_wrapper_res =3D &csid_wrapper_res_sm8550, @@ -5304,6 +5320,7 @@ static const struct camss_resources sm8650_resources = =3D { static const struct camss_resources x1e80100_resources =3D { .version =3D CAMSS_X1E80100, .pd_name =3D "top", + .legacy_phy =3D true, .csiphy_res =3D csiphy_res_x1e80100, .csid_res =3D csid_res_x1e80100, .vfe_res =3D vfe_res_x1e80100, diff --git a/drivers/media/platform/qcom/camss/camss.h b/drivers/media/plat= form/qcom/camss/camss.h index 6d048414c919e..24ec3ad7990e7 100644 --- a/drivers/media/platform/qcom/camss/camss.h +++ b/drivers/media/platform/qcom/camss/camss.h @@ -104,6 +104,7 @@ enum icc_count { struct camss_resources { enum camss_version version; const char *pd_name; + const bool legacy_phy; const struct camss_subdev_resources *csiphy_res; const struct camss_subdev_resources *csid_res; const struct camss_subdev_resources *ispif_res; --=20 2.52.0