dt-bindings: Fix inconsistent quoting

yamllint has gained a new check which checks for inconsistent quoting
(mixed " and ' quotes within a file). Fix all the cases yamllint found
so we can enable the check (once the check is in a release). As single
quotes are (slightly) preferred, use them throughout the modified files
even if double quotes are mostly used.

Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Acked-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Lee Jones <lee@kernel.org>
Acked-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Link: https://patch.msgid.link/20251015232015.846282-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
This commit is contained in:
Rob Herring (Arm) 2025-10-15 18:12:35 -05:00
parent 0b651695a3
commit 01585d7470
23 changed files with 96 additions and 95 deletions

View File

@ -27,17 +27,17 @@ properties:
additionalProperties: false
properties:
"#address-cells":
'#address-cells':
const: 1
"#size-cells":
'#size-cells':
const: 0
patternProperties:
"^osc[0-9]$":
'^osc[0-9]$':
type: object
"^[a-z0-9,_]+(clk|pll|clk_gate|clk_divided)(@[a-f0-9]+)?$":
'^[a-z0-9,_]+(clk|pll|clk_gate|clk_divided)(@[a-f0-9]+)?$':
type: object
$ref: '#/$defs/clock-props'
unevaluatedProperties: false
@ -58,14 +58,14 @@ properties:
minItems: 1
maxItems: 5
"#address-cells":
'#address-cells':
const: 1
"#size-cells":
'#size-cells':
const: 0
patternProperties:
"^[a-z0-9,_]+(clk|pll)(@[a-f0-9]+)?$":
'^[a-z0-9,_]+(clk|pll)(@[a-f0-9]+)?$':
type: object
$ref: '#/$defs/clock-props'
unevaluatedProperties: false
@ -86,11 +86,11 @@ properties:
required:
- compatible
- clocks
- "#clock-cells"
- '#clock-cells'
required:
- compatible
- "#clock-cells"
- '#clock-cells'
required:
- compatible
@ -104,7 +104,7 @@ $defs:
reg:
maxItems: 1
"#clock-cells":
'#clock-cells':
const: 0
clk-gate:

View File

@ -37,7 +37,7 @@ properties:
'#clock-cells':
const: 1
"#reset-cells":
'#reset-cells':
const: 1
nvidia,external-memory-controller:
@ -46,7 +46,7 @@ properties:
phandle of the external memory controller node
patternProperties:
"^emc-timings-[0-9]+$":
'^emc-timings-[0-9]+$':
type: object
properties:
nvidia,ram-code:
@ -56,7 +56,7 @@ patternProperties:
this timing set is used for
patternProperties:
"^timing-[0-9]+$":
'^timing-[0-9]+$':
type: object
properties:
clock-frequency:
@ -94,7 +94,7 @@ required:
- compatible
- reg
- '#clock-cells'
- "#reset-cells"
- '#reset-cells'
additionalProperties: false

View File

@ -39,11 +39,11 @@ properties:
'#clock-cells':
const: 1
"#reset-cells":
'#reset-cells':
const: 1
patternProperties:
"^(sclk)|(pll-[cem])$":
'^(sclk)|(pll-[cem])$':
type: object
properties:
compatible:
@ -76,7 +76,7 @@ required:
- compatible
- reg
- '#clock-cells'
- "#reset-cells"
- '#reset-cells'
additionalProperties: false

View File

@ -28,6 +28,7 @@ properties:
'#address-cells':
const: 1
'#size-cells':
const: 0
@ -35,7 +36,7 @@ properties:
maxItems: 1
patternProperties:
"^(?!gpio@)[^@]+@[0-9]+$":
'^(?!gpio@)[^@]+@[0-9]+$':
type: object
properties:
fsl,pinmux-ids:
@ -93,7 +94,7 @@ patternProperties:
additionalProperties: false
"^gpio@[0-9]+$":
'^gpio@[0-9]+$':
type: object
properties:
compatible:
@ -110,10 +111,10 @@ patternProperties:
interrupt-controller: true
"#interrupt-cells":
'#interrupt-cells':
const: 2
"#gpio-cells":
'#gpio-cells':
const: 2
gpio-controller: true
@ -123,8 +124,8 @@ patternProperties:
- reg
- interrupts
- interrupt-controller
- "#interrupt-cells"
- "#gpio-cells"
- '#interrupt-cells'
- '#gpio-cells'
- gpio-controller
additionalProperties: false

View File

@ -111,8 +111,8 @@ additionalProperties: false
required:
- compatible
- reg
- "#address-cells"
- "#size-cells"
- '#address-cells'
- '#size-cells'
examples:
- |

View File

@ -88,7 +88,7 @@ properties:
const: 0
patternProperties:
"^thermocouple@":
'^thermocouple@':
$ref: '#/$defs/sensor-node'
unevaluatedProperties: false
@ -146,7 +146,7 @@ patternProperties:
required:
- adi,custom-thermocouple
"^diode@":
'^diode@':
$ref: '#/$defs/sensor-node'
unevaluatedProperties: false
@ -191,7 +191,7 @@ patternProperties:
$ref: /schemas/types.yaml#/definitions/uint32
default: 0
"^rtd@":
'^rtd@':
$ref: '#/$defs/sensor-node'
unevaluatedProperties: false
description: RTD sensor.
@ -280,7 +280,7 @@ patternProperties:
type: boolean
dependencies:
adi,current-rotate: [ "adi,rsense-share" ]
adi,current-rotate: [ 'adi,rsense-share' ]
- if:
properties:
@ -290,7 +290,7 @@ patternProperties:
required:
- adi,custom-rtd
"^thermistor@":
'^thermistor@':
$ref: '#/$defs/sensor-node'
unevaluatedProperties: false
description: Thermistor sensor.
@ -364,7 +364,7 @@ patternProperties:
- adi,rsense-handle
dependencies:
adi,current-rotate: [ "adi,rsense-share" ]
adi,current-rotate: [ 'adi,rsense-share' ]
allOf:
- if:
@ -392,7 +392,7 @@ patternProperties:
required:
- adi,custom-thermistor
"^adc@":
'^adc@':
$ref: '#/$defs/sensor-node'
unevaluatedProperties: false
description: Direct ADC sensor.
@ -407,7 +407,7 @@ patternProperties:
description: Whether the sensor is single-ended.
type: boolean
"^temp@":
'^temp@':
$ref: '#/$defs/sensor-node'
unevaluatedProperties: false
description: Active analog temperature sensor.
@ -437,7 +437,7 @@ patternProperties:
required:
- adi,custom-temp
"^rsense@":
'^rsense@':
$ref: '#/$defs/sensor-node'
unevaluatedProperties: false
description: Sense resistor sensor.
@ -476,7 +476,7 @@ allOf:
- adi,ltc2984
then:
patternProperties:
"^temp@": false
'^temp@': false
examples:
- |

View File

@ -187,10 +187,10 @@ allOf:
enum:
- qcom,msm8916-apcs-kpss-global
then:
$ref: "#/$defs/msm8916-apcs-clock-controller"
$ref: '#/$defs/msm8916-apcs-clock-controller'
properties:
clock-controller:
$ref: "#/$defs/msm8916-apcs-clock-controller"
$ref: '#/$defs/msm8916-apcs-clock-controller'
- if:
properties:
@ -199,10 +199,10 @@ allOf:
enum:
- qcom,msm8939-apcs-kpss-global
then:
$ref: "#/$defs/msm8939-apcs-clock-controller"
$ref: '#/$defs/msm8939-apcs-clock-controller'
properties:
clock-controller:
$ref: "#/$defs/msm8939-apcs-clock-controller"
$ref: '#/$defs/msm8939-apcs-clock-controller'
- if:
properties:
@ -211,10 +211,10 @@ allOf:
enum:
- qcom,sdx55-apcs-gcc
then:
$ref: "#/$defs/sdx55-apcs-clock-controller"
$ref: '#/$defs/sdx55-apcs-clock-controller'
properties:
clock-controller:
$ref: "#/$defs/sdx55-apcs-clock-controller"
$ref: '#/$defs/sdx55-apcs-clock-controller'
- if:
properties:
@ -223,10 +223,10 @@ allOf:
enum:
- qcom,ipq6018-apcs-apps-global
then:
$ref: "#/$defs/ipq6018-apcs-clock-controller"
$ref: '#/$defs/ipq6018-apcs-clock-controller'
properties:
clock-controller:
$ref: "#/$defs/ipq6018-apcs-clock-controller"
$ref: '#/$defs/ipq6018-apcs-clock-controller'
- if:
properties:

View File

@ -142,7 +142,7 @@ patternProperties:
- compatible
- reg
- reg-names
- "#mbox-cells"
- '#mbox-cells'
- xlnx,ipi-id
required:

View File

@ -48,16 +48,16 @@ properties:
reg:
maxItems: 1
"#address-cells":
'#address-cells':
const: 1
"#size-cells":
'#size-cells':
const: 1
ranges: true
patternProperties:
"^lpc-ctrl@[0-9a-f]+$":
'^lpc-ctrl@[0-9a-f]+$':
type: object
additionalProperties: false
@ -92,7 +92,7 @@ patternProperties:
- compatible
- clocks
"^reset-controller@[0-9a-f]+$":
'^reset-controller@[0-9a-f]+$':
type: object
additionalProperties: false
@ -118,7 +118,7 @@ patternProperties:
- compatible
- '#reset-cells'
"^lpc-snoop@[0-9a-f]+$":
'^lpc-snoop@[0-9a-f]+$':
type: object
additionalProperties: false
@ -152,15 +152,15 @@ patternProperties:
- interrupts
- snoop-ports
"^uart-routing@[0-9a-f]+$":
'^uart-routing@[0-9a-f]+$':
$ref: /schemas/soc/aspeed/uart-routing.yaml#
description: The UART routing control under LPC register space
required:
- compatible
- reg
- "#address-cells"
- "#size-cells"
- '#address-cells'
- '#size-cells'
- ranges
additionalProperties:

View File

@ -400,7 +400,7 @@ properties:
- '#pwm-cells'
patternProperties:
"^regulator-":
'^regulator-':
type: object
unevaluatedProperties: false
$ref: /schemas/regulator/regulator.yaml
@ -429,7 +429,7 @@ required:
- reg
- interrupts
- interrupt-controller
- "#interrupt-cells"
- '#interrupt-cells'
examples:
- |

View File

@ -35,14 +35,14 @@ allOf:
then:
properties:
$nodename:
pattern: "switch[0-3]@[0-3]+$"
pattern: 'switch[0-3]@[0-3]+$'
else:
properties:
$nodename:
pattern: "^(ethernet-)?switch(@.*)?$"
pattern: '^(ethernet-)?switch(@.*)?$'
patternProperties:
"^(ethernet-)?ports$":
'^(ethernet-)?ports$':
type: object
unevaluatedProperties: false
@ -53,13 +53,13 @@ patternProperties:
const: 0
patternProperties:
"^(ethernet-)?port@[0-9a-f]+$":
'^(ethernet-)?port@[0-9a-f]+$':
type: object
description: Ethernet switch ports
required:
- "#address-cells"
- "#size-cells"
- '#address-cells'
- '#size-cells'
oneOf:
- required:
@ -75,9 +75,9 @@ $defs:
$ref: '#'
patternProperties:
"^(ethernet-)?ports$":
'^(ethernet-)?ports$':
patternProperties:
"^(ethernet-)?port@[0-9a-f]+$":
'^(ethernet-)?port@[0-9a-f]+$':
description: Ethernet switch ports
$ref: ethernet-switch-port.yaml#
unevaluatedProperties: false

View File

@ -72,7 +72,7 @@ required:
- reg-names
- interrupts
- msi-controller
- "#interrupt-cells"
- '#interrupt-cells'
- interrupt-map-mask
- interrupt-map

View File

@ -67,8 +67,8 @@ properties:
mode-gpios:
description: Optional GPIOs for configuring alternate modes
items:
- description: "mode selection GPIO #0"
- description: "mode selection GPIO #1"
- description: mode selection GPIO#0
- description: mode selection GPIO#1
required:
- compatible

View File

@ -18,7 +18,7 @@ description: |
properties:
$nodename:
pattern: "^gpio@[0-9a-f]+$"
pattern: '^gpio@[0-9a-f]+$'
compatible:
enum:
@ -26,10 +26,10 @@ properties:
- mscc,ocelot-sgpio
- mscc,luton-sgpio
"#address-cells":
'#address-cells':
const: 1
"#size-cells":
'#size-cells':
const: 0
reg:
@ -76,7 +76,7 @@ properties:
- const: switch
patternProperties:
"^gpio@[0-1]$":
'^gpio@[0-1]$':
type: object
properties:
compatible:
@ -132,8 +132,8 @@ required:
- reg
- clocks
- microchip,sgpio-port-ranges
- "#address-cells"
- "#size-cells"
- '#address-cells'
- '#size-cells'
examples:
- |

View File

@ -424,13 +424,13 @@ allOf:
patternProperties:
'-state$':
oneOf:
- $ref: "#/$defs/qcom-pmic-gpio-state"
- $ref: '#/$defs/qcom-pmic-gpio-state'
- patternProperties:
"(pinconf|-pins)$":
$ref: "#/$defs/qcom-pmic-gpio-state"
'(pinconf|-pins)$':
$ref: '#/$defs/qcom-pmic-gpio-state'
additionalProperties: false
"-hog(-[0-9]+)?$":
'-hog(-[0-9]+)?$':
type: object
required:
- gpio-hog
@ -503,7 +503,7 @@ $defs:
- gpio1-gpio12 for pmxr2230
items:
pattern: "^gpio([0-9]+)$"
pattern: '^gpio([0-9]+)$'
function:
items:

View File

@ -74,10 +74,10 @@ required:
patternProperties:
'-state$':
oneOf:
- $ref: "#/$defs/qcom-pmic-mpp-state"
- $ref: '#/$defs/qcom-pmic-mpp-state'
- patternProperties:
'-pins$':
$ref: "#/$defs/qcom-pmic-mpp-state"
$ref: '#/$defs/qcom-pmic-mpp-state'
additionalProperties: false
$defs:
@ -100,7 +100,7 @@ $defs:
- mpp1-mpp4 for pma8084
items:
pattern: "^mpp([0-9]+)$"
pattern: '^mpp([0-9]+)$'
function:
items:

View File

@ -129,7 +129,7 @@ additionalProperties:
- type: object
additionalProperties:
$ref: "#/additionalProperties/anyOf/0"
$ref: '#/additionalProperties/anyOf/0'
examples:
- |

View File

@ -118,7 +118,7 @@ additionalProperties:
- type: object
additionalProperties:
$ref: "#/additionalProperties/anyOf/0"
$ref: '#/additionalProperties/anyOf/0'
examples:
- |

View File

@ -135,7 +135,7 @@ additionalProperties:
- type: object
additionalProperties:
$ref: "#/additionalProperties/anyOf/0"
$ref: '#/additionalProperties/anyOf/0'
allOf:
- $ref: pinctrl.yaml#

View File

@ -88,7 +88,7 @@ additionalProperties:
- type: object
additionalProperties:
$ref: "#/additionalProperties/anyOf/0"
$ref: '#/additionalProperties/anyOf/0'
allOf:
- $ref: pinctrl.yaml#

View File

@ -45,7 +45,7 @@ properties:
const: 0
additionalProperties:
$ref: "#/$defs/pd-node"
$ref: '#/$defs/pd-node'
required:
- compatible
@ -83,7 +83,7 @@ $defs:
- '#power-domain-cells'
additionalProperties:
$ref: "#/$defs/pd-node"
$ref: '#/$defs/pd-node'
examples:
- |

View File

@ -57,7 +57,7 @@ properties:
const: 0
patternProperties:
"^timer@[0-2]$":
'^timer@[0-2]$':
description: The timer block channels that are used as timers or counters.
type: object
additionalProperties: false
@ -80,7 +80,7 @@ patternProperties:
- compatible
- reg
"^pwm@[0-2]$":
'^pwm@[0-2]$':
description: The timer block channels that are used as PWMs.
$ref: /schemas/pwm/pwm.yaml#
type: object
@ -92,7 +92,7 @@ patternProperties:
TCB channel to use for this PWM.
enum: [ 0, 1, 2 ]
"#pwm-cells":
'#pwm-cells':
description:
The only third cell flag supported by this binding is
PWM_POLARITY_INVERTED.
@ -101,7 +101,7 @@ patternProperties:
required:
- compatible
- reg
- "#pwm-cells"
- '#pwm-cells'
additionalProperties: false

View File

@ -133,12 +133,12 @@ properties:
property. The supported-hw is a bitfield indicating SoC speedo or
process ID mask.
"#power-domain-cells":
'#power-domain-cells':
const: 0
required:
- operating-points-v2
- "#power-domain-cells"
- '#power-domain-cells'
i2c-thermtrip:
type: object
@ -220,7 +220,7 @@ properties:
xusbc USB Partition C Tegra114/124/210
patternProperties:
"^[a-z0-9]+$":
'^[a-z0-9]+$':
type: object
additionalProperties: false
properties:
@ -365,9 +365,9 @@ allOf:
additionalProperties: false
dependencies:
nvidia,suspend-mode: ["nvidia,core-pwr-off-time", "nvidia,cpu-pwr-off-time"]
nvidia,core-pwr-off-time: ["nvidia,core-pwr-good-time"]
nvidia,cpu-pwr-off-time: ["nvidia,cpu-pwr-good-time"]
nvidia,suspend-mode: ['nvidia,core-pwr-off-time', 'nvidia,cpu-pwr-off-time']
nvidia,core-pwr-off-time: ['nvidia,core-pwr-good-time']
nvidia,cpu-pwr-off-time: ['nvidia,cpu-pwr-good-time']
examples:
- |