Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp349471pxb; Tue, 1 Feb 2022 00:55:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyM8on/c7fV2EdmWw8gSWI4+1D83TqlOJ9QvogetbsdZcLqS8qJEbjbYlRx2SMw5Gpy/lQ9 X-Received: by 2002:a05:6402:254a:: with SMTP id l10mr24048216edb.230.1643705734766; Tue, 01 Feb 2022 00:55:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643705734; cv=none; d=google.com; s=arc-20160816; b=HU8MEUlz5QOi8Wyw/Ex7PrRw1wEsdL/c6pw+LKRsTfw9Y64QeblbuF8K23OiJmAvd9 hvqadv6Ls0kMmSYbYxBJ5GbjMP2ynphXLhuXfpXk/rbW2y6KePxrAuInMpS5UBxjqvTH IGFKHsb81Sju1YtPl2S2aELF4tPUWLA+dCA+ArtvAaqEOZ7OTmh/BFyLloX5jEPiKuNF CAeFvFxdjYKorP7nkeJP2XRVPmTm6gfSkWn3FitAM0Q4mhgLEuuls7j5nikgwi6fYKqH RotDPPA4sT5dbbiS8G0DYyCtbQKj147ikBaUzgEK3e9C+E9DmpsTOjfmSUGW4ZS0FOrw vG8A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=9yxtGa/gxLqBTSBTDmI/ioVNCFPQcS50q3woH6HVfqY=; b=n1LHO7KveSl4s11KHFlSu57IWnVb/XcYB6sEVUntOZOOrUugx7Vkn9MEhDpQRTlghv USWI9GyMpSdZgxVmbw7JbcYASXfkDI8CmI2jeBonqsyyMXW7cmoAzz8Ld/D9UaT5bt41 NIz+gK5k6QKAknSoq7Fe8xCvY+Xs3CY1cTKH7wyY4PapSukQTrEJcH5Tf8QgHIs+yqXs eObemP2DHz9DCY3mVaimsDchUdGKZX4fvZopwfGWFy0eaS5R4hBqzHGTVHAdqUqWxMBo XpSu00glEGwxJRWwGVmUXp5CaYJaVM2Fq5WBYTNssmLntB//IqfRf8wCOzmy5pgCzVo2 g6Qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b="A7lnOu/c"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=FGkMTVPN; 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 v17si9110341edx.78.2022.02.01.00.55.10; Tue, 01 Feb 2022 00:55:34 -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="A7lnOu/c"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=FGkMTVPN; 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 S1353406AbiA2XAx (ORCPT + 99 others); Sat, 29 Jan 2022 18:00:53 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:59169 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353393AbiA2XAt (ORCPT ); Sat, 29 Jan 2022 18:00:49 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 9CEE632008FA; Sat, 29 Jan 2022 18:00:48 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sat, 29 Jan 2022 18:00:49 -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 :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; bh=9yxtGa/gxLqBTSBTDmI/ioVNCFPQcS 50q3woH6HVfqY=; b=A7lnOu/cte98W0Yd2LUMJxPM94Rlhx0+a4zBN6c7tT8UKE AM1aQw0YsXIiZxioTqSo9CdBTTk44+0d6U5cjxxVag/VDtxrXM7n/tmjJ9Dq0MrD fwZwLraW3eoyvZ2QmhSZzyiuOBRrNGEfHVmpmvSjEkQge70GNY7L45pkE++UKIh/ CGTp1bMN+V9c5LH/wnWcvJVgIdqLrrS+aUw1vAaDESXcOwIPDrjFXNB8ESfYE6dq mPkiJsYPmOZO0Y+8JiI0NAiXxhP6bJxb9Jd0jdrNqWB37AuabTCSjV1IsPGqXqi1 l9do80xjgp3fMKATDgpeLtqHCYFC8YHI5218kgYg== 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:in-reply-to:message-id:mime-version :references: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=9yxtGa /gxLqBTSBTDmI/ioVNCFPQcS50q3woH6HVfqY=; b=FGkMTVPN/kfjGsbtecw77p 4vsDkrS5/JGWG9tZ0NfYQy6PxrADf9XYlplf35KdwShvhs0N3iTirRuTHUX7T4US oUmRq20eJyKA+of36/pH/0MO/pE3nj7MDnnDEGzC3wGQYPOODF8jMy+sz36VL+8K suJtg3DWIRu/tM4NmsPZRAUgkFXPizltwwuglEuQHD8nuZnN2nAh89zsDJ5N/vM8 NZ3dHJNY9OoX+LYuqYzGfQedZvHi7KOFZrOXkDC3ZzWfi6/hsDRtcBFqhizxFxIX YbMg2hxZEITYy4e2TJveSFpA2G+INpChrH81BO42Q3dJGdBzFdBgx7xzfBlVNZbA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrfeejgddujedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeelueelgeettdfggfeuffevkefhuddtteeigfevhfdtffdtjefgteeg leeggedvudenucffohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhho lhhlrghnugdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 29 Jan 2022 18:00:47 -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 1/5] dt-bindings: input: Add the PinePhone keyboard binding Date: Sat, 29 Jan 2022 17:00:38 -0600 Message-Id: <20220129230043.12422-2-samuel@sholland.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220129230043.12422-1-samuel@sholland.org> References: <20220129230043.12422-1-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add devicetree support for the PinePhone keyboard case, which provides a matrix keyboard interface and a proxied I2C bus. Signed-off-by: Samuel Holland --- .../input/pine64,pinephone-keyboard.yaml | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/pine64,pinephone-keyboard.yaml diff --git a/Documentation/devicetree/bindings/input/pine64,pinephone-keyboard.yaml b/Documentation/devicetree/bindings/input/pine64,pinephone-keyboard.yaml new file mode 100644 index 000000000000..00f084b263f0 --- /dev/null +++ b/Documentation/devicetree/bindings/input/pine64,pinephone-keyboard.yaml @@ -0,0 +1,90 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/pine64,pinephone-keyboard.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Pine64 PinePhone keyboard device tree bindings + +maintainers: + - Samuel Holland + +description: + A keyboard accessory is available for the Pine64 PinePhone and PinePhone Pro. + It connects via I2C, providing a raw scan matrix, a flashing interface, and a + subordinate I2C bus for communication with a battery charger IC. + +allOf: + - $ref: /schemas/input/matrix-keymap.yaml# + +properties: + compatible: + const: pine64,pinephone-keyboard + + reg: + const: 0x15 + + interrupts: + maxItems: 1 + + linux,fn-keymap: + $ref: /schemas/input/matrix-keymap.yaml#/properties/linux,keymap + description: keymap used when the Fn key is pressed + + wakeup-source: true + + i2c-bus: + $ref: /schemas/i2c/i2c-controller.yaml# + +dependencies: + linux,fn-keymap: [ 'keypad,num-columns', 'keypad,num-rows' ] + linux,keymap: [ 'keypad,num-columns', 'keypad,num-rows' ] + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + keyboard@15 { + compatible = "pine64,pinephone-keyboard"; + reg = <0x15>; + interrupt-parent = <&r_pio>; + interrupts = <0 12 IRQ_TYPE_EDGE_FALLING>; /* PL12 */ + keypad,num-rows = <6>; + keypad,num-columns = <12>; + linux,fn-keymap = ; + linux,keymap = ; + + i2c-bus { + #address-cells = <1>; + #size-cells = <0>; + + charger@75 { + reg = <0x75>; + }; + }; + }; + }; -- 2.33.1