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