Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp349726pxb; Tue, 1 Feb 2022 00:56:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcn3VnE+wXm2CtifeQPw6M2sTE6YsdVYIOqCfeLpRzxvMKwJQlQ9knq11DunjYZlcpWEPa X-Received: by 2002:aa7:cc08:: with SMTP id q8mr2690607edt.418.1643705763764; Tue, 01 Feb 2022 00:56:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643705763; cv=none; d=google.com; s=arc-20160816; b=rY/uPTHAJOAP1XrZs+mkFmAhhMr4dvUjPM4VafAndHhel8iVsDdtUyIAn2qwRc9iqr NF12pWoVNzGm08EEGRHVSGPkvog47Jek2U9b930u7V+ruyaS93Kitb4XlsmOozYco8ky iwPSKN77XbaUs6g/9rknBZn/HRk0zCRMyW9ULng2W17JTqlFzbpwBrPS4Z43QIPdR8Ys 7VwSCgthjnk4qlEvXMpbVjQaWwDcHir97fW3FDcNnK/SY6HxM0iUlL504ZTsArXnYnwX MRxuGEAMKHhZwdN432rNUF8/L46IvC9PdI5dR3TCY0IBW/B6H7sMTmJp6mv6j5KDlUn3 6mrQ== 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=KaJi6i1rcpG62yHLxKEhKW/9uykM7gg7A3y7usLAY7o=; b=nU2ghWkegdkmutskn215z08gLlVCMGavYNEC4IZCowVQQH4n4AVPparDLIje5Y9Osi 2rOheCL4pTgTKfsdm7gktwYVf865Dr8zwSaod1ApA2JFwM+YSSOf536211YsdxQQTKJl tZNVDJc+vUrzls0wgAhBf9+HMbOPbC5fHKZh1QSEQiUZwg760/P0PjySHQNiGPZiWFa7 TLi5EyuVahLVimOmEoXQRtXd5KrhgaYf0OlYL0fq//lEqhReOXat9oQLPPoe/sZ/TkqN q18z43kWSdMnZ0YyuU/73nOAYSR++wa4K6LrhVulIJ9YWrUgSGFZXTlBfAHaTAchaUFQ bZ6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=oVF8yBuw; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=fOo321Vp; 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.39; Tue, 01 Feb 2022 00:56:03 -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=oVF8yBuw; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=fOo321Vp; 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 S1353512AbiA2XBN (ORCPT + 99 others); Sat, 29 Jan 2022 18:01:13 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:41237 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353449AbiA2XBB (ORCPT ); Sat, 29 Jan 2022 18:01:01 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id CEDFA3200C6B; Sat, 29 Jan 2022 18:00:59 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 29 Jan 2022 18:01:00 -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=KaJi6i1rcpG62yHLxKEhKW/9uykM7g g7A3y7usLAY7o=; b=oVF8yBuw077qKkvBIeh/qAs4mNm9itM9TlGO/vZrmoU4TU 9twmdPOAGna6DE/QoGOVOzgkN8UHe3R27egreQ27tQJJuK0SDOf+1ZPxaYomaIMQ EcDLYvLFyxFpbQgBESAlCSHfc8Z/vZfjbPYScgmqYxEeDYG8B/xbrRXg1xxmPk3H 2bFQZAROxBkMzTosbWy74aVUISfgrzTCrw0sG0UWEfaXNytWvipwMcXwDqNrJ/Xq FnpyS1Vy18lAaJEPDW2vlNeVsCkqqq97AfomPWIBUNR94FbqlotgUs8e3XFdSdQV qkxiHen9sTgmJfsNMQngzRt2dJbjL1qaSTCuKa5A== 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=KaJi6i 1rcpG62yHLxKEhKW/9uykM7gg7A3y7usLAY7o=; b=fOo321VpFKHEDGKtZDhAdF itndNBHxmgZ79bb2owxng3DMR2PWDOfYk3ZayN+kxCdcCxjWpBw4ibcdnO7ZsWxI HSKbRVccrugHqUJt8hINAej+sYbmj3TWsX7DiUbcNmis/qgDWB+YP/jCD21J74NE QWUMzeZ0znPUHVbkUierrlTF4pzvbBImuhlEoyhzrZYCRF0+JzCbpd1gP9h/S7J1 hq5hpvyQ6oaBdL/nOa3zHTXPJAOYA0+FaTejQOKIKddnTp3pwF3uTgDuYNIWPOuf I/TAQZQ5C+UlPkefQ6bxgXVbQgGTA4fe0UzB+P8hPnZoXZNdIwkRm3QrcuCB/tUw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrfeejgdduieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefurghmuhgv lhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenucggtf frrghtthgvrhhnpeduhfejfedvhffgfeehtefghfeiiefgfeehgfdvvdevfeegjeehjedv gfejheeuieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 29 Jan 2022 18:00:58 -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 5/5] [DO NOT MERGE] arm64: dts: allwinner: pinephone: Add keyboard Date: Sat, 29 Jan 2022 17:00:42 -0600 Message-Id: <20220129230043.12422-6-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 The official PinePhone keyboard accessory connects to the phone's POGO pins for I2C and interrupts. It has an Injoinic IP5209 power bank IC connected to the keyboard's internal I2C bus. Signed-off-by: Samuel Holland --- .../dts/allwinner/sun50i-a64-pinephone.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi index 87847116ab6d..2fa1bdf8aa63 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi @@ -208,6 +208,24 @@ accelerometer@68 { /* Connected to pogo pins (external spring based pinheader for user addons) */ &i2c2 { status = "okay"; + + keyboard@15 { + compatible = "pine64,pinephone-keyboard"; + reg = <0x15>; + interrupt-parent = <&r_pio>; + interrupts = <0 12 IRQ_TYPE_EDGE_FALLING>; /* PL12 */ + wakeup-source; + + i2c-bus { + #address-cells = <1>; + #size-cells = <0>; + + charger@75 { + compatible = "injoinic,ip5209"; + reg = <0x75>; + }; + }; + }; }; &lradc { -- 2.33.1