Skip to contentSkip to conversation

dt-bindings: fix issues seen during STM32 DT validation

PATCH Applied Alexandre Torgue 2 participants 7 messages Oct 7, 2019 – Oct 15, 2019

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

cover dt-bindings: fix issues seen during STM32 DT validation

This series updates yaml files to clean some issues seen during STM32 device trees validation.

Alexandre Torgue (3):
dt-bindings: arm: stm32: Add missing STM32 boards
dt-bindings: pinctrl: stm32: Fix 'st,syscfg' description field
dt-bindings: usb: generic-ehci: Add "companion" entry

 .../devicetree/bindings/arm/stm32/stm32.yaml  | 27 ++++++++++++++++---
 .../bindings/pinctrl/st,stm32-pinctrl.yaml    |  7 +++--
 .../devicetree/bindings/usb/generic-ehci.yaml |  5 ++++
 3 files changed, 31 insertions(+), 8 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/3 dt-bindings: arm: stm32: Add missing STM32 boards

This commit documents missing STM32 boards:

-STM32MCU: F429 disco/eval, F469-disco, F746 disco/eval, F769 disco, H743 disco/eval.

-STM32MPU: MP157 dk1/dk2/ed1/ev1.

Documentation/devicetree/bindings/arm/stm32/stm32.yaml +23 -4
index 4d194f1eb03a..1fcf306bd2d1 100644
@@ -13,19 +13,38 @@ properties:
   compatible:
     oneOf:
       - items:
+          - enum:
+              - st,stm32f429i-disco
+              - st,stm32429i-eval
           - const: st,stm32f429
-
       - items:
+          - enum:
+              - st,stm32f469i-disco
           - const: st,stm32f469
-
       - items:
+          - enum:
+              - st,stm32f746-disco
+              - st,stm32746g-eval
           - const: st,stm32f746
-
       - items:
+          - enum:
+              - st,stm32f769-disco
+          - const: st,stm32f769
+      - items:
+          - enum:
+              - st,stm32h743i-disco
+              - st,stm32h743i-eval
           - const: st,stm32h743
-
       - items:
           - enum:
               - arrow,stm32mp157a-avenger96 # Avenger96
+              - st,stm32mp157c-ed1
+              - st,stm32mp157a-dk1
+              - st,stm32mp157c-dk2
+
+          - const: st,stm32mp157
+      - items:
+          - const: st,stm32mp157c-ev1
+          - const: st,stm32mp157c-ed1
           - const: st,stm32mp157
 ...
Signature · 1 line
2.17.1
maintainer Applied
#2 lore raw

Re: [PATCH 1/3] dt-bindings: arm: stm32: Add missing STM32 boards

Quoted 9 lines · Alexandre Torgue

This commit documents missing STM32 boards:

-STM32MCU: F429 disco/eval, F469-disco, F746 disco/eval, F769 disco, H743 disco/eval.

-STM32MPU: MP157 dk1/dk2/ed1/ev1.

Applied, thanks.

Rob

#3 lore raw

PATCH 2/3 dt-bindings: pinctrl: stm32: Fix 'st,syscfg' description field

In reply to Alexandre Torgue

As there is only one item "st,syscfg" this commit moves phandle description fields under "description" tag. It'll fix a validation issue seen during stm32 DT check.

Documentation/devicetree/bindings/pinctrl/st,stm32-pinctrl.yaml +3 -4
index 400df2da018a..754ea7ab040a 100644
@@ -40,10 +40,9 @@ properties:
     allOf:
       - $ref: "/schemas/types.yaml#/definitions/phandle-array"
     description: Should be phandle/offset/mask
-    items:
-      - description: Phandle to the syscon node which includes IRQ mux selection.
-      - description: The offset of the IRQ mux selection register.
-      - description: The field mask of IRQ mux, needed if different of 0xf.
+      - Phandle to the syscon node which includes IRQ mux selection.
+      - The offset of the IRQ mux selection register.
+      - The field mask of IRQ mux, needed if different of 0xf.
 
   st,package:
     allOf:
Signature · 1 line
2.17.1
maintainer Applied
#4 lore raw

Re: [PATCH 2/3] dt-bindings: pinctrl: stm32: Fix 'st,syscfg' description field

Quoted 6 lines · Alexandre Torgue

As there is only one item "st,syscfg" this commit moves phandle description fields under "description" tag. It'll fix a validation issue seen during stm32 DT check.

Applied, thanks.

Rob

#5 lore raw

PATCH 3/3 dt-bindings: usb: generic-ehci: Add "companion" entry

In reply to Alexandre Torgue

"companion" entry is present in "generic.txt" usb binding file. This commit adds it also in generic-ehci yaml binding.

Documentation/devicetree/bindings/usb/generic-ehci.yaml +5 -0
index 059f6ef1ad4a..f89897fe2df6 100644
@@ -63,6 +63,11 @@ properties:
     description:
       Set this flag to force EHCI reset after resume.
 
+  companion:
+    $ref: /schemas/types.yaml#/definitions/phandle-array
+    description:
+     Phandle of a companion.
+
   phys: true
 
 required:
Signature · 1 line
2.17.1
maintainer Applied
#6 lore raw

Re: [PATCH 3/3] dt-bindings: usb: generic-ehci: Add "companion" entry

Quoted 5 lines · Alexandre Torgue

"companion" entry is present in "generic.txt" usb binding file. This commit adds it also in generic-ehci yaml binding.

Applied, thanks.

Rob