Skip to contentSkip to conversation

extcon: palmas: Added a new compatible type *ti,palmas-usb-vid*

PATCH In review Kishon Vijay Abraham I 3 participants 7 messages Oct 10, 2013 – Oct 11, 2013

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

PATCH v6 1/1 extcon: palmas: Added a new compatible type *ti,palmas-usb-vid*

The Palmas device contains only a USB VBUS-ID detector, so added a compatible type *ti,palmas-usb-vid*. Didn't remove the existing compatible types for backward compatibility.

---
Changes from v5:
* Fixed documentation

Changes from v4:
* added compatible property "ti,twl6035-usb-vid"

Changes from v3:
* Fixed commit log message (VID to VBUS-ID).
* Fixed the Documentation to tell "ti,twl6035-usb" and "ti,palmas-usb" is deprecated
Changes from [1]:
* Since the old compatible values will be in 3.11 kernel, we shouldn't remove the old compatible values. So retain the old compatible values.

[1] -> http://www.spinics.net/lists/linux-omap/msg95843.html

 Documentation/devicetree/bindings/extcon/extcon-palmas.txt |    6 +++++-
 drivers/extcon/extcon-palmas.c                             |    2 ++
 2 files changed, 7 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/extcon/extcon-palmas.txt +5 -1
index 7dab6a8..45414bb 100644
@@ -2,7 +2,11 @@ EXTCON FOR PALMAS/TWL CHIPS
 
 PALMAS USB COMPARATOR
 Required Properties:
- - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb"
+ - compatible: should contain one of:
+   * "ti,palmas-usb-vid".
+   * "ti,twl6035-usb-vid".
+   * "ti,palmas-usb" (DEPRECATED - use "ti,palmas-usb-vid").
+   * "ti,twl6035-usb" (DEPRECATED - use "ti,twl6035-usb-vid").
 
 Optional Properties:
  - ti,wakeup : To enable the wakeup comparator in probe
