xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*4882a593Smuzhiyun# Copyright (C) 2019,2020 Lubomir Rintel <lkundrak@v3.sk>
3*4882a593Smuzhiyun%YAML 1.2
4*4882a593Smuzhiyun---
5*4882a593Smuzhiyun$id: http://devicetree.org/schemas/misc/olpc,xo1.75-ec.yaml#
6*4882a593Smuzhiyun$schema: http://devicetree.org/meta-schemas/core.yaml#
7*4882a593Smuzhiyun
8*4882a593Smuzhiyuntitle: OLPC XO-1.75 Embedded Controller bindings
9*4882a593Smuzhiyun
10*4882a593Smuzhiyundescription: |
11*4882a593Smuzhiyun  This binding describes the Embedded Controller acting as a SPI bus master
12*4882a593Smuzhiyun  on a OLPC XO-1.75 laptop computer.
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun  The embedded controller requires the SPI controller driver to signal
15*4882a593Smuzhiyun  readiness to receive a transfer (that is, when TX FIFO contains the
16*4882a593Smuzhiyun  response data) by strobing the ACK pin with the ready signal. See the
17*4882a593Smuzhiyun  "ready-gpios" property of the SSP binding as documented in:
18*4882a593Smuzhiyun  <Documentation/devicetree/bindings/spi/marvell,mmp2-ssp.yaml>.
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunmaintainers:
21*4882a593Smuzhiyun  - Lubomir Rintel <lkundrak@v3.sk>
22*4882a593Smuzhiyun
23*4882a593Smuzhiyunproperties:
24*4882a593Smuzhiyun  compatible:
25*4882a593Smuzhiyun    const: olpc,xo1.75-ec
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun  cmd-gpios:
28*4882a593Smuzhiyun    description: GPIO uspecifier of the CMD pin
29*4882a593Smuzhiyun    maxItems: 1
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun  spi-cpha: true
32*4882a593Smuzhiyun
33*4882a593Smuzhiyunrequired:
34*4882a593Smuzhiyun  - compatible
35*4882a593Smuzhiyun  - cmd-gpios
36*4882a593Smuzhiyun
37*4882a593SmuzhiyunadditionalProperties: false
38*4882a593Smuzhiyun
39*4882a593Smuzhiyunexamples:
40*4882a593Smuzhiyun  - |
41*4882a593Smuzhiyun    #include <dt-bindings/gpio/gpio.h>
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun    spi {
44*4882a593Smuzhiyun      spi-slave;
45*4882a593Smuzhiyun      #address-cells = <0>;
46*4882a593Smuzhiyun      #size-cells = <0>;
47*4882a593Smuzhiyun      ready-gpios = <&gpio 125 GPIO_ACTIVE_HIGH>;
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun      slave {
50*4882a593Smuzhiyun        compatible = "olpc,xo1.75-ec";
51*4882a593Smuzhiyun        spi-cpha;
52*4882a593Smuzhiyun        cmd-gpios = <&gpio 155 GPIO_ACTIVE_HIGH>;
53*4882a593Smuzhiyun      };
54*4882a593Smuzhiyun    };
55*4882a593Smuzhiyun
56*4882a593Smuzhiyun...
57