Skip to contentSkip to conversation

dt-bindings: i2c: intel,ixp4xx-i2c: Convert to Dt schema

PATCH Superseded Shi Hao 2 participants 7 messages Mar 24 – Mar 28

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Shi Hao

author
#0 lore raw

PATCH 1/1 dt-bindings: i2c: intel,ixp4xx-i2c: Convert to Dt schema

Convert IOP3xx and IXP4xx XScale bindings to DT schema.

---
Note:
* This patch is part of the GSoC2026 application process for device tree bindings conversions
* https://github.com/LinuxFoundationGSoC/ProjectIdeas/wiki/GSoC-2026-Device-Tree-Bindings

---
 .../devicetree/bindings/i2c/i2c-iop3xx.txt    | 20 ---------
 .../bindings/i2c/intel,ixp4xx-i2c.yaml        | 41 +++++++++++++++++++
 2 files changed, 41 insertions(+), 20 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-iop3xx.txt
 create mode 100644 Documentation/devicetree/bindings/i2c/intel,ixp4xx-i2c.yaml
Documentation/devicetree/bindings/i2c/i2c-iop3xx.txt deleted +0 -20
deleted file mode 100644
index dcc8390e0d24..000000000000
@@ -1,20 +0,0 @@
-i2c Controller on XScale platforms such as IOP3xx and IXP4xx
-
-Required properties:
-- compatible : Must be one of
-  "intel,iop3xx-i2c"
-  "intel,ixp4xx-i2c";
-- reg
-- #address-cells = <1>;
-- #size-cells = <0>;
-
-Optional properties:
-- Child nodes conforming to i2c bus binding
-
-Example:
-
-i2c@c8011000 {
-	compatible = "intel,ixp4xx-i2c";
-	reg = <0xc8011000 0x18>;
-	interrupts = <33 IRQ_TYPE_LEVEL_LOW>;
-};
Documentation/devicetree/bindings/i2c/intel,ixp4xx-i2c.yaml new file +41 -0

41 lines not on this page · raw message

--
2.53.0

#1 lore raw
Quoted 3 lines · Shi Hao

Convert IOP3xx and IXP4xx XScale bindings to DT schema.

Please run scripts/checkpatch.pl on the patches and fix reported warnings. After that, run also 'scripts/checkpatch.pl --strict' on the patches and (probably) fix more warnings. Some warnings can be ignored, especially from --strict run, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear.

Quoted 5 lines

---
Note:
* This patch is part of the GSoC2026 application process for device tree bindings conversions
* https://github.com/LinuxFoundationGSoC/ProjectIdeas/wiki/GSoC-2026-Device-Tree-Bindings
---

...

Quoted 15 lines
Documentation/devicetree/bindings/i2c/intel,ixp4xx-i2c.yaml new file +9 -0
new file mode 100644
index 000000000000..13ba2a0e336e
@@ -0,0 +1,41 @@
+# SPDX License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/i2c/intel,ixp4xx-i2c.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: I2c Controller on XScale platforms such as IOP3xx and IXP4xx
+
+maintainers:

Documentation/devicetree/bindings/i2c/intel,ixp4xx-i2c.yaml line 19

Quoted 10 lines
Documentation/devicetree/bindings/i2c/intel,ixp4xx-i2c.yaml new file +10 -0
+  - Andi Shyti <[email protected]>
+
+allOf:
+  - $ref: /schemas/i2c/i2c-controller.yaml#
+
+properties:
+  compatible:
+    enum:
+      - intel,ixp4xx-i2c
+      - intel,iop3xx-i2c

Alphabetical order. Dunno why you reversed it from original binding.

Documentation/devicetree/bindings/i2c/intel,ixp4xx-i2c.yaml line 25

Quoted 6 lines
Documentation/devicetree/bindings/i2c/intel,ixp4xx-i2c.yaml new file +6 -0
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1

This wasn't in the original binding.

What does my guideline/expectations for GSoC say? Did you read it?

Best regards,
Krzysztof

author
#2 lore raw
Quoted 6 lines · Krzysztof Kozlowski

Please run scripts/checkpatch.pl on the patches and fix reported warnings. After that, run also 'scripts/checkpatch.pl --strict' on the patches and (probably) fix more warnings. Some warnings can be ignored, especially from --strict run, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear.

Hello Krzysztof,

Once again thank you for your time. Those warnings are from running checkpatch.pl without the --strict option i myself discovered when you said that because i only use it with --strict option. I thought checkpatch.pl --strict was more strict then checkpatch.pl but i guess it is not so strict as i thought it was. But apart from this i mean why in the first place there is the --strict option when it is actually not so strict it must have shown all errors, checks and warnings but it does not Anyway i will make sure to run both from now on thanks for pointing it.

