From patchwork Sun Apr 16 05:11:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 9682487 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EE3B860388 for ; Sun, 16 Apr 2017 05:11:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD2C827F17 for ; Sun, 16 Apr 2017 05:11:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF53728372; Sun, 16 Apr 2017 05:11:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C67227F17 for ; Sun, 16 Apr 2017 05:11:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752092AbdDPFLt (ORCPT ); Sun, 16 Apr 2017 01:11:49 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33797 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750928AbdDPFLs (ORCPT ); Sun, 16 Apr 2017 01:11:48 -0400 Received: by mail-pf0-f196.google.com with SMTP id g23so5477360pfj.1; Sat, 15 Apr 2017 22:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=9b8K0Gfjolm3HWIvDdz/p+s3Ta07Np2bRZUosIBePoo=; b=YZBbJ0IvBBYfgaPBRAK2nxXi45dxvfoVAmnpeqlivB8Hcy+9ilgrUq6OxQve+mIiVQ Ww6BxjxjQIrBIlyzpwrEi2/zvTRzlr0qrgO5SllUU35DldgWcjqiIEh2El6r4HPoBmXD 4oDj33ACO2t6zT2Hp/UazJirmsogAp1ijLxK/1+Tx5PKnwE7Cxe42PMJnfm9hf4m6BXo Lktmhljf0Q6vfwZQtDGbTV/F9y71l/bD8uZMs+D+Vo1gpLlrJjxpnxGZD4JI/4rXj8db 9EznFQgu1cO7olBuSzbFCnZg5WvX7+yk+zIbkRLqWBXOMHrPhWMRS7hH1uSo3Jz1qhiE 0KFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9b8K0Gfjolm3HWIvDdz/p+s3Ta07Np2bRZUosIBePoo=; b=IkTF+IDCq7JGBNLMTp2v/gbeWiQpCowVwJJGqjIh8c/Bm3s9cmMaUjrUx+EN9I6OLI pC3QJkPDIgNi79ZnpVe7QKwp9lFQQOQoVfeIcZ/Xm8WwjycsniYE6obtQsiBxTXYJlZB w8l6kyOvR+wn0Z8E7/qJzGkdzoaqtQFuYURzyP4KNWoL8neaoEjaDd97E9KJu1S/UyAk HGHLawvJ0FUpQdLE9mSrKz5rKHRQ4Zaw3kb5T7+NOHky0cL2QUpG3zU6ZWmDpO8d+EjH jtPa3n8qWny0tjff+i/mA1S9OD6GyIMSvBlSa3s3g6BQMm9xphwfQyQswKaDiN/5w/Bj dFSg== X-Gm-Message-State: AN3rC/4nT37Ji0hzB4STC5BXQufm/pfgpg+mBgWkVTTfpo8JiPDMFmA5 Vbx/z0MJvWlL1A== X-Received: by 10.84.176.100 with SMTP id u91mr7384324plb.39.1492319507677; Sat, 15 Apr 2017 22:11:47 -0700 (PDT) Received: from dtor-ws.mtv.corp.google.com ([172.22.152.34]) by smtp.gmail.com with ESMTPSA id 66sm10889564pfg.14.2017.04.15.22.11.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 15 Apr 2017 22:11:47 -0700 (PDT) From: Dmitry Torokhov To: linux-input@vger.kernel.org Cc: Jonathan Corbet , Mauro Carvalho Chehab , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Vojtech Pavlik Subject: [PATCH 1/8] Input: move documentation for Amiga CD32 Date: Sat, 15 Apr 2017 22:11:38 -0700 Message-Id: <20170416051145.13618-1-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.12.2.762.g0e3151a226-goog Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Move the documentation for Amiga CD32 together with other parallel port joysticks. Signed-off-by: Dmitry Torokhov --- Documentation/input/cd32.rst | 24 --------------------- Documentation/input/index.rst | 1 - Documentation/input/joystick-parport.rst | 37 ++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 25 deletions(-) delete mode 100644 Documentation/input/cd32.rst diff --git a/Documentation/input/cd32.rst b/Documentation/input/cd32.rst deleted file mode 100644 index 935028b957d9..000000000000 --- a/Documentation/input/cd32.rst +++ /dev/null @@ -1,24 +0,0 @@ -========== -Amiga CD32 -========== - -I have written a small patch that let's me use my Amiga CD32 -joypad connected to the parallel port. Thought I'd share it with you so -you can add it to the list of supported joysticks (hopefully someone will -find it useful). - -It needs the following wiring: - -=========== ============= -CD32 pad Parallel port -=========== ============= -1 (Up) 2 (D0) -2 (Down) 3 (D1) -3 (Left) 4 (D2) -4 (Right) 5 (D3) -5 (Fire3) 14 (AUTOFD) -6 (Fire1) 17 (SELIN) -7 (+5V) 1 (STROBE) -8 (Gnd) 18 (Gnd) -9 (Fire2) 7 (D5) -=========== ============= diff --git a/Documentation/input/index.rst b/Documentation/input/index.rst index 153f0d476c3e..32c0515fd24b 100644 --- a/Documentation/input/index.rst +++ b/Documentation/input/index.rst @@ -54,7 +54,6 @@ Input drivers appletouch atarikbd bcm5974 - cd32 cma3000_d0x cs461x edt-ft5x06 diff --git a/Documentation/input/joystick-parport.rst b/Documentation/input/joystick-parport.rst index 0aa0fb17bf48..fa8cab584793 100644 --- a/Documentation/input/joystick-parport.rst +++ b/Documentation/input/joystick-parport.rst @@ -443,6 +443,43 @@ parallel port:: The other pins (Up, Down, Right, Left, Power, Ground) are the same as for Multi joysticks using db9.c +Amiga CD32 +---------- + +Amiga CD32 joypad uses the following pinout:: + + +-----------> Button 3 + | +---------> Right + | | +-------> Left + | | | +-----> Down + | | | | +---> Up + | | | | | + _____________ + 5 \ o o o o o / 1 + \ o o o o / + 9 `~~~~~~~' 6 + | | | | + | | | +----> Button 1 + | | +------> Power + | +--------> Ground + +----------> Button 2 + +It can be connected to the parallel port and driven by db9.c driver. It needs the following wiring: + + ============ ============= + CD32 pad Parallel port + ============ ============= + 1 (Up) 2 (D0) + 2 (Down) 3 (D1) + 3 (Left) 4 (D2) + 4 (Right) 5 (D3) + 5 (Button 3) 14 (AUTOFD) + 6 (Button 1) 17 (SELIN) + 7 (+5V) 1 (STROBE) + 8 (Gnd) 18 (Gnd) + 9 (Button 2) 7 (D5) + ============ ============= + The drivers ===========