Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2206855imu; Thu, 10 Jan 2019 10:02:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN6ViIoMGOuxKtRT/GAtHjn3dGCbGT2Mtkp3v5NxfFn1NDqW9sBuH3PHJS1nHKNkzCZzhZPM X-Received: by 2002:a63:e545:: with SMTP id z5mr161160pgj.195.1547143322388; Thu, 10 Jan 2019 10:02:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547143322; cv=none; d=google.com; s=arc-20160816; b=fGpSWADI+tufR5MYVfO6OBscJyOvev5o4HYqIQCuv1+bRnFz5odq2DsNcVSlZDpw8q skUkMMSt/+t4dyWkxs/2HpmmZuriT5+RdIoZta671NoaeKZEUwcVJR/O998HC8R1WhYV zVDM/1vSx43KvQ46d96nSDGb9w9pn2qulW/XLSrsyZY1KQVcl3Tq6v2vIC8zD2W1GfS3 9S6I8n5+i9touDo7RVO6xPDXDeIV7eXmbqdRi72HjXjOY9JYqmrQEFwrQHX2WtVi0m7z lytOvdKlbVixICd0CLtcfNLUYwyLilwMe6aQpup1iqu3wtlYaAmxHZbH0Q3z116DONFp rCWA== 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=+ZNEre1yk3KGhzo3PwD/HxPJOA5WpGxM+1TeUSHZQ1c=; b=aAnKP0tFH+/6Rw2t7iQ9usFX7JpyXpfqI+SWwrVxCK5bEiMDJPyT4/HeCnJmtEoqnb wkWWWIDv+uQtInAbrtwTcQKMKG2SSZFny2cS85CqxGokhJ+VbGlNN/YmK+ZSyD8SWs7R L1gwathGdr8ADFslGiKGPZ2sqm2NJiHTzkPmM5PLg+/jBrwWprX2gP4D7TEJC7i1i/vS bbr+Am17Tm6tilPci/CJGWmM73onabDZkZwo1ksvzrtvyFJ6xtmVEqje9uQu3HREvRIS D70bN1n8KrZYR9KIYu/3RlMohBfde+pbY4LTr2pngae3QIP01J9CxOXktTZSSqzom7wy co2Q== 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 l3si12764255pld.229.2019.01.10.10.01.47; Thu, 10 Jan 2019 10:02:02 -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 S1730960AbfAJSAK (ORCPT + 99 others); Thu, 10 Jan 2019 13:00:10 -0500 Received: from shell.v3.sk ([90.176.6.54]:58529 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729480AbfAJR7K (ORCPT ); Thu, 10 Jan 2019 12:59:10 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id E1D241002F7; Thu, 10 Jan 2019 18:59:04 +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 PzyG_0JlMs-I; Thu, 10 Jan 2019 18:58:56 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 3FF2E1002FB; Thu, 10 Jan 2019 18:58:55 +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 MA-jPCPI_amu; Thu, 10 Jan 2019 18:58:53 +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 2E5921002F1; Thu, 10 Jan 2019 18:58:53 +0100 (CET) From: Lubomir Rintel To: Andy Shevchenko , Darren Hart Cc: Rob Herring , Russell King , Mark Rutland , platform-driver-x86@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lubomir Rintel , Pavel Machek Subject: [PATCH v5 01/10] dt-bindings: olpc,xo1.75-ec: Add OLPC XO-1.75 EC bindings Date: Thu, 10 Jan 2019 18:58:36 +0100 Message-Id: <20190110175845.1203986-2-lkundrak@v3.sk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190110175845.1203986-1-lkundrak@v3.sk> References: <20190110175845.1203986-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.20.1