10386e81dSLubomir Rintel# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 20386e81dSLubomir Rintel# Copyright (C) 2019,2020 Lubomir Rintel <lkundrak@v3.sk> 30386e81dSLubomir Rintel%YAML 1.2 40386e81dSLubomir Rintel--- 50386e81dSLubomir Rintel$id: http://devicetree.org/schemas/misc/olpc,xo1.75-ec.yaml# 60386e81dSLubomir Rintel$schema: http://devicetree.org/meta-schemas/core.yaml# 70386e81dSLubomir Rintel 8*84e85359SKrzysztof Kozlowskititle: OLPC XO-1.75 Embedded Controller 90386e81dSLubomir Rintel 100386e81dSLubomir Rinteldescription: | 110386e81dSLubomir Rintel This binding describes the Embedded Controller acting as a SPI bus master 120386e81dSLubomir Rintel on a OLPC XO-1.75 laptop computer. 130386e81dSLubomir Rintel 140386e81dSLubomir Rintel The embedded controller requires the SPI controller driver to signal 150386e81dSLubomir Rintel readiness to receive a transfer (that is, when TX FIFO contains the 160386e81dSLubomir Rintel response data) by strobing the ACK pin with the ready signal. See the 170386e81dSLubomir Rintel "ready-gpios" property of the SSP binding as documented in: 180386e81dSLubomir Rintel <Documentation/devicetree/bindings/spi/marvell,mmp2-ssp.yaml>. 190386e81dSLubomir Rintel 200386e81dSLubomir Rintelmaintainers: 210386e81dSLubomir Rintel - Lubomir Rintel <lkundrak@v3.sk> 220386e81dSLubomir Rintel 230386e81dSLubomir Rintelproperties: 240386e81dSLubomir Rintel compatible: 250386e81dSLubomir Rintel const: olpc,xo1.75-ec 260386e81dSLubomir Rintel 270386e81dSLubomir Rintel cmd-gpios: 280386e81dSLubomir Rintel description: GPIO uspecifier of the CMD pin 290386e81dSLubomir Rintel maxItems: 1 300386e81dSLubomir Rintel 314828556dSRob Herring spi-cpha: true 324828556dSRob Herring 330386e81dSLubomir Rintelrequired: 340386e81dSLubomir Rintel - compatible 350386e81dSLubomir Rintel - cmd-gpios 360386e81dSLubomir Rintel 374828556dSRob HerringadditionalProperties: false 380386e81dSLubomir Rintel 390386e81dSLubomir Rintelexamples: 400386e81dSLubomir Rintel - | 410386e81dSLubomir Rintel #include <dt-bindings/gpio/gpio.h> 420386e81dSLubomir Rintel 430386e81dSLubomir Rintel spi { 440386e81dSLubomir Rintel spi-slave; 45bd36e51dSZhen Lei #address-cells = <0>; 46bd36e51dSZhen Lei #size-cells = <0>; 470386e81dSLubomir Rintel ready-gpios = <&gpio 125 GPIO_ACTIVE_HIGH>; 480386e81dSLubomir Rintel 490386e81dSLubomir Rintel slave { 500386e81dSLubomir Rintel compatible = "olpc,xo1.75-ec"; 510386e81dSLubomir Rintel spi-cpha; 520386e81dSLubomir Rintel cmd-gpios = <&gpio 155 GPIO_ACTIVE_HIGH>; 530386e81dSLubomir Rintel }; 540386e81dSLubomir Rintel }; 550386e81dSLubomir Rintel 560386e81dSLubomir Rintel... 57