Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754150AbbLJUdP (ORCPT ); Thu, 10 Dec 2015 15:33:15 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:50637 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751381AbbLJUdM (ORCPT ); Thu, 10 Dec 2015 15:33:12 -0500 From: Karsten Merker To: Maxime Ripard , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, dev@linux-sunxi.org Cc: linux-kernel@vger.kernel.org, Hans de Goede , Rob Herring , Ian Campbell , Karsten Merker Subject: [PATCH 1/3] ARM: dts: sun7i: Olimex A20-SOM-EVB: Add LRADC keys Date: Thu, 10 Dec 2015 21:31:59 +0100 Message-Id: <1449779521-754-2-git-send-email-merker@debian.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1449779521-754-1-git-send-email-merker@debian.org> References: <1449779521-754-1-git-send-email-merker@debian.org> X-Provags-ID: V03:K0:XY2rGFILcRBN4aMq2h6f4ZqjXK1A5PfzsyVnvFct4uvtlX3ukbc cdCJJQPOEAdiOvzNIRx5cTkU5XUkkAn7OynVItgNNFV1xTzTsrSxVLtkjGmOTrypGkw8L52 TfGFFeR0TPz43S6x5coQtqIE8RanOoLhTBXaOQORxW+AX7yex58yoNg06aI4I/Hsl+PiuCN BXE+IKa+x5VaseaAmpeHA== X-UI-Out-Filterresults: notjunk:1;V01:K0:5V1rDxAnV/w=:S7eA6vHjhgqT7jyH1JxxIM /AySkJFVtXwF2QZdP2NRLAiadWA/LRrtmhfsH5rKoWR4TC4vYzJ1yY7UiXLIGQSXAfmtJSiAC WgNOA2oW6msqNgkehOw7qNId61I6CFoH74ly1f8/i/UIuVuZlF2ZN8lwpq6j137JBv0eu2EhK JpIRVRoF1lwKNLgy0v1jrtE8TvLdLvLqdnt3oq1vD1Si7BUfiiI+5DauAPYPpgEKy2GnXrRzs GrR7aGy0eB2BuO4xoFTLXbfZ90c56fkkt2u6XcQAVv7huZUk2sJKwEPVfgbCVxK3rNvOwXEk9 A74LqXF2WWkLNbQnw+qZ0cWhMA/L+V0beZNZazhH4TerafyQ+TOINqTaNDKrCUrazotTqslB+ RIrRCAjLRVuqz2fwuSi8oDRd80vdxy5efZHI3ApJYE5k41cc0V8lZ8OarE3Y2y7Djd/m8Vc34 +XRmJdEu7zKX/6jVuPuxlGk+G91Z3eFnbWNG8fOFabuQdN0+gIg7qew5wNeLZXsaf1pdYLVjY e/zHdiJl9E1Z8P89sbXdjcfQ5LUwY5BXDddh1H1eIMHuU9fVnlLpe8ATdg2vywxd/IhTUz7pk Cz3uAdKth+ld3jkug14zSpz+U06IhtGp4yjyPp6TVTKjEuT8hDIULXkzXNxzroV+mXHL4H9er q0vOdGb7EZH4GJXzT2mhLse7LBgzurF6fpA8RbEcPIxePO2uEM8Bxkv/OmMuniOgtGVc= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2624 Lines: 103 The Olimex A20-SOM-EVB is an evaluation board for the Olimex A20-SOM system-on-module. It provides a set of android-style buttons (labeled "VOL+", "VOL-", "MENU", "SEARCH", "HOME", "ESC" and "ENTER") which are connected to a low-resolution ADC via a resistor network. This patch adds appropriate button definitions to the board dts. The voltages assigned to the keys are specified in the board schematics published by the manufacturer. Signed-off-by: Karsten Merker --- arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts | 56 ++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts b/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts index b7fe102..6562a6bc 100644 --- a/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts +++ b/arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dts @@ -1,5 +1,6 @@ /* * Copyright 2015 - Marcus Cooper + * Copyright 2015 - Karsten Merker * * This file is dual-licensed: you can use it either under the terms * of the GPL or the X11 license, at your option. Note that this dual @@ -45,6 +46,7 @@ #include "sunxi-common-regulators.dtsi" #include +#include #include #include @@ -110,6 +112,60 @@ }; }; +&lradc { + vref-supply = <®_vcc3v0>; + status = "okay"; + + button@190 { + label = "Volume Up"; + linux,code = ; + channel = <0>; + voltage = <190000>; + }; + + button@390 { + label = "Volume Down"; + linux,code = ; + channel = <0>; + voltage = <390000>; + }; + + button@600 { + label = "Menu"; + linux,code = ; + channel = <0>; + voltage = <600000>; + }; + + button@800 { + label = "Search"; + linux,code = ; + channel = <0>; + voltage = <800000>; + }; + + button@980 { + label = "Home"; + linux,code = ; + channel = <0>; + voltage = <980000>; + }; + + button@1180 { + label = "Esc"; + linux,code = ; + channel = <0>; + voltage = <1180000>; + }; + + button@1400 { + label = "Enter"; + linux,code = ; + channel = <0>; + voltage = <1400000>; + }; +}; + &mmc0 { pinctrl-names = "default"; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/