From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754900AbbCBTKe (ORCPT ); Mon, 2 Mar 2015 14:10:34 -0500 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]:40988 "EHLO mail-gw2-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754008AbbCBTKA (ORCPT ); Mon, 2 Mar 2015 14:10:00 -0500 X-IronPort-AV: E=Sophos;i="5.09,676,1418112000"; d="scan'208";a="58363739" Message-ID: <54F4B583.4000005@broadcom.com> Date: Mon, 2 Mar 2015 11:09:55 -0800 From: Arun Ramamurthy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Pawel Moll CC: Rob Herring , Mark Rutland , Ian Campbell , Kumar Gala , Russell King , Jean-Christophe Plagniol-Villard , Tomi Valkeinen , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-fbdev@vger.kernel.org" , Dmitry Torokhov , "Anatol Pomazau" , Jonathan Richardson , Scott Branden , Ray Jui , "bcm-kernel-feedback-list@broadcom.com" Subject: Re: [PATCH] video: ARM CLCD: Added dt support to set tim2 register References: <1424898082-1522-1-git-send-email-arun.ramamurthy@broadcom.com> <1425312688.3092.10.camel@arm.com> In-Reply-To: <1425312688.3092.10.camel@arm.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15-03-02 08:11 AM, Pawel Moll wrote: > On Wed, 2015-02-25 at 21:01 +0000, Arun Ramamurthy wrote: >> Added code based on linaro tree: >> http://git.linaro.org/kernel/linux-linaro-stable.git >> with commit id:6846e7822c4cab5a84672baace3b768c2d0db142 >> at drivers/video/amba-clcd.c. This lets the driver set >> certain tim2 register bits after reading them from >> device tree. >> >> Reviewed-by: Ray Jui >> Reviewed-by: Scott Branden >> Signed-off-by: Arun Ramamurthy >> --- >> .../devicetree/bindings/video/arm,pl11x.txt | 17 ++++++++- >> drivers/video/fbdev/amba-clcd.c | 41 ++++++++++++++++++++++ >> 2 files changed, 57 insertions(+), 1 deletion(-) >> >> diff --git a/Documentation/devicetree/bindings/video/arm,pl11x.txt b/Documentation/devicetree/bindings/video/arm,pl11x.txt >> index 3e3039a..14d6f87 100644 >> --- a/Documentation/devicetree/bindings/video/arm,pl11x.txt >> +++ b/Documentation/devicetree/bindings/video/arm,pl11x.txt >> @@ -35,6 +35,21 @@ Optional properties: >> cell's memory interface can handle; if not present, the memory >> interface is fast enough to handle all possible video modes >> >> +- tim2: Used to set certain bits in LCDTiming2 register. >> + It can be TIM2_CLKSEL or TIM2_IOE or both >> + >> + TIM2_CLKSEL: This bit drives the CLCDCLKSEL signal. It is the select >> + signal for the external LCD clock multiplexor. >> + >> + TIM2_IOE: Invert output enable: >> + 0 = CLAC output pin is active HIGH in TFT mode >> + 1 = CLAC output pin is active LOW in TFT mode. >> + This bit selects the active polarity of the output enable signal in >> + TFT mode. In this mode, the CLAC pin is an enable that indicates to >> + the LCD panel when valid display data is available. In active >> + display mode, data is driven onto the LCD data lines at the >> + programmed edge of CLCP when CLAC is in its active state. >> + > > The existing bindings intentionally avoided quoting internal registers - > they are supposed to describe how the hardware is wired up... > > So how about something like "arm,pl11x,tft-invert-clac"? Then the driver > sets the bit or not, depending on the property existance? > Sure, I can change it to two properties called arm,pl11x,tft-invert-clac and arm,pl11x,tft-clksel. Would that be acceptable? > Pawel >