]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regulator: mt6359: Add proper ldo_vcn33_[12] regulators
authorChen-Yu Tsai <wenst@chromium.org>
Thu, 14 May 2026 09:15:19 +0000 (17:15 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 20 May 2026 16:17:04 +0000 (17:17 +0100)
commitfb6a6297acfad9810dea91a67185a90ba7a7bfbd
treef9ee0d1dec7622ba575df63d62caafb5faacb9a2
parent10be8fc1d534b4c23a9056ad20ff2bc0b314eeb2
regulator: mt6359: Add proper ldo_vcn33_[12] regulators

The ldo_vcn33_[12]_wifi and ldo_vcn33_[12]_bt are just two regulator
outputs instead of four. The wifi and bt parts refer to separate enable
bits that are OR-ed together to affect the actual regulator output. The
separate bits allow the wifi and bt stacks to enable their power without
coordination between them. These have been deprecated in favor of proper
nodes matching the output.

Add proper ldo_vcn33_[12] regulators to replace the existing ones. The
enable status is synced to just one of the two enable bits, and the
other is forced off. This makes the handling in other bits simpler.

The existing *_(bt|wifi) regulators are converted to no-op regulators
that are fed from their new respective ldo_vcn33_[12] regulator. This
allows existing device trees to continue to work.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://patch.msgid.link/20260514091520.2718987-7-wenst@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mt6359-regulator.c
include/linux/regulator/mt6359-regulator.h