[PATCH] dt-bindings: extcon: ti,extcon-palmas: Convert to DT schema

From: Bhargav Joshi

Date: Mon Jul 20 2026 - 16:25:39 EST


Convert Texas Instruments Palmas USB Comparator from legacy text to DT
schema.

Signed-off-by: Bhargav Joshi <j.bhargav.u@xxxxxxxxx>
---
.../devicetree/bindings/extcon/extcon-palmas.txt | 22 -------
.../bindings/extcon/ti,extcon-palmas.yaml | 74 ++++++++++++++++++++++
2 files changed, 74 insertions(+), 22 deletions(-)

diff --git a/Documentation/devicetree/bindings/extcon/extcon-palmas.txt b/Documentation/devicetree/bindings/extcon/extcon-palmas.txt
deleted file mode 100644
index f61d5af44a27..000000000000
--- a/Documentation/devicetree/bindings/extcon/extcon-palmas.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-EXTCON FOR PALMAS/TWL CHIPS
-
-PALMAS USB COMPARATOR
-Required Properties:
- - 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
- - ti,enable-id-detection: Perform ID detection. If id-gpio is specified
- it performs id-detection using GPIO else using OTG core.
- - ti,enable-vbus-detection: Perform VBUS detection.
- - id-gpio: gpio for GPIO ID detection. See gpio binding.
- - debounce-delay-ms: debounce delay for GPIO ID pin in milliseconds.
-
-palmas-usb {
- compatible = "ti,twl6035-usb", "ti,palmas-usb";
- ti,wakeup;
-};
diff --git a/Documentation/devicetree/bindings/extcon/ti,extcon-palmas.yaml b/Documentation/devicetree/bindings/extcon/ti,extcon-palmas.yaml
new file mode 100644
index 000000000000..0bcd8df79414
--- /dev/null
+++ b/Documentation/devicetree/bindings/extcon/ti,extcon-palmas.yaml
@@ -0,0 +1,74 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/extcon/ti,extcon-palmas.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments PALMAS USB COMPARATOR
+
+maintainers:
+ - Roger Quadros <rogerq@xxxxxx>
+ - Bhargav Joshi <j.bhargav.u@xxxxxxxxx>
+
+properties:
+ compatible:
+ oneOf:
+ - enum:
+ - ti,palmas-usb-vid
+ - ti,twl6035-usb-vid
+ - enum:
+ - ti,palmas-usb
+ - ti,twl6035-usb
+ deprecated: true
+
+ ti,wakeup:
+ type: boolean
+ description:
+ To enable the wakeup comparator in probe.
+
+ ti,enable-id-detection:
+ type: boolean
+ description:
+ Perform ID detection. If id-gpios is specified it performs ID detection
+ using GPIO, otherwise using the OTG core.
+
+ ti,enable-vbus-detection:
+ type: boolean
+ description:
+ Perform VBUS detection.
+
+ id-gpios:
+ maxItems: 1
+
+ id-gpio:
+ maxItems: 1
+ deprecated: true
+
+ vbus-gpios:
+ maxItems: 1
+
+ vbus-gpio:
+ maxItems: 1
+ deprecated: true
+
+ debounce-delay-ms:
+ description:
+ Debounce delay for GPIO ID pin in milliseconds.
+ default: 20
+
+required:
+ - compatible
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ palmas_usb {
+ compatible = "ti,palmas-usb-vid";
+ ti,wakeup;
+ ti,enable-id-detection;
+ ti,enable-vbus-detection;
+ id-gpios = <&palmas_gpio 0 GPIO_ACTIVE_HIGH>;
+ };

---
base-commit: 1590cf0329716306e948a8fc29f1d3ee87d3989f
change-id: 20260721-ti-extcon-palmas-2eeed9a6ddb3

Best regards,
--
Bhargav