[PATCH] dt-bindings: Use hex unit address patterns
Rob Herring (Arm)
robh at kernel.org
Mon Nov 2 05:53:22 PST 2026
Unit-addresses by default (and most commonly) are hexadecimal. There's a
number of cases using decimal patterns. Fix all of them, limiting the
pattern to match the 'reg' limits if there are any.
Signed-off-by: Rob Herring (Arm) <robh at kernel.org>
---
.../bindings/display/xylon,logicvc-display.yaml | 2 +-
.../devicetree/bindings/dpll/dpll-device.yaml | 2 +-
.../bindings/embedded-controller/google,cros-ec.yaml | 4 ++--
.../intel,ixp4xx-network-processing-engine.yaml | 2 +-
Documentation/devicetree/bindings/gpio/gpio-mxs.yaml | 4 ++--
.../devicetree/bindings/hwmon/maxim,max31790.yaml | 2 +-
.../devicetree/bindings/iio/adc/st,stm32-adc.yaml | 2 +-
.../bindings/iio/adc/st,stm32-dfsdm-adc.yaml | 6 +++---
.../bindings/input/touchscreen/cypress,tt21000.yaml | 2 +-
.../memory-controllers/ddr/jedec,sdram-channel.yaml | 12 ++++++------
.../bindings/memory-controllers/ingenic,nemc.yaml | 2 +-
.../memory-controllers/nvidia,tegra20-emc.yaml | 4 ++--
.../devicetree/bindings/mfd/st,stm32-lptimer.yaml | 2 +-
.../devicetree/bindings/mfd/st,stm32-timers.yaml | 2 +-
.../devicetree/bindings/misc/qcom,fastrpc.yaml | 2 +-
.../bindings/mmc/mmc-controller-common.yaml | 2 +-
.../bindings/net/cortina,gemini-ethernet.yaml | 2 +-
.../bindings/phy/brcm,cygnus-pcie-phy.yaml | 2 +-
.../devicetree/bindings/phy/brcm,sata-phy.yaml | 2 +-
.../bindings/phy/socionext,uniphier-usb2-phy.yaml | 2 +-
.../devicetree/bindings/sound/qcom,q6asm-dais.yaml | 2 +-
.../bindings/sound/qcom,q6dsp-lpass-ports.yaml | 2 +-
.../devicetree/bindings/thermal/sprd-thermal.yaml | 2 +-
23 files changed, 33 insertions(+), 33 deletions(-)
diff --git a/Documentation/devicetree/bindings/display/xylon,logicvc-display.yaml b/Documentation/devicetree/bindings/display/xylon,logicvc-display.yaml
index 76b804b7c880..3dd54636d23d 100644
--- a/Documentation/devicetree/bindings/display/xylon,logicvc-display.yaml
+++ b/Documentation/devicetree/bindings/display/xylon,logicvc-display.yaml
@@ -123,7 +123,7 @@ properties:
const: 0
patternProperties:
- "^layer@[0-9]+$":
+ "^layer@[0-9a-f]+$":
type: object
properties:
diff --git a/Documentation/devicetree/bindings/dpll/dpll-device.yaml b/Documentation/devicetree/bindings/dpll/dpll-device.yaml
index fb8d7a9a3693..4b5184500b9f 100644
--- a/Documentation/devicetree/bindings/dpll/dpll-device.yaml
+++ b/Documentation/devicetree/bindings/dpll/dpll-device.yaml
@@ -65,7 +65,7 @@ properties:
const: 0
patternProperties:
- "^pin@[0-9]+$":
+ "^pin@[0-9a-f]+$":
$ref: /schemas/dpll/dpll-pin.yaml
unevaluatedProperties: false
diff --git a/Documentation/devicetree/bindings/embedded-controller/google,cros-ec.yaml b/Documentation/devicetree/bindings/embedded-controller/google,cros-ec.yaml
index 3ab5737c9a8f..75159078f0ef 100644
--- a/Documentation/devicetree/bindings/embedded-controller/google,cros-ec.yaml
+++ b/Documentation/devicetree/bindings/embedded-controller/google,cros-ec.yaml
@@ -155,7 +155,7 @@ patternProperties:
type: object
$ref: /schemas/i2c/google,cros-ec-i2c-tunnel.yaml#
- "^regulator@[0-9]+$":
+ "^regulator@[0-9a-f]+$":
type: object
$ref: /schemas/regulator/google,cros-ec-regulator.yaml#
@@ -224,7 +224,7 @@ allOf:
patternProperties:
"^i2c-tunnel[0-9]*$": false
- "^regulator@[0-9]+$": false
+ "^regulator@[0-9a-f]+$": false
"^extcon[0-9]*$": false
# Using additionalProperties: false here and
diff --git a/Documentation/devicetree/bindings/firmware/intel,ixp4xx-network-processing-engine.yaml b/Documentation/devicetree/bindings/firmware/intel,ixp4xx-network-processing-engine.yaml
index 4d66ef483522..a9f874f201aa 100644
--- a/Documentation/devicetree/bindings/firmware/intel,ixp4xx-network-processing-engine.yaml
+++ b/Documentation/devicetree/bindings/firmware/intel,ixp4xx-network-processing-engine.yaml
@@ -44,7 +44,7 @@ properties:
const: 0
patternProperties:
- hss@[0-9]+$:
+ hss@[0-9a-f]+$:
$ref: /schemas/net/intel,ixp4xx-hss.yaml#
type: object
description: Optional node for the High Speed Serial link (HSS), the
diff --git a/Documentation/devicetree/bindings/gpio/gpio-mxs.yaml b/Documentation/devicetree/bindings/gpio/gpio-mxs.yaml
index fed1b06495ad..6cab04ebbdd4 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-mxs.yaml
+++ b/Documentation/devicetree/bindings/gpio/gpio-mxs.yaml
@@ -36,7 +36,7 @@ properties:
maxItems: 1
patternProperties:
- '^(?!gpio@)[^@]+@[0-9]+$':
+ '^(?!gpio@)[^@]+@[0-9a-f]+$':
type: object
properties:
fsl,pinmux-ids:
@@ -94,7 +94,7 @@ patternProperties:
additionalProperties: false
- '^gpio@[0-9]+$':
+ '^gpio@[0-9a-f]+$':
type: object
properties:
compatible:
diff --git a/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml b/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml
index 558cbd251b0f..bd30886def5f 100644
--- a/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml
+++ b/Documentation/devicetree/bindings/hwmon/maxim,max31790.yaml
@@ -45,7 +45,7 @@ properties:
const: 1
patternProperties:
- "^fan@[0-9]+$":
+ "^fan@[0-9a-f]+$":
$ref: fan-common.yaml#
unevaluatedProperties: false
diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml
index c4c4575d3fa9..8e11f769d140 100644
--- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.yaml
@@ -231,7 +231,7 @@ required:
- '#size-cells'
patternProperties:
- "^adc@[0-9]+$":
+ "^adc@[0-9a-f]+$":
type: object
description:
An ADC block node should contain at least one subnode, representing an
diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml b/Documentation/devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml
index c24ac98bbb3d..22cbc6e52537 100644
--- a/Documentation/devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml
@@ -74,7 +74,7 @@ required:
additionalProperties: false
patternProperties:
- "^filter@[0-9]+$":
+ "^filter@[0-5]$":
type: object
unevaluatedProperties: false
description: child node
@@ -334,7 +334,7 @@ allOf:
then:
patternProperties:
- "^filter@[0-9]+$":
+ "^filter@[0-5]$":
properties:
reg:
items:
@@ -349,7 +349,7 @@ allOf:
then:
patternProperties:
- "^filter@[0-9]+$":
+ "^filter@[0-5]$":
properties:
reg:
items:
diff --git a/Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml b/Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml
index 037e5d3c447f..e50adb72f808 100644
--- a/Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml
+++ b/Documentation/devicetree/bindings/input/touchscreen/cypress,tt21000.yaml
@@ -46,7 +46,7 @@ properties:
wakeup-source: true
patternProperties:
- "^button@[0-9]+$":
+ "^button@[0-9a-f]+$":
type: object
$ref: ../input.yaml#
properties:
diff --git a/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,sdram-channel.yaml b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,sdram-channel.yaml
index 5cdd8ef45100..816c8e8b5713 100644
--- a/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,sdram-channel.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/ddr/jedec,sdram-channel.yaml
@@ -53,7 +53,7 @@ properties:
const: 0
patternProperties:
- "^rank@[0-9]+$":
+ "^rank@[0-3]$":
type: object
description:
Each physical SDRAM chip may have one or more ranks. Ranks are
@@ -72,7 +72,7 @@ allOf:
const: jedec,ddr4-channel
then:
patternProperties:
- "^rank@[0-9]+$":
+ "^rank@[0-3]$":
$ref: /schemas/memory-controllers/ddr/jedec,ddr4.yaml#
- if:
properties:
@@ -81,7 +81,7 @@ allOf:
const: jedec,lpddr2-channel
then:
patternProperties:
- "^rank@[0-9]+$":
+ "^rank@[0-3]$":
$ref: /schemas/memory-controllers/ddr/jedec,lpddr2.yaml#
- if:
properties:
@@ -90,7 +90,7 @@ allOf:
const: jedec,lpddr3-channel
then:
patternProperties:
- "^rank@[0-9]+$":
+ "^rank@[0-3]$":
$ref: /schemas/memory-controllers/ddr/jedec,lpddr3.yaml#
- if:
properties:
@@ -99,7 +99,7 @@ allOf:
const: jedec,lpddr4-channel
then:
patternProperties:
- "^rank@[0-9]+$":
+ "^rank@[0-3]$":
$ref: /schemas/memory-controllers/ddr/jedec,lpddr4.yaml#
- if:
properties:
@@ -108,7 +108,7 @@ allOf:
const: jedec,lpddr5-channel
then:
patternProperties:
- "^rank@[0-9]+$":
+ "^rank@[0-3]$":
$ref: /schemas/memory-controllers/ddr/jedec,lpddr5.yaml#
required:
diff --git a/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml b/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml
index ee74a362f4ca..ca6426c28990 100644
--- a/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/ingenic,nemc.yaml
@@ -37,7 +37,7 @@ properties:
maxItems: 1
patternProperties:
- ".*@[0-9]+$":
+ ".*@[0-9a-f]+$":
type: object
$ref: mc-peripheral-props.yaml#
additionalProperties: true
diff --git a/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra20-emc.yaml b/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra20-emc.yaml
index 71896cb10692..a0355050a074 100644
--- a/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra20-emc.yaml
+++ b/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra20-emc.yaml
@@ -142,7 +142,7 @@ $defs:
additionalProperties: false
patternProperties:
- "^emc-table@[0-9]+$":
+ "^emc-table@[0-9a-f]+$":
$ref: "#/$defs/emc-table"
"^emc-tables@[a-f0-9-]+$":
@@ -169,7 +169,7 @@ patternProperties:
type: object
patternProperties:
- "^emc-table@[0-9]+$":
+ "^emc-table@[0-9a-f]+$":
$ref: "#/$defs/emc-table"
oneOf:
diff --git a/Documentation/devicetree/bindings/mfd/st,stm32-lptimer.yaml b/Documentation/devicetree/bindings/mfd/st,stm32-lptimer.yaml
index 4eabafb8079d..8de82540d231 100644
--- a/Documentation/devicetree/bindings/mfd/st,stm32-lptimer.yaml
+++ b/Documentation/devicetree/bindings/mfd/st,stm32-lptimer.yaml
@@ -109,7 +109,7 @@ properties:
- compatible
patternProperties:
- "^trigger@[0-9]+$":
+ "^trigger@[0-4]$":
type: object
additionalProperties: false
diff --git a/Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml b/Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml
index 66aa1550a4e5..5853c6019e98 100644
--- a/Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml
+++ b/Documentation/devicetree/bindings/mfd/st,stm32-timers.yaml
@@ -128,7 +128,7 @@ properties:
- compatible
patternProperties:
- "^timer@[0-9]+$":
+ "^timer@([0-9a-f]|1[0-3])$":
type: object
additionalProperties: false
diff --git a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml
index 49d2a5e8ba39..d9444f452585 100644
--- a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml
+++ b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml
@@ -79,7 +79,7 @@ properties:
const: 0
patternProperties:
- "(compute-)?cb@[0-9]*$":
+ "(compute-)?cb@[0-9a-f]+$":
type: object
description: >
diff --git a/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml b/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml
index 3d7195e9461c..f235f3ed1692 100644
--- a/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml
+++ b/Documentation/devicetree/bindings/mmc/mmc-controller-common.yaml
@@ -317,7 +317,7 @@ properties:
power sequence must be maintained while initializing the card.
patternProperties:
- "^.*@[0-9]+$":
+ "^.*@[0-7]$":
type: object
description: |
On embedded systems the cards connected to a host may need
diff --git a/Documentation/devicetree/bindings/net/cortina,gemini-ethernet.yaml b/Documentation/devicetree/bindings/net/cortina,gemini-ethernet.yaml
index f0b5bea2458d..900e4e5ac360 100644
--- a/Documentation/devicetree/bindings/net/cortina,gemini-ethernet.yaml
+++ b/Documentation/devicetree/bindings/net/cortina,gemini-ethernet.yaml
@@ -35,7 +35,7 @@ properties:
# They are not independent of each other since they share resources
# in the parent node, and are thus children.
patternProperties:
- "^ethernet-port@[0-9]+$":
+ "^ethernet-port@[0-9a-f]+$":
type: object
unevaluatedProperties: false
description: contains the resources for ethernet port
diff --git a/Documentation/devicetree/bindings/phy/brcm,cygnus-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/brcm,cygnus-pcie-phy.yaml
index 808e90b2465d..25356f03f4a6 100644
--- a/Documentation/devicetree/bindings/phy/brcm,cygnus-pcie-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/brcm,cygnus-pcie-phy.yaml
@@ -30,7 +30,7 @@ properties:
const: 0
patternProperties:
- "^pcie-phy@[0-9]+$":
+ "^pcie-phy@[0-9a-f]+$":
type: object
additionalProperties: false
description: >
diff --git a/Documentation/devicetree/bindings/phy/brcm,sata-phy.yaml b/Documentation/devicetree/bindings/phy/brcm,sata-phy.yaml
index 439bda142764..31d534065d42 100644
--- a/Documentation/devicetree/bindings/phy/brcm,sata-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/brcm,sata-phy.yaml
@@ -46,7 +46,7 @@ properties:
const: 0
patternProperties:
- "^sata-phy@[0-9]+$":
+ "^sata-phy@[0-9a-f]+$":
type: object
description: |
Each port's PHY should be represented as a sub-node.
diff --git a/Documentation/devicetree/bindings/phy/socionext,uniphier-usb2-phy.yaml b/Documentation/devicetree/bindings/phy/socionext,uniphier-usb2-phy.yaml
index 19522c54f448..b1a69ed96bb4 100644
--- a/Documentation/devicetree/bindings/phy/socionext,uniphier-usb2-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/socionext,uniphier-usb2-phy.yaml
@@ -29,7 +29,7 @@ properties:
const: 0
patternProperties:
- "^phy@[0-9]+$":
+ "^phy@[0-3]$":
type: object
additionalProperties: false
diff --git a/Documentation/devicetree/bindings/sound/qcom,q6asm-dais.yaml b/Documentation/devicetree/bindings/sound/qcom,q6asm-dais.yaml
index bc8c8ba24f9c..988a84099790 100644
--- a/Documentation/devicetree/bindings/sound/qcom,q6asm-dais.yaml
+++ b/Documentation/devicetree/bindings/sound/qcom,q6asm-dais.yaml
@@ -32,7 +32,7 @@ properties:
const: 0
patternProperties:
- "^dai@[0-9]+$":
+ "^dai@[0-9a-f]+$":
type: object
description:
Q6ASM Digital Audio Interface
diff --git a/Documentation/devicetree/bindings/sound/qcom,q6dsp-lpass-ports.yaml b/Documentation/devicetree/bindings/sound/qcom,q6dsp-lpass-ports.yaml
index 3b03e2acd67e..060487b2b72c 100644
--- a/Documentation/devicetree/bindings/sound/qcom,q6dsp-lpass-ports.yaml
+++ b/Documentation/devicetree/bindings/sound/qcom,q6dsp-lpass-ports.yaml
@@ -28,7 +28,7 @@ properties:
# Digital Audio Interfaces
patternProperties:
- '^dai@[0-9]+$':
+ '^dai@[0-9a-f]+$':
type: object
description:
Q6DSP Digital Audio Interfaces.
diff --git a/Documentation/devicetree/bindings/thermal/sprd-thermal.yaml b/Documentation/devicetree/bindings/thermal/sprd-thermal.yaml
index afa551f6185f..222d70baef1e 100644
--- a/Documentation/devicetree/bindings/thermal/sprd-thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/sprd-thermal.yaml
@@ -47,7 +47,7 @@ properties:
const: 0
patternProperties:
- "^([a-z]*-)?sensor(-section)?@[0-9]+$":
+ "^([a-z]*-)?sensor(-section)?@[0-9a-f]+$":
type: object
description:
Represent one thermal sensor.
--
2.53.0
More information about the linux-phy
mailing list