Skip to contentSkip to conversation

dt-bindings: phy: Convert motorola,cpcap-usb-phy to DT schema

PATCH New Rob Herring (Arm) 1 participant 1 message Jun 7, 2025

Subsystems (3)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: phy: Convert motorola,cpcap-usb-phy to DT schema

Convert the Motorola CPCAP PMIC USB PHY binding to DT schema format. It's a straight forward conversion.

---
 .../bindings/mfd/motorola-cpcap.txt           |   2 +-
 .../bindings/phy/motorola,cpcap-usb-phy.yaml  | 107 ++++++++++++++++++
 .../devicetree/bindings/phy/phy-cpcap-usb.txt |  40 -------
 3 files changed, 108 insertions(+), 41 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/phy/motorola,cpcap-usb-phy.yaml
 delete mode 100644 Documentation/devicetree/bindings/phy/phy-cpcap-usb.txt
Documentation/devicetree/bindings/mfd/motorola-cpcap.txt +1 -1
index f00827c9b67f..18c3fc26ca93 100644
@@ -19,7 +19,7 @@ which are described in the following files:
 - Documentation/devicetree/bindings/power/supply/cpcap-battery.yaml
 - Documentation/devicetree/bindings/power/supply/cpcap-charger.yaml
 - Documentation/devicetree/bindings/regulator/cpcap-regulator.txt
-- Documentation/devicetree/bindings/phy/phy-cpcap-usb.txt
+- Documentation/devicetree/bindings/phy/motorola,cpcap-usb-phy.yaml
 - Documentation/devicetree/bindings/input/cpcap-pwrbutton.txt
 - Documentation/devicetree/bindings/rtc/cpcap-rtc.txt
 - Documentation/devicetree/bindings/leds/leds-cpcap.txt
Documentation/devicetree/bindings/phy/motorola,cpcap-usb-phy.yaml new file +107 -0

107 lines not on this page · raw message

Documentation/devicetree/bindings/phy/phy-cpcap-usb.txt deleted +0 -40
deleted file mode 100644
index 2eb9b2b69037..000000000000
@@ -1,40 +0,0 @@
-Motorola CPCAP PMIC USB PHY binding
-
-Required properties:
-compatible: Shall be either "motorola,cpcap-usb-phy" or
-	    "motorola,mapphone-cpcap-usb-phy"
-#phy-cells: Shall be 0
-interrupts: CPCAP PMIC interrupts used by the USB PHY
-interrupt-names: Interrupt names
-io-channels: IIO ADC channels used by the USB PHY
-io-channel-names: IIO ADC channel names
-vusb-supply: Regulator for the PHY
-
-Optional properties:
-pinctrl: Optional alternate pin modes for the PHY
-pinctrl-names: Names for optional pin modes
-mode-gpios: Optional GPIOs for configuring alternate modes
-
-Example:
-cpcap_usb2_phy: phy {
-	compatible = "motorola,mapphone-cpcap-usb-phy";
-	pinctrl-0 = <&usb_gpio_mux_sel1 &usb_gpio_mux_sel2>;
-	pinctrl-1 = <&usb_ulpi_pins>;
-	pinctrl-2 = <&usb_utmi_pins>;
-	pinctrl-3 = <&uart3_pins>;
-	pinctrl-names = "default", "ulpi", "utmi", "uart";
-	#phy-cells = <0>;
-	interrupts-extended = <
-		&cpcap 15 0 &cpcap 14 0 &cpcap 28 0 &cpcap 19 0
-		&cpcap 18 0 &cpcap 17 0 &cpcap 16 0 &cpcap 49 0
-		&cpcap 48 1
-	>;
-	interrupt-names =
-		"id_ground", "id_float", "se0conn", "vbusvld",
-		"sessvld", "sessend", "se1", "dm", "dp";
-	mode-gpios = <&gpio2 28 GPIO_ACTIVE_HIGH
-		      &gpio1 0 GPIO_ACTIVE_HIGH>;
-	io-channels = <&cpcap_adc 2>, <&cpcap_adc 7>;
-	io-channel-names = "vbus", "id";
-	vusb-supply = <&vusb>;
-};
Signature · 1 line
2.47.2