1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/phy/nxp,tja1145.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: TJA1145 CAN transceiver 8 9maintainers: 10 - Dimitri Fedrau <dimitri.fedrau@liebherr.com> 11 12allOf: 13 - $ref: /schemas/spi/spi-peripheral-props.yaml# 14 15properties: 16 compatible: 17 const: nxp,tja1145 18 19 interrupts: 20 maxItems: 1 21 22 reg: 23 maxItems: 1 24 25 "#phy-cells": 26 const: 0 27 28 spi-cpha: true 29 30 spi-max-frequency: 31 maximum: 4000000 32 33 spi-cs-setup-delay-ns: 34 minimum: 50 35 default: 50 36 37 spi-cs-hold-delay-ns: 38 minimum: 50 39 default: 50 40 41 spi-cs-inactive-delay-ns: 42 minimum: 250 43 default: 250 44 45 vcc-supply: 46 description: 47 CAN transceiver supply voltage 48 49 vio-supply: 50 description: 51 Supply voltage for I/O level adaptor 52 53 vbat-supply: 54 description: 55 Battery supply voltage 56 57required: 58 - compatible 59 - reg 60 - "#phy-cells" 61 - spi-cpha 62 63additionalProperties: false 64 65examples: 66 - | 67 #include <dt-bindings/interrupt-controller/irq.h> 68 spi { 69 #address-cells = <1>; 70 #size-cells = <0>; 71 can-phy@0 { 72 compatible = "nxp,tja1145"; 73 interrupt-parent = <&gpio0>; 74 interrupts = <31 IRQ_TYPE_LEVEL_LOW>; 75 reg = <0>; 76 #phy-cells = <0>; 77 spi-cpha; 78 spi-max-frequency = <4000000>; 79 spi-cs-setup-delay-ns = <50>; 80 spi-cs-hold-delay-ns = <50>; 81 spi-cs-inactive-delay-ns = <250>; 82 vcc-supply = <®_5v0>; 83 vio-supply = <®_3v3>; 84 vbat-supply = <®_24v0>; 85 }; 86 }; 87