From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753448AbeCPQu2 (ORCPT ); Fri, 16 Mar 2018 12:50:28 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:37297 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750766AbeCPQuX (ORCPT ); Fri, 16 Mar 2018 12:50:23 -0400 X-Google-Smtp-Source: AG47ELvEMlT2558K1TF3eBLaoC6cdpFldP9BHMNQLb0UGdPP/rGAnEfuh/2vRB5PpoFrga8b2h8Ppg== Date: Fri, 16 Mar 2018 12:50:21 -0400 From: Sean Paul To: Alexandru M Stan Cc: David Airlie , Rob Herring , Mark Rutland , Archit Taneja , Andrzej Hajda , Laurent Pinchart , Sean Paul , devicetree@vger.kernel.org, Enric Balletbo i Serra , Heiko Stuebner , briannorris@chromium.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, dianders@chromium.org, linux-rockchip@lists.infradead.org, marcheu@chromium.org, hoegsberg@chromium.org, Thierry Escande , Jeffy Chen , Yakir Yang , Daniel Vetter , zain wang , Sylwester Nawrocki , Marek Szyprowski Subject: Re: [PATCH 0/2] Add backlight-pwm-passthru in analogix DP driver Message-ID: <20180316165021.GG223881@art_vandelay> References: <20180316025659.217423-1-amstan@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180316025659.217423-1-amstan@chromium.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 07:56:57PM -0700, Alexandru M Stan wrote: > I noticed that the backlight on the ASUS Chromebook Flip C101 (bob) is > flickering. > > We're sending it a high frequency pwm signal, but the EDP panel decided to > "parse" the signal, read the duty cycle, then make its own signal that > it sends to the LEDs. > > So even though we send a nice high refresh rate at 1200Hz, the panel backlight > flickers at 200Hz (which is not even divisible by the 60Hz refresh rate). > > The fix for that is to enable the EDP_BACKLIGHT_FREQ_PWM_PIN_PASSTHRU bit from > the DPCD EDP registers. This makes the panel actually follow the signal > we're giving it. > > This series includes the optional dt binding to enable this fix > (backlight-pwm-passthru) and the corresponding code in the analogix > drm/bridge driver. > Thanks for sending these patches! With Archit and Daniel's comments addressed, feel free to add my Reviewed-by: Sean Paul > > Alexandru M Stan (2): > dt-bindings: analogix-dp: Add backlight-pwm-passthru > drm/bridge: analogix: Enable EDP_BACKLIGHT_FREQ_PWM_PIN_PASSTHRU > > .../bindings/display/bridge/analogix_dp.txt | 4 ++ > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 48 ++++++++++++++++++++++ > drivers/gpu/drm/bridge/analogix/analogix_dp_core.h | 1 + > 3 files changed, 53 insertions(+) > > -- > 2.13.5 > -- Sean Paul, Software Engineer, Google / Chromium OS