Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp670700imu; Fri, 16 Nov 2018 08:25:36 -0800 (PST) X-Google-Smtp-Source: AJdET5fvHTxKzwdkXl39Ii1ViW3+wUeGG2U/w71dopO/QnbzJmnUhPWxAbfaoUohvrq8JBZ0CGqn X-Received: by 2002:a17:902:481:: with SMTP id e1-v6mr11494706ple.132.1542385536880; Fri, 16 Nov 2018 08:25:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542385536; cv=none; d=google.com; s=arc-20160816; b=L4Qpo3RcA4+ko+2RAAZGznw6i2TRy2Q/0ytWNVCT/+XDEZlYsa/UgsParfnItdLVzn 0C6zgIJ+BRSEJFRGagulxhen3/FxWgPexmsZ5H77f8oQzdWrnx0vxI4c0nxP+RyBLzrB kArn8gEBRiVM7lhhLd4/f89oMi+SynIrvIfx4bVTClDnfU44Sa01CzvEaGh4V9aaSgl4 vf9Qs+4G6wsCSi/NCT2DOxU1LWSyLMuHXcTNDrJKFEP1xPgeP+G46acRlifLsPK7SMCy n0WI9ScZhVUBquAkdtMV/0VLEE+GViTrgOnvLFt2V7eXUJb3Pp58vopQ8z+NOLjBVbuv 7/DA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=/Dnq3i56b0Ob8EQODZuwYg1j7nqVDfRor7pk3Ir/1C4=; b=KpZf7rlbz/pp1OCIoU7g6TXj/HSUDxkRghMoHyJJe8XkBC47zCcSMC3/A+Uf4kT6fU HrKvFVZAWU0j5VFRNvP2u8mKRoJH6mzg9WEHjvwx0m20lCnBlN8PQSrE4lRtbVP5K/al 35P2C5AFI2UH/I4XQ4o4OpOt5luFl+olukVcgm86vaB6F8Rwo+Pt4GVLG0VyQOhB0e0S qt1oW7jGM85aLxwZ5ddGH7aZSmJ0NEjILGLG5AK5bVGPk3xPv9F9LhY/ipuw9mp8P+CM XSKx8rV5zK45tj9XoZsVB7WQmCm9Yf2hXR0WD4htAdDbifN7PlwO7hCucE1SRIFWu6cB s2cQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b137si31796575pga.394.2018.11.16.08.25.21; Fri, 16 Nov 2018 08:25:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390130AbeKQChm (ORCPT + 99 others); Fri, 16 Nov 2018 21:37:42 -0500 Received: from shell.v3.sk ([90.176.6.54]:56992 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729055AbeKQChl (ORCPT ); Fri, 16 Nov 2018 21:37:41 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id C716552C13; Fri, 16 Nov 2018 17:24:35 +0100 (CET) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Dt3cM4g1-9ce; Fri, 16 Nov 2018 17:24:18 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 937E952D80; Fri, 16 Nov 2018 17:24:17 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id v4soZBGxVrUG; Fri, 16 Nov 2018 17:24:14 +0100 (CET) Received: from belphegor.brq.redhat.com (nat-pool-brq-t.redhat.com [213.175.37.10]) by zimbra.v3.sk (Postfix) with ESMTPSA id 4A80252B71; Fri, 16 Nov 2018 17:24:14 +0100 (CET) From: Lubomir Rintel To: Mark Brown , Geert Uytterhoeven , Darren Hart , Andy Shevchenko Cc: Greg Kroah-Hartman , James Cameron , Sebastian Reichel , Rob Herring , Mark Rutland , Eric Miao , Haojian Zhuang , Daniel Mack , Robert Jarzmik , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, platform-driver-x86@vger.kernel.org, devel@driverdev.osuosl.org, linux-pm@vger.kernel.org, Lubomir Rintel Subject: [PATCH v2 02/17] dt-bindings: olpc,xo1.75-ec: Add OLPC XO-1.75 EC bindings Date: Fri, 16 Nov 2018 17:23:48 +0100 Message-Id: <20181116162403.49854-3-lkundrak@v3.sk> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181116162403.49854-1-lkundrak@v3.sk> References: <20181116162403.49854-1-lkundrak@v3.sk> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The OLPC XO-1.75 Embedded Controller is a SPI master that uses extra signals for handshaking. It needs to know when is the slave (Linux) side's TX FIFO ready for transfer (the ready-gpio signal on the SPI controller node) and when does it wish to respond with a command (the cmd-gpio property). Signed-off-by: Lubomir Rintel Acked-by: Pavel Machek --- Changes since v1: - s/cmd-gpio/cmd-gpios/ - s/ready-gpio/ready-gpios/ in the documentation paragraph - Remove status =3D "okay" from the example .../bindings/misc/olpc,xo1.75-ec.txt | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/olpc,xo1.75-ec= .txt diff --git a/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.txt b/= Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.txt new file mode 100644 index 000000000000..8c4d649cdd8f --- /dev/null +++ b/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.txt @@ -0,0 +1,23 @@ +OLPC XO-1.75 Embedded Controller + +Required properties: +- compatible: Should be "olpc,xo1.75-ec". +- cmd-gpios: gpio specifier of the CMD pin + +The embedded controller requires the SPI controller driver to signal rea= diness +to receive a transfer (that is, when TX FIFO contains the response data)= by +strobing the ACK pin with the ready signal. See the "ready-gpios" proper= ty of the +SSP binding as documented in: +. + +Example: + &ssp3 { + spi-slave; + ready-gpios =3D <&gpio 125 GPIO_ACTIVE_HIGH>; + + slave { + compatible =3D "olpc,xo1.75-ec"; + spi-cpha; + cmd-gpios =3D <&gpio 155 GPIO_ACTIVE_HIGH>; + }; + }; --=20 2.19.1