Skip to contentSkip to conversation

dt-bindings: More cleanup of standard unit properties

PATCH In review Rob Herring 7 participants 7 messages Mar 16, 2021 – Mar 21, 2021

Subsystems (8)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: More cleanup of standard unit properties

Properties with standard unit suffixes already have a type and don't need type references. Fix a few more cases which have gotten added.

Cc Luca Ceresoli <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Dmitry Torokhov <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Zhang Rui <[email protected]>
Cc Daniel Lezcano <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Kevin Tsai <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Sebastian Reichel <[email protected]>
Cc Mark Brown <[email protected]>
---
 Documentation/devicetree/bindings/iio/light/capella,cm3605.yaml | 1 -
 Documentation/devicetree/bindings/input/input.yaml              | 1 -
 Documentation/devicetree/bindings/power/supply/bq256xx.yaml     | 1 -
 Documentation/devicetree/bindings/power/supply/ltc4162-l.yaml   | 2 --
 .../devicetree/bindings/regulator/qcom-labibb-regulator.yaml    | 1 -
 .../devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml          | 1 -
 6 files changed, 7 deletions(-)
Documentation/devicetree/bindings/iio/light/capella,cm3605.yaml +0 -1
index 27972938b60d..c63b79c3351b 100644
@@ -48,7 +48,6 @@ properties:
   vdd-supply: true
 
   capella,aset-resistance-ohms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     enum: [50000, 100000, 300000, 600000]
     description: >
       Sensitivity calibration resistance. Note that calibration curves
Documentation/devicetree/bindings/input/input.yaml +0 -1
index ab407f266bef..3fc37478c0c0 100644
@@ -32,6 +32,5 @@ properties:
       Duration in seconds which the key should be kept pressed for device to
       power off automatically. Device with key pressed shutdown feature can
       specify this property.
-    $ref: /schemas/types.yaml#/definitions/uint32
 
 additionalProperties: true
Documentation/devicetree/bindings/power/supply/bq256xx.yaml +0 -1
index 18b54783e11a..92ec7ed25668 100644
@@ -39,7 +39,6 @@ properties:
     maxItems: 1
 
   ti,watchdog-timeout-ms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     default: 0
     description: |
       Watchdog timer in ms. 0 (default) disables the watchdog
Documentation/devicetree/bindings/power/supply/ltc4162-l.yaml +0 -2
index 1f88c9e013f4..6d7aa97a6475 100644
@@ -29,12 +29,10 @@ properties:
     description: I2C address of the charger.
 
   lltc,rsnsb-micro-ohms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     description: Battery sense resistor in microohm.
     minimum: 1000
 
   lltc,rsnsi-micro-ohms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     description: Input current sense resistor in microohm.
     minimum: 1000
 
Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml +0 -1
index cf784bd1f5e5..1ddc1efd19e2 100644
@@ -23,7 +23,6 @@ properties:
 
     properties:
       qcom,soft-start-us:
-        $ref: /schemas/types.yaml#/definitions/uint32
         description: Regulator soft start time in microseconds.
         enum: [200, 400, 600, 800]
         default: 200
Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml +0 -1
index 7cd364430573..95a728f4d333 100644
@@ -78,7 +78,6 @@ patternProperties:
           also known as absolute calibration.
 
       qcom,hw-settle-time-us:
-        $ref: /schemas/types.yaml#/definitions/uint32
         description: Time between AMUX getting configured and the ADC starting conversion.
         enum: [15, 100, 200, 300, 400, 500, 600, 700, 1000, 2000, 4000, 8000, 16000, 32000, 64000, 128000]
 
Signature · 1 line
2.27.0
Acked-by on v1 1/1
#1 lore raw
Quoted 19 lines · Rob Herring

Properties with standard unit suffixes already have a type and don't need type references. Fix a few more cases which have gotten added.