Quoted 18 lines

Documentation/devicetree/bindings/i2c/intel,ixp4xx-i2c.yaml line 19

Quoted 5 lines
Documentation/devicetree/bindings/i2c/intel,ixp4xx-i2c.yaml new file +5 -0
+properties:
+  compatible:
+    enum:
+      - intel,ixp4xx-i2c
+      - intel,iop3xx-i2c

Alphabetical order. Dunno why you reversed it from original binding.

Documentation/devicetree/bindings/i2c/intel,ixp4xx-i2c.yaml line 25

Quoted 6 lines
Documentation/devicetree/bindings/i2c/intel,ixp4xx-i2c.yaml new file +6 -0
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1

This wasn't in the original binding.

Quoted 3 lines

What does my guideline/expectations for GSoC say? Did you read it?

I will make sure to fix these issues in the next version. Also i did not read any guidelines so, please provide some resources to the GSoC guidlines you mentioned. I texted on IRC but Daniel said email is where i should ask for it. Thanks for your time.

Kind regards
Shihao

#3 lore raw
Quoted 11 lines · ShiHao
Quoted 6 lines · Krzysztof Kozlowski

Please run scripts/checkpatch.pl on the patches and fix reported warnings. After that, run also 'scripts/checkpatch.pl --strict' on the patches and (probably) fix more warnings. Some warnings can be ignored, especially from --strict run, but the code here looks like it needs a fix. Feel free to get in touch if the warning is not clear.

Hello Krzysztof,

Quoted 9 lines

Once again thank you for your time. Those warnings are from running checkpatch.pl without the --strict option i myself discovered when you said that because i only use it with --strict option. I thought checkpatch.pl --strict was more strict then checkpatch.pl but i guess it is not so strict as i thought it was. But apart from this i mean why in the first place there is the --strict option when it is actually not so strict it must have shown all errors, checks and warnings but it does not Anyway i will make sure to run both from now on thanks for pointing it.

I don't understand this at all.

You did not run checkpatch. Neither with --strict nor without --strict. The --strict does not matter, why are you even mentioning it if you did not run the checkpatch in the first place?

Best regards,
Krzysztof

author
#4 lore raw
Quoted 8 lines · Krzysztof Kozlowski

I don't understand this at all.

You did not run checkpatch. Neither with --strict nor without --strict. The --strict does not matter, why are you even mentioning it if you did not run the checkpatch in the first place?

Best regards,
Krzysztof

Although I did run it, I think it might be best to pause this thread here. I will send the next version in the coming days after properly running the checkpatch.pl script. Also, you mentioned some guidelines regarding GSoC could you please let me know where I can read them?

Thanks
Shihao

#5 lore raw
Quoted 11 lines · ShiHao
Quoted 8 lines · Krzysztof Kozlowski

I don't understand this at all.

You did not run checkpatch. Neither with --strict nor without --strict. The --strict does not matter, why are you even mentioning it if you did not run the checkpatch in the first place?

Best regards,
Krzysztof

Although I did run it, I think it might be best to pause this thread here.

By running, I assume actually read its output and fix it, so please share why each one of your patches has the same mistake reported by checkpatch?

Quoted 3 lines

I will send the next version in the coming days after properly running the checkpatch.pl script. Also, you mentioned some guidelines regarding GSoC could you please let me know where I can read them?

I gave them to GSoC folks, so they should be in the GSoC DT guidelines/description. It was also posted for more than a year on @[email protected] and some days ago I updated it as well.

Best regards,
Krzysztof

author
#6 lore raw
Quoted 8 lines · Krzysztof Kozlowski

By running, I assume actually read its output and fix it, so please share why each one of your patches has the same mistake reported by checkpatch?

Quoted 3 lines

I will send the next version in the coming days after properly running the checkpatch.pl script. Also, you mentioned some guidelines regarding GSoC could you please let me know where I can read them?

Quoted 6 lines

I gave them to GSoC folks, so they should be in the GSoC DT guidelines/description. It was also posted for more than a year on @[email protected] and some days ago I updated it as well.

Best regards,
Krzysztof

Hello Krzysztof,

I hope you are doing good. I checked this binding it has 3 warnings one of them was from the license text and the rest two are this"
WARNING: DT binding docs and includes should be a separate patch.
See: Documentation/devicetree/bindings/submitting-patches.rst". I fixed the license warning but not these two "DT binding doc warnings". I wonder what warning you want me to fix please let me know if i need to solve this remaining two warnings because they are in my every conversion patches.

Thanks
Shihao