Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp739796ybt; Wed, 1 Jul 2020 08:55:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJFGuexMP7U++gEUg6solF3EVwUi99p//qQYFj5ZNs+d2beneez2LVgORo230u18YJoOyQ X-Received: by 2002:a50:e606:: with SMTP id y6mr29626312edm.303.1593618908812; Wed, 01 Jul 2020 08:55:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593618908; cv=none; d=google.com; s=arc-20160816; b=Wc59LcePmDvCkqcJBhojSTK/3zcDU6+ScwWvsKLXEOmGjCaeuNTZRsm+ZwrK0CSZ6Y zySllNa09K/BOD9n5N6m51EsVT+LA/81OvT4XEhOQOVN6f9nZA+mXCS8hkcBAGLqbfU4 6rxfenRUcup/DBJO+qOUbaOxPmyGFu2ydv4a9pDJA4+iuMry1ltMqDBuEu9kGJvhBZdF j/5QFJ3+/YnWtU7Ru8QhzTiMEB7shbphL/jEiz5l/1wrFhTfRD3sSLfqpJjK81aQSQ6B nE63ufwv0F2EgVDMauYevo2fqmuxGZuuHGh4GLJ6SoljM2vfzZNFL7le8/ujyghgDQ+z qAhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=CQkh9sfgvKz1b93pMmsSSqHyiGftu/KS2TcQ5qzLAgk=; b=wkYwfe35YdHqePvjRDG9hr5OiEArEeh9puN3KKsUVFlPr2YJmQ2PLdel1BLIiarAD1 T+Pcw6b7gP8h3A7OJzYjtmy5K2QtRjK1hIGFDVm7v26bQqMIXSzEuuA58tSxtX2SvoEQ orNt4wgCz5Fc6xbf+d2WMDaKc9CYirSCmWZBo6RkQFPsXxjMNehAMCyFk+tOax21bVEg NHeT3K4KmGftyZynmaSkPTDVj7AYl8IFmEtVQ5aoVkP+WLNn3zjc5AJmE2vqGZDTUUTG Z8O0/6e1YOrtC0Bqemp5m0IfDxUAwX1mYCn/l813oqbICUs+DTJU16rmVa2ieY4LB7qd w10w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b5si4132502edy.563.2020.07.01.08.54.44; Wed, 01 Jul 2020 08:55:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=puri.sm Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732213AbgGAPyW (ORCPT + 99 others); Wed, 1 Jul 2020 11:54:22 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:34020 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732162AbgGAPyN (ORCPT ); Wed, 1 Jul 2020 11:54:13 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id BF2E5FB03; Wed, 1 Jul 2020 17:54:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CCl797Eo_EWk; Wed, 1 Jul 2020 17:54:06 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 6DCB540972; Wed, 1 Jul 2020 17:54:05 +0200 (CEST) Date: Wed, 1 Jul 2020 17:54:05 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Ondrej Jirman Cc: linux-sunxi@googlegroups.com, Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Purism Kernel Team , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Linus Walleij , Icenowy Zheng , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Samuel Holland , Martijn Braam , Luca Weiss , Bhushan Shah Subject: Re: [PATCH v6 00/13] Add support for PinePhone LCD panel Message-ID: <20200701155405.GA174356@bogon.m.sigxcpu.org> References: <20200701103126.1512615-1-megous@megous.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200701103126.1512615-1-megous@megous.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Jul 01, 2020 at 12:31:13PM +0200, Ondrej Jirman wrote: > This patchset adds support for the LCD panel of PinePhone. I gave this a quick spin on the Librem5 devkit so Tested-by: Guido G?nther but please also adjust MAINTAINERS so we stay in the loop on driver changes. Cheers, -- Guido > > I've tested this on PinePhone 1.0 and 1.2. > > Please take a look. > > thank you and regards, > Ondrej Jirman > > Changes in v6: > - Fixed spacing in yaml > - Fixed wrong vccio->iovcc supply name in the bindings doc > - I noticed that the original driver uses a delay of 20ms in the init > function to achieve a combined total of 120ms required from post-reset > to display_on. I've added a similar delay to xbd599_init, so that > xbd599 panel also has the right timing. (patch 9) > - v5->v6 diff: https://megous.com/dl/tmp/v5-v6.patch > - Added review/ack tags > - Learned to run dt_binding_check by myself ;) > > Changes in v5: > - rewritten on top of rocktech-jh057n00900 driver > - rocktech-jh057n00900 renamed to st7703 (controller name) > - converted rocktech-jh057n00900 bindings to yaml and extended for xbd599 > > Changes in v4: > - use ->type from the mode instead of hardcoding (Samuel) > - move init_sequence to ->prepare (Samuel) > - move anti-flicker delay to ->enable, explain it (Samuel) > - add enter_sleep after display_off (Samuel) > - drop ->disable (move code to ->unprepare) > - add ID bytes dumping (Linus) > (I can't test it since allwinner DSI driver has a broken > dcs_read function, and I didn't manage to fix it.) > - document magic bytes (Linus) > - assert reset during powerup > - cleanup powerup timings according to the datasheet > > Changes in v3: > - Panel driver renamed to the name of the LCD controller > - Re-organize the driver slightly to more easily support more panels > based on the same controller. > - Add patch to enable the touchscreen to complete the LCD support > on PinePhone. > - Dropped the "DSI fix" patch (the driver seems to work for me without it) > - Improved brightness levels handling: > - PinePhone 1.0 uses default levels generated by the driver > - On PinePhone 1.1 duty cycles < 20% lead to black screen, so > default levels can't be used. Martijn Braam came up with a > list of duty cycle values that lead to perception of linear > brigtness level <-> light intensity on PinePhone 1.1 > - There was some feedback on v2 about this being similar to st7701. > It's only similar in name. Most of the "user commands" are different, > so I opted to keep this in a new driver instead of creating st770x. > > Anyone who likes to check the differences, here are datasheets: > > - https://megous.com/dl/tmp/ST7703_DS_v01_20160128.pdf > - https://megous.com/dl/tmp/ST7701.pdf > > Changes in v2: > - DT Example fix. > - DT Format fix. > - Raised copyright info to 2020. > - Sort panel operation functions. > - Sort inclusion. > > > -- For phone owners: -- > > There's an open question on how to set the backlight brightness values > on post 1.0 revision phone, since lower duty cycles (< 10-20%) lead > to backlight being black. It would be nice if more people can test > the various backlight levels on 1.1 and 1.2 revision with this change > in dts: > > brightness-levels = <0 1000>; > num-interpolated-steps = <1000>; > > and report at what brightness level the backlight turns on. So far it > seems this has a wide range. Lowest useable duty cycle for me is ~7% > on 1.2 and for Martijn ~20% on 1.1. > > Icenowy Zheng (2): > dt-bindings: vendor-prefixes: Add Xingbangda > arm64: dts: sun50i-a64-pinephone: Enable LCD support on PinePhone > > Ondrej Jirman (11): > dt-bindings: panel: Convert rocktech,jh057n00900 to yaml > dt-bindings: panel: Add compatible for Xingbangda XBD599 panel > drm/panel: rocktech-jh057n00900: Rename the driver to st7703 > drm/panel: st7703: Rename functions from jh057n prefix to st7703 > drm/panel: st7703: Prepare for supporting multiple panels > drm/panel: st7703: Move code specific to jh057n closer together > drm/panel: st7703: Move generic part of init sequence to enable > callback > drm/panel: st7703: Add support for Xingbangda XBD599 > drm/panel: st7703: Enter sleep after display off > drm/panel: st7703: Assert reset prior to powering down the regulators > arm64: dts: sun50i-a64-pinephone: Add touchscreen support > > .../display/panel/rocktech,jh057n00900.txt | 23 - > .../display/panel/rocktech,jh057n00900.yaml | 70 ++ > .../devicetree/bindings/vendor-prefixes.yaml | 2 + > .../allwinner/sun50i-a64-pinephone-1.1.dts | 19 + > .../dts/allwinner/sun50i-a64-pinephone.dtsi | 54 ++ > drivers/gpu/drm/panel/Kconfig | 26 +- > drivers/gpu/drm/panel/Makefile | 2 +- > .../drm/panel/panel-rocktech-jh057n00900.c | 424 ----------- > drivers/gpu/drm/panel/panel-sitronix-st7703.c | 656 ++++++++++++++++++ > 9 files changed, 815 insertions(+), 461 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.txt > create mode 100644 Documentation/devicetree/bindings/display/panel/rocktech,jh057n00900.yaml > delete mode 100644 drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c > create mode 100644 drivers/gpu/drm/panel/panel-sitronix-st7703.c > > -- > 2.27.0 >