Cc Luca Ceresoli <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Dmitry Torokhov <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Zhang Rui <[email protected]>
Cc Daniel Lezcano <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Kevin Tsai <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Sebastian Reichel <[email protected]>
Cc Mark Brown <[email protected]>
Quoted 1 line

---

For the qcom-spmi-adc-tm5.yaml:

Quoted 87 lines
 Documentation/devicetree/bindings/iio/light/capella,cm3605.yaml | 1 -
 Documentation/devicetree/bindings/input/input.yaml              | 1 -
 Documentation/devicetree/bindings/power/supply/bq256xx.yaml     | 1 -
 Documentation/devicetree/bindings/power/supply/ltc4162-l.yaml   | 2 --
 .../devicetree/bindings/regulator/qcom-labibb-regulator.yaml    | 1 -
 .../devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml          | 1 -
 6 files changed, 7 deletions(-)
Documentation/devicetree/bindings/iio/light/capella,cm3605.yaml +0 -1
index 27972938b60d..c63b79c3351b 100644
@@ -48,7 +48,6 @@ properties:
   vdd-supply: true
 
   capella,aset-resistance-ohms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     enum: [50000, 100000, 300000, 600000]
     description: >
       Sensitivity calibration resistance. Note that calibration curves
Documentation/devicetree/bindings/input/input.yaml +0 -1
index ab407f266bef..3fc37478c0c0 100644
@@ -32,6 +32,5 @@ properties:
       Duration in seconds which the key should be kept pressed for device to
       power off automatically. Device with key pressed shutdown feature can
       specify this property.
-    $ref: /schemas/types.yaml#/definitions/uint32
 
 additionalProperties: true
Documentation/devicetree/bindings/power/supply/bq256xx.yaml +0 -1
index 18b54783e11a..92ec7ed25668 100644
@@ -39,7 +39,6 @@ properties:
     maxItems: 1
 
   ti,watchdog-timeout-ms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     default: 0
     description: |
       Watchdog timer in ms. 0 (default) disables the watchdog
Documentation/devicetree/bindings/power/supply/ltc4162-l.yaml +0 -2
index 1f88c9e013f4..6d7aa97a6475 100644
@@ -29,12 +29,10 @@ properties:
     description: I2C address of the charger.
 
   lltc,rsnsb-micro-ohms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     description: Battery sense resistor in microohm.
     minimum: 1000
 
   lltc,rsnsi-micro-ohms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     description: Input current sense resistor in microohm.
     minimum: 1000
 
Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml +0 -1
index cf784bd1f5e5..1ddc1efd19e2 100644
@@ -23,7 +23,6 @@ properties:
 
     properties:
       qcom,soft-start-us:
-        $ref: /schemas/types.yaml#/definitions/uint32
         description: Regulator soft start time in microseconds.
         enum: [200, 400, 600, 800]
         default: 200
Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml +0 -2
index 7cd364430573..95a728f4d333 100644
@@ -78,7 +78,6 @@ patternProperties:
           also known as absolute calibration.
 
       qcom,hw-settle-time-us:
-        $ref: /schemas/types.yaml#/definitions/uint32
         description: Time between AMUX getting configured and the ADC starting conversion.
         enum: [15, 100, 200, 300, 400, 500, 600, 700, 1000, 2000, 4000, 8000, 16000, 32000, 64000, 128000]
 
--

2.27.0

Signature · 2 lines
With best wishes
Dmitry
Reviewed-by on v1 1/1
#3 lore raw
In reply to Rob Herring
Quoted 18 lines · Rob Herring

Properties with standard unit suffixes already have a type and don't need type references. Fix a few more cases which have gotten added.

Cc Luca Ceresoli <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Dmitry Torokhov <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Zhang Rui <[email protected]>
Cc Daniel Lezcano <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Kevin Tsai <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Sebastian Reichel <[email protected]>
Cc Mark Brown <[email protected]>
Signature · 1 line
Luca
maintainer Acked-by on v1 1/1
#4 lore raw
In reply to Rob Herring

Hi,

Quoted 18 lines · Rob Herring

