dt-bindings: can: convert tcan4x5x.txt to DT schema
Subsystems (4)
PATCH v2 1/1 dt-bindings: can: convert tcan4x5x.txt to DT schema
Convert binding doc tcan4x5x.txt to yaml.
---
Changes since rfc:
- Tried to re-add ti,tcan4x5x wildcard
- Removed xceiver and vdd supplies (copy paste error)
- Corrected max SPI frequency
- Copy pasted bosch,mram-cfg from bosch,m_can.yaml
- device-state-gpios and device-wake-gpios only available for tcan4x5x
Changes in v2:
- Removed unneeded "|"
- Reworked properties, compatible
- Removed additionalProperties: false
- Added unevaluatedProperties: false
- Added missing space in examples
- Link to v1: https://lore.kernel.org/r/[email protected]
--- .../devicetree/bindings/net/can/tcan4x5x.txt | 48 ------ .../devicetree/bindings/net/can/ti,tcan4x5x.yaml | 184 +++++++++++++++++++++ 2 files changed, 184 insertions(+), 48 deletions(-)
Documentation/devicetree/bindings/net/can/tcan4x5x.txt deleted +0 -48
@@ -1,48 +0,0 @@ -Texas Instruments TCAN4x5x CAN Controller -================================================ - -This file provides device node information for the TCAN4x5x interface contains. - -Required properties: - - compatible: - "ti,tcan4552", "ti,tcan4x5x" - "ti,tcan4553", "ti,tcan4x5x" or - "ti,tcan4x5x" - - reg: 0 - - #address-cells: 1 - - #size-cells: 0 - - spi-max-frequency: Maximum frequency of the SPI bus the chip can - operate at should be less than or equal to 18 MHz. - - interrupt-parent: the phandle to the interrupt controller which provides - the interrupt. - - interrupts: interrupt specification for data-ready. - -See Documentation/devicetree/bindings/net/can/bosch,m_can.yaml for additional -required property details. - -Optional properties: - - reset-gpios: Hardwired output GPIO. If not defined then software - reset. - - device-state-gpios: Input GPIO that indicates if the device is in - a sleep state or if the device is active. Not - available with tcan4552/4553. - - device-wake-gpios: Wake up GPIO to wake up the TCAN device. Not - available with tcan4552/4553. - - wakeup-source: Leave the chip running when suspended, and configure - the RX interrupt to wake up the device. - -Example: -tcan4x5x: tcan4x5x@0 { - compatible = "ti,tcan4x5x"; - reg = <0>; - #address-cells = <1>; - #size-cells = <1>; - spi-max-frequency = <10000000>; - bosch,mram-cfg = <0x0 0 0 16 0 0 1 1>; - interrupt-parent = <&gpio1>; - interrupts = <14 IRQ_TYPE_LEVEL_LOW>; - device-state-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>; - device-wake-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; - reset-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>; - wakeup-source; -};
Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml new file +184 -0
184 lines not on this page · raw message
---
base-commit: 2b2a9a08f8f0b904ea2bc61db3374421b0f944a6
change-id: 20241105-convert-tcan-4b516424ecf6
Best regards,
Signature · 1 line
Sean Nyekjaer <[email protected]>
Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml line 48
Quoted 7 lines · Sean Nyekjaer
Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml new file +7
-0+ device-wake-gpios: + description: + Wake up GPIO to wake up the TCAN device. + Not available with tcan4552/4553. + maxItems: 1 + + bosch,mram-cfg:
Last time I wrote:
"You need to mention all changes done to the binding in the commit msg."
Then I wrote again:
"Yeah, CAREFULLY [read][//this was missing, added now] previous review and respond to all comments or implement all of them (or any combination). If you leave one comment ignored, it will mean reviewer has to do same work twice. That's very discouraging and wasteful of my time."
Then I wrote:
"Where? I pointed out that this is a change. I cannot find it...."
So we are back at the same spot but I waste much more time to respond and repeat the same.
You must address all comments: either respond, fix or ask for clarifications. You cannot leave anything ignored.
I am not going to review the rest.
Best regards,
Krzysztof
Krzysztof Kozlowski
Reviewed-byQuoted 22 lines · Krzysztof Kozlowski
Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml line 48
Quoted 7 lines · Sean Nyekjaer
Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml new file +7
-0+ device-wake-gpios: + description: + Wake up GPIO to wake up the TCAN device. + Not available with tcan4552/4553. + maxItems: 1 + + bosch,mram-cfg:Last time I wrote:
"You need to mention all changes done to the binding in the commit msg."Then I wrote again:
"Yeah, CAREFULLY [read][//this was missing, added now] previous review and respond to all comments or implement all of them (or any combination). If you leave one comment ignored, it will mean reviewer has to do same work twice. That's very discouraging and wasteful of my time."Then I wrote:
"Where? I pointed out that this is a change. I cannot find it...."
Quoted 7 lines
So we are back at the same spot but I waste much more time to respond and repeat the same.
You must address all comments: either respond, fix or ask for clarifications. You cannot leave anything ignored.
I am not going to review the rest.
Uh, I am wrong. You did remove the supplies, but I just looked at wrong version. Apologies, everything is fine and you did implement my feedback. Thank you.
Best regards,
Krzysztof
Quoted 29 lines · Krzysztof Kozlowski
Quoted 28 lines · Krzysztof Kozlowski
Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml line 48
Quoted 7 lines · Sean Nyekjaer
Documentation/devicetree/bindings/net/can/ti,tcan4x5x.yaml new file +7
-0+ device-wake-gpios: + description: + Wake up GPIO to wake up the TCAN device. + Not available with tcan4552/4553. + maxItems: 1 + + bosch,mram-cfg:Last time I wrote:
"You need to mention all changes done to the binding in the commit msg."Then I wrote again:
"Yeah, CAREFULLY [read][//this was missing, added now] previous review and respond to all comments or implement all of them (or any combination). If you leave one comment ignored, it will mean reviewer has to do same work twice. That's very discouraging and wasteful of my time."Then I wrote:
"Where? I pointed out that this is a change. I cannot find it...."So we are back at the same spot but I waste much more time to respond and repeat the same.
You must address all comments: either respond, fix or ask for clarifications. You cannot leave anything ignored.
Quoted 7 lines
Quoted 1 line
I am not going to review the rest.
Uh, I am wrong. You did remove the supplies, but I just looked at wrong version. Apologies, everything is fine and you did implement my feedback. Thank you.
Reviewed-by Krzysztof Kozlowski <[email protected]>
As pointed out recently, this is not correct conversion - it does not match existing users. Conversion is supposed to lead to binding which satisfies existing users - DTS and actual ABI - otherwise you produced just incorrect schema.
Best regards,
Krzysztof