From nobody Fri Apr 3 01:30:53 2026 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 02ACE37D120 for ; Thu, 26 Mar 2026 01:28:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774488495; cv=none; b=j1TJmHPldN0Cgl7XJmjbY560Krmn8Cl2oaZffjs/K52rL1YGKCCQA3VfBmZfV/0pvUifzGDFSuGwcRIRaibPxGgPXObuaMS00JCwJVNnK0dg7CITsul64AT92mlas66M8upicU6nHkhakbXO81Ujhgook+JibP5ZxeQNe+dV4P8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774488495; c=relaxed/simple; bh=we5ywP7iRPMRTAg6yOKxUrxdHq7+NpGw0G97RgZw0gY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dZCuvapaTycYRjCQZFDOOH9rhZFtb+EDSpD23BNOXUqKr+Ah0B8O30st2E6nEu2Y9bOlTUcxoGOk6aTmUD9FHjxI1R+HVmbBiWnqy+vriS67VK/DqYYy+1gXtEa9y/fA6UpczwTBFUCbHtxQdOo5HxPTadp8Jj8VDClsKN2ND2A= 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=S2hibFnS; arc=none smtp.client-ip=209.85.221.50 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="S2hibFnS" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-439bcec8613so263125f8f.3 for ; Wed, 25 Mar 2026 18:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1774488490; x=1775093290; 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=ekM3vLkgNR/9kVDhmI/IiqMjFO2m+5M/TZ2EQg913rs=; b=S2hibFnS7z7UqamuRYPGNdC1kP+ia8WoFCBnZaIoQ1Kpg5ZHwgZ7QYy5D0r7WXKbb+ e+a81wpJUmiLL/7hysVokUDxOWpDzic6qZWzQn8WUc4Rlrt1x61LcBUHJA4HK+mtl3uL r7ivIRJRfy621WKEQWVzjZieu+5463wCyzROYlqyqQwVjF0UbitDWfYxRapHFtFPL6D5 ABtu9rZsUKElcqRa5+Ulp+Vhr+b4j0gXOnIrMPgp2Cmry27L8bpwp5Iay/rl3JAPCQVJ xs/m4+0hZW6BXWpgaP5UsHv0rhtlId04kMYedUna8ozYL//DTFBrDuRX0UuJTd7dWVV1 E1+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774488490; x=1775093290; 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=ekM3vLkgNR/9kVDhmI/IiqMjFO2m+5M/TZ2EQg913rs=; b=lk88oAE3ef0Ytd9BGAqMaphinD8PCEyK7KAMXdPJNLtnqcUwzhlCC8VvAPT/3fGMDd 3AIsaC0LVmJ4JvtkRlyM8Pkkr1UMSCd8AJitjDHaev8qOhJ+XU2x4h9s++jMQMYnEnIi y+BUrrR81Jlx7B/c6VaNNsFEcUvQIGlFX8o4I8txFXbQfsZQ1pDbg+7wVPUV5peMgq7Z qKma+mlkeXyzay4DzEJqD5xloTBSAeTYNcUrPta/E1lfyHZ/SjVNz7Wu7cgrBa945pVA 95GTtw6CykKhzfw8CdqQ9Isfb2Aj2JoC9ADr3WKoMsE3Q3u5Tq9nls+iXXGNp2y/ZcF5 zGeg== X-Forwarded-Encrypted: i=1; AJvYcCWAQ/T53XY2qb/LVV+hHce3t7u1NbUV255M80Rbaz/fAt3Ym2wpNpWv3Tve1FgIZvbG82p6njRMu4V2eXc=@vger.kernel.org X-Gm-Message-State: AOJu0YyvBUkz86qcPzlFLp7a319+8xJCfFZBat5h+OfAGx1AzGQQB2fc Rn7peK876AhiqzFR2S8vDM3oAW0lx4bSEx135aR/92e6uTM2aX353yAhV86F4WDyKoc= X-Gm-Gg: ATEYQzwAm3SpEcCtzrD2MTFXz2FJhZSDChk3cC0u2bLFuaGNVoPOnhHx3KR408FSr3Q Q+4iAH0oN44LoZ3iLXvUPDASVNI+ZSeQwhZMXIzF59odpVhpJtDfExDobgrkCZNjbuLONX2wt7Q 4AG7hvKJ3YtqqOQdFyMUog9uTrLY57/s77cxD+tfwyZBXHNFH0AKpOXfxIQ8Blx/hGe+TxGuQNO bR6O4GDyQ1oQl6AZP/BGixxG44hCTOeH0hbsEJIsOomuqKjAIAYdp7ZXTpksKnnYkgPvme+LkHG +aPOWDe2a0VOyxopnQu1Elm2zWGK083Vbt7YFtyulWrvD5KvLo1BOjXOW0XHAlXqq5laikvFczI kJZPMAl8UC6Ft/wKFQ5wzuDd+0kaWut7WDsmM/qvY5ZLEH9Ld6Bzn2JGcNnXwF1G9z3LNNKzfGd vKM4JyY6xuL0901eDsHDEDgRS0Oy+SCRjGcLg= X-Received: by 2002:a05:6000:26c3:b0:43b:42af:75b with SMTP id ffacd0b85a97d-43b88a3a379mr8156018f8f.55.1774488490319; Wed, 25 Mar 2026 18:28:10 -0700 (PDT) Received: from [192.168.0.35] ([109.76.163.154]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43b919cf1c4sm3918051f8f.23.2026.03.25.18.28.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Mar 2026 18:28:09 -0700 (PDT) From: Bryan O'Donoghue Date: Thu, 26 Mar 2026 01:28:33 +0000 Subject: [PATCH v11 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: <20260326-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v11-5-5b93415be6dd@linaro.org> References: <20260326-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v11-0-5b93415be6dd@linaro.org> In-Reply-To: <20260326-b4-linux-next-25-03-13-dtsi-x1e80100-camss-v11-0-5b93415be6dd@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=we5ywP7iRPMRTAg6yOKxUrxdHq7+NpGw0G97RgZw0gY=; b=owEBbQKS/ZANAwAKASJxO7Ohjcg6AcsmYgBpxIvARhAaqvf4pYzE1y4EDxMLp+F/9kmDukiyq 4maGPZhhvuJAjMEAAEKAB0WIQTmk/sqq6Nt4Rerb7QicTuzoY3IOgUCacSLwAAKCRAicTuzoY3I Oh2DEACsXDzvF7YwEWShB3maiqgvopBIILEb0v6l1Q0PD6l5clhv1ks5cyRsWTbbPeIU+sz+gFB YOy16TjM329e1NAT21DCjZlumVO6ACXpjLnsf6vP5BFpkdjGFg2sDqcGmWDQO4xTe+a3ISMPhux ywmvKfwThxCfKX3+IWZWVdzqvz45Y+KqrAeo9HMvuik05VD1VD6okbzN8i/a5JXv3u4otjCS4MZ wIrUoEY/BSMSh0K9PH3fw+2Sd8R8Q6jFqYpQ36zupJcjA9nbwwgbCRF4wcHG7fAuk8IUGo3NJoc Q9ng2PWuqd5l/akKr6uoVcod47xmOmG/xVL6K2klmhnVgvXxnD0hfLmcDrcOcyLIpicfp7nNlEV RKeMdAWUpEQylJ6gq484VXmpw0LuG2JBhLejnLIQ7Ic4ICwapWuIicqRS2W22IlqmsajJkybJJ4 GvJk+kquheyKh26OhgB5ZcPJ3xEelzIHM52F2vFCOnKBXh7TB+QzA5eiwIOeQWH1pRUM8TQfhhT 3kiZfQ2ta7NzuuNsWeXelRDzPw4IaGq2+R0k+63uZ6jT6QuctGJPBpj6epzDLXg7ZzzZoH8rDv1 OuKwScm9evoI9y0Lizq+wgo+O0bu7CwlR3Wk0vRRdRS+rh2hsifWC4sx0i/iP2kYUyeJmrvG3iO OgqDd24FsqINPBQ== 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 Reviewed-by: Loic Poulain --- 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 66ea057291f6d..2749895152e32 100644 --- a/drivers/media/platform/qcom/camss/camss.c +++ b/drivers/media/platform/qcom/camss/camss.c @@ -5107,6 +5107,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, @@ -5118,6 +5119,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, @@ -5129,6 +5131,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, @@ -5142,6 +5145,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, @@ -5153,6 +5157,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, @@ -5166,6 +5171,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, @@ -5180,6 +5186,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, @@ -5193,6 +5200,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, @@ -5204,6 +5212,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, @@ -5215,6 +5224,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, @@ -5226,6 +5236,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, @@ -5239,6 +5250,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, @@ -5252,6 +5264,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, @@ -5266,6 +5279,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, @@ -5279,6 +5293,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, @@ -5293,6 +5308,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, @@ -5307,6 +5323,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