From patchwork Mon Jul 16 10:11:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10526413 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8094D6020A for ; Mon, 16 Jul 2018 10:28:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6749028977 for ; Mon, 16 Jul 2018 10:28:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5BDA8289A2; Mon, 16 Jul 2018 10:28:54 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI 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 ED52D28977 for ; Mon, 16 Jul 2018 10:28:53 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=4k5HTiSKAsd7al+9oNySgWS7cuspbTCiGsLDTed8+sM=; b=VkW9w8vMevqAHfBnO9Oq0dw2FS 2zUV/JXL9Niafs4zFFpUUzJH0c3VTjMaHnVPElniMLphn6xq8+MUmVUoG/CJ9RJCZRJVN6WI/mAbz vEbDORhbxwJKZqQRZkNxq1PCe3AN8lJFKFotNt21PniiTqgZFZgP4Bhg540gc62CGHj7EQ53oej1e A8eylAYu349cpfqQnasPhy/adgzX9LuHyAmcLLCd6qFJIeI8qIAs/F9yH+PbzfPNPuyC/F3S835bE hV+XKlVRN9M+RmLeq8UmkfUJDKvMiBb1JMHxmirMhu3yuB5uf24C0mtvXtES2l4JP7am0VA6VF+9y u+Ok0ZVg==; 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 1ff0kJ-0000ub-Im; Mon, 16 Jul 2018 10:28:47 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ff0k5-0000El-EU for linux-arm-kernel@bombadil.infradead.org; Mon, 16 Jul 2018 10:28:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jsAPxDrKmDni+9ip5t209bPE6nwgW1vjStnIwuNytC4=; b=As0LlWcQhIl5HzMlE9RoBc+W8 faxq522Hi7YHTejs0X3902yFgGvveQfORhwQzQCiOwSvbWMnxTJ6X+0t2/UT5N2R4+L/kYvpioZBA bQtw4sP18D/LOq08Chnbn17GlLC1Gl20ColM8eVUGWEv0yEE32FPAsH9WjOWuQVqet2nU12m/to9r oehjCvTli+wV4Mg0PxwpKaCWQKLOsPppOqRmR9ZRU89U/nqSEVvLN/K0gFVQM72c8tbJT/aIjswxg 9GvToPetSiWD7tnFcsImMT6Y7JrqNsSQLCnCFx1RAwAQaurtC87zxd86z/FGPTtBYrwnqumwJZ9r5 bzvBoO2Kw==; Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ff0UD-0002Oi-GM for linux-arm-kernel@lists.infradead.org; Mon, 16 Jul 2018 10:12:17 +0000 Received: by mail-wr1-x444.google.com with SMTP id c13-v6so31236608wrt.1 for ; Mon, 16 Jul 2018 03:11:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jsAPxDrKmDni+9ip5t209bPE6nwgW1vjStnIwuNytC4=; b=l/nqQ5zSR95a4wF5kc4HB3HM9h5LVTCQpz12iVgWIGNLqQeNtyjJu0+rQI7sOOxtVa KyJMzooYjs+nxv1K+JVBNr6ANFhyrPdz8ej0wZo7YK5XsMGZ/kYo/z+ZzHsWXMvh5pBj rR7gePXwJjIH1xsgaW54efZ7H10WnAvshSYwjWsYQplriD2Cfd8HYLe9yx12S1eqHJ4J an3b3r9vSzCMPBHWdAKX0QydhilYwanZFgcTMjf2J5Oe2bCC588po/wgR2MziHIowtMb bNeIKSDxuL37CLWEPwdyxD58tR+qo7Wvm9NqwKd11sR4VspuTvydfFFXF1CMPGtxPnrt GK0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jsAPxDrKmDni+9ip5t209bPE6nwgW1vjStnIwuNytC4=; b=uaohxROeym1rqWU+OWvBZB1YDV4QYvL02pO0IkCFc+cwTcZI4rSV+AUQbghzSbO06t upe+gnkNWPFl6c8A7KyEgbaHrZemUn5UAxKt5LHRu++69878OvrIni1LNyCORgYmbfk8 b5qffLPrOwlXHomT9VlTcA0pG/zSsLmhl1OTRhFrJm95MEplaPZ0lRcZTkm0drfkzGGV i7sSbiQm2Dgo8Yi1qnlbZW7sket5bCnkN5tIWFJX5Wyiy1L2hOsTv8qAWhKQh49FpjRK au0YCLDlIyYCEian8AWOgV1rdeLA/YngA8oksQRfpux6Kh2eFH3VOeQLdIIc5eMbSwZI q1mA== X-Gm-Message-State: AOUpUlH0kvI1FpR7h+TkyMPpOm78UIbjRh6qnJBvgnFVGIoi6VUfRsJN uudoxi9SqcP33Wttp08C9zjTiQ== X-Google-Smtp-Source: AAOMgpfHckAkHyWL79jz03q9gnV7Q/zNWBzUCb4j8+KTo/E4ZMoky9/QWM4U1bWZUJIFsGvMoQWdkQ== X-Received: by 2002:adf:dfcd:: with SMTP id q13-v6mr11210848wrn.113.1531735917105; Mon, 16 Jul 2018 03:11:57 -0700 (PDT) Received: from boomer.lan (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.googlemail.com with ESMTPSA id h14-v6sm10219094wro.15.2018.07.16.03.11.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Jul 2018 03:11:56 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Subject: [PATCH 2/6] ARM64: dts: meson-axg: add adc buttons the S400 Date: Mon, 16 Jul 2018 12:11:47 +0200 Message-Id: <20180716101151.31109-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180716101151.31109-1-jbrunet@baylibre.com> References: <20180716101151.31109-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180716_111209_565142_70A7B8CD X-CRM114-Status: GOOD ( 12.15 ) 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: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 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 Add the 6 adc buttons of the amlogic S400 Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-axg-s400.dts | 44 ++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts index f389f84be2e2..fd90fa4a282c 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts +++ b/arch/arm64/boot/dts/amlogic/meson-axg-s400.dts @@ -6,11 +6,55 @@ /dts-v1/; #include "meson-axg.dtsi" +#include / { compatible = "amlogic,s400", "amlogic,a113d", "amlogic,meson-axg"; model = "Amlogic Meson AXG S400 Development Board"; + adc_keys { + compatible = "adc-keys"; + io-channels = <&saradc 0>; + io-channel-names = "buttons"; + keyup-threshold-microvolt = <1800000>; + + button-next { + label = "Next"; + linux,code = ; + press-threshold-microvolt = <1116000>; /* 62% */ + }; + + button-prev { + label = "Previous"; + linux,code = ; + press-threshold-microvolt = <900000>; /* 50% */ + }; + + button-wifi { + label = "Wifi"; + linux,code = ; + press-threshold-microvolt = <684000>; /* 38% */ + }; + + button-up { + label = "Volume Up"; + linux,code = ; + press-threshold-microvolt = <468000>; /* 26% */ + }; + + button-down { + label = "Volume Down"; + linux,code = ; + press-threshold-microvolt = <252000>; /* 14% */ + }; + + button-voice { + label = "Voice"; + linux,code = ; + press-threshold-microvolt = <0>; /* 0% */ + }; + }; + aliases { serial0 = &uart_AO; serial1 = &uart_A;