Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp986956imm; Wed, 10 Oct 2018 07:27:21 -0700 (PDT) X-Google-Smtp-Source: ACcGV61CNu+Aoj8GF7PIXDXDHp9u110EnDY+K0AiNaSjdF0q5/eWd/FqqYpGxOyWD+M4BXnWj6D0 X-Received: by 2002:a65:5bc1:: with SMTP id o1-v6mr30431337pgr.391.1539181641798; Wed, 10 Oct 2018 07:27:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539181641; cv=none; d=google.com; s=arc-20160816; b=sBQlBvN2b36JWfaz8FGB7cqX/75L8FBTu73jNYLPj2RJJk6rW1EFv3EEUd1t35p6M1 L07JAC2Ir7fBpGPjaRNAv2KVD/Ww3iSxNiMG4PGXNVUaqPDqSbNHUQpwHDfSujBpEWLd joUVSyHk+jP7OcADLY4P4bm5KkmULb2RprWQ5LRSoGZjjtwg+jPzOzW9OqWNcnrBkusY 0jXHq+uLrNxG/x7XXgFK9EnQB+7N1VUEN2E7HcWfLATD8T5Eh6sHWqCtajRH+R9Nybqs hMov5dgmjOPpW4Pz3Fw0/XH+f4GsDpBGmr2tXrwU4/wiwHqrF3mz+oOEnkXg91Ujbm6R 2vmA== 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=Fm2mZZIPmaRzkfLwBrTeFRvZsvxVRSIoU0UwbsCDiWo=; b=CT2yBARyPae7ja989hCIzRstwiCt414SK1/PQ2TPxNZalV1Q6CV6MEYBMK1ORAL7N8 OtBlPim0TFdVinctw32Ebex2WmSOVSqpE7026bnISeE+E/SOlBitZm2SbHP1BSKon+rp 394J3hqBSvdnxlwC/JOU9EWSp3pvDyk0MK1sgvP71wQ5gFdhNMB5Fngra1+nhZ+WLrbt e3JU+ye4jxYSzEm+8FpYb+DFrEavAZxbZqaE7znH0R8LFN5MwT8ieNorUwXSn1Mhfvhc iceR4QY13uj1KjHlNWIm5jiblDKmcz8CAXTEyWO2+s0cKpkL4YSotQ6RSQeJjl6T4j4k hVhg== 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 o5-v6si25027139pgm.222.2018.10.10.07.27.06; Wed, 10 Oct 2018 07:27:21 -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 S1727278AbeJJVrv (ORCPT + 99 others); Wed, 10 Oct 2018 17:47:51 -0400 Received: from shell.v3.sk ([90.176.6.54]:53467 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726562AbeJJVru (ORCPT ); Wed, 10 Oct 2018 17:47:50 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 830A5BCEFC; Wed, 10 Oct 2018 16:25:22 +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 HRej-vn7v07l; Wed, 10 Oct 2018 16:25:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 613B8BCF6D; Wed, 10 Oct 2018 16:25:11 +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 l82Sbubspqtd; Wed, 10 Oct 2018 16:25:09 +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 5B22BBCF5F; Wed, 10 Oct 2018 16:25:09 +0200 (CEST) From: Lubomir Rintel To: Dmitry Torokhov Cc: Michael Turquette , Rob Herring , Mark Rutland , Stephen Boyd , James Cameron , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Lubomir Rintel Subject: [PATCH v2 2/8] dt-bindings: olpc,ap-sp: add GPIO lines Date: Wed, 10 Oct 2018 16:24:58 +0200 Message-Id: <20181010142504.233467-3-lkundrak@v3.sk> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181010142504.233467-1-lkundrak@v3.sk> References: <20181010142504.233467-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 Add properties describing the GPIO lines used by the keyboard controller. The olpc-apsp driver will do happily without them, but they are still par= t of the hardware description. The driver could still reserve the lines, so that nothing else touches them. This makes the device node almost compatible with "ps2-gpio". I'm not adding a compatible property, because ps2-gpio would use a different interrupt, so that we'd need to name it. And I haven't actually tried it. Reviewed-by: Rob Herring Signed-off-by: Lubomir Rintel --- Documentation/devicetree/bindings/serio/olpc,ap-sp.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/serio/olpc,ap-sp.txt b/Doc= umentation/devicetree/bindings/serio/olpc,ap-sp.txt index 36603419d6f8..2b1b1dbb54c1 100644 --- a/Documentation/devicetree/bindings/serio/olpc,ap-sp.txt +++ b/Documentation/devicetree/bindings/serio/olpc,ap-sp.txt @@ -7,6 +7,10 @@ Required properties: - clocks : phandle + clock-specifier for the clock that drives the WTM - clock-names: should be "sp" =20 +Optional properties: +- data-gpios : GPIO line used for PS/2 interface data +- clk-gpios : GPIO line used for PS/2 interface clock + Example: ap-sp@d4290000 { compatible =3D "olpc,ap-sp"; @@ -14,4 +18,6 @@ Example: interrupts =3D <40>; clocks =3D <&soc_clocks MMP2_CLK_SP>; clock-names =3D "sp"; + data-gpios =3D <&gpio 72 GPIO_ACTIVE_HIGH>; + clk-gpios =3D <&gpio 71 GPIO_ACTIVE_HIGH>; } --=20 2.19.0