Properties with standard unit suffixes already have a type and don't need type references. Fix a few more cases which have gotten added.

Cc Luca Ceresoli <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Dmitry Torokhov <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Zhang Rui <[email protected]>
Cc Daniel Lezcano <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Kevin Tsai <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Sebastian Reichel <[email protected]>
Cc Mark Brown <[email protected]>
Quoted 1 line

---

-- Sebastian

Quoted 87 lines
 Documentation/devicetree/bindings/iio/light/capella,cm3605.yaml | 1 -
 Documentation/devicetree/bindings/input/input.yaml              | 1 -
 Documentation/devicetree/bindings/power/supply/bq256xx.yaml     | 1 -
 Documentation/devicetree/bindings/power/supply/ltc4162-l.yaml   | 2 --
 .../devicetree/bindings/regulator/qcom-labibb-regulator.yaml    | 1 -
 .../devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml          | 1 -
 6 files changed, 7 deletions(-)
Documentation/devicetree/bindings/iio/light/capella,cm3605.yaml +0 -1
index 27972938b60d..c63b79c3351b 100644
@@ -48,7 +48,6 @@ properties:
   vdd-supply: true
 
   capella,aset-resistance-ohms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     enum: [50000, 100000, 300000, 600000]
     description: >
       Sensitivity calibration resistance. Note that calibration curves
Documentation/devicetree/bindings/input/input.yaml +0 -1
index ab407f266bef..3fc37478c0c0 100644
@@ -32,6 +32,5 @@ properties:
       Duration in seconds which the key should be kept pressed for device to
       power off automatically. Device with key pressed shutdown feature can
       specify this property.
-    $ref: /schemas/types.yaml#/definitions/uint32
 
 additionalProperties: true
Documentation/devicetree/bindings/power/supply/bq256xx.yaml +0 -1
index 18b54783e11a..92ec7ed25668 100644
@@ -39,7 +39,6 @@ properties:
     maxItems: 1
 
   ti,watchdog-timeout-ms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     default: 0
     description: |
       Watchdog timer in ms. 0 (default) disables the watchdog
Documentation/devicetree/bindings/power/supply/ltc4162-l.yaml +0 -2
index 1f88c9e013f4..6d7aa97a6475 100644
@@ -29,12 +29,10 @@ properties:
     description: I2C address of the charger.
 
   lltc,rsnsb-micro-ohms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     description: Battery sense resistor in microohm.
     minimum: 1000
 
   lltc,rsnsi-micro-ohms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     description: Input current sense resistor in microohm.
     minimum: 1000
 
Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml +0 -1
index cf784bd1f5e5..1ddc1efd19e2 100644
@@ -23,7 +23,6 @@ properties:
 
     properties:
       qcom,soft-start-us:
-        $ref: /schemas/types.yaml#/definitions/uint32
         description: Regulator soft start time in microseconds.
         enum: [200, 400, 600, 800]
         default: 200
Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml +0 -1
index 7cd364430573..95a728f4d333 100644
@@ -78,7 +78,6 @@ patternProperties:
           also known as absolute calibration.
 
       qcom,hw-settle-time-us:
-        $ref: /schemas/types.yaml#/definitions/uint32
         description: Time between AMUX getting configured and the ADC starting conversion.
         enum: [15, 100, 200, 300, 400, 500, 600, 700, 1000, 2000, 4000, 8000, 16000, 32000, 64000, 128000]
 
Signature · 1 line
2.27.0
maintainer Acked-by on v1 1/1
#5 lore raw
In reply to Rob Herring
Quoted 18 lines · On Tue, 16 Mar 2021 13:48:24 -0600 Rob Herring <[email protected]> wrote:

Properties with standard unit suffixes already have a type and don't need type references. Fix a few more cases which have gotten added.

