dt-bindings: i2c: nxp,pca9564: convert to DT schema
Subsystems (2)
PATCH 1/1 dt-bindings: i2c: nxp,pca9564: convert to DT schema
Convert NXP PCA PCA9564/PCA9665 I2C controller to YAML format.
--- .../devicetree/bindings/i2c/i2c-pca-platform.txt | 27 ---------- .../devicetree/bindings/i2c/nxp,pca9564.yaml | 60 ++++++++++++++++++++++ 2 files changed, 60 insertions(+), 27 deletions(-)
Documentation/devicetree/bindings/i2c/i2c-pca-platform.txt deleted +0 -27
@@ -1,27 +0,0 @@ -* NXP PCA PCA9564/PCA9665 I2C controller - -The PCA9564/PCA9665 serves as an interface between most standard -parallel-bus microcontrollers/microprocessors and the serial I2C-bus -and allows the parallel bus system to communicate bi-directionally -with the I2C-bus. - -Required properties : - - - reg : Offset and length of the register set for the device - - compatible : one of "nxp,pca9564" or "nxp,pca9665" - -Optional properties - - interrupts : the interrupt number - - reset-gpios : gpio specifier for gpio connected to RESET_N pin. As the line - is active low, it should be marked GPIO_ACTIVE_LOW. - - clock-frequency : I2C bus frequency. - -Example: - i2c0: i2c@80000 { - compatible = "nxp,pca9564"; - #address-cells = <1>; - #size-cells = <0>; - reg = <0x80000 0x4>; - reset-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; - clock-frequency = <100000>; - };
Documentation/devicetree/bindings/i2c/nxp,pca9564.yaml new file +60 -0
60 lines not on this page · raw message
---
base-commit: d4906ae14a5f136ceb671bb14cedbf13fa560da6
change-id: 20260407-i2c-nxp-29f251ad86b0
Best regards,
Signature · 1 line
Akhila YS <[email protected]>
Quoted 1 line · Akhila YS
Convert NXP PCA PCA9564/PCA9665 I2C controller to YAML format.
DT schema, not YAML format. Look at your subject.
...
Quoted 13 lines
Documentation/devicetree/bindings/i2c/nxp,pca9564.yaml new file +13
-0+ reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + interrupts: + maxItems: 1 + + reset-gpios:
Documentation/devicetree/bindings/i2c/nxp,pca9564.yaml line 46
Quoted 10 lines
Documentation/devicetree/bindings/i2c/nxp,pca9564.yaml new file +10
-0+ maxItems: 1 + + clock-frequency: + default: 100000 + +required: + - compatible + - reg + +additionalProperties: false
And if you tested any DTS with this, you would see this cannot work. Look at other bindings - you miss ref to i2c-controller and unevaluatedProps. But the problem is that you are doing something which would never work, so I have doubts that you know what you are doing. One thing is to make a mistake, other thing is to post something can never work thus putting quite noticeable requirements on review.
Please first learn how DTS and DT bindings work, before you post new patches.
Best regards,
Krzysztof
Quoted 3 lines · Krzysztof Kozlowski
Quoted 1 line · Akhila YS
Convert NXP PCA PCA9564/PCA9665 I2C controller to YAML format.
DT schema, not YAML format. Look at your subject.
Okay, i will change it.
Quoted 24 lines
...
Quoted 21 lines
Documentation/devicetree/bindings/i2c/nxp,pca9564.yaml new file +21
-0+ reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + clock-frequency: + default: 100000 + +required: + - compatible + - reg
Quoted 8 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+ +additionalProperties: falseAnd if you tested any DTS with this, you would see this cannot work. Look at other bindings - you miss ref to i2c-controller and unevaluatedProps. But the problem is that you are doing something which would never work, so I have doubts that you know what you are doing. One thing is to make a mistake, other thing is to post something can never work thus putting quite noticeable requirements on review.
You are right, i missed referencing the common i2c controller schema and did not handle unevaluated properties correctly,which makes binding invalid.
Quoted 3 lines
Please first learn how DTS and DT bindings work, before you post new patches.
Thank you for the review, i will work on it.
Quoted 3 lines
Best regards,
Krzysztof
Signature · 2 lines
Best Regards, Akhila.
Quoted 39 lines · Akhila YS
Quoted 3 lines · Krzysztof Kozlowski
Quoted 1 line · Akhila YS
Convert NXP PCA PCA9564/PCA9665 I2C controller to YAML format.
DT schema, not YAML format. Look at your subject.
Okay, i will change it.
Quoted 23 lines
...
Quoted 21 lines
Documentation/devicetree/bindings/i2c/nxp,pca9564.yaml new file +21
-0+ reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + clock-frequency: + default: 100000 + +required: + - compatible + - regQuoted 8 lines
Review
Quoted 2 lines
(quoted diff) +2
-0+ +additionalProperties: falseAnd if you tested any DTS with this, you would see this cannot work. Look at other bindings - you miss ref to i2c-controller and unevaluatedProps. But the problem is that you are doing something which would never work, so I have doubts that you know what you are doing. One thing is to make a mistake, other thing is to post something can never work thus putting quite noticeable requirements on review.
Quoted 2 lines
You are right, i missed referencing the common i2c controller schema and did not handle unevaluated properties correctly,which makes binding invalid.
There is no file named i2c-controller.yaml to take ref to this yaml. I tried testing the yaml file with the dts in my local machine and its working as expected.
I even checked the status in patchwork and there it was marked as successful.
Quoted 9 lines
Quoted 3 lines
Please first learn how DTS and DT bindings work, before you post new patches.
Thank you for the review, i will work on it.
Quoted 3 lines
Best regards,
Krzysztof
Signature · 2 lines
Best Regards, Akhila.
Quoted 12 lines · Akhila YS
Quoted 12 lines
Quoted 11 lines
Documentation/devicetree/bindings/i2c/nxp,pca9564.yaml line 46
Quoted 5 lines
Documentation/devicetree/bindings/i2c/nxp,pca9564.yaml new file +5
-0+required: + - compatible + - reg + +additionalProperties: falseAnd if you tested any DTS with this, you would see this cannot work. Look at other bindings - you miss ref to i2c-controller and unevaluatedProps. But the problem is that you are doing something which would never work, so I have doubts that you know what you are doing. One thing is to make a mistake, other thing is to post something can never work thus putting quite noticeable requirements on review.
Quoted 5 lines
Quoted 2 lines
You are right, i missed referencing the common i2c controller schema and did not handle unevaluated properties correctly,which makes binding invalid.
There is no file named
i2c-controller.yamlto take ref to this yaml. I
And git grep hallucinated?
Quoted 2 lines
tried testing the yaml file with the dts in my local machine and its working as expected.
Hm, please share the DTS which worked. Are you sure that you are testing I2C bus?
Best regards,
Krzysztof