drivers/extcon/extcon-palmas.c +2 -0
index 6c91976..6e83e9a 100644
@@ -269,7 +269,9 @@ static const struct dev_pm_ops palmas_pm_ops = {
 
 static struct of_device_id of_palmas_match_tbl[] = {
 	{ .compatible = "ti,palmas-usb", },
+	{ .compatible = "ti,palmas-usb-vid", },
 	{ .compatible = "ti,twl6035-usb", },
+	{ .compatible = "ti,twl6035-usb-vid", },
 	{ /* end */ }
 };
 
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 4 lines · Kishon Vijay Abraham I

The Palmas device contains only a USB VBUS-ID detector, so added a compatible type *ti,palmas-usb-vid*. Didn't remove the existing compatible types for backward compatibility.

I dont have much issue on this nomenclature but just second thought:

The Palmas USB module is capable of detection VBUS, ID-GND, ID-RA, ID-RB, ID-RC and ID-FLOAT as per BC1.2. This sub-module only detect the cable, does nothing more than this.
In this case, should we say "ti,palmas-usb-extcon"?
Again extcon is linux specific terminology and this can be defer.

#2 lore raw
Quoted 5 lines · Laxman Dewangan
Quoted 4 lines · Kishon Vijay Abraham I

The Palmas device contains only a USB VBUS-ID detector, so added a compatible type *ti,palmas-usb-vid*. Didn't remove the existing compatible types for backward compatibility.

Quoted 7 lines

I dont have much issue on this nomenclature but just second thought:

The Palmas USB module is capable of detection VBUS, ID-GND, ID-RA, ID-RB, ID-RC and ID-FLOAT as per BC1.2.
This sub-module only detect the cable, does nothing more than this. In this case, should we say "ti,palmas-usb-extcon"?
Again extcon is linux specific terminology and this can be defer.

I don't mind either way. Chanwoo?

-Kishon

maintainer
#3 lore raw
Quoted 8 lines · Kishon Vijay Abraham I
Quoted 7 lines · Laxman Dewangan
Quoted 4 lines · Kishon Vijay Abraham I

The Palmas device contains only a USB VBUS-ID detector, so added a compatible type *ti,palmas-usb-vid*. Didn't remove the existing compatible types for backward compatibility.

I dont have much issue on this nomenclature but just second thought:

Quoted 7 lines
Quoted 5 lines

The Palmas USB module is capable of detection VBUS, ID-GND, ID-RA, ID-RB, ID-RC and ID-FLOAT as per BC1.2.
This sub-module only detect the cable, does nothing more than this. In this case, should we say "ti,palmas-usb-extcon"?
Again extcon is linux specific terminology and this can be defer.

I don't mind either way. Chanwoo?

The EXTCON is subsystem name. I don't prefer to use 'extcon' word on device name. I agree Kishon opinion.

#4 lore raw

Hi Chanwoo,

Quoted 15 lines · Chanwoo Choi
Quoted 14 lines · Kishon Vijay Abraham I
Quoted 12 lines · Laxman Dewangan
Quoted 4 lines · Kishon Vijay Abraham I

The Palmas device contains only a USB VBUS-ID detector, so added a compatible type *ti,palmas-usb-vid*. Didn't remove the existing compatible types for backward compatibility.

I dont have much issue on this nomenclature but just second thought:

The Palmas USB module is capable of detection VBUS, ID-GND, ID-RA, ID-RB, ID-RC and ID-FLOAT as per BC1.2.
This sub-module only detect the cable, does nothing more than this. In this case, should we say "ti,palmas-usb-extcon"?
Again extcon is linux specific terminology and this can be defer.

Quoted 4 lines
Quoted 1 line

I don't mind either way. Chanwoo?

The EXTCON is subsystem name. I don't prefer to use 'extcon' word on device name. I agree Kishon opinion.

Cool.. can you this patch as-is?

Thanks
Kishon

maintainer
#5 lore raw
Quoted 18 lines · Kishon Vijay Abraham I

Hi Chanwoo,

Quoted 15 lines · Chanwoo Choi
Quoted 14 lines · Kishon Vijay Abraham I
Quoted 12 lines · Laxman Dewangan
Quoted 4 lines · Kishon Vijay Abraham I

The Palmas device contains only a USB VBUS-ID detector, so added a compatible type *ti,palmas-usb-vid*. Didn't remove the existing compatible types for backward compatibility.

I dont have much issue on this nomenclature but just second thought:

The Palmas USB module is capable of detection VBUS, ID-GND, ID-RA, ID-RB, ID-RC and ID-FLOAT as per BC1.2.
This sub-module only detect the cable, does nothing more than this. In this case, should we say "ti,palmas-usb-extcon"?
Again extcon is linux specific terminology and this can be defer.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

I don't mind either way. Chanwoo?

The EXTCON is subsystem name. I don't prefer to use 'extcon' word on device name. I agree Kishon opinion.

Cool.. can you this patch as-is?

OK, applied it.

Thanks,
Chanwoo Choi

#6 lore raw
Quoted 21 lines · Chanwoo Choi
Quoted 20 lines · Kishon Vijay Abraham I

Hi Chanwoo,

Quoted 17 lines · Chanwoo Choi
Quoted 15 lines · Kishon Vijay Abraham I
Quoted 5 lines · Laxman Dewangan
Quoted 4 lines · Kishon Vijay Abraham I

The Palmas device contains only a USB VBUS-ID detector, so added a compatible type *ti,palmas-usb-vid*. Didn't remove the existing compatible types for backward compatibility.

Quoted 7 lines

I dont have much issue on this nomenclature but just second thought:

The Palmas USB module is capable of detection VBUS, ID-GND, ID-RA, ID-RB, ID-RC and ID-FLOAT as per BC1.2.
This sub-module only detect the cable, does nothing more than this. In this case, should we say "ti,palmas-usb-extcon"?
Again extcon is linux specific terminology and this can be defer.

I don't mind either way. Chanwoo?

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

The EXTCON is subsystem name. I don't prefer to use 'extcon' word on device name. I agree Kishon opinion.

Cool.. can you this patch as-is?

OK, applied it.

Thanks :-)

-Kishon