Cc Luca Ceresoli <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Dmitry Torokhov <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Zhang Rui <[email protected]>
Cc Daniel Lezcano <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Kevin Tsai <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Sebastian Reichel <[email protected]>
Cc Mark Brown <[email protected]>
Quoted 85 lines
---
 Documentation/devicetree/bindings/iio/light/capella,cm3605.yaml | 1 -
 Documentation/devicetree/bindings/input/input.yaml              | 1 -
 Documentation/devicetree/bindings/power/supply/bq256xx.yaml     | 1 -
 Documentation/devicetree/bindings/power/supply/ltc4162-l.yaml   | 2 --
 .../devicetree/bindings/regulator/qcom-labibb-regulator.yaml    | 1 -
 .../devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml          | 1 -
 6 files changed, 7 deletions(-)
Documentation/devicetree/bindings/iio/light/capella,cm3605.yaml +0 -1
index 27972938b60d..c63b79c3351b 100644
@@ -48,7 +48,6 @@ properties:
   vdd-supply: true
 
   capella,aset-resistance-ohms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     enum: [50000, 100000, 300000, 600000]
     description: >
       Sensitivity calibration resistance. Note that calibration curves
Documentation/devicetree/bindings/input/input.yaml +0 -1
index ab407f266bef..3fc37478c0c0 100644
@@ -32,6 +32,5 @@ properties:
       Duration in seconds which the key should be kept pressed for device to
       power off automatically. Device with key pressed shutdown feature can
       specify this property.
-    $ref: /schemas/types.yaml#/definitions/uint32
 
 additionalProperties: true
Documentation/devicetree/bindings/power/supply/bq256xx.yaml +0 -1
index 18b54783e11a..92ec7ed25668 100644
@@ -39,7 +39,6 @@ properties:
     maxItems: 1
 
   ti,watchdog-timeout-ms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     default: 0
     description: |
       Watchdog timer in ms. 0 (default) disables the watchdog
Documentation/devicetree/bindings/power/supply/ltc4162-l.yaml +0 -2
index 1f88c9e013f4..6d7aa97a6475 100644
@@ -29,12 +29,10 @@ properties:
     description: I2C address of the charger.
 
   lltc,rsnsb-micro-ohms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     description: Battery sense resistor in microohm.
     minimum: 1000
 
   lltc,rsnsi-micro-ohms:
-    $ref: /schemas/types.yaml#/definitions/uint32
     description: Input current sense resistor in microohm.
     minimum: 1000
 
Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml +0 -1
index cf784bd1f5e5..1ddc1efd19e2 100644
@@ -23,7 +23,6 @@ properties:
 
     properties:
       qcom,soft-start-us:
-        $ref: /schemas/types.yaml#/definitions/uint32
         description: Regulator soft start time in microseconds.
         enum: [200, 400, 600, 800]
         default: 200
Documentation/devicetree/bindings/thermal/qcom-spmi-adc-tm5.yaml +0 -1
index 7cd364430573..95a728f4d333 100644
@@ -78,7 +78,6 @@ patternProperties:
           also known as absolute calibration.
 
       qcom,hw-settle-time-us:
-        $ref: /schemas/types.yaml#/definitions/uint32
         description: Time between AMUX getting configured and the ADC starting conversion.
         enum: [15, 100, 200, 300, 400, 500, 600, 700, 1000, 2000, 4000, 8000, 16000, 32000, 64000, 128000]
 
maintainer Acked-by on v1 1/1
#6 lore raw
In reply to Rob Herring
Quoted 18 lines · Rob Herring

Properties with standard unit suffixes already have a type and don't need type references. Fix a few more cases which have gotten added.

Cc Luca Ceresoli <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Dmitry Torokhov <[email protected]>
Cc Bjorn Andersson <[email protected]>
Cc Zhang Rui <[email protected]>
Cc Daniel Lezcano <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Kevin Tsai <[email protected]>
Cc Dmitry Baryshkov <[email protected]>
Cc Sebastian Reichel <[email protected]>
Cc Mark Brown <[email protected]>

Thanks.

Signature · 1 line
Dmitry