Commit d0dcd0ce authored by Rob Herring's avatar Rob Herring

dt-bindings: yamllint: Require a space after a comment '#'

Enable yamllint to check the preferred commenting style of requiring a
space after a comment character '#'. Fix the cases in the tree which
have a warning with this enabled. Most cases just need a space after the
'#'. A couple of cases with comments which were not intended to be
comments are revealed. Those were in ti,sa2ul.yaml, ti,cal.yaml, and
brcm,bcmgenet.yaml.
Acked-by: default avatarJakub Kicinski <kuba@kernel.org>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> # drm/msm
Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
Reviewed-by: default avatarStephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20230303214223.49451-1-robh@kernel.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 20a72af1
...@@ -19,7 +19,7 @@ rules: ...@@ -19,7 +19,7 @@ rules:
colons: {max-spaces-before: 0, max-spaces-after: 1} colons: {max-spaces-before: 0, max-spaces-after: 1}
commas: {min-spaces-after: 1, max-spaces-after: 1} commas: {min-spaces-after: 1, max-spaces-after: 1}
comments: comments:
require-starting-space: false require-starting-space: true
min-spaces-from-content: 1 min-spaces-from-content: 1
comments-indentation: disable comments-indentation: disable
document-start: document-start:
......
...@@ -45,14 +45,14 @@ required: ...@@ -45,14 +45,14 @@ required:
additionalProperties: false additionalProperties: false
examples: examples:
#Example 1 - A53 PLL found on MSM8916 devices # Example 1 - A53 PLL found on MSM8916 devices
- | - |
a53pll: clock@b016000 { a53pll: clock@b016000 {
compatible = "qcom,msm8916-a53pll"; compatible = "qcom,msm8916-a53pll";
reg = <0xb016000 0x40>; reg = <0xb016000 0x40>;
#clock-cells = <0>; #clock-cells = <0>;
}; };
#Example 2 - A53 PLL found on IPQ6018 devices # Example 2 - A53 PLL found on IPQ6018 devices
- | - |
a53pll_ipq: clock-controller@b116000 { a53pll_ipq: clock-controller@b116000 {
compatible = "qcom,ipq6018-a53pll"; compatible = "qcom,ipq6018-a53pll";
......
...@@ -26,8 +26,8 @@ properties: ...@@ -26,8 +26,8 @@ properties:
dmas: dmas:
items: items:
- description: TX DMA Channel - description: TX DMA Channel
- description: RX DMA Channel #1 - description: 'RX DMA Channel #1'
- description: RX DMA Channel #2 - description: 'RX DMA Channel #2'
dma-names: dma-names:
items: items:
......
...@@ -61,7 +61,7 @@ properties: ...@@ -61,7 +61,7 @@ properties:
- const: lut - const: lut
- const: tbu - const: tbu
- const: tbu_rt - const: tbu_rt
#MSM8996 has additional iommu clock # MSM8996 has additional iommu clock
- items: - items:
- const: iface - const: iface
- const: bus - const: bus
......
...@@ -133,8 +133,8 @@ properties: ...@@ -133,8 +133,8 @@ properties:
- items: # for "arm,cortex-a9-gic" - items: # for "arm,cortex-a9-gic"
- const: PERIPHCLK - const: PERIPHCLK
- const: PERIPHCLKEN - const: PERIPHCLKEN
- const: clk # for "arm,gic-400" and "nvidia,tegra210" - const: clk # for "arm,gic-400" and "nvidia,tegra210"
- const: gclk #for "arm,pl390" - const: gclk # for "arm,pl390"
power-domains: power-domains:
maxItems: 1 maxItems: 1
......
...@@ -46,7 +46,7 @@ required: ...@@ -46,7 +46,7 @@ required:
- loongson,msi-base-vec - loongson,msi-base-vec
- loongson,msi-num-vecs - loongson,msi-num-vecs
additionalProperties: true #fixme additionalProperties: true # fixme
examples: examples:
- | - |
......
...@@ -69,7 +69,7 @@ properties: ...@@ -69,7 +69,7 @@ properties:
resets: resets:
maxItems: 1 maxItems: 1
#The per-board settings for Gen2 and RZ/G1 platforms: # The per-board settings for Gen2 and RZ/G1 platforms:
port: port:
$ref: /schemas/graph.yaml#/$defs/port-base $ref: /schemas/graph.yaml#/$defs/port-base
unevaluatedProperties: false unevaluatedProperties: false
...@@ -108,7 +108,7 @@ properties: ...@@ -108,7 +108,7 @@ properties:
data-active: true data-active: true
#The per-board settings for Gen3 and RZ/G2 platforms: # The per-board settings for Gen3 and RZ/G2 platforms:
renesas,id: renesas,id:
description: VIN channel number description: VIN channel number
$ref: /schemas/types.yaml#/definitions/uint32 $ref: /schemas/types.yaml#/definitions/uint32
......
...@@ -75,7 +75,7 @@ properties: ...@@ -75,7 +75,7 @@ properties:
port@0: port@0:
$ref: /schemas/graph.yaml#/$defs/port-base $ref: /schemas/graph.yaml#/$defs/port-base
unevaluatedProperties: false unevaluatedProperties: false
description: CSI2 Port #0 description: 'CSI2 Port #0'
properties: properties:
endpoint: endpoint:
...@@ -93,7 +93,7 @@ properties: ...@@ -93,7 +93,7 @@ properties:
port@1: port@1:
$ref: /schemas/graph.yaml#/$defs/port-base $ref: /schemas/graph.yaml#/$defs/port-base
unevaluatedProperties: false unevaluatedProperties: false
description: CSI2 Port #1 description: 'CSI2 Port #1'
properties: properties:
endpoint: endpoint:
......
...@@ -73,8 +73,6 @@ allOf: ...@@ -73,8 +73,6 @@ allOf:
unevaluatedProperties: false unevaluatedProperties: false
examples: examples:
#include <dt-bindings/interrupt-controller/arm-gic.h>
- | - |
ethernet@f0b60000 { ethernet@f0b60000 {
phy-mode = "internal"; phy-mode = "internal";
......
...@@ -31,9 +31,9 @@ properties: ...@@ -31,9 +31,9 @@ properties:
ranges: true ranges: true
#The subnodes represents the two ethernet ports in this device. # The subnodes represents the two ethernet ports in this device.
#They are not independent of each other since they share resources # They are not independent of each other since they share resources
#in the parent node, and are thus children. # in the parent node, and are thus children.
patternProperties: patternProperties:
"^ethernet-port@[0-9]+$": "^ethernet-port@[0-9]+$":
type: object type: object
......
...@@ -33,8 +33,8 @@ properties: ...@@ -33,8 +33,8 @@ properties:
- description: MDIO - description: MDIO
- description: MDO - description: MDO
#Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases" # Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases"
#node. # node.
additionalProperties: additionalProperties:
type: object type: object
......
...@@ -41,7 +41,7 @@ properties: ...@@ -41,7 +41,7 @@ properties:
Phandle to the system controller node Phandle to the system controller node
$ref: /schemas/types.yaml#/definitions/phandle $ref: /schemas/types.yaml#/definitions/phandle
#Required child nodes: # Required child nodes:
patternProperties: patternProperties:
"^usb-phy@[0|1]$": "^usb-phy@[0|1]$":
......
...@@ -55,7 +55,7 @@ properties: ...@@ -55,7 +55,7 @@ properties:
description: number of clock cells for ck_usbo_48m consumer description: number of clock cells for ck_usbo_48m consumer
const: 0 const: 0
#Required child nodes: # Required child nodes:
patternProperties: patternProperties:
"^usb-phy@[0|1]$": "^usb-phy@[0|1]$":
......
...@@ -83,7 +83,7 @@ properties: ...@@ -83,7 +83,7 @@ properties:
description: description:
Phandle to a regulator supply to any specific refclk pll block. Phandle to a regulator supply to any specific refclk pll block.
#Required nodes: # Required nodes:
patternProperties: patternProperties:
"^usb3-phy@[0-9a-f]+$": "^usb3-phy@[0-9a-f]+$":
type: object type: object
......
...@@ -51,7 +51,7 @@ properties: ...@@ -51,7 +51,7 @@ properties:
description: The interrupt outputs to sysirq. description: The interrupt outputs to sysirq.
maxItems: 1 maxItems: 1
#PIN CONFIGURATION NODES # PIN CONFIGURATION NODES
patternProperties: patternProperties:
'-pins$': '-pins$':
type: object type: object
......
...@@ -17,10 +17,10 @@ description: | ...@@ -17,10 +17,10 @@ description: |
Datasheet is available at Datasheet is available at
https://www.nxp.com/docs/en/data-sheet/PCA9450DS.pdf https://www.nxp.com/docs/en/data-sheet/PCA9450DS.pdf
#The valid names for PCA9450 regulator nodes are: # The valid names for PCA9450 regulator nodes are:
#BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, # BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6,
#LDO1, LDO2, LDO3, LDO4, LDO5 # LDO1, LDO2, LDO3, LDO4, LDO5
#Note: Buck3 removed on PCA9450B and connect with Buck1 on PCA9450C. # Note: Buck3 removed on PCA9450B and connect with Buck1 on PCA9450C.
properties: properties:
compatible: compatible:
......
...@@ -82,20 +82,20 @@ patternProperties: ...@@ -82,20 +82,20 @@ patternProperties:
# Supported default DVS states: # Supported default DVS states:
# buck | run | idle | suspend | lpsr # buck | run | idle | suspend | lpsr
#-------------------------------------------------------------- # --------------------------------------------------------------
# 1, 2, 6, and 7 | supported | supported | supported (*) # 1, 2, 6, and 7 | supported | supported | supported (*)
#-------------------------------------------------------------- # --------------------------------------------------------------
# 3, 4, and 5 | supported (**) # 3, 4, and 5 | supported (**)
#-------------------------------------------------------------- # --------------------------------------------------------------
# #
#(*) LPSR and SUSPEND states use same voltage but both states have own # (*) LPSR and SUSPEND states use same voltage but both states have own
# enable / # enable /
# disable settings. Voltage 0 can be specified for a state to make # disable settings. Voltage 0 can be specified for a state to make
# regulator disabled on that state. # regulator disabled on that state.
# #
#(**) All states use same voltage but have own enable / disable # (**) All states use same voltage but have own enable / disable
# settings. Voltage 0 can be specified for a state to make # settings. Voltage 0 can be specified for a state to make
# regulator disabled on that state. # regulator disabled on that state.
required: required:
- regulator-name - regulator-name
......
...@@ -23,9 +23,9 @@ description: | ...@@ -23,9 +23,9 @@ description: |
if they are disabled at startup the voltage monitoring for LDO5/LDO6 will if they are disabled at startup the voltage monitoring for LDO5/LDO6 will
cause PMIC to reset. cause PMIC to reset.
#The valid names for BD71837 regulator nodes are: # The valid names for BD71837 regulator nodes are:
#BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, BUCK7, BUCK8 # BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, BUCK7, BUCK8
#LDO1, LDO2, LDO3, LDO4, LDO5, LDO6, LDO7 # LDO1, LDO2, LDO3, LDO4, LDO5, LDO6, LDO7
patternProperties: patternProperties:
"^LDO[1-7]$": "^LDO[1-7]$":
......
...@@ -22,9 +22,9 @@ description: | ...@@ -22,9 +22,9 @@ description: |
not be disabled by driver at startup. If BUCK5 is disabled at startup the not be disabled by driver at startup. If BUCK5 is disabled at startup the
voltage monitoring for LDO5/LDO6 can cause PMIC to reset. voltage monitoring for LDO5/LDO6 can cause PMIC to reset.
#The valid names for BD71847 regulator nodes are: # The valid names for BD71847 regulator nodes are:
#BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6 # BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6
#LDO1, LDO2, LDO3, LDO4, LDO5, LDO6 # LDO1, LDO2, LDO3, LDO4, LDO5, LDO6
patternProperties: patternProperties:
"^LDO[1-6]$": "^LDO[1-6]$":
......
...@@ -111,7 +111,7 @@ properties: ...@@ -111,7 +111,7 @@ properties:
- description: RZ/G1C (R8A77470) - description: RZ/G1C (R8A77470)
items: items:
- enum: - enum:
- iwave,g23s #iWave Systems RZ/G1C Single Board Computer (iW-RainboW-G23S) - iwave,g23s # iWave Systems RZ/G1C Single Board Computer (iW-RainboW-G23S)
- const: renesas,r8a77470 - const: renesas,r8a77470
- description: RZ/G2M (R8A774A1) - description: RZ/G2M (R8A774A1)
......
...@@ -313,7 +313,7 @@ additionalProperties: false ...@@ -313,7 +313,7 @@ additionalProperties: false
# Due to inability of correctly verifying sub-nodes with an @address through # Due to inability of correctly verifying sub-nodes with an @address through
# the "required" list, the required sub-nodes below are commented out for now. # the "required" list, the required sub-nodes below are commented out for now.
#required: # required:
# - memories # - memories
# - interrupt-controller # - interrupt-controller
# - pru # - pru
......
...@@ -24,7 +24,7 @@ properties: ...@@ -24,7 +24,7 @@ properties:
items: items:
- description: Bit clock - description: Bit clock
- description: Sample clock - description: Sample clock
- description: Master clock #optional - description: Master clock # optional
clock-names: clock-names:
minItems: 2 minItems: 2
......
...@@ -34,13 +34,13 @@ properties: ...@@ -34,13 +34,13 @@ properties:
clock-names: clock-names:
oneOf: oneOf:
- items: #for ADSP based platforms - items: # for ADSP based platforms
- const: mclk - const: mclk
- const: npl - const: npl
- const: macro - const: macro
- const: dcodec - const: dcodec
- const: fsgen - const: fsgen
- items: #for ADSP bypass based platforms - items: # for ADSP bypass based platforms
- const: mclk - const: mclk
- const: npl - const: npl
- const: fsgen - const: fsgen
......
...@@ -36,13 +36,13 @@ properties: ...@@ -36,13 +36,13 @@ properties:
clock-names: clock-names:
oneOf: oneOf:
- items: #for ADSP based platforms - items: # for ADSP based platforms
- const: mclk - const: mclk
- const: npl - const: npl
- const: macro - const: macro
- const: dcodec - const: dcodec
- const: fsgen - const: fsgen
- items: #for ADSP bypass based platforms - items: # for ADSP bypass based platforms
- const: mclk - const: mclk
- const: npl - const: npl
- const: fsgen - const: fsgen
......
...@@ -34,11 +34,11 @@ properties: ...@@ -34,11 +34,11 @@ properties:
clock-names: clock-names:
oneOf: oneOf:
- items: #for ADSP based platforms - items: # for ADSP based platforms
- const: mclk - const: mclk
- const: macro - const: macro
- const: dcodec - const: dcodec
- items: #for ADSP bypass based platforms - items: # for ADSP bypass based platforms
- const: mclk - const: mclk
clock-output-names: clock-output-names:
......
...@@ -26,7 +26,7 @@ properties: ...@@ -26,7 +26,7 @@ properties:
'#size-cells': '#size-cells':
const: 0 const: 0
#Digital Audio Interfaces # Digital Audio Interfaces
patternProperties: patternProperties:
'^dai@[0-9]+$': '^dai@[0-9]+$':
type: object type: object
......
...@@ -262,9 +262,9 @@ required: ...@@ -262,9 +262,9 @@ required:
additionalProperties: false additionalProperties: false
examples: examples:
#-------------------- # --------------------
# single DAI link # single DAI link
#-------------------- # --------------------
- | - |
sound { sound {
compatible = "simple-audio-card"; compatible = "simple-audio-card";
...@@ -291,9 +291,9 @@ examples: ...@@ -291,9 +291,9 @@ examples:
}; };
}; };
#-------------------- # --------------------
# Multi DAI links # Multi DAI links
#-------------------- # --------------------
- | - |
sound { sound {
compatible = "simple-audio-card"; compatible = "simple-audio-card";
...@@ -334,10 +334,10 @@ examples: ...@@ -334,10 +334,10 @@ examples:
}; };
}; };
#-------------------- # --------------------
# route audio from IMX6 SSI2 through TLV320DAC3100 codec # route audio from IMX6 SSI2 through TLV320DAC3100 codec
# through TPA6130A2 amplifier to headphones: # through TPA6130A2 amplifier to headphones:
#-------------------- # --------------------
- | - |
sound { sound {
compatible = "simple-audio-card"; compatible = "simple-audio-card";
...@@ -359,9 +359,9 @@ examples: ...@@ -359,9 +359,9 @@ examples:
}; };
}; };
#-------------------- # --------------------
# Sampling Rate Conversion # Sampling Rate Conversion
#-------------------- # --------------------
- | - |
sound { sound {
compatible = "simple-audio-card"; compatible = "simple-audio-card";
...@@ -387,9 +387,9 @@ examples: ...@@ -387,9 +387,9 @@ examples:
}; };
}; };
#-------------------- # --------------------
# 2 CPU 1 Codec (Mixing) # 2 CPU 1 Codec (Mixing)
#-------------------- # --------------------
- | - |
sound { sound {
compatible = "simple-audio-card"; compatible = "simple-audio-card";
...@@ -424,7 +424,7 @@ examples: ...@@ -424,7 +424,7 @@ examples:
}; };
}; };
#-------------------- # --------------------
# Multi DAI links with DPCM: # Multi DAI links with DPCM:
# #
# CPU0 ------ ak4613 # CPU0 ------ ak4613
...@@ -433,7 +433,7 @@ examples: ...@@ -433,7 +433,7 @@ examples:
# CPU3 --/ /* DPCM 5ch/6ch */ # CPU3 --/ /* DPCM 5ch/6ch */
# CPU4 --/ /* DPCM 7ch/8ch */ # CPU4 --/ /* DPCM 7ch/8ch */
# CPU5 ------ PCM3168A-c # CPU5 ------ PCM3168A-c
#-------------------- # --------------------
- | - |
sound { sound {
compatible = "simple-audio-card"; compatible = "simple-audio-card";
......
...@@ -22,7 +22,7 @@ properties: ...@@ -22,7 +22,7 @@ properties:
- items: - items:
- const: microchip,mpfs-qspi - const: microchip,mpfs-qspi
- const: microchip,coreqspi-rtl-v2 - const: microchip,coreqspi-rtl-v2
- const: microchip,coreqspi-rtl-v2 #FPGA QSPI - const: microchip,coreqspi-rtl-v2 # FPGA QSPI
- const: microchip,mpfs-spi - const: microchip,mpfs-spi
reg: reg:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment