From patchwork Sun Jul 31 15:23:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 9253403 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 E37B3601C0 for ; Sun, 31 Jul 2016 15:23:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D54512848A for ; Sun, 31 Jul 2016 15:23:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA4922848D; Sun, 31 Jul 2016 15:23:42 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7965A2848A for ; Sun, 31 Jul 2016 15:23:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753752AbcGaPXl (ORCPT ); Sun, 31 Jul 2016 11:23:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37684 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753701AbcGaPXf (ORCPT ); Sun, 31 Jul 2016 11:23:35 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DE4AF883A6; Sun, 31 Jul 2016 15:23:27 +0000 (UTC) Received: from shalem.localdomain.com (vpn1-6-127.ams2.redhat.com [10.36.6.127]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u6VFNCw4006607; Sun, 31 Jul 2016 11:23:25 -0400 From: Hans de Goede To: Dmitry Torokhov , Rob Herring Cc: Maxime Ripard , Chen-Yu Tsai , linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree , Hans de Goede Subject: [PATCH 4/4] ARM: dts: sun4i: Describe softbuttons in dserve-dsrv9703c touchscreen node Date: Sun, 31 Jul 2016 17:23:10 +0200 Message-Id: <1469978590-14081-5-git-send-email-hdegoede@redhat.com> In-Reply-To: <1469978590-14081-1-git-send-email-hdegoede@redhat.com> References: <1469978590-14081-1-git-send-email-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Sun, 31 Jul 2016 15:23:27 +0000 (UTC) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The dserve-dsrv9703c touchscreen has 3 softbuttons, describe these in the dts. Signed-off-by: Hans de Goede --- arch/arm/boot/dts/sun4i-a10-dserve-dsrv9703c.dts | 49 ++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10-dserve-dsrv9703c.dts b/arch/arm/boot/dts/sun4i-a10-dserve-dsrv9703c.dts index 893497e..92e15e4 100644 --- a/arch/arm/boot/dts/sun4i-a10-dserve-dsrv9703c.dts +++ b/arch/arm/boot/dts/sun4i-a10-dserve-dsrv9703c.dts @@ -78,6 +78,18 @@ max-microvolt = <3000000>; }; + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&led_pins>; + + touchscreen_softbuttons_led { + label = "dsrv9703c:white:touschscreen-softbuttons"; + gpios = <&pio 0 5 GPIO_ACTIVE_HIGH>; /* PA5 */ + linux,default-trigger = "touschscreen-softbuttons"; + }; + }; + reg_motor: reg_motor { compatible = "regulator-fixed"; pinctrl-names = "default"; @@ -140,6 +152,36 @@ reset-gpios = <&pio 1 13 GPIO_ACTIVE_LOW>; touchscreen-size-x = <1024>; touchscreen-size-y = <768>; + + button@0 { + label = "Esc"; + linux,code = ; + softbutton-min-x = <1084>; + softbutton-max-x = <1098>; + softbutton-min-y = <0>; + softbutton-max-y = <49>; + linux,led-trigger = "touschscreen-softbuttons"; + }; + + button@1 { + label = "Home"; + linux,code = ; + softbutton-min-x = <1084>; + softbutton-max-x = <1098>; + softbutton-min-y = <50>; + softbutton-max-y = <99>; + linux,led-trigger = "touschscreen-softbuttons"; + }; + + button@2 { + label = "Menu"; + linux,code = ; + softbutton-min-x = <1084>; + softbutton-max-x = <1098>; + softbutton-min-y = <100>; + softbutton-max-y = <149>; + linux,led-trigger = "touschscreen-softbuttons"; + }; }; }; @@ -191,6 +233,13 @@ allwinner,pull = ; }; + led_pins: led_pins@0 { + allwinner,pins = "PA5"; + allwinner,function = "gpio_out"; + allwinner,drive = ; + allwinner,pull = ; + }; + motor_pins: motor_pins@0 { allwinner,pins = "PB3"; allwinner,function = "gpio_out";