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