dt-bindings: can: convert tcan4x5x.txt to DT schema
Subsystems (2)
PATCH v3 1/1 dt-bindings: can: convert tcan4x5x.txt to DT schema
Convert binding doc tcan4x5x.txt to yaml.
Added during conversion, required clock-names cclk.
---
Changes in v3:
- Added cclk to clock-names list
- Added clock-names to the required list
- Link to v2: https://lore.kernel.org/r/[email protected]
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 | 191 +++++++++++++++++++++ 2 files changed, 191 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 +191 -0
191 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]>
Quoted 10 lines · Sean Nyekjaer
Convert binding doc tcan4x5x.txt to yaml.
Added during conversion, required clock-names cclk.
Signed-off-by Sean Nyekjaer <[email protected]>---
Changes in v3:
- Added cclk to clock-names list
- Added clock-names to the required list
- Link to v2: https://lore.kernel.org/r/[email protected]
I suspect Krzysztof may want to re-add his R-b on this.
Quoted 11 lines · Sean Nyekjaer
Convert binding doc tcan4x5x.txt to yaml.
Added during conversion, required clock-names cclk.
Signed-off-by Sean Nyekjaer <[email protected]>---
Changes in v3:
- Added cclk to clock-names list
- Added clock-names to the required list
- Link to v2: https://lore.kernel.org/r/[email protected]
Best regards,
Krzysztof
Marc Kleine-Budde
maintainerQuoted 5 lines · Sean Nyekjaer
Convert binding doc tcan4x5x.txt to yaml.
Added during conversion, required clock-names cclk.
Signed-off-by Sean Nyekjaer <[email protected]>
I've replaced the v2 in can-next/testing.
regards,
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung Nürnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |