Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp803216yba; Thu, 16 May 2019 09:08:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcLBAGQ6L84flkW/lWkN/7Vtw1npLTbOficn0NgT/YhwgzMa/Bf2pLgl/7STZPADFwRY2v X-Received: by 2002:a17:902:a503:: with SMTP id s3mr50224172plq.16.1558022937327; Thu, 16 May 2019 09:08:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558022937; cv=none; d=google.com; s=arc-20160816; b=TPuwaHd9+8o/3frmR7l0+qWtpN6GxpuA37zMw2H5YMN9movW02PlAUCN8PwzlUJb1D spgkNyr2/93wOYfiYNEB3/dIjDw/WCES+Ss7UQ+qDRW1HR/7MVekp2qV6qcBft6UDj4+ hZAsVfJTeptwRCDSPa0cZSQ+XRg6RoP8LaeNpT+SAA/Vfgd1nPutNDmjePdm5hCRyg+A uyHoLWYCpvqB3qpz5UtHShEWc/oSXtd3hfFYEhNy8srrgqjjmuEUegfBd3b9VqNLVrX9 P/hRm4mfqx371MSxkK/KdmqLLK+R922k1kRLiOel/NMae1ua03et6YvhV1P3ntcFnD7S 82lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=If7DIMq1Gfx6XG6/ApM/VqLufFm2C3KncjrdjTPi5fw=; b=OB93LTI5m6/uhOlUsSDItM4jJWBjUEH9V2fepB/iRNDnNoK8mLpgwA0d4lFqPz21wl B+taqHARB2KQOnUOCjqCORmnzGZJHr8H7+wQijl4y1xy9L/w8ix5jmXuzuJkMoHmyx5Y AfuaxdLoIUyyQFzfVw7OJ5NRu3wDocM+qNx+c1v4/QLvhZ2loYvqeeEs/19+lAFbf/5G CGb8wuydO//vOHpeJBkOmGZ8wmLczIzTDkAvYlSnNfjDTV+BlTLCx5sfBg2l4a+2wkRk NtkIrhhXqo00K0HBq+4K8rkhB2/LjNk02mmG62TwfWMpk0BQaBdD1qZxUgnCSvzy38pZ GSPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="W9HrIa/z"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c193si5264440pga.6.2019.05.16.09.08.24; Thu, 16 May 2019 09:08:57 -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=@gmail.com header.s=20161025 header.b="W9HrIa/z"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726362AbfEPQHJ (ORCPT + 99 others); Thu, 16 May 2019 12:07:09 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:44256 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbfEPQHJ (ORCPT ); Thu, 16 May 2019 12:07:09 -0400 Received: by mail-oi1-f196.google.com with SMTP id z65so2896986oia.11; Thu, 16 May 2019 09:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=If7DIMq1Gfx6XG6/ApM/VqLufFm2C3KncjrdjTPi5fw=; b=W9HrIa/zrt9i9wWQLsWOgqvOcJ/ZEinVeMjhGTg/M6LgXGdcbPB38gp7CKW1Akzuix FZeEC2qxcJaDiDUQWE144oDzyC6CIY14bFcVik75qRdaFo6gpHvLaXMHScwpez/TBXDE LEJud/rc55JbTq4FLPH0uKppHUcREMpYUO0cWhrffQid3TzgZG0dj9tA79ffwhu7DX1L ARsIgzfa6OlYV0/AUIwNy4TqKQ6NF/L3JtlzigKT31jbr3qBLHxPDUBJIR439EiMSiLt zv6T7X7Lj9kuFbhIBO14quCYdRswsASy27tioqzSIKYGeVZBprXPfyb9dHAXh381oL9i Ed7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=If7DIMq1Gfx6XG6/ApM/VqLufFm2C3KncjrdjTPi5fw=; b=KJSdjYedsUL7N/IsSUCKn+nbO7QWyCAlb60awKoGDU+Er0lKkYfKeqOnna+AIS5x85 uWFODuHhFIc3zgGBYlBipfo/5oQijLpjpkxez/kPTyR/jdYpxIAGUDzMQvWVlkAHIO9X 1fKDewXzW8FgP4GQ6g7De509kQT4/XwopmnmwEQ93NK1E5jlqhhuE2DeIknDAJlOgFqQ cB6AOIjjmszJB6TJAqa1gP1yLpHRoq836O/esJo3L6ok56L6lTuT9dOWE3JdxlT2IZTG JiBkJ47+UqKHuMWAC3BulJhK9q+uwj4/gE+2lXdeLPIMQUXqFEpWTo4jEZpyACkWE/lo Ozkg== X-Gm-Message-State: APjAAAX/AiM1DRiz6aYX9lEOmulMI2FiLGVrwi//IhGjtbIOdLtIwvBi S7Ten5gP07WVqy4R01G1AOSaBdV5kjKokSmdgUE= X-Received: by 2002:aca:38d4:: with SMTP id f203mr1339419oia.88.1558022828175; Thu, 16 May 2019 09:07:08 -0700 (PDT) MIME-Version: 1.0 References: <20190514155911.6C0AC68B05@newverein.lst.de> <20190514160241.9EAC768C7B@newverein.lst.de> <20190515093141.41016b11@blackhole.lan> <20190516154820.GA10431@lst.de> In-Reply-To: <20190516154820.GA10431@lst.de> From: Vasily Khoruzhick Date: Thu, 16 May 2019 09:06:41 -0700 Message-ID: Subject: Re: [PATCH 4/4] arm64: DTS: allwinner: a64: enable ANX6345 bridge on Teres-I To: Torsten Duwe Cc: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Thierry Reding , Maxime Ripard , Chen-Yu Tsai , Andrzej Hajda , Laurent Pinchart , Icenowy Zheng , Sean Paul , Harald Geyer , dri-devel , devicetree , arm-linux , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 16, 2019 at 8:48 AM Torsten Duwe wrote: > > On Wed, May 15, 2019 at 08:08:57AM -0700, Vasily Khoruzhick wrote: > > On Wed, May 15, 2019 at 12:32 AM Torsten Duwe wrote: > > > > > > It does comply with the bindings. The ports are all optional. > > > As far as DT is concerned, the signal path ends here. This is also the > > > final component _required_ to get the Linux kernel DRI up and running. > > > > Ugh, then bindings should be fixed. It's not optional. It may work if > > bootloader enables power for you, but it won't if you disable display > > driver in u-boot. > > I double-checked. On the Teres-I, mentioning the panel _is_ optional. It's not. See power on sequence in https://www.olimex.com/Products/DIY-Laptop/SPARE-PARTS/TERES-015-LCD11-6/resources/N116BGE-EA2.pdf Driver can talk to the panel over AUX channel only after t1+t3, t1 is up to 10ms, t3 is up to 200ms. It works with older version of driver that keeps panel always on because it takes a while between driver probe and pipeline start. It'll likely break with newer version of driver that turns on panel only when bridge is active. You'll see AUX timeouts - it won't be able to probe EDID in some cases. Problem can be intermittent and device dependent. All in all - you don't need panel timings since there's EDID but you still need panel delays. Anyway, it's up to you and maintainers. > PD23 powers down panel and backlight as much as possible, see > 24bd5d2cb93bc arm64: dts: allwinner: a64: teres-i: enable backlight > (currently only in Maxime's repo) and the Teres-I schematics... > > And the driver in your repo neatly guards all accesses with > "if (anx6345->panel)" -- good! > But I found the Vdds are required, so I added them as such. > > > I guess you're testing it with older version of anx6345. Newer version > > that supports power management [1] needs startup delay for panel. > > Another issue that you're seeing is that backlight is not disabled on > > DPMS events. All in all, you need to describe panel in dts. > > > > [1] https://github.com/anarsoul/linux-2.6/commit/2fbf9c242419c8bda698e8331a02d4312143ae2c > > > > Should I also have added a Tested-by: ? ;-) > > > > I don't have Teres, so I haven't tested these. > > *I* have one, and this works. I'll retest with your newer driver, > just in case. Nonetheless, the changes in this series should be fine. > Sending out v2 in a moment... > > Torsten >