arm64: allwinner: a64: Rename hpvcc-supply to cpvdd-supply
Subsystems (4)
cover arm64: allwinner: a64: Rename hpvcc-supply to cpvdd-supply
Hi everyone,
This is a small series to fix the CPVDD regulator supply name for the A64 codec. The datasheet specifies the name "CPVDD" for the supply rail for the audio codec's internal headphone amp charge pump.
Somehow I managed to write "CPVDD" in the commit message and the device tree binding, but used "HPVCC" (which is the name used by the A33) in the device tree files and the device driver. (facepalm)
This feature was just introduced in v5.0-rc1, so if we could merge this as fixes for v5.0 that would be great.
Thanks, and sorry for the blunder on my part.
Regards
ChenYu
Chen-Yu Tsai (2):
ASoC: sunxi: sun50i-codec-analog: Rename hpvcc regulator supply to
cpvdd
arm64: dts: allwinner: a64: Rename hpvcc-supply to cpvdd-supply
arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 2 +- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 2 +- arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts | 2 +- arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi | 2 +- sound/soc/sunxi/sun50i-codec-analog.c | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-)
Signature · 1 line
2.20.1
PATCH 1/2 ASoC: sunxi: sun50i-codec-analog: Rename hpvcc regulator supply to cpvdd
The A64 datasheet lists the supply rail for the headphone amp's charge pump as "CPVDD". cpvdd-supply is the name of the property for this power rail specified in the device tree bindings. "HPVCC" was the name used in the A33 datasheet for the same function.
Rename the supply so it matches the datasheet, bindings, and the subject from the original commit.
--- sound/soc/sunxi/sun50i-codec-analog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/sunxi/sun50i-codec-analog.c +2 -2
@@ -274,7 +274,7 @@ static const struct snd_soc_dapm_widget sun50i_a64_codec_widgets[] = {* stream widgets at the card level. */ -SND_SOC_DAPM_REGULATOR_SUPPLY ("hpvcc" ,0 ,0 ), +SND_SOC_DAPM_REGULATOR_SUPPLY ("cpvdd" ,0 ,0 ),SND_SOC_DAPM_MUX ("Headphone Source Playback Route" ,SND_SOC_NOPM ,0 ,0 , sun50i_codec_hp_src), SND_SOC_DAPM_OUT_DRV("Headphone Amp", SUN50I_ADDA_HP_CTRL,
@@ -362,7 +362,7 @@ static const struct snd_soc_dapm_route sun50i_a64_codec_routes[] = { { "Headphone Source Playback Route", "Mixer", "Left Mixer" }, { "Headphone Source Playback Route", "Mixer", "Right Mixer" }, { "Headphone Amp", NULL, "Headphone Source Playback Route" }, - { "Headphone Amp", NULL, "hpvcc" }, + { "Headphone Amp", NULL, "cpvdd" }, { "HP", NULL, "Headphone Amp" }, /* Microphone Routes */
Signature · 1 line
2.20.1
Mark Brown
maintainerApplied "ASoC: sunxi: sun50i-codec-analog: Rename hpvcc regulator supply to cpvdd" to the asoc tree
The patch
ASoC: sunxi: sun50i-codec-analog: Rename hpvcc regulator supply to cpvdd
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
5fd812e6f5ae0376134234ceb70e8de541ccb10dMon Sep 17 00:00:00 2001
From: Chen-Yu Tsai <[email protected]>
Date: Wed, 13 Feb 2019 15:04:56 +0800
Subject: [PATCH] ASoC: sunxi: sun50i-codec-analog: Rename hpvcc regulator
supply to cpvdd
The A64 datasheet lists the supply rail for the headphone amp's charge pump as "CPVDD". cpvdd-supply is the name of the property for this power rail specified in the device tree bindings. "HPVCC" was the name used in the A33 datasheet for the same function.
Rename the supply so it matches the datasheet, bindings, and the subject from the original commit.
--- sound/soc/sunxi/sun50i-codec-analog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/sunxi/sun50i-codec-analog.c +2 -2
@@ -274,7 +274,7 @@ static const struct snd_soc_dapm_widget sun50i_a64_codec_widgets[] = {* stream widgets at the card level. */ -SND_SOC_DAPM_REGULATOR_SUPPLY ("hpvcc" ,0 ,0 ), +SND_SOC_DAPM_REGULATOR_SUPPLY ("cpvdd" ,0 ,0 ),SND_SOC_DAPM_MUX ("Headphone Source Playback Route" ,SND_SOC_NOPM ,0 ,0 , sun50i_codec_hp_src), SND_SOC_DAPM_OUT_DRV("Headphone Amp", SUN50I_ADDA_HP_CTRL,
@@ -362,7 +362,7 @@ static const struct snd_soc_dapm_route sun50i_a64_codec_routes[] = { { "Headphone Source Playback Route", "Mixer", "Left Mixer" }, { "Headphone Source Playback Route", "Mixer", "Right Mixer" }, { "Headphone Amp", NULL, "Headphone Source Playback Route" }, - { "Headphone Amp", NULL, "hpvcc" }, + { "Headphone Amp", NULL, "cpvdd" }, { "HP", NULL, "Headphone Amp" }, /* Microphone Routes */
Signature · 1 line
2.20.1
PATCH 2/2 arm64: dts: allwinner: a64: Rename hpvcc-supply to cpvdd-supply
In reply to Chen-Yu TsaiThe A64 datasheet lists the supply rail for the headphone amp's charge pump as "CPVDD". cpvdd-supply is the name of the property for this power rail specified in the device tree bindings. "HPVCC" was the name used in the A33 datasheet for the same function.
Rename the supply so it matches the datasheet and bindings.
--- arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts | 2 +- arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 2 +- arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts | 2 +- arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
arch/arm64/boot/dts/allwinner/sun50i-a64-bananapi-m64.dts +1 -1
@@ -104,7 +104,7 @@ }; &codec_analog { - hpvcc-supply = <®_eldo1>; + cpvdd-supply = <®_eldo1>; status = "okay"; };
arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +1 -1
@@ -80,7 +80,7 @@ }; &codec_analog { - hpvcc-supply = <®_eldo1>; + cpvdd-supply = <®_eldo1>; status = "okay"; };
arch/arm64/boot/dts/allwinner/sun50i-a64-pinebook.dts +1 -1
@@ -94,7 +94,7 @@ }; &codec_analog { - hpvcc-supply = <®_eldo1>; + cpvdd-supply = <®_eldo1>; status = "okay"; };
arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi +1 -1
@@ -48,7 +48,7 @@ #include <dt-bindings/gpio/gpio.h> &codec_analog { - hpvcc-supply = <®_eldo1>; + cpvdd-supply = <®_eldo1>; }; &mmc0 {
Signature · 1 line
2.20.1
Re: [PATCH 2/2] arm64: dts: allwinner: a64: Rename hpvcc-supply to cpvdd-supply
Quoted 11 lines · Chen-Yu Tsai
The A64 datasheet lists the supply rail for the headphone amp's charge pump as "CPVDD". cpvdd-supply is the name of the property for this power rail specified in the device tree bindings. "HPVCC" was the name used in the A33 datasheet for the same function.
Rename the supply so it matches the datasheet and bindings.
Fixes c56689e6f2fb ("arm64: dts: allwinner: a64: bananapi-m64: Enable audio codec")Fixes 6de8e717848f ("arm64: dts: allwinner: a64: enable sound on Pinebook")Fixes 498c21f233ed ("arm64: dts: allwinner: a64: enable sound on Pine64 and SoPine")Signed-off-by Chen-Yu Tsai <[email protected]>
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Re: [linux-sunxi] Re: [PATCH 2/2] arm64: dts: allwinner: a64: Rename hpvcc-supply to cpvdd-supply
Quoted 7 lines · Maxime Ripard
Quoted 5 lines · Chen-Yu Tsai
The A64 datasheet lists the supply rail for the headphone amp's charge pump as "CPVDD". cpvdd-supply is the name of the property for this power rail specified in the device tree bindings. "HPVCC" was the name used in the A33 datasheet for the same function.
Quoted 8 lines
Quoted 6 lines
Rename the supply so it matches the datasheet and bindings.
Fixes c56689e6f2fb ("arm64: dts: allwinner: a64: bananapi-m64: Enable audio codec")Fixes 6de8e717848f ("arm64: dts: allwinner: a64: enable sound on Pinebook")Fixes 498c21f233ed ("arm64: dts: allwinner: a64: enable sound on Pine64 and SoPine")Signed-off-by Chen-Yu Tsai <[email protected]>Acked-by Maxime Ripard <[email protected]>
Merged as a fix for 5.1.