Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp134845ybt; Tue, 16 Jun 2020 19:03:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7NB/2HmmZINM+0DMYTYwEQzWeaqYrsFrO+fKCnjwT4bOxZL/b45ij8IxnBJ4kpMl9DKvd X-Received: by 2002:a17:906:1353:: with SMTP id x19mr5595120ejb.469.1592359382701; Tue, 16 Jun 2020 19:03:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592359382; cv=none; d=google.com; s=arc-20160816; b=xwBZaxerNe7MYLvUVTvfKjkZBzs/UmtPEGKOwIeTJR9Y3nQI8X/5ZUrBZCbc2OCKXV zBBdAJwPOHdMJx52x9YUc2CwFympzwvSyfOYwjmklm9EK4+M1pAwepWURMsQoOGRiC34 pXpkea0RAWZwYp9i16kHiRxM6QDY8A6qVK/BPF92HFqXt/2Fu3z4QKXn8qIntpfF0eCx vic9SRpbr0ROnqE5KaIyf0pIHmiy6b+HLyWb30BlPjeKZp1QR8aDdRwJpX5Jacmi0IPL djEnjcuc3lQAfppjCH0IOi+DnYK+Wb5YzBjOS0G9Ilj9vLgavY4vfhPC7XDLoO8xGUTI yz+g== 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-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=KOqFO5GcQGQbF9T2PC9EAGljaCPPNZ8adlCWGIRMfcc=; b=PR9ofQnKoM6qhsATdlAdlfE6FSKnPYi4PEo3eaceuFS8DfvhviyMoK4o75mrlNuzOY 2w4gCumVtZy5euUII6VEzRkQ9HhJ5iDQCEVkLtuBSJR64GELTrgTue9+zL7DMFGmAY2/ 25I8DfRN8OLl53pPs2We2fDf5kmOM04yc3deZCc9qvg2tu5Z4wPc0m3bezV4YJnY6IvY 534FMdAocBrXkBY/fFNmSoUIVHR5yjUI/vNedaVY6p4rtkmFLZnS4Aw/iC+ElkuGXKJv ETyOCj33gmVPI8FON/fttefnFX73oI3meNCuzjY2qzBYWRylcf45ivsV6h2wn/0nMWjU Nlmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@megous.com header.s=mail header.b="RSTp/x25"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz9si11263379ejc.664.2020.06.16.19.02.40; Tue, 16 Jun 2020 19:03:02 -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; dkim=pass header.i=@megous.com header.s=mail header.b="RSTp/x25"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=megous.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726568AbgFQCAw (ORCPT + 99 others); Tue, 16 Jun 2020 22:00:52 -0400 Received: from vps.xff.cz ([195.181.215.36]:45304 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726253AbgFQCAw (ORCPT ); Tue, 16 Jun 2020 22:00:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1592359249; bh=nfSFk/xxv2HPjCmgiQmTzC85XO7JsaYmjsZ2Hf0O8WA=; h=Date:From:To:Cc:Subject:References:From; b=RSTp/x25+vrf98bzteSPi+kPYJSJl7O5J4mEvqeDFgtzOodDhGQfnygpDh84JiXmH 7U6a1om3H+8zqs/Y+QMNPTl24XwrWut/xPnaaHdCyotCcDDbC7Wqd3W7Oo213aSY9N XoVIbzOov26zePoClavc9rZy25sVMXE7VaGg/5M8= Date: Wed, 17 Jun 2020 04:00:49 +0200 From: =?utf-8?Q?Ond=C5=99ej?= Jirman To: Linus Walleij Cc: linux-sunxi , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , "open list:DRM PANEL DRIVERS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , Linux ARM , Samuel Holland , Martijn Braam , Luca Weiss , Bhushan Shah Subject: Re: [linux-sunxi] Re: [PATCH v3 3/5] drm: panel: Add Xingbangda XBD599 panel (ST7703 controller) Message-ID: <20200617020049.iz6vujrs25kuipl6@core.my.home> Mail-Followup-To: =?utf-8?Q?Ond=C5=99ej?= Jirman , Linus Walleij , linux-sunxi , Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , "open list:DRM PANEL DRIVERS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , Linux ARM , Samuel Holland , Martijn Braam , Luca Weiss , Bhushan Shah References: <20200513212451.1919013-1-megous@megous.com> <20200513212451.1919013-4-megous@megous.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Linus, On Tue, May 26, 2020 at 01:32:25PM +0200, Linus Walleij wrote: > Hi Ondrej, > [...] > > + dsi_dcs_write_seq(dsi, ST7703_CMD_SETGIP1, > > + 0x82, 0x10, 0x06, 0x05, 0xA2, 0x0A, 0xA5, 0x12, > > + 0x31, 0x23, 0x37, 0x83, 0x04, 0xBC, 0x27, 0x38, > > + 0x0C, 0x00, 0x03, 0x00, 0x00, 0x00, 0x0C, 0x00, > > + 0x03, 0x00, 0x00, 0x00, 0x75, 0x75, 0x31, 0x88, > > + 0x88, 0x88, 0x88, 0x88, 0x88, 0x13, 0x88, 0x64, > > + 0x64, 0x20, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, > > + 0x02, 0x88, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, > > + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00); > > + dsi_dcs_write_seq(dsi, ST7703_CMD_SETGIP2, > > + 0x02, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, > > + 0x00, 0x00, 0x00, 0x00, 0x02, 0x46, 0x02, 0x88, > > + 0x88, 0x88, 0x88, 0x88, 0x88, 0x64, 0x88, 0x13, > > + 0x57, 0x13, 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, > > + 0x75, 0x88, 0x23, 0x14, 0x00, 0x00, 0x02, 0x00, > > + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, > > + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x0A, > > + 0xA5, 0x00, 0x00, 0x00, 0x00); > > + dsi_dcs_write_seq(dsi, ST7703_CMD_SETGAMMA, > > + 0x00, 0x09, 0x0D, 0x23, 0x27, 0x3C, 0x41, 0x35, > > + 0x07, 0x0D, 0x0E, 0x12, 0x13, 0x10, 0x12, 0x12, > > + 0x18, 0x00, 0x09, 0x0D, 0x23, 0x27, 0x3C, 0x41, > > + 0x35, 0x07, 0x0D, 0x0E, 0x12, 0x13, 0x10, 0x12, > > + 0x12, 0x18); > > + msleep(20); > > This stuff is really hard or impossible to understand without the > datasheet. > > In my previous review I wrote: > > It appears that the Himax HX8363 is using the same display controller > if you look at the datasheet: > http://www.datasheet-pdf.com/PDF/HX8369-A-Datasheet-Himax-729024 > There you find an explanation to some of the commands. It is st7703, and we have a fairly complete datasheet available publicly. I posted links in the cover letter. > That means, try to get rid of as much of the magic bytes as you can > and use proper #defines. I know it takes some work but the result > is so much more useful and readable. I've added some descriptions from the datasheet as comments next to the values in v4. Thank you and regards, o. > Further I wrote: > > You should definately insert code to read the MTP bytes: > 0xDA manufacturer > 0xDB driver version > 0xDC LCD module/driver > And print these, se e.g. my newly added NT35510 driver or > the Sony ACX424AKP driver. > > So please do that. > > Yours, > Linus Walleij > > -- > You received this message because you are subscribed to the Google Groups "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com. > To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/CACRpkdZpiQ7E_v-Gfk6vFcUEiMazvixYaL0ksKeP%3DTq3O6Fh%3DQ%40mail.gmail.com.