From 026f7fc97e741bb688ba0be663a03f2f371467d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Bol=C3=ADvar?= Date: Sat, 8 Feb 2020 15:47:19 -0800 Subject: [PATCH] dts: fix up type comments in binding-template.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List the details for each type in the order they appear in the summary of all types. Add the missing 'path' value to the summary. Signed-off-by: Martí Bolívar --- dts/binding-template.yaml | 46 +++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/dts/binding-template.yaml b/dts/binding-template.yaml index aad638239c9..08962694b87 100644 --- a/dts/binding-template.yaml +++ b/dts/binding-template.yaml @@ -89,7 +89,7 @@ on-bus: # : # required: # type: +# phandle | phandles | phandle-array | path | compound> # description: # enum: # - @@ -101,33 +101,14 @@ on-bus: # # These types are available: # -# - 'type: int' is for properties that are assigned a single 32-bit value, -# like -# -# frequency = <100>; -# -# - 'type: array' is for properties that are assigned zero or more 32-bit -# values, like -# -# pin-config = <1 2 3>; -# -# - 'type: uint8-array' is for properties that are assigned zero or more -# bytes with the [] syntax, like -# -# lookup-table = [89 AB CD EF]; -# -# Each byte is given in hex. -# -# This type is called 'bytestring' in the Devicetree specification. -# # - 'type: string' is for properties that are assigned a single string, like # # ident = "foo"; # -# - 'type: string-array' if for properties that are assigned zero or more -# strings, like +# - 'type: int' is for properties that are assigned a single 32-bit value, +# like # -# idents = "foo", "bar", "baz"; +# frequency = <100>; # # - 'type: boolean' is for properties used as flags that don't take a value, # like @@ -144,6 +125,25 @@ on-bus: # # #if DT_SOME_BOOLEAN_PROP == 1 # +# - 'type: array' is for properties that are assigned zero or more 32-bit +# values, like +# +# pin-config = <1 2 3>; +# +# - 'type: uint8-array' is for properties that are assigned zero or more +# bytes with the [] syntax, like +# +# lookup-table = [89 AB CD EF]; +# +# Each byte is given in hex. +# +# This type is called 'bytestring' in the Devicetree specification. +# +# - 'type: string-array' if for properties that are assigned zero or more +# strings, like +# +# idents = "foo", "bar", "baz"; +# # - 'type: phandle' is for properties that are assigned a single phandle, # like #