Dan Murphy | 4edd396 | 2019-05-09 11:11:07 -0500 | [diff] [blame] | 1 | Texas Instruments TCAN4x5x CAN Controller |
| 2 | ================================================ |
| 3 | |
| 4 | This file provides device node information for the TCAN4x5x interface contains. |
| 5 | |
| 6 | Required properties: |
| 7 | - compatible: "ti,tcan4x5x" |
| 8 | - reg: 0 |
| 9 | - #address-cells: 1 |
| 10 | - #size-cells: 0 |
| 11 | - spi-max-frequency: Maximum frequency of the SPI bus the chip can |
| 12 | operate at should be less than or equal to 18 MHz. |
Dan Murphy | e3b3292 | 2019-08-23 12:50:56 -0500 | [diff] [blame] | 13 | - interrupt-parent: the phandle to the interrupt controller which provides |
| 14 | the interrupt. |
| 15 | - interrupts: interrupt specification for data-ready. |
Dan Murphy | 4edd396 | 2019-05-09 11:11:07 -0500 | [diff] [blame] | 16 | |
Mauro Carvalho Chehab | 92f2b6a | 2020-03-17 14:10:43 +0100 | [diff] [blame] | 17 | See Documentation/devicetree/bindings/net/can/bosch,m_can.yaml for additional |
Dan Murphy | 4edd396 | 2019-05-09 11:11:07 -0500 | [diff] [blame] | 18 | required property details. |
| 19 | |
| 20 | Optional properties: |
| 21 | - reset-gpios: Hardwired output GPIO. If not defined then software |
| 22 | reset. |
| 23 | - device-state-gpios: Input GPIO that indicates if the device is in |
| 24 | a sleep state or if the device is active. |
Dan Murphy | 1202d23 | 2019-12-04 11:51:11 -0600 | [diff] [blame] | 25 | - device-wake-gpios: Wake up GPIO to wake up the TCAN device. |
Dan Murphy | 4edd396 | 2019-05-09 11:11:07 -0500 | [diff] [blame] | 26 | |
| 27 | Example: |
| 28 | tcan4x5x: tcan4x5x@0 { |
| 29 | compatible = "ti,tcan4x5x"; |
| 30 | reg = <0>; |
| 31 | #address-cells = <1>; |
| 32 | #size-cells = <1>; |
| 33 | spi-max-frequency = <10000000>; |
Marc Kleine-Budde | 17a3042 | 2022-01-14 18:47:41 +0100 | [diff] [blame] | 34 | bosch,mram-cfg = <0x0 0 0 16 0 0 1 1>; |
Dan Murphy | e3b3292 | 2019-08-23 12:50:56 -0500 | [diff] [blame] | 35 | interrupt-parent = <&gpio1>; |
Krzysztof Kozlowski | 4d52194 | 2020-10-26 16:36:20 +0100 | [diff] [blame] | 36 | interrupts = <14 IRQ_TYPE_LEVEL_LOW>; |
Dan Murphy | 4edd396 | 2019-05-09 11:11:07 -0500 | [diff] [blame] | 37 | device-state-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>; |
| 38 | device-wake-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>; |
Sean Nyekjaer | 9c9e1b0 | 2019-12-06 16:29:23 +0100 | [diff] [blame] | 39 | reset-gpios = <&gpio1 27 GPIO_ACTIVE_HIGH>; |
Dan Murphy | 4edd396 | 2019-05-09 11:11:07 -0500 | [diff] [blame] | 40 | }; |