lkml.org 
[lkml]   [2021]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 2/8] dt-bindings: phy: phy-rockchip-inno-usb2: add rk3568 documentation
Date
The rk3568 usb2phy node is a standalone node with a single muxed
interrupt.
Add documentation for it to phy-rockchip-inno-usb2.

Signed-off-by: Peter Geis <pgwipeout@gmail.com>
---
.../bindings/phy/phy-rockchip-inno-usb2.yaml | 31 ++++++++++++++++---
1 file changed, 27 insertions(+), 4 deletions(-)

diff --git a/Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml b/Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml
index 5bebd86bf8b6..d2a749c3f9a3 100644
--- a/Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml
+++ b/Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.yaml
@@ -18,6 +18,7 @@ properties:
- rockchip,rk3328-usb2phy
- rockchip,rk3366-usb2phy
- rockchip,rk3399-usb2phy
+ - rockchip,rk3568-usb2phy
- rockchip,rv1108-usb2phy

reg:
@@ -50,6 +51,9 @@ properties:
description:
Phandle to the extcon device providing the cable state for the otg phy.

+ interrupts:
+ description: Muxed interrupt for both ports
+
rockchip,usbgrf:
$ref: /schemas/types.yaml#/definitions/phandle
description:
@@ -78,8 +82,6 @@ properties:

required:
- "#phy-cells"
- - interrupts
- - interrupt-names

otg-port:
type: object
@@ -109,8 +111,6 @@ properties:

required:
- "#phy-cells"
- - interrupts
- - interrupt-names

required:
- compatible
@@ -120,6 +120,29 @@ required:
- host-port
- otg-port

+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: rockchip,rk3568-usb2phy
+ then:
+ properties:
+ interrupts:
+ maxItems: 1
+ required:
+ - interrupts
+ else:
+ properties:
+ host-port:
+ required:
+ - interrupts
+ - interrupt-names
+ otg-port:
+ required:
+ - interrupts
+ - interrupt-names
+
additionalProperties: false

examples:
--
2.25.1
\
 
 \ /
  Last update: 2021-08-12 22:43    [W:0.078 / U:0.556 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site