From patchwork Fri Dec 12 18:25:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vishnupatekar X-Patchwork-Id: 5484821 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AB8E4BEEA8 for ; Fri, 12 Dec 2014 18:34:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D2BF32010B for ; Fri, 12 Dec 2014 18:34:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1629D200C1 for ; Fri, 12 Dec 2014 18:34:01 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XzV0P-0003zX-DO; Fri, 12 Dec 2014 18:31:57 +0000 Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XzV0L-0003uZ-9F for linux-arm-kernel@lists.infradead.org; Fri, 12 Dec 2014 18:31:53 +0000 Received: by mail-pa0-f42.google.com with SMTP id et14so7757294pad.1 for ; Fri, 12 Dec 2014 10:31:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8hwO35rbisXBWVNYxWnQk2HXtQ7dEEUNdl3TZ2VaPIc=; b=CdmkKFCaGt4eaTG3fpOcPTjWXjS0DEXzYCJZfShS1JnXGr/5fclS6xPn/Feq6s5mG8 3KVCPbuLkZ47aESRFGttWXJ8joS3lbL0dPaZVuNWioeOhNlcwxGrTW4TbdUDV7R0S05e UP8V3L/h+tlwqd4NLo/qbk3s8+aSll9Eql7So9PumfVdF3po7UWc9fLx314KgVdX9FwU 4BLTwi1b839YuWCL4XM6Ntpl5k/fwuCMWhI9TyQvz4NQfnpUMD7Iiu02pbGKmpJ9TplT B1tfaOP9VuPp1iOcX+hvRfnVSO0iPti2ihQBEARWnydl3a+EDvodJAt3c4YOCJp4HFVR PHmQ== X-Received: by 10.66.248.104 with SMTP id yl8mr29322744pac.2.1418409091516; Fri, 12 Dec 2014 10:31:31 -0800 (PST) Received: from localhost.localdomain ([124.125.90.64]) by mx.google.com with ESMTPSA id w2sm2131545pbs.59.2014.12.12.10.31.22 for (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Dec 2014 10:31:30 -0800 (PST) From: VishnuPatekar To: linux-input@vger.kernel.org, maxime.ripard@free-electrons.com, dmitry.torokhov@gmail.com, hdegoede@redhat.com Subject: [PATCHv3 1/5] sunxi:dts-bindings:input:ps2 bindings for A10/A20 ps2. Date: Fri, 12 Dec 2014 23:55:44 +0530 Message-Id: <1418408748-9797-2-git-send-email-vishnupatekar0510@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1418408748-9797-1-git-send-email-vishnupatekar0510@gmail.com> References: <1418408748-9797-1-git-send-email-vishnupatekar0510@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141212_103153_350051_5661DEC6 X-CRM114-Status: GOOD ( 11.05 ) X-Spam-Score: -0.6 (/) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, VishnuPatekar , linux@arm.linux.org.uk, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, benh@kernel.crashing.org, msalter@redhat.com, linux-kernel@vger.kernel.org, ralf@linux-mips.org, robh+dt@kernel.org, jdelvare@suse.de, galak@codeaurora.org, grant.likely@linaro.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 1. dt bindings should use the compat string for the earliest version of the hardware which has the relevant hardware block, unless there are differences, the A10 and A20 ps2 controllers are identical, so for both sun4i-a10-ps2 should be used as compat string. 2. ps2 / serio bindings belong under Documentation/devicetree/bindings/serio Signed-off-by: VishnuPatekar Signed-off-by: Hans de Goede --- .../bindings/serio/allwinner,sun4i-ps2.txt | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/serio/allwinner,sun4i-ps2.txt diff --git a/Documentation/devicetree/bindings/serio/allwinner,sun4i-ps2.txt b/Documentation/devicetree/bindings/serio/allwinner,sun4i-ps2.txt new file mode 100644 index 0000000..0c30440 --- /dev/null +++ b/Documentation/devicetree/bindings/serio/allwinner,sun4i-ps2.txt @@ -0,0 +1,23 @@ +* Device tree bindings for Allwinner A10, A20 PS2 host controller + +A20 PS2 is dual role controller(PS2 host and PS2 device). These bindings are +for PS2 A10/A20 host controller. IBM compliant IBM PS2 and AT-compatible keyboard +and mouse can be connected. + +Required properties: + + - reg : Offset and length of the register set for the device. + - compatible : Should be as of the following: + - "allwinner,sun4i-a10-ps2" + - interrupts : The interrupt line connected to the PS2. + - clocks : The gate clk connected to the PS2. + + +Example: + ps20: ps2@0x01c2a000 { + compatible = "allwinner,sun4i-a10-ps2"; + reg = <0x01c2a000 0x400>; + interrupts = <0 62 4>; + clocks = <&apb1_gates 6>; + status = "disabled"; + };