dt-bindings: i2c: migrate mt7621 text bindings to YAML
Subsystems (4)
PATCH v2 1/2 dt-bindings: i2c: migrate mt7621 text bindings to YAML
SoC MT7621 I2C bindings used text format, so migrate them to YAML.
---
Changes in v2:
- Maintain current maintainer Stefan Rose as listed in kernel MAINTAINERS file.
.../devicetree/bindings/i2c/i2c-mt7621.txt | 25 ------- .../bindings/i2c/mediatek,mt7621-i2c.yaml | 68 +++++++++++++++++++ 2 files changed, 68 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-mt7621.txt create mode 100644 Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml
Documentation/devicetree/bindings/i2c/i2c-mt7621.txt deleted +0 -25
@@ -1,25 +0,0 @@ -MediaTek MT7621/MT7628 I2C master controller - -Required properties: - -- compatible: Should be one of the following: - - "mediatek,mt7621-i2c": for MT7621/MT7628/MT7688 platforms -- #address-cells: should be 1. -- #size-cells: should be 0. -- reg: Address and length of the register set for the device -- resets: phandle to the reset controller asserting this device in - reset - See ../reset/reset.txt for details. - -Optional properties : - -Example: - -i2c: i2c@900 { - compatible = "mediatek,mt7621-i2c"; - reg = <0x900 0x100>; - #address-cells = <1>; - #size-cells = <0>; - resets = <&rstctrl 16>; - reset-names = "i2c"; -};
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +68 -0
68 lines not on this page · raw message
Signature · 1 line
2.25.1
PATCH v2 2/2 MAINTAINERS: update Mediatek MT7621/28/88 i2c driver doc file
Mediatek MT7621 i2c driver Bindings have been migrated from text to YAML. Hence, properly update this file accordingly.
---
Changes in v2:
- Add this new patch to the series to align MAINTAINERS files with new YAML doc
MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
@@ -12669,7 +12669,7 @@ MEDIATEK MT7621/28/88 I2C DRIVER M: Stefan Roese <[email protected]> L: [email protected] S: Maintained -F: Documentation/devicetree/bindings/i2c/i2c-mt7621.txt +F: Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml F: drivers/i2c/busses/i2c-mt7621.c MEDIATEK MT7621 PCIE CONTROLLER DRIVER
Signature · 1 line
2.25.1
Re: [PATCH v2 2/2] MAINTAINERS: update Mediatek MT7621/28/88 i2c driver doc file
Quoted 2 lines · Sergio Paracuellos
Mediatek MT7621 i2c driver Bindings have been migrated from text to YAML. Hence, properly update this file accordingly.
So you allow to have a warning added in patch #1 and then you fix it?
Quoted 15 lines
Signed-off-by Sergio Paracuellos <[email protected]>---
Changes in v2:
- Add this new patch to the series to alignMAINTAINERSfiles with new YAML docMAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)MAINTAINERS +0
-0
MAINTAINERS MEDIATEK MT7621/28/88 I2C DRIVER · line 12672
Quoted 5 lines
MAINTAINERS +1
-1@@ -12669,7 +12669,7 @@ MEDIATEK MT7621/28/88 I2C DRIVER M: Stefan Roese <[email protected]> L: [email protected] S: Maintained -F: Documentation/devicetree/bindings/i2c/i2c-mt7621.txt +F: Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml
This must be squashed, otherwise it is not bisectable and you have warnings.
Best regards,
Krzysztof
Re: [PATCH v2 2/2] MAINTAINERS: update Mediatek MT7621/28/88 i2c driver doc file
Quoted 17 lines · Krzysztof Kozlowski
Quoted 2 lines · Sergio Paracuellos
Mediatek MT7621 i2c driver Bindings have been migrated from text to YAML. Hence, properly update this file accordingly.
So you allow to have a warning added in patch #1 and then you fix it?
Quoted 10 lines
Signed-off-by Sergio Paracuellos <[email protected]>---
Changes in v2:
- Add this new patch to the series to alignMAINTAINERSfiles with new YAML docMAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 12 lines
MAINTAINERS MEDIATEK MT7621/28/88 I2C DRIVER · line 12672
Quoted 10 lines
MAINTAINERS +1
-1@@ -12669,7 +12669,7 @@ MEDIATEK MT7621/28/88 I2C DRIVER M: Stefan Roese <[email protected]> L: [email protected] S: Maintained -F: Documentation/devicetree/bindings/i2c/i2c-mt7621.txt +F: Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yamlThis must be squashed, otherwise it is not bisectable and you have warnings.
Understood will squash both patches together in the next version.
Thanks,
Sergio Paracuellos
Quoted 4 lines
Best regards,
Krzysztof
Quoted 4 lines · Sergio Paracuellos
SoC MT7621 I2C bindings used text format, so migrate them to YAML.
Signed-off-by Sergio Paracuellos <[email protected]>---
Again, do not base your patches on something old.
Quoted 59 lines
Changes in v2:
- Maintain current maintainer Stefan Rose as listed in kernelMAINTAINERSfile..../devicetree/bindings/i2c/i2c-mt7621.txt | 25 ------- .../bindings/i2c/mediatek,mt7621-i2c.yaml | 68 +++++++++++++++++++ 2 files changed, 68 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-mt7621.txt create mode 100644 Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yamlDocumentation/devicetree/bindings/i2c/i2c-mt7621.txt deleted +0
-25@@ -1,25 +0,0 @@ -MediaTek MT7621/MT7628 I2C master controller - -Required properties: - -- compatible: Should be one of the following: - - "mediatek,mt7621-i2c": for MT7621/MT7628/MT7688 platforms -- #address-cells: should be 1. -- #size-cells: should be 0. -- reg: Address and length of the register set for the device -- resets: phandle to the reset controller asserting this device in - reset - See ../reset/reset.txt for details. - -Optional properties : - -Example: - -i2c: i2c@900 { - compatible = "mediatek,mt7621-i2c"; - reg = <0x900 0x100>; - #address-cells = <1>; - #size-cells = <0>; - resets = <&rstctrl 16>; - reset-names = "i2c"; -};Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +13
-0@@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/mediatek,mt7621-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +maintainers: + - Stefan Roese <[email protected]> + +title: Mediatek MT7621/MT7628 I2C master controller + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml#
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 23
Quoted 10 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +10
-0+ +properties: + compatible: + const: mediatek,mt7621-i2c + + reg: + maxItems: 1 + + '#address-cells': + const: 1
No need, comes from core schema.
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 26
Quoted 3 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +3
-0+ + '#size-cells': + const: 0
No need
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 32
Quoted 6 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +6
-0+ + clocks: + maxItems: 1 + + clock-names: + const: i2c
Why adding this?
You need to describe in commit msg all deviations from pure conversion.
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 38
Quoted 6 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +6
-0+ + resets: + maxItems: 1 + + reset-names: + const: i2c
Why adding this?
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 44
Quoted 6 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +6
-0+ +required: + - compatible + - reg + - resets + - reset-names
Why?
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 46
Quoted 2 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +2
-0+ - "#address-cells" + - "#size-cells"
Use the same type of quote as in other places.
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 49
Quoted 3 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +3
-0+ +unevaluatedProperties: false +
Best regards,
Krzysztof
Hi Krzysztof,
Thanks for the review.
Quoted 8 lines · Krzysztof Kozlowski
Quoted 4 lines · Sergio Paracuellos
SoC MT7621 I2C bindings used text format, so migrate them to YAML.
Signed-off-by Sergio Paracuellos <[email protected]>---
Again, do not base your patches on something old.
I will take it into account from now on. Since it was just an addition and removal of a file I thought it was not important. So, I guess some address I am using in CC is not listed in the MAINTAINERS file now??
Quoted 64 lines
Quoted 64 lines
Changes in v2:
- Maintain current maintainer Stefan Rose as listed in kernelMAINTAINERSfile..../devicetree/bindings/i2c/i2c-mt7621.txt | 25 ------- .../bindings/i2c/mediatek,mt7621-i2c.yaml | 68 +++++++++++++++++++ 2 files changed, 68 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-mt7621.txt create mode 100644 Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yamlDocumentation/devicetree/bindings/i2c/i2c-mt7621.txt deleted +0
-25@@ -1,25 +0,0 @@ -MediaTek MT7621/MT7628 I2C master controller - -Required properties: - -- compatible: Should be one of the following: - - "mediatek,mt7621-i2c": for MT7621/MT7628/MT7688 platforms -- #address-cells: should be 1. -- #size-cells: should be 0. -- reg: Address and length of the register set for the device -- resets: phandle to the reset controller asserting this device in - reset - See ../reset/reset.txt for details. - -Optional properties : - -Example: - -i2c: i2c@900 { - compatible = "mediatek,mt7621-i2c"; - reg = <0x900 0x100>; - #address-cells = <1>; - #size-cells = <0>; - resets = <&rstctrl 16>; - reset-names = "i2c"; -};Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +17
-0@@ -0,0 +1,68 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/i2c/mediatek,mt7621-i2c.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +maintainers: + - Stefan Roese <[email protected]> + +title: Mediatek MT7621/MT7628 I2C master controller + +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + +properties: + compatible: + const: mediatek,mt7621-i2c
Quoted 8 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 23
Quoted 6 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +6
-0+ + reg: + maxItems: 1 + + '#address-cells': + const: 1No need, comes from core schema.
Will drop, then.
Quoted 6 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 26
Quoted 4 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +3
-0+ + '#size-cells': + const: 0No need
ditto.
Quoted 11 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 32
Quoted 7 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +6
-0+ + clocks: + maxItems: 1 + + clock-names: + const: i2cWhy adding this?
You need to describe in commit msg all deviations from pure conversion.
Looking into the users of this binding I added all the stuff I found in dts nodes. So I think it is preferred to just make a pure conversion and set unevaluatedProperties to true?
Quoted 10 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 38
Quoted 7 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +6
-0+ + resets: + maxItems: 1 + + reset-names: + const: i2cWhy adding this?
ditto.
Quoted 9 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 44
Quoted 7 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +6
-0+ +required: + - compatible + - reg + - resets + - reset-namesWhy?
Will only required those included in a pure conversion of the txt, thanks.
Quoted 5 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 46
Quoted 3 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +2
-0+ - "#address-cells" + - "#size-cells"Use the same type of quote as in other places.
Understood.
Quoted 7 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 49
Quoted 4 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +3
-0+ +unevaluatedProperties: false +Best regards,
Krzysztof
Thanks,
Sergio Paracuellos
Quoted 10 lines · Sergio Paracuellos
Hi Krzysztof,
Thanks for the review.
Quoted 4 lines · Krzysztof Kozlowski
Quoted 2 lines · Sergio Paracuellos
SoC MT7621 I2C bindings used text format, so migrate them to YAML.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Signed-off-by Sergio Paracuellos <[email protected]>---
Again, do not base your patches on something old.
I will take it into account from now on. Since it was just an addition and removal of a file I thought it was not important. So, I guess some address I am using in CC is not listed in the
MAINTAINERSfile now??
You keep cc-ing my address which was changed in mainline around half a year ago. Patches end up in different mailbox.
(...)
Quoted 10 lines
Quoted 10 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 32
Quoted 7 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +6
-0+ + clocks: + maxItems: 1 + + clock-names: + const: i2cWhy adding this?
Quoted 5 lines
Quoted 1 line
You need to describe in commit msg all deviations from pure conversion.
Looking into the users of this binding I added all the stuff I found in dts nodes. So I think it is preferred to just make a pure conversion and set unevaluatedProperties to true?
No, unevaluatedProperties must stay false. As I said:
"You need to describe in commit msg all deviations from pure conversion."
I did not say preferred is to make pure conversion...
Best regards,
Krzysztof
Quoted 15 lines · Krzysztof Kozlowski
Quoted 13 lines · Sergio Paracuellos
Hi Krzysztof,
Thanks for the review.
Quoted 7 lines · Krzysztof Kozlowski
Quoted 4 lines · Sergio Paracuellos
SoC MT7621 I2C bindings used text format, so migrate them to YAML.
Signed-off-by Sergio Paracuellos <[email protected]>---
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Again, do not base your patches on something old.
I will take it into account from now on. Since it was just an addition and removal of a file I thought it was not important. So, I guess some address I am using in CC is not listed in the
MAINTAINERSfile now??You keep cc-ing my address which was changed in mainline around half a year ago. Patches end up in different mailbox.
Sorry for inconvenience, will cc correct address on next version.
Quoted 16 lines
(...)
Quoted 12 lines
Quoted 11 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml line 32
Quoted 7 lines
Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml new file +6
-0+ + clocks: + maxItems: 1 + + clock-names: + const: i2cWhy adding this?
You need to describe in commit msg all deviations from pure conversion.
Quoted 8 lines
Quoted 3 lines
Looking into the users of this binding I added all the stuff I found in dts nodes. So I think it is preferred to just make a pure conversion and set unevaluatedProperties to true?
No, unevaluatedProperties must stay false. As I said:
"You need to describe in commit msg all deviations from pure conversion."I did not say preferred is to make pure conversion...
Pretty clear, thanks.
Quoted 3 lines
Best regards,
Krzysztof
Best regards,
Sergio Paracuellos