From patchwork Fri Dec 22 15:07:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 10130651 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 C1EA560318 for ; Fri, 22 Dec 2017 15:11:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C48AC29FB5 for ; Fri, 22 Dec 2017 15:11:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8FF92A05A; Fri, 22 Dec 2017 15:11:03 +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 6357029FB5 for ; Fri, 22 Dec 2017 15:11:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756639AbdLVPKe (ORCPT ); Fri, 22 Dec 2017 10:10:34 -0500 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:15795 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756643AbdLVPKa (ORCPT ); Fri, 22 Dec 2017 10:10:30 -0500 X-IronPort-AV: E=Sophos;i="5.45,441,1508828400"; d="scan'208";a="10402517" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 22 Dec 2017 08:10:29 -0700 Received: from eh-station.mchp-main.com (10.10.76.4) by chn-sv-exch07.mchp-main.com (10.10.76.108) with Microsoft SMTP Server id 14.3.352.0; Fri, 22 Dec 2017 08:10:28 -0700 From: Eugen Hristev To: , , , , , , , , , CC: Eugen Hristev Subject: [PATCH 14/14] ARM: dts: at91: sama5d2: Add resistive touch device Date: Fri, 22 Dec 2017 17:07:21 +0200 Message-ID: <1513955241-10985-15-git-send-email-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513955241-10985-1-git-send-email-eugen.hristev@microchip.com> References: <1513955241-10985-1-git-send-email-eugen.hristev@microchip.com> MIME-Version: 1.0 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 Add the resistive touchscreen device, and the cell numbers to the ADC device. Signed-off-by: Eugen Hristev --- arch/arm/boot/dts/sama5d2.dtsi | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index b1a26b4..30b3797 100644 --- a/arch/arm/boot/dts/sama5d2.dtsi +++ b/arch/arm/boot/dts/sama5d2.dtsi @@ -402,7 +402,6 @@ compatible = "atmel,hlcdc-display-controller"; #address-cells = <1>; #size-cells = <0>; - port@0 { #address-cells = <1>; #size-cells = <0>; @@ -1431,6 +1430,17 @@ atmel,max-sample-rate-hz = <20000000>; atmel,startup-time-ms = <4>; atmel,trigger-edge-type = ; + #io-channel-cells = <1>; + #io-trigger-cells = <1>; + status = "disabled"; + }; + + resistive_touch: resistive-touch { + compatible = "microchip,sama5d2-resistive-touch"; + io-channels = <&adc 19>, <&adc 20>, <&adc 21>; + io-channel-names = "x", "y", "pressure"; + io-triggers = <&adc 1>; + microchip,pressure-threshold = <10000>; status = "disabled"; };