Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Kishon Vijay Abraham I and committed by
Chanwoo Choi
5fbc77d6 81df63a9

+7 -1
+5 -1
Documentation/devicetree/bindings/extcon/extcon-palmas.txt
··· 2 2 3 3 PALMAS USB COMPARATOR 4 4 Required Properties: 5 - - compatible : Should be "ti,palmas-usb" or "ti,twl6035-usb" 5 + - compatible: should contain one of: 6 + * "ti,palmas-usb-vid". 7 + * "ti,twl6035-usb-vid". 8 + * "ti,palmas-usb" (DEPRECATED - use "ti,palmas-usb-vid"). 9 + * "ti,twl6035-usb" (DEPRECATED - use "ti,twl6035-usb-vid"). 6 10 7 11 Optional Properties: 8 12 - ti,wakeup : To enable the wakeup comparator in probe
+2
drivers/extcon/extcon-palmas.c
··· 269 269 270 270 static struct of_device_id of_palmas_match_tbl[] = { 271 271 { .compatible = "ti,palmas-usb", }, 272 + { .compatible = "ti,palmas-usb-vid", }, 272 273 { .compatible = "ti,twl6035-usb", }, 274 + { .compatible = "ti,twl6035-usb-vid", }, 273 275 { /* end */ } 274 276 }; 275 277