Commit df9e5103 authored by Luca Weiss's avatar Luca Weiss Committed by Bjorn Andersson
Browse files

remoteproc: qcom_q6v5_mss: Add modem support on MSM8926



While MSM8926 being 'just' an LTE-capable variant of MSM8226 it appears
the modem setup has changed significantly, by requiring mss-supply and
not using the ext-bhs-reg.

Add a new compatible and new struct to support that.

Reviewed-by: default avatarStephan Gerhold <stephan.gerhold@linaro.org>
Signed-off-by: default avatarLuca Weiss <luca@lucaweiss.eu>
Link: https://lore.kernel.org/r/20250217-msm8226-modem-v5-6-2bc74b80e0ae@lucaweiss.eu


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 155cd99d
Loading
Loading
Loading
Loading
+48 −0
Original line number Diff line number Diff line
@@ -257,6 +257,7 @@ enum {
	MSS_MSM8226,
	MSS_MSM8909,
	MSS_MSM8916,
	MSS_MSM8926,
	MSS_MSM8953,
	MSS_MSM8974,
	MSS_MSM8996,
@@ -2622,11 +2623,58 @@ static const struct rproc_hexagon_res msm8226_mss = {
	.version = MSS_MSM8226,
};

static const struct rproc_hexagon_res msm8926_mss = {
	.hexagon_mba_image = "mba.b00",
	.proxy_supply = (struct qcom_mss_reg_res[]) {
		{
			.supply = "pll",
			.uA = 100000,
		},
		{
			.supply = "mx",
			.uV = 1050000,
		},
		{}
	},
	.active_supply = (struct qcom_mss_reg_res[]) {
		{
			.supply = "mss",
			.uV = 1050000,
			.uA = 100000,
		},
		{}
	},
	.proxy_clk_names = (char*[]){
		"xo",
		NULL
	},
	.active_clk_names = (char*[]){
		"iface",
		"bus",
		"mem",
		NULL
	},
	.proxy_pd_names = (char*[]){
		"cx",
		NULL
	},
	.need_mem_protection = false,
	.has_alt_reset = false,
	.has_mba_logs = false,
	.has_spare_reg = false,
	.has_qaccept_regs = false,
	.has_ext_bhs_reg = false,
	.has_ext_cntl_regs = false,
	.has_vq6 = false,
	.version = MSS_MSM8926,
};

static const struct of_device_id q6v5_of_match[] = {
	{ .compatible = "qcom,q6v5-pil", .data = &msm8916_mss},
	{ .compatible = "qcom,msm8226-mss-pil", .data = &msm8226_mss},
	{ .compatible = "qcom,msm8909-mss-pil", .data = &msm8909_mss},
	{ .compatible = "qcom,msm8916-mss-pil", .data = &msm8916_mss},
	{ .compatible = "qcom,msm8926-mss-pil", .data = &msm8926_mss},
	{ .compatible = "qcom,msm8953-mss-pil", .data = &msm8953_mss},
	{ .compatible = "qcom,msm8974-mss-pil", .data = &msm8974_mss},
	{ .compatible = "qcom,msm8996-mss-pil", .data = &msm8996_mss},