Skip to contentSkip to conversation

dt-bindings: usb: dwc2: add power-domains property

PATCH Applied Johan Jonker 2 participants 2 messages Apr 25, 2020 – May 11, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: usb: dwc2: add power-domains property

A test with the command below gives this error:

arch/arm64/boot/dts/rockchip/px30-evb.dt.yaml: usb@ff300000:
'power-domains' does not match any of the regexes: 'pinctrl-[0-9]+'

With the conversion to yaml it also filters things in a node that are used by other drivers like 'power-domains' for Rockchip px30 usb nodes, so add them to 'dwc2.yaml'.

make ARCH=arm64 dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/usb/dwc2.yaml

---
 Documentation/devicetree/bindings/usb/dwc2.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/usb/dwc2.yaml +3 -0
index fb2f62aef..9352a8ef6 100644
@@ -78,6 +78,9 @@ properties:
   phy-names:
     const: usb2-phy
 
+  power-domains:
+    maxItems: 1
+
   vbus-supply:
     description: reference to the VBUS regulator. Depending on the current mode
       this is enabled (in "host" mode") or disabled (in "peripheral" mode). The
Signature · 1 line
2.11.0
maintainer Applied
#1 lore raw
Quoted 10 lines · Johan Jonker

A test with the command below gives this error:

arch/arm64/boot/dts/rockchip/px30-evb.dt.yaml: usb@ff300000:
'power-domains' does not match any of the regexes: 'pinctrl-[0-9]+'

With the conversion to yaml it also filters things in a node that are used by other drivers like 'power-domains' for Rockchip px30 usb nodes, so add them to 'dwc2.yaml'.

Quoted 8 lines

make ARCH=arm64 dtbs_check DT_SCHEMA_FILES=Documentation/devicetree/bindings/usb/dwc2.yaml

---
 Documentation/devicetree/bindings/usb/dwc2.yaml | 3 +++
 1 file changed, 3 insertions(+)

Applied, thanks!