xref: /freebsd/sys/contrib/device-tree/Bindings/spi/fsl,espi.yaml (revision 8ccc0d235c226d84112561d453c49904398d085c)
1*8ccc0d23SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*8ccc0d23SEmmanuel Vadot%YAML 1.2
3*8ccc0d23SEmmanuel Vadot---
4*8ccc0d23SEmmanuel Vadot$id: http://devicetree.org/schemas/spi/fsl,espi.yaml#
5*8ccc0d23SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8ccc0d23SEmmanuel Vadot
7*8ccc0d23SEmmanuel Vadottitle: Freescale eSPI (Enhanced Serial Peripheral Interface) controller
8*8ccc0d23SEmmanuel Vadot
9*8ccc0d23SEmmanuel Vadotmaintainers:
10*8ccc0d23SEmmanuel Vadot  - J. Neuschäfer <j.ne@posteo.net>
11*8ccc0d23SEmmanuel Vadot
12*8ccc0d23SEmmanuel Vadotproperties:
13*8ccc0d23SEmmanuel Vadot  compatible:
14*8ccc0d23SEmmanuel Vadot    const: fsl,mpc8536-espi
15*8ccc0d23SEmmanuel Vadot
16*8ccc0d23SEmmanuel Vadot  reg:
17*8ccc0d23SEmmanuel Vadot    maxItems: 1
18*8ccc0d23SEmmanuel Vadot
19*8ccc0d23SEmmanuel Vadot  interrupts:
20*8ccc0d23SEmmanuel Vadot    maxItems: 1
21*8ccc0d23SEmmanuel Vadot
22*8ccc0d23SEmmanuel Vadot  fsl,espi-num-chipselects:
23*8ccc0d23SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
24*8ccc0d23SEmmanuel Vadot    enum: [ 1, 4 ]
25*8ccc0d23SEmmanuel Vadot    description: The number of the chipselect signals.
26*8ccc0d23SEmmanuel Vadot
27*8ccc0d23SEmmanuel Vadot  fsl,csbef:
28*8ccc0d23SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
29*8ccc0d23SEmmanuel Vadot    minimum: 0
30*8ccc0d23SEmmanuel Vadot    maximum: 15
31*8ccc0d23SEmmanuel Vadot    description: Chip select assertion time in bits before frame starts
32*8ccc0d23SEmmanuel Vadot
33*8ccc0d23SEmmanuel Vadot  fsl,csaft:
34*8ccc0d23SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
35*8ccc0d23SEmmanuel Vadot    minimum: 0
36*8ccc0d23SEmmanuel Vadot    maximum: 15
37*8ccc0d23SEmmanuel Vadot    description: Chip select negation time in bits after frame ends
38*8ccc0d23SEmmanuel Vadot
39*8ccc0d23SEmmanuel Vadotrequired:
40*8ccc0d23SEmmanuel Vadot  - compatible
41*8ccc0d23SEmmanuel Vadot  - reg
42*8ccc0d23SEmmanuel Vadot  - interrupts
43*8ccc0d23SEmmanuel Vadot  - fsl,espi-num-chipselects
44*8ccc0d23SEmmanuel Vadot
45*8ccc0d23SEmmanuel VadotallOf:
46*8ccc0d23SEmmanuel Vadot  - $ref: spi-controller.yaml#
47*8ccc0d23SEmmanuel Vadot
48*8ccc0d23SEmmanuel VadotunevaluatedProperties: false
49*8ccc0d23SEmmanuel Vadot
50*8ccc0d23SEmmanuel Vadotexamples:
51*8ccc0d23SEmmanuel Vadot  - |
52*8ccc0d23SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
53*8ccc0d23SEmmanuel Vadot
54*8ccc0d23SEmmanuel Vadot    spi@110000 {
55*8ccc0d23SEmmanuel Vadot        compatible = "fsl,mpc8536-espi";
56*8ccc0d23SEmmanuel Vadot        reg = <0x110000 0x1000>;
57*8ccc0d23SEmmanuel Vadot        #address-cells = <1>;
58*8ccc0d23SEmmanuel Vadot        #size-cells = <0>;
59*8ccc0d23SEmmanuel Vadot        interrupts = <53 IRQ_TYPE_EDGE_FALLING>;
60*8ccc0d23SEmmanuel Vadot        fsl,espi-num-chipselects = <4>;
61*8ccc0d23SEmmanuel Vadot        fsl,csbef = <1>;
62*8ccc0d23SEmmanuel Vadot        fsl,csaft = <1>;
63*8ccc0d23SEmmanuel Vadot    };
64*8ccc0d23SEmmanuel Vadot
65*8ccc0d23SEmmanuel Vadot...
66