From patchwork Wed Mar 27 00:25:01 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: 10872347 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 9EDE9139A for ; Wed, 27 Mar 2019 00:37:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82DD128C0C for ; Wed, 27 Mar 2019 00:37:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7551828D6B; Wed, 27 Mar 2019 00:37:07 +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 B88D528D6A for ; Wed, 27 Mar 2019 00:37:06 +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=onmjuNUVLrTli0 RSWLHaTJZKlhbT9lgyONQstp/Fp7vGPJXcoQ6UHvzslJtMj/xaB/UUlgXfu07+UQrlAec0XLeTyKX Cu5UUcmCEKPnAr9VurdOrEk6KJ+On5QszVeSqdm7tlQSA/zJX8Ah2hZgwvNSyx+hpFeKlQAO2JtkI x3DneDlMaHuP+2S15DIAkKLOWe2LqGiKpg4zyx9tE4HkOqruEqspTlUyqmOOKjWP5ZwHbyHZItWBN txMIZWeVBC7mYUytWa6nA12KaRjIellLkK9EeXbAB0w4sBVVY9NMX3lp6hWMoEv0L9qlJ+cWajROc 9YeknYZCre5mYiljgXZQ==; 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 1h8wYz-0004Um-MD; Wed, 27 Mar 2019 00:37:05 +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 1h8wNQ-0007EY-Us for linux-arm-kernel@lists.infradead.org; Wed, 27 Mar 2019 00:25:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1553646307; bh=wkW4pbocJoS4nnoajhIfit3K4302v+XeqpmoPTPOOQc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kBoHUS+EDsBYfceR4iTtz/GxwZ72nyfLEkftbqCuQdKI5PMiOo9nsFG5jaFJe1C1U G5dcvlGeamf+MB/5fLVZML9tQpKM/ToaO6nD9btvjBb6kdSIYt03NyGd+hBi7O5+zM hgDIdy+bf4F7xCFQ9jJallcX4WzEUOy310A5ZH6k= From: megous@megous.com To: maxime.ripard@free-electrons.com, wens@csie.org, robh@kernel.org, mark.rutland@arm.com Subject: [PATCH v4 4/4] ARM: dts: sun8i: tbs-a711: Add support for volume keys input Date: Wed, 27 Mar 2019 01:25:01 +0100 Message-Id: <20190327002501.4630-5-megous@megous.com> In-Reply-To: <20190327002501.4630-1-megous@megous.com> References: <20190327002501.4630-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_172509_255311_335661C1 X-CRM114-Status: UNSURE ( 8.17 ) 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, Ziping Chen , 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";