Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp349317pxb; Tue, 1 Feb 2022 00:55:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJya6F4+WoDniPbT6m53cnKiIE9zeAGt6ezhncC4uBEeheLvHp8j0L0XeTueEFOAL5m4WdaS X-Received: by 2002:a17:907:3daa:: with SMTP id he42mr20073122ejc.222.1643705715534; Tue, 01 Feb 2022 00:55:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643705715; cv=none; d=google.com; s=arc-20160816; b=m6VXcFr/hkuSEM4323+veMZQV0hnMtqAZzgRrvWf/HSKKeFVOZsSxRM1S0amHuO2AM vtThr8O6Ym/RRTaOom38x/RIq2i53o61vmx/+XKVwdwtF8Qkg1rAAFZ5B2nfiO+31OD8 7+PHClx9sc+QV1Op00npAt3hZD2GiJjfXXX0d73azzOwDjLqpSzjIvINDm1uO0vUnkz4 JI7AhM7TuaXW23EzQIBNrRD1G6HGSVJSGjpQV00G1OhFvBjK+xRRj05q8thMRwEOCMg6 pon0JD4c8do53+IqmyZrbuZ9eVyzIOyt9ui/fLyzfVF6guBSd6F5cDoWSu0veVLpd5zk 4JKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=YkxZLU31+SkUNlHUtOK24HTfoaFsFV9ZeL8fTN7IANU=; b=JWry//CP8EFBOuufqb5Pk4pdCsYHI94A/TKmdytdzcNX8Tx8ocvNb1OBhwUYl0SLcs 8TXOPLdycbmTi7n6E2D9nqbFXnTAJE9fCSEurww1DQldRA7DLT8vAw+gkaYNfpTUWdMB 6qZQWjVKIvL0MfqFQryWR4KKF1uecAjU2SOgM7N2FM8QBG+0pl+zs0cv0+x+hU55NI0J ZkR3wjm+t/uVDE/g6FeRLZV3fJC4ivcz1Z8oSh+2e+3Cg2Zlk8yn/Jrdz3DKzXbVDnQv Mp5noIGKr43He7SQ2sC+q6w8AFlYy7bzWtzCCnNOQ7ydgT9GMt+dVF9Qy0wnJnq4H2zp q4EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=DN0CsY0u; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=f2ozszpE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr20si4426670ejc.555.2022.02.01.00.54.51; Tue, 01 Feb 2022 00:55:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=DN0CsY0u; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=f2ozszpE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353386AbiA2XAs (ORCPT + 99 others); Sat, 29 Jan 2022 18:00:48 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:36141 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347650AbiA2XAq (ORCPT ); Sat, 29 Jan 2022 18:00:46 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id ACE413200BD2; Sat, 29 Jan 2022 18:00:45 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sat, 29 Jan 2022 18:00:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to; s=fm1; bh=YkxZLU31+SkUNlHUtOK24HTfoaFsFV9ZeL8fTN7IANU=; b=DN0Cs Y0uL7OacJJP6DjMeWSLekJ6lxxoVeNK90E0du8bUpWM2Qgtwmh1Wyke7caOOtuCP IpqxXmF+1cbUCQgDyWofmBJ+xt+yeF6wz4xWCBFsHYoLg1JOJesyPaoC9RyjomD0 GxMScCieoDnO600IrdespphnKXITwGGPtPpBqVCXiu7A2WZNv8qG7oMagfRTAnVe lXXTjCCh1bwhKMJAu8BhUZ4XXCWTiY+gvrH1FBHOTbLncv51cM73Z/CxW9A/whbf 5mysNnrXDADlP//G2XvlYhTicfVlPWyaEfRNasAMrVXlv2s0H6KKJpU4zUh4+u5C 64jSaDt03T2axw1Fg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=YkxZLU31+SkUNlHUtOK24HTfoaFsF V9ZeL8fTN7IANU=; b=f2ozszpEHxp86CgfPJ37x3TzJZOpnxqDEpObalYk9rQYj uX8vqPGJyBOocABslqqqnaGAH59lbWqImEDbkmSRcI4z8CE3++1Jrtt5c6MjGT/C B4StSLuM5A777OuClAwCwDWDjX4w6A2c/314rh+Pzw4GW7eaNjuiTb9EG5cLfwB1 ShSzZh9/btJtCGnt7fow7ho7hDd5lz5ACSRzWGzSa/w9ULro6odkUhcQiMWHrwp2 rAc3vxkB99lA10cdQvlIe3Pooa8URW6lJPA0lf009RkcrWRai9Hgg4XW4ybpNnka 3SUom63aBPLn7LHj1LWrAY0IWS1MnA+N51Mi1+lXw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrfeejgdduieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgvlhcu jfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtffrrg htthgvrhhnpeekkeefjeekvdetheejheekvdfgkeeigfffudehudeihfektdetheegiedv gfevudenucffohhmrghinhepmhgvghhouhhsrdgtohhmpdhkvghrnhgvlhdrohhrghenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsrghmuhgv lhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 29 Jan 2022 18:00:44 -0500 (EST) From: Samuel Holland To: Dmitry Torokhov , linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, linux-i2c@vger.kernel.org, Wolfram Sang , Ondrej Jirman , Samuel Holland Subject: [PATCH 0/5] Pine64 PinePhone keyboard support Date: Sat, 29 Jan 2022 17:00:37 -0600 Message-Id: <20220129230043.12422-1-samuel@sholland.org> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds support for the official keyboard case for the Pine64 PinePhone and PinePhone Pro. This accessory contains a keyboard MCU and an IP5209 power bank IC. The keyboard MCU firmware[0] is free software. It exposes the keyboard scan matrix over I2C, and also provides commands for SMBus access to the IP5209. In order to keep the IP5209 driver[1] generic, this is modeled as an I2C bus child of the keyboard. [0]: https://megous.com/git/pinephone-keyboard/about/ [1]: https://lore.kernel.org/lkml/20220129222424.45707-1-samuel@sholland.org/T/ Samuel Holland (5): dt-bindings: input: Add the PinePhone keyboard binding Input: pinephone-keyboard - Add PinePhone keyboard driver Input: pinephone-keyboard - Build in the default keymap Input: pinephone-keyboard - Support the proxied I2C bus [DO NOT MERGE] arm64: dts: allwinner: pinephone: Add keyboard .../input/pine64,pinephone-keyboard.yaml | 90 ++++ MAINTAINERS | 6 + .../dts/allwinner/sun50i-a64-pinephone.dtsi | 18 + drivers/input/keyboard/Kconfig | 10 + drivers/input/keyboard/Makefile | 1 + drivers/input/keyboard/pinephone-keyboard.c | 449 ++++++++++++++++++ 6 files changed, 574 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/pine64,pinephone-keyboard.yaml create mode 100644 drivers/input/keyboard/pinephone-keyboard.c -- 2.33.1