From patchwork Tue Feb 9 08:57:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raveendra Padasalagi X-Patchwork-Id: 8258921 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 86C859F8AA for ; Tue, 9 Feb 2016 09:06:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A70DA201EF for ; Tue, 9 Feb 2016 09:06:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AB31720218 for ; Tue, 9 Feb 2016 09:06:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755446AbcBIJF5 (ORCPT ); Tue, 9 Feb 2016 04:05:57 -0500 Received: from 5520-maca-inet1-outside.broadcom.com ([216.31.211.11]:26628 "EHLO mail-irv-18.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754175AbcBIJFs (ORCPT ); Tue, 9 Feb 2016 04:05:48 -0500 Received: from mail-irva-13.broadcom.com (mail-irva-13.broadcom.com [10.11.16.103]) by mail-irv-18.broadcom.com (Postfix) with ESMTP id 05B358203F; Tue, 9 Feb 2016 00:58:03 -0800 (PST) Received: from rpadasal-OptiPlex-7010.ban.broadcom.com (unknown [10.131.91.108]) by mail-irva-13.broadcom.com (Postfix) with ESMTP id 0596240FE6; Tue, 9 Feb 2016 00:57:53 -0800 (PST) From: Raveendra Padasalagi To: Dmitry Torokhov , Russell King , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Jonathan Richardson , Jon Mason , Florian Fainelli , Ray Jui , Scott Branden , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Raveendra Padasalagi Subject: [PATCH 1/3] input: cygnus-update touchscreen dt node document Date: Tue, 9 Feb 2016 14:27:55 +0530 Message-Id: <1455008277-8312-2-git-send-email-raveendra.padasalagi@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455008277-8312-1-git-send-email-raveendra.padasalagi@broadcom.com> References: <1455008277-8312-1-git-send-email-raveendra.padasalagi@broadcom.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Touch screen driver is modified to use syscon framework based register read/write API's. So added syscon node and related changes in dt file.Updating the device tree documentation file to reflect the changes. Signed-off-by: Raveendra Padasalagi Reviewed-by: Ray Jui Reviewed-by: Scott Branden --- .../input/touchscreen/brcm,iproc-touchscreen.txt | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/input/touchscreen/brcm,iproc-touchscreen.txt b/Documentation/devicetree/bindings/input/touchscreen/brcm,iproc-touchscreen.txt index 34e3382..67599ae 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/brcm,iproc-touchscreen.txt +++ b/Documentation/devicetree/bindings/input/touchscreen/brcm,iproc-touchscreen.txt @@ -2,8 +2,16 @@ Required properties: - compatible: must be "brcm,iproc-touchscreen" -- reg: physical base address of the controller and length of memory mapped - region. + +One of the below 2 property is mandatory. +- ts_syscon: handler of syscon node defining physical base address + of the controller and length of memory mapped region. + If this property is selected please make sure MFD_SYSCON config + is enabled in the defconfig file. +or +- reg: physical base address of the controller and length of memory + mapped region. + - clocks: The clock provided by the SOC to driver the tsc - clock-name: name for the clock - interrupts: The touchscreen controller's interrupt @@ -54,12 +62,16 @@ Optional properties: - touchscreen-inverted-y: Y axis is inverted (boolean) Example: + ts_adc_syscon: ts_adc_syscon@0x180a6000 { + compatible = "syscon"; + reg = <0x180a6000 0xc30>; + }; touchscreen: tsc@0x180A6000 { compatible = "brcm,iproc-touchscreen"; #address-cells = <1>; #size-cells = <1>; - reg = <0x180A6000 0x40>; + syscon = <&ts_adc_syscon>; clocks = <&adc_clk>; clock-names = "tsc_clk"; interrupts = ;