18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 28c2ecf20Sopenharmony_ci# Copyright (C) 2019,2020 Lubomir Rintel <lkundrak@v3.sk> 38c2ecf20Sopenharmony_ci%YAML 1.2 48c2ecf20Sopenharmony_ci--- 58c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/misc/olpc,xo1.75-ec.yaml# 68c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_cititle: OLPC XO-1.75 Embedded Controller bindings 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_cidescription: | 118c2ecf20Sopenharmony_ci This binding describes the Embedded Controller acting as a SPI bus master 128c2ecf20Sopenharmony_ci on a OLPC XO-1.75 laptop computer. 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci The embedded controller requires the SPI controller driver to signal 158c2ecf20Sopenharmony_ci readiness to receive a transfer (that is, when TX FIFO contains the 168c2ecf20Sopenharmony_ci response data) by strobing the ACK pin with the ready signal. See the 178c2ecf20Sopenharmony_ci "ready-gpios" property of the SSP binding as documented in: 188c2ecf20Sopenharmony_ci <Documentation/devicetree/bindings/spi/marvell,mmp2-ssp.yaml>. 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_cimaintainers: 218c2ecf20Sopenharmony_ci - Lubomir Rintel <lkundrak@v3.sk> 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ciproperties: 248c2ecf20Sopenharmony_ci compatible: 258c2ecf20Sopenharmony_ci const: olpc,xo1.75-ec 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci cmd-gpios: 288c2ecf20Sopenharmony_ci description: GPIO uspecifier of the CMD pin 298c2ecf20Sopenharmony_ci maxItems: 1 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci spi-cpha: true 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_cirequired: 348c2ecf20Sopenharmony_ci - compatible 358c2ecf20Sopenharmony_ci - cmd-gpios 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ciadditionalProperties: false 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ciexamples: 408c2ecf20Sopenharmony_ci - | 418c2ecf20Sopenharmony_ci #include <dt-bindings/gpio/gpio.h> 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci spi { 448c2ecf20Sopenharmony_ci spi-slave; 458c2ecf20Sopenharmony_ci #address-cells = <0>; 468c2ecf20Sopenharmony_ci #size-cells = <0>; 478c2ecf20Sopenharmony_ci ready-gpios = <&gpio 125 GPIO_ACTIVE_HIGH>; 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ci slave { 508c2ecf20Sopenharmony_ci compatible = "olpc,xo1.75-ec"; 518c2ecf20Sopenharmony_ci spi-cpha; 528c2ecf20Sopenharmony_ci cmd-gpios = <&gpio 155 GPIO_ACTIVE_HIGH>; 538c2ecf20Sopenharmony_ci }; 548c2ecf20Sopenharmony_ci }; 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci... 57