Skip to contentSkip to conversation

DT Fixes for OMAP5 boards

PATCH Superseded H. Nikolaus Schaller 3 participants 7 messages Oct 25, 2016 Device tree bindings

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover DT Fixes for OMAP5 boards

This patch series adds DT nodes for:
* twl6040 enable jack_detection (e.g. OMAP5EVM)
* twl6037 gpadc for omap5 based boards (e.g. OMAP5EVM)

H. Nikolaus Schaller (2):
dts: omap5: baord-common: add phandle to reference Palmas gpadc
dts: omap5: baord-common: enable twl6040 headset jack detection

 arch/arm/boot/dts/omap5-board-common.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.7.3
#1 lore raw

PATCH v2 1/2 dts: omap5: baord-common: add phandle to reference Palmas gpadc

Will be needed for iio based drivers.

---
 arch/arm/boot/dts/omap5-board-common.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/omap5-board-common.dtsi +1 -1
index 7500283..b04adee 100644
@@ -415,7 +415,7 @@
 			ti,backup-battery-charge-high-current;
 		};
 
-		gpadc {
+		gpadc: gpadc {
 			compatible = "ti,palmas-gpadc";
 			interrupts = <18 0
 				      16 0
Signature · 1 line
2.7.3
#2 lore raw

PATCH v2 2/2 dts: omap5: baord-common: enable twl6040 headset jack detection

In reply to H. Nikolaus Schaller
---
 arch/arm/boot/dts/omap5-board-common.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/omap5-board-common.dtsi +1 -0
index b04adee..91456b4 100644
@@ -124,6 +124,7 @@
 		compatible = "ti,abe-twl6040";
 		ti,model = "omap5-uevm";
 
+		ti,jack_detection;
 		ti,mclk-freq = <19200000>;
 
 		ti,mcpdm = <&mcpdm>;
Signature · 1 line
2.7.3
#3 lore raw

Re: [PATCH v2 2/2] dts: omap5: baord-common: enable twl6040 headset jack detection

Quoted 10 lines · H. Nikolaus Schaller
---
 arch/arm/boot/dts/omap5-board-common.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/omap5-board-common.dtsi +0 -0
index b04adee..91456b4 100644

arch/arm/boot/dts/omap5-board-common.dtsi line 127

Quoted 4 lines
arch/arm/boot/dts/omap5-board-common.dtsi +1 -0
@@ -124,6 +124,7 @@
 		compatible = "ti,abe-twl6040";
 		ti,model = "omap5-uevm";
 
+		ti,jack_detection;

ti,jack-detection

Quoted 4 lines
arch/arm/boot/dts/omap5-board-common.dtsi +0 -0
 		ti,mclk-freq = <19200000>;
 
 		ti,mcpdm = <&mcpdm>;
Signature · 1 line
Péter
#4 lore raw

Re: [PATCH v2 2/2] dts: omap5: baord-common: enable twl6040 headset jack detection

Quoted 14 lines · Peter Ujfalusi
Quoted 13 lines · H. Nikolaus Schaller
---
 arch/arm/boot/dts/omap5-board-common.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/omap5-board-common.dtsi +0 -0
index b04adee..91456b4 100644
@@ -124,6 +124,7 @@
 		compatible = "ti,abe-twl6040";
 		ti,model = "omap5-uevm";
 
Quoted 3 lines

arch/arm/boot/dts/omap5-board-common.dtsi line 127

Quoted 1 line
arch/arm/boot/dts/omap5-board-common.dtsi +1 -0
+		ti,jack_detection;

ti,jack-detection

Also subject has baord-common for both :)

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

Re: [PATCH v2 2/2] dts: omap5: baord-common: enable twl6040 headset jack detection

In reply to Peter Ujfalusi
Quoted 17 lines

Am 25.10.2016 um 18:51 schrieb Peter Ujfalusi <[email protected]>:

Quoted 13 lines · H. Nikolaus Schaller

---
arch/arm/boot/dts/omap5-board-common.dtsi | 1 +

1 file changed, 1 insertion(+)
arch/arm/boot/dts/omap5-board-common.dtsi +0 -0
index b04adee..91456b4 100644
@@ -124,6 +124,7 @@
 		compatible = "ti,abe-twl6040";
 		ti,model = "omap5-uevm";
 
Quoted 3 lines

arch/arm/boot/dts/omap5-board-common.dtsi line 127

Quoted 1 line
arch/arm/boot/dts/omap5-board-common.dtsi +1 -0
+		ti,jack_detection;

ti,jack-detection

Hm. Looks as if we have found another bug:
which one is correct?

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/sound/omap-abe-twl6040.txt#n15

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/sound/soc/omap/omap-abe-twl6040.c#n289

Should I add another patch?

Quoted 9 lines
Quoted 5 lines
arch/arm/boot/dts/omap5-board-common.dtsi +0 -0
 		ti,mclk-freq = <19200000>;
 
 		ti,mcpdm = <&mcpdm>;
Signature · 1 line
Péter
#6 lore raw

Re: [PATCH v2 2/2] dts: omap5: baord-common: enable twl6040 headset jack detection

Quoted 21 lines · H. Nikolaus Schaller
Quoted 17 lines

Am 25.10.2016 um 18:51 schrieb Peter Ujfalusi <[email protected]>:

Quoted 13 lines · H. Nikolaus Schaller

---
arch/arm/boot/dts/omap5-board-common.dtsi | 1 +

1 file changed, 1 insertion(+)
arch/arm/boot/dts/omap5-board-common.dtsi +0 -0
index b04adee..91456b4 100644
@@ -124,6 +124,7 @@
 		compatible = "ti,abe-twl6040";
 		ti,model = "omap5-uevm";
 
Quoted 3 lines

arch/arm/boot/dts/omap5-board-common.dtsi line 127

Quoted 1 line
arch/arm/boot/dts/omap5-board-common.dtsi +1 -0
+		ti,jack_detection;

ti,jack-detection

Quoted 8 lines

Hm. Looks as if we have found another bug:
which one is correct?

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/sound/omap-abe-twl6040.txt#n15

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/sound/soc/omap/omap-abe-twl6040.c#n289

Should I add another patch?

We have parts of omap-abe-twl6040.txt, the driver and omap4-sdp.dts all using ti,jack-detection. So omap-abe-twl6040.txt is wrong for the use of ti,jack_detection.

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html