From patchwork Wed Mar 27 02:33:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Ond=C5=99ej_Jirman?= X-Patchwork-Id: 10872419 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 76FC71390 for ; Wed, 27 Mar 2019 02:34:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5EAAB2898D for ; Wed, 27 Mar 2019 02:34:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E296289C7; Wed, 27 Mar 2019 02:34:16 +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=-3.4 required=2.0 tests=BAYES_00,DKIM_ADSP_DISCARD, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F39CB2898D for ; Wed, 27 Mar 2019 02:34:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sivoUA7OZUiN4NIDucaJUEWkZuQv0/suCoLCQsk3/tA=; b=jIZFq8k6o/ixec kWzbwsgnoIBVwR40u23R6BTCjDv/5xZneQxOQKg7kcgCgj4E8EvzUsi6bgTpdPX+NGsJzNroHQyJH J3t7PDfJL7MEQGLhL8fnxy5BZ2xqJFNOQxYfs79P5BI0GXrOXJe504ga9kAoNHZDt3n+5VroyKjO8 OqSlkkf6ie18kn4LAsRkfeYFKNPhGpz/OTiJnj5ZNQwAavFS2FzJ+1xXkf3GtojLRITJbXgFdwrao EDYJveKYqJP/7oI5zS3O2dl6JHWKiGkLXkdhbw+yqBCe3ErXQO7XLUCIzvkRL8OhsEZ7T8wN14guc SZQ8zuaEUAEZU89dDZEQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8yOH-00017v-3A; Wed, 27 Mar 2019 02:34:09 +0000 Received: from vps.xff.cz ([195.181.215.36]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8yNz-0000rh-Te for linux-arm-kernel@lists.infradead.org; Wed, 27 Mar 2019 02:33:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1553654028; bh=wkW4pbocJoS4nnoajhIfit3K4302v+XeqpmoPTPOOQc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oLYE+U6Sf3SpGc5riCsPyws50QH/mk7RuImUPGTVzChTRscFN4kKOASn9zkpR8Gv7 vdtM1g6HE3TGsPJs/QLJxySOdsXCBLfle6ID2EHdGjkORYj66z30PUy3TgSAHJk50U LN2YMqbnzEfDIgK5gE7g83IgSRgyF2v1E+wUiFPY= From: megous@megous.com To: maxime.ripard@free-electrons.com, wens@csie.org, robh@kernel.org, Dmitry Torokhov , mark.rutland@arm.com Subject: [PATCH RESEND v4 4/4] ARM: dts: sun8i: tbs-a711: Add support for volume keys input Date: Wed, 27 Mar 2019 03:33:39 +0100 Message-Id: <20190327023339.25975-5-megous@megous.com> In-Reply-To: <20190327023339.25975-1-megous@megous.com> References: <20190327023339.25975-1-megous@megous.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190326_193352_494380_1DAD9E33 X-CRM114-Status: UNSURE ( 8.06 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ondrej Jirman , devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, hdegoede@redhat.com, Ziping Chen , linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ondrej Jirman TBS A711 tablet has volume up/down keys connected to r_lradc. Add support for these keys. Signed-off-by: Ondrej Jirman --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts index 1e840ab5a541..6ecdc11b7059 100644 --- a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts +++ b/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts @@ -46,6 +46,7 @@ #include #include +#include / { model = "TBS A711 Tablet"; @@ -200,6 +201,25 @@ status = "okay"; }; +&r_lradc { + vref-supply = <®_aldo2>; + status = "okay"; + + button@210 { + label = "Volume Up"; + linux,code = ; + channel = <0>; + voltage = <210000>; + }; + + button@410 { + label = "Volume Down"; + linux,code = ; + channel = <0>; + voltage = <410000>; + }; +}; + &r_rsb { status = "okay";