Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Jakub Kicinski <kuba@kernel.org>
Acked-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> # drm/msm
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lore.kernel.org/r/20230303214223.49451-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>

+65 -67
+1 -1
Documentation/devicetree/bindings/.yamllint
··· 19 19 colons: {max-spaces-before: 0, max-spaces-after: 1} 20 20 commas: {min-spaces-after: 1, max-spaces-after: 1} 21 21 comments: 22 - require-starting-space: false 22 + require-starting-space: true 23 23 min-spaces-from-content: 1 24 24 comments-indentation: disable 25 25 document-start:
+2 -2
Documentation/devicetree/bindings/clock/qcom,a53pll.yaml
··· 45 45 additionalProperties: false 46 46 47 47 examples: 48 - #Example 1 - A53 PLL found on MSM8916 devices 48 + # Example 1 - A53 PLL found on MSM8916 devices 49 49 - | 50 50 a53pll: clock@b016000 { 51 51 compatible = "qcom,msm8916-a53pll"; 52 52 reg = <0xb016000 0x40>; 53 53 #clock-cells = <0>; 54 54 }; 55 - #Example 2 - A53 PLL found on IPQ6018 devices 55 + # Example 2 - A53 PLL found on IPQ6018 devices 56 56 - | 57 57 a53pll_ipq: clock-controller@b116000 { 58 58 compatible = "qcom,ipq6018-a53pll";
+2 -2
Documentation/devicetree/bindings/crypto/ti,sa2ul.yaml
··· 26 26 dmas: 27 27 items: 28 28 - description: TX DMA Channel 29 - - description: RX DMA Channel #1 30 - - description: RX DMA Channel #2 29 + - description: 'RX DMA Channel #1' 30 + - description: 'RX DMA Channel #2' 31 31 32 32 dma-names: 33 33 items:
+1 -1
Documentation/devicetree/bindings/display/msm/qcom,mdp5.yaml
··· 61 61 - const: lut 62 62 - const: tbu 63 63 - const: tbu_rt 64 - #MSM8996 has additional iommu clock 64 + # MSM8996 has additional iommu clock 65 65 - items: 66 66 - const: iface 67 67 - const: bus
+2 -2
Documentation/devicetree/bindings/interrupt-controller/arm,gic.yaml
··· 133 133 - items: # for "arm,cortex-a9-gic" 134 134 - const: PERIPHCLK 135 135 - const: PERIPHCLKEN 136 - - const: clk # for "arm,gic-400" and "nvidia,tegra210" 137 - - const: gclk #for "arm,pl390" 136 + - const: clk # for "arm,gic-400" and "nvidia,tegra210" 137 + - const: gclk # for "arm,pl390" 138 138 139 139 power-domains: 140 140 maxItems: 1
+1 -1
Documentation/devicetree/bindings/interrupt-controller/loongson,pch-msi.yaml
··· 46 46 - loongson,msi-base-vec 47 47 - loongson,msi-num-vecs 48 48 49 - additionalProperties: true #fixme 49 + additionalProperties: true # fixme 50 50 51 51 examples: 52 52 - |
+2 -2
Documentation/devicetree/bindings/media/renesas,vin.yaml
··· 69 69 resets: 70 70 maxItems: 1 71 71 72 - #The per-board settings for Gen2 and RZ/G1 platforms: 72 + # The per-board settings for Gen2 and RZ/G1 platforms: 73 73 port: 74 74 $ref: /schemas/graph.yaml#/$defs/port-base 75 75 unevaluatedProperties: false ··· 108 108 109 109 data-active: true 110 110 111 - #The per-board settings for Gen3 and RZ/G2 platforms: 111 + # The per-board settings for Gen3 and RZ/G2 platforms: 112 112 renesas,id: 113 113 description: VIN channel number 114 114 $ref: /schemas/types.yaml#/definitions/uint32
+2 -2
Documentation/devicetree/bindings/media/ti,cal.yaml
··· 75 75 port@0: 76 76 $ref: /schemas/graph.yaml#/$defs/port-base 77 77 unevaluatedProperties: false 78 - description: CSI2 Port #0 78 + description: 'CSI2 Port #0' 79 79 80 80 properties: 81 81 endpoint: ··· 93 93 port@1: 94 94 $ref: /schemas/graph.yaml#/$defs/port-base 95 95 unevaluatedProperties: false 96 - description: CSI2 Port #1 96 + description: 'CSI2 Port #1' 97 97 98 98 properties: 99 99 endpoint:
-2
Documentation/devicetree/bindings/net/brcm,bcmgenet.yaml
··· 73 73 unevaluatedProperties: false 74 74 75 75 examples: 76 - #include <dt-bindings/interrupt-controller/arm-gic.h> 77 - 78 76 - | 79 77 ethernet@f0b60000 { 80 78 phy-mode = "internal";
+3 -3
Documentation/devicetree/bindings/net/cortina,gemini-ethernet.yaml
··· 31 31 32 32 ranges: true 33 33 34 - #The subnodes represents the two ethernet ports in this device. 35 - #They are not independent of each other since they share resources 36 - #in the parent node, and are thus children. 34 + # The subnodes represents the two ethernet ports in this device. 35 + # They are not independent of each other since they share resources 36 + # in the parent node, and are thus children. 37 37 patternProperties: 38 38 "^ethernet-port@[0-9]+$": 39 39 type: object
+2 -2
Documentation/devicetree/bindings/net/mdio-gpio.yaml
··· 33 33 - description: MDIO 34 34 - description: MDO 35 35 36 - #Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases" 37 - #node. 36 + # Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases" 37 + # node. 38 38 additionalProperties: 39 39 type: object 40 40
+1 -1
Documentation/devicetree/bindings/phy/marvell,armada-cp110-utmi-phy.yaml
··· 41 41 Phandle to the system controller node 42 42 $ref: /schemas/types.yaml#/definitions/phandle 43 43 44 - #Required child nodes: 44 + # Required child nodes: 45 45 46 46 patternProperties: 47 47 "^usb-phy@[0|1]$":
+1 -1
Documentation/devicetree/bindings/phy/phy-stm32-usbphyc.yaml
··· 55 55 description: number of clock cells for ck_usbo_48m consumer 56 56 const: 0 57 57 58 - #Required child nodes: 58 + # Required child nodes: 59 59 60 60 patternProperties: 61 61 "^usb-phy@[0|1]$":
+1 -1
Documentation/devicetree/bindings/phy/qcom,sc7180-qmp-usb3-dp-phy.yaml
··· 83 83 description: 84 84 Phandle to a regulator supply to any specific refclk pll block. 85 85 86 - #Required nodes: 86 + # Required nodes: 87 87 patternProperties: 88 88 "^usb3-phy@[0-9a-f]+$": 89 89 type: object
+1 -1
Documentation/devicetree/bindings/pinctrl/pinctrl-mt8192.yaml
··· 51 51 description: The interrupt outputs to sysirq. 52 52 maxItems: 1 53 53 54 - #PIN CONFIGURATION NODES 54 + # PIN CONFIGURATION NODES 55 55 patternProperties: 56 56 '-pins$': 57 57 type: object
+4 -4
Documentation/devicetree/bindings/regulator/nxp,pca9450-regulator.yaml
··· 17 17 Datasheet is available at 18 18 https://www.nxp.com/docs/en/data-sheet/PCA9450DS.pdf 19 19 20 - #The valid names for PCA9450 regulator nodes are: 21 - #BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, 22 - #LDO1, LDO2, LDO3, LDO4, LDO5 23 - #Note: Buck3 removed on PCA9450B and connect with Buck1 on PCA9450C. 20 + # The valid names for PCA9450 regulator nodes are: 21 + # BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, 22 + # LDO1, LDO2, LDO3, LDO4, LDO5 23 + # Note: Buck3 removed on PCA9450B and connect with Buck1 on PCA9450C. 24 24 25 25 properties: 26 26 compatible:
+10 -10
Documentation/devicetree/bindings/regulator/rohm,bd71828-regulator.yaml
··· 82 82 83 83 # Supported default DVS states: 84 84 # buck | run | idle | suspend | lpsr 85 - #-------------------------------------------------------------- 85 + # -------------------------------------------------------------- 86 86 # 1, 2, 6, and 7 | supported | supported | supported (*) 87 - #-------------------------------------------------------------- 87 + # -------------------------------------------------------------- 88 88 # 3, 4, and 5 | supported (**) 89 - #-------------------------------------------------------------- 89 + # -------------------------------------------------------------- 90 90 # 91 - #(*) LPSR and SUSPEND states use same voltage but both states have own 92 - # enable / 93 - # disable settings. Voltage 0 can be specified for a state to make 94 - # regulator disabled on that state. 91 + # (*) LPSR and SUSPEND states use same voltage but both states have own 92 + # enable / 93 + # disable settings. Voltage 0 can be specified for a state to make 94 + # regulator disabled on that state. 95 95 # 96 - #(**) All states use same voltage but have own enable / disable 97 - # settings. Voltage 0 can be specified for a state to make 98 - # regulator disabled on that state. 96 + # (**) All states use same voltage but have own enable / disable 97 + # settings. Voltage 0 can be specified for a state to make 98 + # regulator disabled on that state. 99 99 100 100 required: 101 101 - regulator-name
+3 -3
Documentation/devicetree/bindings/regulator/rohm,bd71837-regulator.yaml
··· 23 23 if they are disabled at startup the voltage monitoring for LDO5/LDO6 will 24 24 cause PMIC to reset. 25 25 26 - #The valid names for BD71837 regulator nodes are: 27 - #BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, BUCK7, BUCK8 28 - #LDO1, LDO2, LDO3, LDO4, LDO5, LDO6, LDO7 26 + # The valid names for BD71837 regulator nodes are: 27 + # BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, BUCK7, BUCK8 28 + # LDO1, LDO2, LDO3, LDO4, LDO5, LDO6, LDO7 29 29 30 30 patternProperties: 31 31 "^LDO[1-7]$":
+3 -3
Documentation/devicetree/bindings/regulator/rohm,bd71847-regulator.yaml
··· 22 22 not be disabled by driver at startup. If BUCK5 is disabled at startup the 23 23 voltage monitoring for LDO5/LDO6 can cause PMIC to reset. 24 24 25 - #The valid names for BD71847 regulator nodes are: 26 - #BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6 27 - #LDO1, LDO2, LDO3, LDO4, LDO5, LDO6 25 + # The valid names for BD71847 regulator nodes are: 26 + # BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6 27 + # LDO1, LDO2, LDO3, LDO4, LDO5, LDO6 28 28 29 29 patternProperties: 30 30 "^LDO[1-6]$":
+1 -1
Documentation/devicetree/bindings/soc/renesas/renesas.yaml
··· 111 111 - description: RZ/G1C (R8A77470) 112 112 items: 113 113 - enum: 114 - - iwave,g23s #iWave Systems RZ/G1C Single Board Computer (iW-RainboW-G23S) 114 + - iwave,g23s # iWave Systems RZ/G1C Single Board Computer (iW-RainboW-G23S) 115 115 - const: renesas,r8a77470 116 116 117 117 - description: RZ/G2M (R8A774A1)
+1 -1
Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml
··· 313 313 # Due to inability of correctly verifying sub-nodes with an @address through 314 314 # the "required" list, the required sub-nodes below are commented out for now. 315 315 316 - #required: 316 + # required: 317 317 # - memories 318 318 # - interrupt-controller 319 319 # - pru
+1 -1
Documentation/devicetree/bindings/sound/amlogic,axg-tdm-iface.yaml
··· 24 24 items: 25 25 - description: Bit clock 26 26 - description: Sample clock 27 - - description: Master clock #optional 27 + - description: Master clock # optional 28 28 29 29 clock-names: 30 30 minItems: 2
+2 -2
Documentation/devicetree/bindings/sound/qcom,lpass-rx-macro.yaml
··· 34 34 35 35 clock-names: 36 36 oneOf: 37 - - items: #for ADSP based platforms 37 + - items: # for ADSP based platforms 38 38 - const: mclk 39 39 - const: npl 40 40 - const: macro 41 41 - const: dcodec 42 42 - const: fsgen 43 - - items: #for ADSP bypass based platforms 43 + - items: # for ADSP bypass based platforms 44 44 - const: mclk 45 45 - const: npl 46 46 - const: fsgen
+2 -2
Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml
··· 36 36 37 37 clock-names: 38 38 oneOf: 39 - - items: #for ADSP based platforms 39 + - items: # for ADSP based platforms 40 40 - const: mclk 41 41 - const: npl 42 42 - const: macro 43 43 - const: dcodec 44 44 - const: fsgen 45 - - items: #for ADSP bypass based platforms 45 + - items: # for ADSP bypass based platforms 46 46 - const: mclk 47 47 - const: npl 48 48 - const: fsgen
+2 -2
Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml
··· 34 34 35 35 clock-names: 36 36 oneOf: 37 - - items: #for ADSP based platforms 37 + - items: # for ADSP based platforms 38 38 - const: mclk 39 39 - const: macro 40 40 - const: dcodec 41 - - items: #for ADSP bypass based platforms 41 + - items: # for ADSP bypass based platforms 42 42 - const: mclk 43 43 44 44 clock-output-names:
+1 -1
Documentation/devicetree/bindings/sound/qcom,q6dsp-lpass-ports.yaml
··· 26 26 '#size-cells': 27 27 const: 0 28 28 29 - #Digital Audio Interfaces 29 + # Digital Audio Interfaces 30 30 patternProperties: 31 31 '^dai@[0-9]+$': 32 32 type: object
+12 -12
Documentation/devicetree/bindings/sound/simple-card.yaml
··· 262 262 additionalProperties: false 263 263 264 264 examples: 265 - #-------------------- 265 + # -------------------- 266 266 # single DAI link 267 - #-------------------- 267 + # -------------------- 268 268 - | 269 269 sound { 270 270 compatible = "simple-audio-card"; ··· 291 291 }; 292 292 }; 293 293 294 - #-------------------- 294 + # -------------------- 295 295 # Multi DAI links 296 - #-------------------- 296 + # -------------------- 297 297 - | 298 298 sound { 299 299 compatible = "simple-audio-card"; ··· 334 334 }; 335 335 }; 336 336 337 - #-------------------- 337 + # -------------------- 338 338 # route audio from IMX6 SSI2 through TLV320DAC3100 codec 339 339 # through TPA6130A2 amplifier to headphones: 340 - #-------------------- 340 + # -------------------- 341 341 - | 342 342 sound { 343 343 compatible = "simple-audio-card"; ··· 359 359 }; 360 360 }; 361 361 362 - #-------------------- 362 + # -------------------- 363 363 # Sampling Rate Conversion 364 - #-------------------- 364 + # -------------------- 365 365 - | 366 366 sound { 367 367 compatible = "simple-audio-card"; ··· 387 387 }; 388 388 }; 389 389 390 - #-------------------- 390 + # -------------------- 391 391 # 2 CPU 1 Codec (Mixing) 392 - #-------------------- 392 + # -------------------- 393 393 - | 394 394 sound { 395 395 compatible = "simple-audio-card"; ··· 424 424 }; 425 425 }; 426 426 427 - #-------------------- 427 + # -------------------- 428 428 # Multi DAI links with DPCM: 429 429 # 430 430 # CPU0 ------ ak4613 ··· 433 433 # CPU3 --/ /* DPCM 5ch/6ch */ 434 434 # CPU4 --/ /* DPCM 7ch/8ch */ 435 435 # CPU5 ------ PCM3168A-c 436 - #-------------------- 436 + # -------------------- 437 437 - | 438 438 sound { 439 439 compatible = "simple-audio-card";
+1 -1
Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml
··· 22 22 - items: 23 23 - const: microchip,mpfs-qspi 24 24 - const: microchip,coreqspi-rtl-v2 25 - - const: microchip,coreqspi-rtl-v2 #FPGA QSPI 25 + - const: microchip,coreqspi-rtl-v2 # FPGA QSPI 26 26 - const: microchip,mpfs-spi 27 27 28 28 reg: