extcon: palmas: Added a new compatible type *ti,palmas-usb-vid*
Subsystems (2)
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
@@ -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
@@ -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
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 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
Chanwoo Choi
maintainerQuoted 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.
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
Chanwoo Choi
maintainerQuoted 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
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