Received: by 10.213.65.68 with SMTP id h4csp507228imn; Fri, 16 Mar 2018 09:51:44 -0700 (PDT) X-Google-Smtp-Source: AG47ELvJDxwF5Y6cIXQi5hDdz1r/pC4291U0mGDuOiPC55pbYBDfwgyHhtYb4cTiu5xD9Tu0Znkb X-Received: by 2002:a17:902:167:: with SMTP id 94-v6mr2894582plb.294.1521219104602; Fri, 16 Mar 2018 09:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521219104; cv=none; d=google.com; s=arc-20160816; b=NdtMLbPoVVHthygK5i4ftW41p178WspU+S/mY0kcDFwEH7F/LAraWTN9ZzK9Cpz0Ql lG5caFZVy7aYquV//bKSyISj+Vdk0J20IhXA4vWBFt6Yf5nbPNGckRchZVIEXA587gp6 wPzpR6uHvig7oBb0drbWLmYDckj9e+5L+Gxx7Z4bmPXZLl4nMuURF5ChPywY6hhfuSLv UBUzj90mhLo9oVnwt56UERX3DqgaoMSEzdRRNnUSxHtdbovVF00++Qg47VBqdEiGxPdY N5c/232ZdoiALOKzFJQZY3QmwCTWIuPhCDKWA+P/rcOpBRnnsTFfAtX7/iAQw6neKqyr lEcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=cCQkquatvbdtmbKo5AdQS007QXLeSsxDE7SuC1rpX78=; b=wCQupGW0GYAMgQuc0XOpppPEvMe8gyq1Ac66SIkRTBXD+K4mojVIcYeRcDG3Ai7StM qb1cpbZ1nB/2UJuwCvMyrXqUf2ZhblEAjqleZitBp0fX2j5PA17T5nlGiPTBLJZYeRxN Z8MLB6F0TTeWxikZG684hA+V12qKLJH1ib3/Wx69n6GwBLXV4FOHNHGDknXEcMAPJocy ywTx3dLvB2pI2l6qdSUFbMuCGlp7LKN91xOjEWaUx/SHarnpEVAKZ55/BYSzRKOen2b6 /OIpTdmxoqRc3OX3P+qpf6SzsAMGlLTg+R7+R+fSzdIEJc+EkM5yisFXC4GfPZ6ilaYw MMUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nbO343kR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x32-v6si6566357pld.591.2018.03.16.09.51.30; Fri, 16 Mar 2018 09:51:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nbO343kR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753417AbeCPQu2 (ORCPT + 99 others); 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 Received: by mail-yw0-f195.google.com with SMTP id y23so7379139ywy.4 for ; Fri, 16 Mar 2018 09:50:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=cCQkquatvbdtmbKo5AdQS007QXLeSsxDE7SuC1rpX78=; b=nbO343kRG0kf5Ozr4stDMuOIVYEuoGEJvgAsiWEX0JzcVlPxziQxv8XkgEzmBPK5f5 ThelkgLKoVAd3DcrmfojhsVOXsYX0vZf+3l/U7thEQM+gUpZ5d16JKmPcAmk4+kzS/ak ASR2Y2g5D2SlXs54tTkXL3VVTnslf4PvZM6vo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=cCQkquatvbdtmbKo5AdQS007QXLeSsxDE7SuC1rpX78=; b=UdXjxN6VMyxFMotb74lfKWRsvy653+sTt14ToarlzCuNtlrnUyzb3QwXPz2xNhJiY4 dHNwIy+fl4tNIhiMOLXOm/gY5Ta5PWvXKBSl+5bzEUYlvokkZ4U6T/9OPxXZOPR8Dvka zC8mlFOAubBWSbL9UMFBptBdTqt5FzIjD/z3SGUWOAW4rbtKzvqf/RuMc6hSwypmsB3z 3xmFdjPylBHuuDtkMt+8o+GZ9qD7LUrFSRB09rVEQLYifJfxefEX3HA/QnbyGic7E34j CWWKZySjLsXfDjZIrJs/1e1GUpzwbNyaIaZINFn9yl7DGjU3UycJDM2eMHNemeIk0U18 xspw== X-Gm-Message-State: AElRT7H3I5BqGP18MHfwMH7djM2RaZ1A4cOYMv+iZWqdHWR0oapIJNYT KbVtsLBs8tYJ53TSvP23JUi0uw== X-Received: by 2002:a25:84c5:: with SMTP id x5-v6mr1558490ybm.430.1521219023207; Fri, 16 Mar 2018 09:50:23 -0700 (PDT) Received: from localhost ([2620:0:1013:11:ad55:b1db:adfe:3b9f]) by smtp.gmail.com with ESMTPSA id o62sm2868234ywb.17.2018.03.16.09.50.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 09:50:22 -0700 (PDT) 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 Precedence: bulk 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