Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: qcom: camcc-sm8250: Specify Titan GDSC power domain as a parent to IPE/BPS/SBI

When a consumer turns on/off a power domain dependent on another power
domain in hardware, the parent power domain shall be turned on/off by
the power domain provider as well, and to get it the power domain hardware
hierarchy shall be described in the CAMCC driver.

Establish the power domain hierarchy with a Titan GDSC set as a parent of
other GDSC power domains provided by the SM8250 camera clock controller,
including IPE, BPS and SBI ones.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Link: https://lore.kernel.org/r/20251021234450.2271279-6-vladimir.zapolskiy@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Vladimir Zapolskiy and committed by
Bjorn Andersson
fc3985b2 37cf953a

+3
+3
drivers/clk/qcom/camcc-sm8250.c
··· 2213 2213 .name = "bps_gdsc", 2214 2214 }, 2215 2215 .flags = HW_CTRL | POLL_CFG_GDSCR, 2216 + .parent = &titan_top_gdsc.pd, 2216 2217 .pwrsts = PWRSTS_OFF_ON, 2217 2218 }; 2218 2219 ··· 2223 2222 .name = "ipe_0_gdsc", 2224 2223 }, 2225 2224 .flags = HW_CTRL | POLL_CFG_GDSCR, 2225 + .parent = &titan_top_gdsc.pd, 2226 2226 .pwrsts = PWRSTS_OFF_ON, 2227 2227 }; 2228 2228 ··· 2233 2231 .name = "sbi_gdsc", 2234 2232 }, 2235 2233 .flags = HW_CTRL | POLL_CFG_GDSCR, 2234 + .parent = &titan_top_gdsc.pd, 2236 2235 .pwrsts = PWRSTS_OFF_ON, 2237 2236 }; 2238 2237