From patchwork Fri Jul 13 11:54: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: 10523117 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 074FE6032C for ; Fri, 13 Jul 2018 11:55:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8BB929A0C for ; Fri, 13 Jul 2018 11:55:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA67229A36; Fri, 13 Jul 2018 11:55:09 +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 8809329A0C for ; Fri, 13 Jul 2018 11:55:09 +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: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:In-Reply-To: References:List-Owner; bh=4k5HTiSKAsd7al+9oNySgWS7cuspbTCiGsLDTed8+sM=; b=B7e uVBkRknbAXmTvJ3uBDdDG8JVs6MnJjMD5VQfDHafnWr6B9Ph7VS2EJ3HxkqPIfm9ggWt1glgSDNmp cgpL+7ep56NQK4t4iHa0zNudbAWEwSL++UFgAL/eMxKEfICz0yeR0WHRCzUPHad8LBUJSdNG3iljt xb3jWbFG3IVBqe2EYnfYHeHMWa48Gohx/JhCaVvDR+jVIegSpBnCTlhzNrAFyAHQI/sUAdaMT/m+H sTOrr2ycnOKU0KIe+C3kDOYtjxJSSL1JAmTdK8EMrkfK/ivD8e2qX0ILMI1py33W/zG1j35He53Uu kHW/HWPHheqkoyobOWSgdQTTJKaKbRQ==; 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 1fdwfC-0001Zl-L5; Fri, 13 Jul 2018 11:55:06 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fdwf8-0000zU-UG for linux-arm-kernel@lists.infradead.org; Fri, 13 Jul 2018 11:55:04 +0000 Received: by mail-wm0-x244.google.com with SMTP id s13-v6so4344069wmc.1 for ; Fri, 13 Jul 2018 04:54:52 -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; bh=jsAPxDrKmDni+9ip5t209bPE6nwgW1vjStnIwuNytC4=; b=ob/Gz964DMVBW1liD+vFCAwDL+w+x/wbcvF5gL9tfb+gF9m4QREMuxsM0FSITD/ekX /LOP0wmU+LhxsYMl/eRjW+kpJHH6BiNMOBHlGXiGWjihWdBiUSgRgjHjBtiqaiZ8sRzq jZY7lRckJ8xqeUEsjW8TaGiNOU4AbWvOHUv50RKtUDpakyWrzoT63ieORchcWqXWSUXg 5/rZGOgnTbPGIBk8cHeJbyihZE55cYHZCRfPcJWbA6Ju7hJoPU70XRun6ukquVlekiP2 Evc8IyXjMY02e2ccQVRnBNOdFu7BjtWVbadOIA+nxrcUWUSlOcyExdgFuL+nbZ/Pgt/g jraw== 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; bh=jsAPxDrKmDni+9ip5t209bPE6nwgW1vjStnIwuNytC4=; b=WkDKeFuPMfv06SNmtShjOJgiY8ZQ3FY5y71Nr1EVssGu0pTuHHDvS7Eg8/IDFU7qdJ ILeRazUrEK+BEzL8gF8ddH/oyenITj9k6is1ci8bdx1bIi5JX4Kqc62nuXh2ccXAT6eo 1B0RbCFWrdkwN8SaWzr4VRl5aJ6xBqA8BLLrWPlroCLaII77GKnwtv+lokHNVav0i3oW zQexS5T0mrwS0WVnob20DNDktF+SMcg4un2f1OBBZs6FfhQANkRHWA8+26QhQn5UmNzl hjb8MD1xDXgpmVjerjGBSVDZet1RRKqQwLAynK7khLSQShoG03IinswTe7BPmSsk7KPp M02g== X-Gm-Message-State: AOUpUlHkT339JZagT2igBOOBEAkmAv4YVkzy0lS9QhsF8vK5oiYeYDoR 8YlwJuztZHqPLdw0GhE8o7/U0w== X-Google-Smtp-Source: AAOMgpc1S3v3Rr1W05BsB5gGUMqNwRT6chmlM6mIYOmMXGx4ts//pIXKr4s0NeVb+dp/IyMHYw7GYg== X-Received: by 2002:a1c:d6cf:: with SMTP id n198-v6mr3948632wmg.61.1531482891180; Fri, 13 Jul 2018 04:54:51 -0700 (PDT) Received: from boomer.baylibre.local ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id u185-v6sm904756wmg.25.2018.07.13.04.54.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Jul 2018 04:54:50 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione Subject: [PATCH] ARM64: dts: meson-axg: add adc buttons the S400 Date: Fri, 13 Jul 2018 13:54:47 +0200 Message-Id: <20180713115447.2868-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.14.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180713_045503_003160_E25872E7 X-CRM114-Status: UNSURE ( 9.37 ) 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: devicetree@vger.kernel.org, linux-amlogic@lists.infradead.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;