Skip to content

Commit

Permalink
dt-bindings: Add bindings for Phytium USBHS-DRD controller
Browse files Browse the repository at this point in the history
This patch documents the DT binding for the Phytium USBHS-DRD controller.

Signed-off-by: Wang Zhimin <[email protected]>
Signed-off-by: Chen Baozi <[email protected]>
Signed-off-by: Wang Yinfeng <[email protected]>
  • Loading branch information
chenbaozi-ft authored and wangzhimin1179 committed May 14, 2024
1 parent 4e5def3 commit f9eead8
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Documentation/devicetree/bindings/usb/phytium,usb2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/usb/phytium,usb2.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Phytium USBHS-DRD controller bindings

maintainers:
- Chen Baozi <[email protected]>

properties:
compatible:
const: phytium,usb2

reg:
items:
- description: USB controller registers
- description: PHY registers

interrupts:
maxItems: 1

dr_mode:
enum: [host, otg, peripheral]

required:
- compatible
- reg
- interrupts

additionalProperties: false

examples:
- |
usb2_0: usb2@31800000 {
compatible = "phytium,usb2";
reg = <0x0 0x31800000 0x0 0x80000>,
<0x0 0x31990000 0x0 0x10000>;
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
};

0 comments on commit f9eead8

Please sign in to comment.