From: Jeremiah Bishop <jbishop.dev@gmail.com>
To: gregkh@linuxfoundation.org
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
stern@rowland.harvard.edu, linux-usb@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Jeremiah Bishop <jbishop.dev@gmail.com>
Subject: [PATCH v2] dt-bindings: usb: convert PXA USB bindings to YAML
Date: Fri, 29 May 2026 16:29:55 -1000 [thread overview]
Message-ID: <20260530022955.32728-1-jbishop.dev@gmail.com> (raw)
In-Reply-To: <20260529213506.37462-1-jbishop.dev@gmail.com>
Convert the legacy pxa-usb.txt binding documentation to YAML schemas.
The original text binding documented two distinct devices: the PXA OHCI
USB host controller and the PXA270 USB device controller. Split the
documentation into separate schemas, marvell,pxa-ohci.yaml and
marvell,pxa270-udc.yaml, and remove the obsolete text binding.
The schemas preserve the existing compatible strings and properties used
by current in-tree users while adding machine-readable validation and
examples.
Signed-off-by: Jeremiah Bishop <jbishop.dev@gmail.com>
---
Changes in v2:
- Add vbus1-supply, vbus2-supply, and vbus3-supply properties to the
PXA OHCI schema.
.../bindings/usb/marvell,pxa-ohci.yaml | 100 ++++++++++++++++++
.../bindings/usb/marvell,pxa270-udc.yaml | 50 +++++++++
.../devicetree/bindings/usb/pxa-usb.txt | 53 ----------
3 files changed, 150 insertions(+), 53 deletions(-)
create mode 100644 Documentation/devicetree/bindings/usb/marvell,pxa-ohci.yaml
create mode 100644 Documentation/devicetree/bindings/usb/marvell,pxa270-udc.yaml
delete mode 100644 Documentation/devicetree/bindings/usb/pxa-usb.txt
diff --git a/Documentation/devicetree/bindings/usb/marvell,pxa-ohci.yaml b/Documentation/devicetree/bindings/usb/marvell,pxa-ohci.yaml
new file mode 100644
index 000000000000..5d660b92d3cb
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/marvell,pxa-ohci.yaml
@@ -0,0 +1,100 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/usb/marvell,pxa-ohci.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell PXA OHCI USB Host Controller
+
+maintainers:
+ - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+ - Alan Stern <stern@rowland.harvard.edu>
+
+allOf:
+ - $ref: usb-hcd.yaml#
+
+properties:
+ compatible:
+ const: marvell,pxa-ohci
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+ marvell,enable-port1:
+ type: boolean
+ description: Enable USB port 1 if present.
+
+ marvell,enable-port2:
+ type: boolean
+ description: Enable USB port 2 if present.
+
+ marvell,enable-port3:
+ type: boolean
+ description: Enable USB port 3 if present.
+
+ marvell,port-sense-low:
+ type: boolean
+ description: Port sense pin in low-active.
+
+ marvell,power-control-low:
+ type: boolean
+ description: Power control pin is low-active.
+
+ marvell,no-oc-protection:
+ type: boolean
+ description: Disable over-current protection.
+
+ marvell,oc-mode-perport:
+ type: boolean
+ description: Enable per-port over-current protection.
+
+ marvell,power-on-delay:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: Power On to Power Good time in milliseconds.
+
+ marvell,port-mode:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ enum: [1, 2, 3]
+ description: |
+ Selects the mode of the ports.
+ 1 = PMM_NPS_MODE
+ 2 = PMM_GLOBAL_MODE
+ 3 = PMM_PERPORT_MODE
+
+ marvell,power-budget:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: USB power budget.
+
+ vbus1-supply:
+ description: Regulator supplying VBUS for port 1.
+
+ vbus2-supply:
+ description: Regulator supplying VBUS for port 2.
+
+ vbus3-supply:
+ description: Regulator supplying VBUS for port 3.
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ usb@4c000000 {
+ compatible = "marvell,pxa-ohci";
+ reg = <0x4c000000 0x100000>;
+ interrupts = <3>;
+ clocks = <&clks 11>;
+ marvell,enable-port1;
+ marvell,port-mode = <2>; /* PMM_GLOBAL_MODE */
+ };
diff --git a/Documentation/devicetree/bindings/usb/marvell,pxa270-udc.yaml b/Documentation/devicetree/bindings/usb/marvell,pxa270-udc.yaml
new file mode 100644
index 000000000000..0be51e0db80b
--- /dev/null
+++ b/Documentation/devicetree/bindings/usb/marvell,pxa270-udc.yaml
@@ -0,0 +1,50 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/usb/marvell,pxa270-udc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell PXA27x USB Device Controller (UDC)
+
+maintainers:
+ - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+properties:
+ compatible:
+ const: marvell,pxa270-udc
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+ gpios:
+ maxItems: 1
+ description: GPIO to control the USB D+ pullup.
+
+ phys:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ udc@40600000 {
+ compatible = "marvell,pxa270-udc";
+ reg = <0x40600000 0x10000>;
+ interrupts = <11>;
+ clocks = <&clks 11>;
+ gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
+ };
diff --git a/Documentation/devicetree/bindings/usb/pxa-usb.txt b/Documentation/devicetree/bindings/usb/pxa-usb.txt
deleted file mode 100644
index 53fdae4fa6f6..000000000000
--- a/Documentation/devicetree/bindings/usb/pxa-usb.txt
+++ /dev/null
@@ -1,53 +0,0 @@
-PXA USB controllers
-
-OHCI
-
-Required properties:
- - compatible: Should be "marvell,pxa-ohci" for USB controllers
- used in host mode.
-
-Optional properties:
- - "marvell,enable-port1", "marvell,enable-port2", "marvell,enable-port3"
- If present, enables the appropriate USB port of the controller.
- - "marvell,port-mode" selects the mode of the ports:
- 1 = PMM_NPS_MODE
- 2 = PMM_GLOBAL_MODE
- 3 = PMM_PERPORT_MODE
- - "marvell,power-sense-low" - power sense pin is low-active.
- - "marvell,power-control-low" - power control pin is low-active.
- - "marvell,no-oc-protection" - disable over-current protection.
- - "marvell,oc-mode-perport" - enable per-port over-current protection.
- - "marvell,power_on_delay" Power On to Power Good time - in ms.
-
-Example:
-
- usb0: ohci@4c000000 {
- compatible = "marvell,pxa-ohci";
- reg = <0x4c000000 0x100000>;
- interrupts = <18>;
- marvell,enable-port1;
- marvell,port-mode = <2>; /* PMM_GLOBAL_MODE */
- };
-
-UDC
-
-Required properties:
- - compatible: Should be "marvell,pxa270-udc" for USB controllers
- used in device mode.
- - reg: usb device MMIO address space
- - interrupts: single interrupt generated by the UDC IP
- - clocks: input clock of the UDC IP (see clock-bindings.txt)
-
-Optional properties:
- - gpios:
- - gpio activated to control the USB D+ pullup (see gpio.txt)
-
-Example:
-
- pxa27x_udc: udc@40600000 {
- compatible = "marvell,pxa270-udc";
- reg = <0x40600000 0x10000>;
- interrupts = <11>;
- clocks = <&pxa2xx_clks 11>;
- gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
- };
--
2.43.0
next prev parent reply other threads:[~2026-05-30 2:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-29 21:35 [PATCH] dt-bindings: usb: convert PXA USB bindings to YAML Jeremiah Bishop
2026-05-29 22:01 ` sashiko-bot
2026-05-30 1:16 ` Jeremiah Bishop
2026-05-30 2:29 ` Jeremiah Bishop [this message]
2026-05-30 3:06 ` [PATCH v2] " sashiko-bot
2026-05-30 7:24 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260530022955.32728-1-jbishop.dev@gmail.com \
--to=jbishop.dev@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=robh@kernel.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.