Skip to contentSkip to conversation

arm64: dts: qcom: msm8996: fix sound card reset line polarity

PATCH Applied Dmitry Torokhov 5 participants 11 messages Oct 27, 2022 – Nov 25, 2022

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

PATCH 1/6 arm64: dts: qcom: msm8996: fix sound card reset line polarity

When resetting the block, the reset line is being driven low and then high, which means that the line in DTS should be annotated as "active low". It will become important when wcd9335 driver will be converted to gpiod API that respects declared line polarities.

Fixes f3eb39a55a1f ("arm64: dts: db820c: Add sound card support")
---
 arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/msm8996.dtsi +1 -1
index 5ff8de3e3de7..d5271718d03c 100644
@@ -3354,7 +3354,7 @@ wcd9335: codec@1,0 {
 					interrupt-names = "intr1", "intr2";
 					interrupt-controller;
 					#interrupt-cells = <1>;
-					reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>;
+					reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
 
 					slim-ifc-dev = <&tasha_ifd>;
 
Signature · 1 line
2.38.0.135.g90850a2211-goog
#1 lore raw

PATCH 2/6 ASoC: dt-bindings: wcd9335: fix reset line polarity in example

When resetting the block, the reset line is being driven low and then high, which means that the line in DTS should be annotated as "active low".

Fixes 1877c9fda1b7 ("ASoC: dt-bindings: add dt bindings for wcd9335 audio codec")
---
 Documentation/devicetree/bindings/sound/qcom,wcd9335.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/sound/qcom,wcd9335.txt +1 -1
index 5d6ea66a863f..1f75feec3dec 100644
@@ -109,7 +109,7 @@ audio-codec@1{
 	reg  = <1 0>;
 	interrupts = <&msmgpio 54 IRQ_TYPE_LEVEL_HIGH>;
 	interrupt-names = "intr2"
-	reset-gpios = <&msmgpio 64 0>;
+	reset-gpios = <&msmgpio 64 GPIO_ACTIVE_LOW>;
 	slim-ifc-dev  = <&wc9335_ifd>;
 	clock-names = "mclk", "native";
 	clocks = <&rpmcc RPM_SMD_DIV_CLK1>,
Signature · 1 line
2.38.0.135.g90850a2211-goog
Acked-by on v1 2/6
#2 lore raw

Re: [PATCH 2/6] ASoC: dt-bindings: wcd9335: fix reset line polarity in example

Quoted 7 lines · Dmitry Torokhov

When resetting the block, the reset line is being driven low and then high, which means that the line in DTS should be annotated as "active low".

Fixes 1877c9fda1b7 ("ASoC: dt-bindings: add dt bindings for wcd9335 audio codec")

---

Best regards,
Krzysztof

#3 lore raw

PATCH 3/6 arm64: dts: qcom: sm8250-mtp: fix reset line polarity

In reply to Dmitry Torokhov

The driver for the codec, when resetting the chip, first drives the line low, and then high. This means that the line is active low. Change the annotation in the DTS accordingly.

Fixes 36c9d012f193 ("arm64: dts: qcom: use GPIO flags for tlmm")
Fixes 5a263cf629a8 ("arm64: dts: qcom: sm8250-mtp: Add wcd9380 audio codec node")
---
 arch/arm64/boot/dts/qcom/sm8250-mtp.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sm8250-mtp.dts +1 -1
index 9db6136321b4..391806c62ccc 100644
@@ -635,7 +635,7 @@ &soc {
 	wcd938x: codec {
 		compatible = "qcom,wcd9380-codec";
 		#sound-dai-cells = <1>;
-		reset-gpios = <&tlmm 32 GPIO_ACTIVE_HIGH>;
+		reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
 		vdd-buck-supply = <&vreg_s4a_1p8>;
 		vdd-rxtx-supply = <&vreg_s4a_1p8>;
 		vdd-io-supply = <&vreg_s4a_1p8>;
Signature · 1 line
2.38.0.135.g90850a2211-goog
#4 lore raw

PATCH 4/6 arm64: dts: qcom: sc7280: fix codec reset line polarity for CRD 3.0/3.1

In reply to Dmitry Torokhov

The driver for the codec, when resetting the chip, first drives the line low, and then high. This means that the line is active low. Change the annotation in the DTS accordingly.

Fixes 0a3a56a93fd9 ("arm64: dts: qcom: sc7280: Add wcd9385 codec node for CRD 3.0/3.1")
---
 arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sc7280-qcard.dtsi +1 -1
index a42b5878a75f..df49564ae6dc 100644
@@ -37,7 +37,7 @@ wcd9385: audio-codec-1 {
 		pinctrl-0 = <&wcd_reset_n>, <&us_euro_hs_sel>;
 		pinctrl-1 = <&wcd_reset_n_sleep>, <&us_euro_hs_sel>;
 
-		reset-gpios = <&tlmm 83 GPIO_ACTIVE_HIGH>;
+		reset-gpios = <&tlmm 83 GPIO_ACTIVE_LOW>;
 		us-euro-gpios = <&tlmm 81 GPIO_ACTIVE_HIGH>;
 
 		qcom,rx-device = <&wcd_rx>;
Signature · 1 line
2.38.0.135.g90850a2211-goog
#5 lore raw

PATCH 5/6 arm64: dts: qcom: sc7280: fix codec reset line polarity for CRD 1.0/2.0

In reply to Dmitry Torokhov

The driver for the codec, when resetting the chip, first drives the line low, and then high. This means that the line is active low. Change the annotation in the DTS accordingly.

Fixes f8b4eb64f200 ("arm64: dts: qcom: sc7280: Add wcd9385 codec node for CRD 1.0/2.0 and IDP boards")
---
 arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/sc7280-idp.dtsi +1 -1
index 4884647a8a95..1ac7c091e03f 100644
@@ -34,7 +34,7 @@ wcd9385: audio-codec-1 {
 		pinctrl-0 = <&wcd_reset_n>;
 		pinctrl-1 = <&wcd_reset_n_sleep>;
 
-		reset-gpios = <&tlmm 83 GPIO_ACTIVE_HIGH>;
+		reset-gpios = <&tlmm 83 GPIO_ACTIVE_LOW>;
 
 		qcom,rx-device = <&wcd_rx>;
 		qcom,tx-device = <&wcd_tx>;
Signature · 1 line
2.38.0.135.g90850a2211-goog
#6 lore raw

PATCH 6/6 ASoC: dt-bindings: wcd938x: fix codec reset line polarity in example

In reply to Dmitry Torokhov

The driver for the codec, when resetting the chip, first drives the line low, and then high. This means that the line is active low. Change the annotation in the example DTS accordingly.

---
 Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml +1 -1
index 51547190f709..2f5e0df93872 100644
@@ -112,7 +112,7 @@ examples:
   - |
     codec {
         compatible = "qcom,wcd9380-codec";
-        reset-gpios = <&tlmm 32 0>;
+        reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
         #sound-dai-cells = <1>;
         qcom,tx-device = <&wcd938x_tx>;
         qcom,rx-device = <&wcd938x_rx>;
Signature · 1 line
2.38.0.135.g90850a2211-goog
Acked-by on v1 6/6
#7 lore raw

Re: [PATCH 6/6] ASoC: dt-bindings: wcd938x: fix codec reset line polarity in example

Quoted 6 lines · Dmitry Torokhov

The driver for the codec, when resetting the chip, first drives the line low, and then high. This means that the line is active low. Change the annotation in the example DTS accordingly.

---

Best regards,
Krzysztof

maintainer
#8 lore raw

Re: [PATCH 6/6] ASoC: dt-bindings: wcd938x: fix codec reset line polarity in example

In reply to Dmitry Torokhov
Quoted 14 lines · Dmitry Torokhov

The driver for the codec, when resetting the chip, first drives the line low, and then high. This means that the line is active low. Change the annotation in the example DTS accordingly.

---
 Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml +0 -0
index 51547190f709..2f5e0df93872 100644

Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml examples: · line 115

Quoted 5 lines
Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml +1 -1
@@ -112,7 +112,7 @@ examples:
   - |
     codec {
         compatible = "qcom,wcd9380-codec";
-        reset-gpios = <&tlmm 32 0>;
+        reset-gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;

Missing a header for this.

Quoted 7 lines
Documentation/devicetree/bindings/sound/qcom,wcd938x.yaml +0 -0
         #sound-dai-cells = <1>;
         qcom,tx-device = <&wcd938x_tx>;
         qcom,rx-device = <&wcd938x_rx>;
Signature · 1 line
2.38.0.135.g90850a2211-goog
maintainer Applied
#9 lore raw

Re: (subset) [PATCH 1/6] arm64: dts: qcom: msm8996: fix sound card reset line polarity

In reply to Dmitry Torokhov
Quoted 6 lines · Dmitry Torokhov

When resetting the block, the reset line is being driven low and then high, which means that the line in DTS should be annotated as "active low". It will become important when wcd9335 driver will be converted to gpiod API that respects declared line polarities.

Applied, thanks!

[1/6] arm64: dts: qcom: msm8996: fix sound card reset line polarity

      commit: 76d21ffc5d425bf7ea9888652c49d7dbda15f356
[3/6] arm64: dts: qcom: sm8250-mtp: fix reset line polarity
      commit: 15d9fcbb3e6e8420c7d1ae331405780c5d9c1c25
[4/6] arm64: dts: qcom: sc7280: fix codec reset line polarity for CRD 3.0/3.1
      commit: 1caf66104c02d327a2467a69ab18fb24b44e9715
[5/6] arm64: dts: qcom: sc7280: fix codec reset line polarity for CRD 1.0/2.0
      commit: b8f298d4f69d82119ac0d22809a17c80b1f188d1

Best regards,

Signature · 1 line
Bjorn Andersson <[email protected]>
maintainer
#10 lore raw

Re: (subset) [PATCH 1/6] arm64: dts: qcom: msm8996: fix sound card reset line polarity

In reply to Dmitry Torokhov
Quoted 6 lines · Dmitry Torokhov

When resetting the block, the reset line is being driven low and then high, which means that the line in DTS should be annotated as "active low". It will become important when wcd9335 driver will be converted to gpiod API that respects declared line polarities.

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[2/6] ASoC: dt-bindings: wcd9335: fix reset line polarity in example

      commit: 34cb111f8a7b98b5fec809dd194003bca20ef1b2

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