Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1187142imm; Wed, 10 Oct 2018 10:24:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV60Io0KBIuOqrxCOuTG4qcUDgVazqHrjhMpJL9K8hZ2zdaqz+Lg1YUsTGBYXUBw5jtGVGVZe X-Received: by 2002:aa7:84cc:: with SMTP id x12-v6mr16764965pfn.220.1539192251845; Wed, 10 Oct 2018 10:24:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539192251; cv=none; d=google.com; s=arc-20160816; b=mTseD08ZLsbrCCecDXwWJ5AYY0VeDG3VB3EayZeYDiqvN9HPuOlBfhhwrcR5N1o0JG uWVYlrOm3OidUHJY3cOPtec/MDUsCQ2nqN6fq5z0PVYHV7Bw3a4Vfr4cwvgUumGadB8m q6qggAfc+hEGRj1ZyjnpOaQTnbgJ1LHzwaFQilHovrvDwFwe9vvUc629XlazA2nkepHk cyM6n1Vc3dU5TrTHsMVAMr7KN7M6f65yM1BfUXA9sGSKjt2/ATfF/VCh6xf6dparUCJV cd9vie9HrY5V43y+rucGLjTUO7Ej5Li2eFtR3upAfAKdq7QBZghI1xlrnZAPNDz11NcI +SLQ== 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=p1kZK9tKx6TnYkcksL7gFvwyKWeeqFEKv8Dk2/BgZq0=; b=wZr1HKhsZH+2hOv0w22TUS7uSNJ80PqOQ9LdhlhaEqXw1Li0NKhydt1yBB6zywL0BM Gt6YWbjzsKS9NpzWSHmAF/zT3p1OU8dYgrG5tUFf85862f7cPbOYdF3e7VbbFVR3YwTf l5qQnb4UGUvt0JZ5Ou0A9TYpbWVJy+H49PQlIAS/19M1jvOuxNhXkH0wVfThQeqmegjO AkKHMcDa5uCwpuKH4xM31Z4xzKg/QAiyXpiYsxIwckLK3nFLxyfz/F/QFYMf8hijAhQ4 N6LSUvT9iVFZUqk57RawdRvvBKtLV+UBqZRp9BDPO2g+x1SiRN0e6EFPV+Dt/KHVqi9b U9Ug== 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 t7-v6si24219097plq.32.2018.10.10.10.23.56; Wed, 10 Oct 2018 10:24:11 -0700 (PDT) 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 S1727233AbeJKAqh (ORCPT + 99 others); Wed, 10 Oct 2018 20:46:37 -0400 Received: from shell.v3.sk ([90.176.6.54]:54520 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726568AbeJKAqg (ORCPT ); Wed, 10 Oct 2018 20:46:36 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 5DD85BCFB9; Wed, 10 Oct 2018 19:23:25 +0200 (CEST) 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 ENU2YYY79_UT; Wed, 10 Oct 2018 19:23:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 15E2EBCFC1; Wed, 10 Oct 2018 19:23:07 +0200 (CEST) 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 WODnu4ekLcZd; Wed, 10 Oct 2018 19:23:04 +0200 (CEST) Received: from belphegor.lan (ip-89-102-31-34.net.upcbroadband.cz [89.102.31.34]) by zimbra.v3.sk (Postfix) with ESMTPSA id 77C98BCFB5; Wed, 10 Oct 2018 19:23:03 +0200 (CEST) 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 03/15] dt-bindings: olpc,xo1.75-ec: Add OLPC XO-1.75 EC bindings Date: Wed, 10 Oct 2018 19:22:48 +0200 Message-Id: <20181010172300.317643-4-lkundrak@v3.sk> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181010172300.317643-1-lkundrak@v3.sk> References: <20181010172300.317643-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 --- .../bindings/misc/olpc,xo1.75-ec.txt | 24 +++++++++++++++++++ 1 file changed, 24 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..14385fee65d2 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/olpc,xo1.75-ec.txt @@ -0,0 +1,24 @@ +OLPC XO-1.75 Embedded Controller + +Required properties: +- compatible: Should be "olpc,xo1.75-ec". +- cmd-gpio: 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-gpio" propert= y of the +SSP binding as documented in: +. + +Example: + &ssp3 { + spi-slave; + status =3D "okay"; + ready-gpio =3D <&gpio 125 GPIO_ACTIVE_HIGH>; + + slave { + compatible =3D "olpc,xo1.75-ec"; + spi-cpha; + cmd-gpio =3D <&gpio 155 GPIO_ACTIVE_HIGH>; + }; + }; --=20 2.19.0