summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/phy/nxp,tja1145.yaml
blob: fb068f7d774f3c92dea7725416e9c3e038e06e2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/phy/nxp,tja1145.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: TJA1145 CAN transceiver

maintainers:
  - Dimitri Fedrau <dimitri.fedrau@liebherr.com>

allOf:
  - $ref: /schemas/spi/spi-peripheral-props.yaml#

properties:
  compatible:
    const: nxp,tja1145

  interrupts:
    maxItems: 1

  reg:
    maxItems: 1

  "#phy-cells":
    const: 0

  spi-cpha: true

  spi-max-frequency:
    maximum: 4000000

  spi-cs-setup-delay-ns:
    minimum: 50
    default: 50

  spi-cs-hold-delay-ns:
    minimum: 50
    default: 50

  spi-cs-inactive-delay-ns:
    minimum: 250
    default: 250

  vcc-supply:
    description:
      CAN transceiver supply voltage

  vio-supply:
    description:
      Supply voltage for I/O level adaptor

  vbat-supply:
    description:
      Battery supply voltage

required:
  - compatible
  - reg
  - "#phy-cells"
  - spi-cpha

additionalProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>
    spi {
        #address-cells = <1>;
        #size-cells = <0>;
        can-phy@0 {
            compatible = "nxp,tja1145";
            interrupt-parent = <&gpio0>;
            interrupts = <31 IRQ_TYPE_LEVEL_LOW>;
            reg = <0>;
            #phy-cells = <0>;
            spi-cpha;
            spi-max-frequency = <4000000>;
            spi-cs-setup-delay-ns = <50>;
            spi-cs-hold-delay-ns = <50>;
            spi-cs-inactive-delay-ns = <250>;
            vcc-supply = <&reg_5v0>;
            vio-supply = <&reg_3v3>;
            vbat-supply = <&reg_24v0>;
        };
    };