dt-bindings: More removals of type references on common properties
Subsystems (15)
Rob Herring
maintainerPATCH 1/1 dt-bindings: More removals of type references on common properties
Users of common properties shouldn't have a type definition as the common schemas already have one. A few new ones slipped in and *-names was missed in the last clean-up pass. Drop all the unnecessary type references in the tree.
A meta-schema update to catch these is pending.
--- Documentation/devicetree/bindings/clock/idt,versaclock5.yaml | 2 -- .../devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml | 1 - Documentation/devicetree/bindings/input/input.yaml | 1 - Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml | 1 - Documentation/devicetree/bindings/net/qcom,ipa.yaml | 1 - .../devicetree/bindings/power/supply/sc2731-charger.yaml | 2 +- Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml | 2 +- 7 files changed, 2 insertions(+), 8 deletions(-)
Documentation/devicetree/bindings/clock/idt,versaclock5.yaml +0 -2
@@ -60,7 +60,6 @@ properties: maxItems: 2 idt,xtal-load-femtofarads: - $ref: /schemas/types.yaml#/definitions/uint32 minimum: 9000 maximum: 22760 description: Optional load capacitor for XTAL1 and XTAL2
@@ -84,7 +83,6 @@ patternProperties: enum: [ 1800000, 2500000, 3300000 ] idt,slew-percent: description: The Slew rate control for CMOS single-ended. - $ref: /schemas/types.yaml#/definitions/uint32 enum: [ 80, 85, 90, 100 ] required:
Documentation/devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml +0 -1
@@ -102,7 +102,6 @@ patternProperties: st,adc-channel-names: description: List of single-ended channel names. - $ref: /schemas/types.yaml#/definitions/string-array st,filter-order: description: |
Documentation/devicetree/bindings/input/input.yaml +0 -1
@@ -38,6 +38,5 @@ properties: Duration in seconds which the key should be kept pressed for device to reset automatically. Device with key pressed reset feature can specify this property. - $ref: /schemas/types.yaml#/definitions/uint32 additionalProperties: true
Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml +0 -1
@@ -92,7 +92,6 @@ properties: this interconnect to send RPMh commands. qcom,bcm-voter-names: - $ref: /schemas/types.yaml#/definitions/string-array description: | Names for each of the qcom,bcm-voters specified.
Documentation/devicetree/bindings/net/qcom,ipa.yaml +0 -1
@@ -105,7 +105,6 @@ properties: - description: Whether the IPA clock is enabled (if valid) qcom,smem-state-names: - $ref: /schemas/types.yaml#/definitions/string-array description: The names of the state bits used for SMP2P output items: - const: ipa-clock-enabled-valid
Documentation/devicetree/bindings/power/supply/sc2731-charger.yaml +1 -1
@@ -20,7 +20,7 @@ properties: maxItems: 1 phys: - $ref: /schemas/types.yaml#/definitions/phandle + maxItems: 1 description: phandle to the USB phy monitored-battery:
Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml +1 -1
@@ -49,7 +49,7 @@ properties: maxItems: 1 memory-region: - $ref: /schemas/types.yaml#/definitions/phandle + maxItems: 1 description: phandle to a node describing reserved memory (System RAM memory) The M core can't access all the DDR memory space on some platform,
Signature · 1 line
2.27.0
Quoted 4 lines · Rob Herring
Users of common properties shouldn't have a type definition as the common schemas already have one. A few new ones slipped in and *-names was missed in the last clean-up pass. Drop all the unnecessary type references in the tree.
Quoted 6 lines · Rob Herring
Users of common properties shouldn't have a type definition as the common schemas already have one. A few new ones slipped in and *-names was missed in the last clean-up pass. Drop all the unnecessary type references in the tree.
A meta-schema update to catch these is pending.
Hi,
Quoted 59 lines · Rob Herring
Users of common properties shouldn't have a type definition as the common schemas already have one. A few new ones slipped in and *-names was missed in the last clean-up pass. Drop all the unnecessary type references in the tree.
A meta-schema update to catch these is pending.
Cc Luca Ceresoli <[email protected]>Cc Stephen Boyd <[email protected]>Cc Olivier Moysan <[email protected]>Cc Arnaud Pouliquen <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Lars-Peter Clausen <[email protected]>Cc Dmitry Torokhov <[email protected]>Cc Bjorn Andersson <[email protected]>Cc Georgi Djakov <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Sebastian Reichel <[email protected]>Cc Orson Zhai <[email protected]>Cc Baolin Wang <[email protected]>Cc Chunyan Zhang <[email protected]>Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>Cc Fabrice Gasnier <[email protected]>Cc Odelu Kukatla <[email protected]>Cc Alex Elder <[email protected]>Cc Shengjiu Wang <[email protected]>Signed-off-by Rob Herring <[email protected]>--- Documentation/devicetree/bindings/clock/idt,versaclock5.yaml | 2 -- .../devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml | 1 - Documentation/devicetree/bindings/input/input.yaml | 1 - Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml | 1 - Documentation/devicetree/bindings/net/qcom,ipa.yaml | 1 - .../devicetree/bindings/power/supply/sc2731-charger.yaml | 2 +- Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml | 2 +- 7 files changed, 2 insertions(+), 8 deletions(-)Documentation/devicetree/bindings/clock/idt,versaclock5.yaml +0
-1@@ -60,7 +60,6 @@ properties: maxItems: 2 idt,xtal-load-femtofarads: - $ref: /schemas/types.yaml#/definitions/uint32 minimum: 9000 maximum: 22760 description: Optional load capacitor for XTAL1 and XTAL2
Documentation/devicetree/bindings/clock/idt,versaclock5.yaml patternProperties: · line 86
Quoted 5 lines
Documentation/devicetree/bindings/clock/idt,versaclock5.yaml +0
-1@@ -84,7 +83,6 @@ patternProperties: enum: [ 1800000, 2500000, 3300000 ] idt,slew-percent: description: The Slew rate control for CMOS single-ended. - $ref: /schemas/types.yaml#/definitions/uint32 enum: [ 80, 85, 90, 100 ]
Ok, but shouldn't "percent" be listed in Documentation/devicetree/bindings/property-units.txt?
Signature · 1 line
Luca
Quoted 28 lines · On Mon, 10 May 2021 15:45:24 -0500 Rob Herring <[email protected]> wrote:
Users of common properties shouldn't have a type definition as the common schemas already have one. A few new ones slipped in and *-names was missed in the last clean-up pass. Drop all the unnecessary type references in the tree.
A meta-schema update to catch these is pending.
Cc Luca Ceresoli <[email protected]>Cc Stephen Boyd <[email protected]>Cc Olivier Moysan <[email protected]>Cc Arnaud Pouliquen <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Lars-Peter Clausen <[email protected]>Cc Dmitry Torokhov <[email protected]>Cc Bjorn Andersson <[email protected]>Cc Georgi Djakov <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Sebastian Reichel <[email protected]>Cc Orson Zhai <[email protected]>Cc Baolin Wang <[email protected]>Cc Chunyan Zhang <[email protected]>Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>Cc Fabrice Gasnier <[email protected]>Cc Odelu Kukatla <[email protected]>Cc Alex Elder <[email protected]>Cc Shengjiu Wang <[email protected]>
Quoted 8 lines
Quoted 103 lines
--- Documentation/devicetree/bindings/clock/idt,versaclock5.yaml | 2 -- .../devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml | 1 - Documentation/devicetree/bindings/input/input.yaml | 1 - Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml | 1 - Documentation/devicetree/bindings/net/qcom,ipa.yaml | 1 - .../devicetree/bindings/power/supply/sc2731-charger.yaml | 2 +- Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml | 2 +- 7 files changed, 2 insertions(+), 8 deletions(-)Documentation/devicetree/bindings/clock/idt,versaclock5.yaml +0
-2@@ -60,7 +60,6 @@ properties: maxItems: 2 idt,xtal-load-femtofarads: - $ref: /schemas/types.yaml#/definitions/uint32 minimum: 9000 maximum: 22760 description: Optional load capacitor for XTAL1 and XTAL2@@ -84,7 +83,6 @@ patternProperties: enum: [ 1800000, 2500000, 3300000 ] idt,slew-percent: description: The Slew rate control for CMOS single-ended. - $ref: /schemas/types.yaml#/definitions/uint32 enum: [ 80, 85, 90, 100 ] required:Documentation/devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml +0
-1@@ -102,7 +102,6 @@ patternProperties: st,adc-channel-names: description: List of single-ended channel names. - $ref: /schemas/types.yaml#/definitions/string-array st,filter-order: description: |Documentation/devicetree/bindings/input/input.yaml +0
-1@@ -38,6 +38,5 @@ properties: Duration in seconds which the key should be kept pressed for device to reset automatically. Device with key pressed reset feature can specify this property. - $ref: /schemas/types.yaml#/definitions/uint32 additionalProperties: trueDocumentation/devicetree/bindings/interconnect/qcom,rpmh.yaml +0
-1@@ -92,7 +92,6 @@ properties: this interconnect to send RPMh commands. qcom,bcm-voter-names: - $ref: /schemas/types.yaml#/definitions/string-array description: | Names for each of the qcom,bcm-voters specified.Documentation/devicetree/bindings/net/qcom,ipa.yaml +0
-1@@ -105,7 +105,6 @@ properties: - description: Whether the IPA clock is enabled (if valid) qcom,smem-state-names: - $ref: /schemas/types.yaml#/definitions/string-array description: The names of the state bits used for SMP2P output items: - const: ipa-clock-enabled-validDocumentation/devicetree/bindings/power/supply/sc2731-charger.yaml +1
-1@@ -20,7 +20,7 @@ properties: maxItems: 1 phys: - $ref: /schemas/types.yaml#/definitions/phandle + maxItems: 1 description: phandle to the USB phy monitored-battery:Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml +1
-1@@ -49,7 +49,7 @@ properties: maxItems: 1 memory-region: - $ref: /schemas/types.yaml#/definitions/phandle + maxItems: 1 description: phandle to a node describing reserved memory (System RAM memory) The M core can't access all the DDR memory space on some platform,
Rob Herring
maintainerQuoted 57 lines · Luca Ceresoli
Hi,
Quoted 53 lines · Rob Herring
Users of common properties shouldn't have a type definition as the common schemas already have one. A few new ones slipped in and *-names was missed in the last clean-up pass. Drop all the unnecessary type references in the tree.
A meta-schema update to catch these is pending.
Cc Luca Ceresoli <[email protected]>Cc Stephen Boyd <[email protected]>Cc Olivier Moysan <[email protected]>Cc Arnaud Pouliquen <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Lars-Peter Clausen <[email protected]>Cc Dmitry Torokhov <[email protected]>Cc Bjorn Andersson <[email protected]>Cc Georgi Djakov <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Sebastian Reichel <[email protected]>Cc Orson Zhai <[email protected]>Cc Baolin Wang <[email protected]>Cc Chunyan Zhang <[email protected]>Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>Cc Fabrice Gasnier <[email protected]>Cc Odelu Kukatla <[email protected]>Cc Alex Elder <[email protected]>Cc Shengjiu Wang <[email protected]>Signed-off-by Rob Herring <[email protected]>--- Documentation/devicetree/bindings/clock/idt,versaclock5.yaml | 2 -- .../devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml | 1 - Documentation/devicetree/bindings/input/input.yaml | 1 - Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml | 1 - Documentation/devicetree/bindings/net/qcom,ipa.yaml | 1 - .../devicetree/bindings/power/supply/sc2731-charger.yaml | 2 +- Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml | 2 +- 7 files changed, 2 insertions(+), 8 deletions(-)Documentation/devicetree/bindings/clock/idt,versaclock5.yaml +0
-0@@ -60,7 +60,6 @@ properties: maxItems: 2
Quoted 14 lines
Documentation/devicetree/bindings/clock/idt,versaclock5.yaml patternProperties: · line 86
Quoted 11 lines
Documentation/devicetree/bindings/clock/idt,versaclock5.yaml +0
-2idt,xtal-load-femtofarads: - $ref: /schemas/types.yaml#/definitions/uint32 minimum: 9000 maximum: 22760 description: Optional load capacitor for XTAL1 and XTAL2@@ -84,7 +83,6 @@ patternProperties: enum: [ 1800000, 2500000, 3300000 ] idt,slew-percent: description: The Slew rate control for CMOS single-ended. - $ref: /schemas/types.yaml#/definitions/uint32 enum: [ 80, 85, 90, 100 ]Ok, but shouldn't "percent" be listed in
Documentation/devicetree/bindings/property-units.txt?
It is in the schema already[1].
Quoted 1 line
Reviewed-by Luca Ceresoli <[email protected]>
Thanks.
Rob
[1] https://github.com/devicetree-org/dt-schema/blob/master/schemas/property-units.yaml
Luca Ceresoli
maintainerHi Rob,
Quoted 73 lines · Rob Herring
Quoted 57 lines · Luca Ceresoli
Hi,
Quoted 53 lines · Rob Herring
Users of common properties shouldn't have a type definition as the common schemas already have one. A few new ones slipped in and *-names was missed in the last clean-up pass. Drop all the unnecessary type references in the tree.
A meta-schema update to catch these is pending.
Cc Luca Ceresoli <[email protected]>Cc Stephen Boyd <[email protected]>Cc Olivier Moysan <[email protected]>Cc Arnaud Pouliquen <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Lars-Peter Clausen <[email protected]>Cc Dmitry Torokhov <[email protected]>Cc Bjorn Andersson <[email protected]>Cc Georgi Djakov <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Sebastian Reichel <[email protected]>Cc Orson Zhai <[email protected]>Cc Baolin Wang <[email protected]>Cc Chunyan Zhang <[email protected]>Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>Cc Fabrice Gasnier <[email protected]>Cc Odelu Kukatla <[email protected]>Cc Alex Elder <[email protected]>Cc Shengjiu Wang <[email protected]>Signed-off-by Rob Herring <[email protected]>--- Documentation/devicetree/bindings/clock/idt,versaclock5.yaml | 2 -- .../devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml | 1 - Documentation/devicetree/bindings/input/input.yaml | 1 - Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml | 1 - Documentation/devicetree/bindings/net/qcom,ipa.yaml | 1 - .../devicetree/bindings/power/supply/sc2731-charger.yaml | 2 +- Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml | 2 +- 7 files changed, 2 insertions(+), 8 deletions(-)Documentation/devicetree/bindings/clock/idt,versaclock5.yaml +0
-0@@ -60,7 +60,6 @@ properties: maxItems: 2Quoted 14 lines
Documentation/devicetree/bindings/clock/idt,versaclock5.yaml patternProperties: · line 86
Quoted 11 lines
Documentation/devicetree/bindings/clock/idt,versaclock5.yaml +0
-2idt,xtal-load-femtofarads: - $ref: /schemas/types.yaml#/definitions/uint32 minimum: 9000 maximum: 22760 description: Optional load capacitor for XTAL1 and XTAL2@@ -84,7 +83,6 @@ patternProperties: enum: [ 1800000, 2500000, 3300000 ] idt,slew-percent: description: The Slew rate control for CMOS single-ended. - $ref: /schemas/types.yaml#/definitions/uint32 enum: [ 80, 85, 90, 100 ]Ok, but shouldn't "percent" be listed in
Documentation/devicetree/bindings/property-units.txt?
Quoted 1 line
It is in the schema already[1].
Sure, but having an incomplete file in the kernel is poorly useful, if not misleading. What about any of these options:
- add to property-units.txt the missing units
- delete property-units.txt from the kernel sources
- replace the entire content of property-units.txt with a link to the schema file, stating it is the authoritative and complete source
I would feel a lot better with any of these. I can prepare the patch too.
Signature · 1 line
Luca
Rob Herring
maintainerQuoted 82 lines · Luca Ceresoli
Hi Rob,
Quoted 73 lines · Rob Herring
Quoted 57 lines · Luca Ceresoli
Hi,
Quoted 53 lines · Rob Herring
Users of common properties shouldn't have a type definition as the common schemas already have one. A few new ones slipped in and *-names was missed in the last clean-up pass. Drop all the unnecessary type references in the tree.
A meta-schema update to catch these is pending.
Cc Luca Ceresoli <[email protected]>Cc Stephen Boyd <[email protected]>Cc Olivier Moysan <[email protected]>Cc Arnaud Pouliquen <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Lars-Peter Clausen <[email protected]>Cc Dmitry Torokhov <[email protected]>Cc Bjorn Andersson <[email protected]>Cc Georgi Djakov <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Sebastian Reichel <[email protected]>Cc Orson Zhai <[email protected]>Cc Baolin Wang <[email protected]>Cc Chunyan Zhang <[email protected]>Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>Cc Fabrice Gasnier <[email protected]>Cc Odelu Kukatla <[email protected]>Cc Alex Elder <[email protected]>Cc Shengjiu Wang <[email protected]>Signed-off-by Rob Herring <[email protected]>--- Documentation/devicetree/bindings/clock/idt,versaclock5.yaml | 2 -- .../devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml | 1 - Documentation/devicetree/bindings/input/input.yaml | 1 - Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml | 1 - Documentation/devicetree/bindings/net/qcom,ipa.yaml | 1 - .../devicetree/bindings/power/supply/sc2731-charger.yaml | 2 +- Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml | 2 +- 7 files changed, 2 insertions(+), 8 deletions(-)Documentation/devicetree/bindings/clock/idt,versaclock5.yaml +0
-0@@ -60,7 +60,6 @@ properties: maxItems: 2Quoted 14 lines
Documentation/devicetree/bindings/clock/idt,versaclock5.yaml patternProperties: · line 86
Quoted 11 lines
Documentation/devicetree/bindings/clock/idt,versaclock5.yaml +0
-2idt,xtal-load-femtofarads: - $ref: /schemas/types.yaml#/definitions/uint32 minimum: 9000 maximum: 22760 description: Optional load capacitor for XTAL1 and XTAL2@@ -84,7 +83,6 @@ patternProperties: enum: [ 1800000, 2500000, 3300000 ] idt,slew-percent: description: The Slew rate control for CMOS single-ended. - $ref: /schemas/types.yaml#/definitions/uint32 enum: [ 80, 85, 90, 100 ]Ok, but shouldn't "percent" be listed in
Documentation/devicetree/bindings/property-units.txt?Quoted 1 line
It is in the schema already[1].
Sure, but having an incomplete file in the kernel is poorly useful, if not misleading. What about any of these options:
Quoted 6 lines
- add to property-units.txt the missing units
- delete property-units.txt from the kernel sources
- replace the entire content of property-units.txt with a link to the schema file, stating it is the authoritative and complete sourceI would feel a lot better with any of these. I can prepare the patch too.
Yes, we should remove it. I just hadn't gotten around to it. Note there is one reference to it in writing-bindings.rst.
Rob
Hi,
Quoted 36 lines · Rob Herring
Users of common properties shouldn't have a type definition as the common schemas already have one. A few new ones slipped in and *-names was missed in the last clean-up pass. Drop all the unnecessary type references in the tree.
A meta-schema update to catch these is pending.
Cc Luca Ceresoli <[email protected]>Cc Stephen Boyd <[email protected]>Cc Olivier Moysan <[email protected]>Cc Arnaud Pouliquen <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Lars-Peter Clausen <[email protected]>Cc Dmitry Torokhov <[email protected]>Cc Bjorn Andersson <[email protected]>Cc Georgi Djakov <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Sebastian Reichel <[email protected]>Cc Orson Zhai <[email protected]>Cc Baolin Wang <[email protected]>Cc Chunyan Zhang <[email protected]>Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>Cc Fabrice Gasnier <[email protected]>Cc Odelu Kukatla <[email protected]>Cc Alex Elder <[email protected]>Cc Shengjiu Wang <[email protected]>Signed-off-by Rob Herring <[email protected]>
Quoted 4 lines
---
[...].../devicetree/bindings/power/supply/sc2731-charger.yaml | 2 +-[...]
-- Sebastian
Quoted 36 lines · Rob Herring
Users of common properties shouldn't have a type definition as the common schemas already have one. A few new ones slipped in and *-names was missed in the last clean-up pass. Drop all the unnecessary type references in the tree.
A meta-schema update to catch these is pending.
Cc Luca Ceresoli <[email protected]>Cc Stephen Boyd <[email protected]>Cc Olivier Moysan <[email protected]>Cc Arnaud Pouliquen <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Lars-Peter Clausen <[email protected]>Cc Dmitry Torokhov <[email protected]>Cc Bjorn Andersson <[email protected]>Cc Georgi Djakov <[email protected]>Cc "David S. Miller" <[email protected]>Cc Jakub Kicinski <[email protected]>Cc Sebastian Reichel <[email protected]>Cc Orson Zhai <[email protected]>Cc Baolin Wang <[email protected]>Cc Chunyan Zhang <[email protected]>Cc Liam Girdwood <[email protected]>Cc Mark Brown <[email protected]>Cc Fabrice Gasnier <[email protected]>Cc Odelu Kukatla <[email protected]>Cc Alex Elder <[email protected]>Cc Shengjiu Wang <[email protected]>Signed-off-by Rob Herring <[email protected]>
Quoted 10 lines
--- Documentation/devicetree/bindings/clock/idt,versaclock5.yaml | 2 -- .../devicetree/bindings/iio/adc/st,stm32-dfsdm-adc.yaml | 1 - Documentation/devicetree/bindings/input/input.yaml | 1 - Documentation/devicetree/bindings/interconnect/qcom,rpmh.yaml | 1 - Documentation/devicetree/bindings/net/qcom,ipa.yaml | 1 - .../devicetree/bindings/power/supply/sc2731-charger.yaml | 2 +- Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml | 2 +- 7 files changed, 2 insertions(+), 8 deletions(-)
Applied, thanks!