From nobody Tue Apr 7 08:13:03 2026 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.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 725BB26E708 for ; Mon, 16 Mar 2026 01:02:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773622934; cv=none; b=FyPr/5zRrL84sSKpcLc/IzdXVkkgAeZdcyyIyn44UElXO80hoTg78+yZlitaN7SmKnnvYFnE6LtzPFonvSnxLLMXRqYeKmxq0uTJpnO9flZGKgVNHcwSZmcwGLxpQs8nnv4q4V8hdWnd6Mhk9G+QW0GS7tM3ENaa6WQaq5eUEeg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773622934; c=relaxed/simple; bh=R9D7QBRJGljcNS52e8MDmb3qUgPBLvJ+yJXgng1kixc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=kB0uBomYRdJ21tmntNAsw80515F6ZW0/TOqT9imkfE5ovnIVlWgvCdr23/L/LMQEeE/AnqBNMfXqMxCg0/Tu1xFNFpHs4DJt9H/4Eixpo4ZPhrowCJn/9Kyns0QorenOJsHj9eaYMF8MkS879+nyoQKJuWKX7PwhLuAqlU/6EMM= 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=GDirzlnV; arc=none smtp.client-ip=209.85.221.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="GDirzlnV" Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-43b467dcf0bso17158f8f.0 for ; Sun, 15 Mar 2026 18:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1773622928; x=1774227728; 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=vEXI/wT0/vTDxPb1iAv2bVNkGUuRphAeXeojsX6f5oI=; b=GDirzlnVZBqFInVureS45IUSRj1j3iDX07PpDA+qD9O61ez+yc0f8AyaX43r2Pnuzg ES2XDYQW3+vXBfWy7dnJ/Hwr5J/MT26oShx+0vSV2utp2a+73McBFDeM0FRk0lejAun1 mY6Sus/4t9yn2LQ3TuxVv2q1v3ZxEih5X1+DfMuINcuqRM0dO+KADj7kjw7HFglRwPqw 5VuarigZFSmWw/guuOdomtpvTcY6DVMFcON4AUWJ9T7e6ybEY7gc3S5XoDueWDGCV795 unZqmye0s3kp+wSt3teH1/rXL00F7bXxJa+lIYb9PdgMXbicxFv8PLaHJ2oMChSGEu+w i+iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773622928; x=1774227728; 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=vEXI/wT0/vTDxPb1iAv2bVNkGUuRphAeXeojsX6f5oI=; b=KtMYIYjyY3vd67R1AJAiMUmU6DncusYxD2uKL185NciW39SEaMEpJgt40LU0UbnYro lLPZqQOSOAUApqCrI4TAgOKiE0330B0/OavQtruhk3dLfha/9EKmDLmjtdvf6eJIaua0 yb30dw0b2Yo5/lo+dhJ7IfiTWQsTNcQOaYOoVNuYMfxR6lqPXpK6UbrnIdW47xyuMv9x iFPB10htFki2AoSXmoRLZtzYBqBwBX80PsDiec1p+VfxEfV2FCDjHJ179BD24qLDTinZ UNK7okrir0O+YNy2Jm/19mTzq9bE9QoCCdXzwiy1oXZBQSzDcEmYY0PZ2Dw0nt/qSvL1 toeQ== X-Forwarded-Encrypted: i=1; AJvYcCVzfXD5k0ePXLTJP6PXqZZXGdoFuMxD2krr80zZCZbYjgEeMC66qXu+b23Q9Mf7dLPB/ejDL10V7S0md6c=@vger.kernel.org X-Gm-Message-State: AOJu0Yz8IBNnuOto76EBhiLisTXSRsUNkzfhRs0uXbpJAOLXoSfNcMY9 TWlA9eM6NtzH6fkGNgbl7ZjTcCvXHTCbT9MlNmsvRBGe0mcZpMUf47/sBAl9nzmptBg= X-Gm-Gg: ATEYQzzO/ViJinN4L3iwispuvCRfUmqTTyPYtIsQ8NZjWP2t1GcnC3tH+zFamfBWsSE DzzBk/bVBAHjxdH+kxzegQqoXER3B7oq0x2oUk40iarmqyFL2BTnLgnsu4lxYgBntRAwoBpIxht WoClkflzst7RTjQx8Uz+761MLjNtUtCdCgFv32lUcduJSZMBPlsEg/SG/i8I92BneCsr9oIxs2u Z4UqzuLQLG3cSJfoEB9iXwHh0IgOxvA6MwCWmHog2rAbT2HyjiS67+Cny+YSq5EV0Zx9bRD097y bcY3F97wV7OBsujRX99o1z4Ug1/+LkrEEHulSeyu5o9Qwjulsj7GTiZf1MptanzKYHFZ9FR0Km9 Rre5hoMM7sul43zoKzoHOE4/dWtDtR4YK7fztQR/w7Yv27DAo/ZcMUZiwz4PJrB0MGn9DWRe8oP pfQk3AU1Z0HV7K+aTLdacQEIpOHAM7yDYXKmM= X-Received: by 2002:a05:6000:2085:b0:439:c5da:64b7 with SMTP id ffacd0b85a97d-439fe19592fmr27321985f8f.15.1773622928442; Sun, 15 Mar 2026 18:02:08 -0700 (PDT) Received: from [192.168.0.35] ([109.76.190.215]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-439fe228986sm34729700f8f.35.2026.03.15.18.02.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2026 18:02:07 -0700 (PDT) From: Bryan O'Donoghue Date: Mon, 16 Mar 2026 01:02:05 +0000 Subject: [PATCH v10 5/7] 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: <20260316-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v10-5-fdfe984fe941@linaro.org> References: <20260316-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v10-0-fdfe984fe941@linaro.org> In-Reply-To: <20260316-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v10-0-fdfe984fe941@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 , Christopher Obbard X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=6433; i=bryan.odonoghue@linaro.org; h=from:subject:message-id; bh=R9D7QBRJGljcNS52e8MDmb3qUgPBLvJ+yJXgng1kixc=; b=owEBbQKS/ZANAwAKASJxO7Ohjcg6AcsmYgBpt1aMXXdTyWRBHpbg95ECMxYFnTxhylH4wic3m DvnrFVMF7eJAjMEAAEKAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCabdWjAAKCRAicTuzoY3I OighEAC3IryKA/Hg2DUVtqqWGMi/HkQ398jH9xsLQSjgZNgottPV02IU7WSSWRtfL1BsCc/HOs/ RnTJmN4n1KxwNmhr0EL09tyjh+lzhPSE11fdE8SAtlKjXfdFxr7qWzQJokrmE3jYvYONvPNgjhr sw9F6RzHTY/HHDLwbU/VX7S85iK6YzN1egXW+Z9LZUnsP8KW57smJhIR9OIWvOyJdxswuKgFyxi +mdxuDL426niTLUtt1wlyPWzfmtS8qK43Eg4iQMWoruvjV5VVoNQndCz3p8U7bPmUGTxr+1B3Po x92Agiba4DLh64XIEpXtOw80/wdksd9dsJ92aq2VWW3zJcTSOtbAyyEUAwdqc6fnPM28TYBq94D S4TaU3nhp9Ec2LpqFpn4Ig1VEuQCHBzzl2B3zXxuXxKUOmHdiwVb0/qzNj24mCPSM5AKkYGzjCw d1dcJ/wtBiz48Z+ntSLKGQJBup744YF7wzpT0ogml7IsYAODuVLzhwFEaE9uMKXyOKZSAcuT/vf Y20VJ5pbxCQ71bDmds6z+1ruBszGChP9eoyUXfjFV90f8QzSIAkeF7pkM6k63vfn9+qs9xEgxOG kHwOTWOyjxtxtPbqT4c0P3Ua7bnOS5Zap29N67oVxJl5/hSgyCrJ3ZKkrvTwJuy6prRxqki6IMK xzejyoDAts7Gitw== 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. Reviewed-by: Christopher Obbard Tested-by: Christopher Obbard Signed-off-by: Bryan O'Donoghue --- 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