Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1461185ybb; Thu, 9 Apr 2020 02:35:15 -0700 (PDT) X-Google-Smtp-Source: APiQypJClNusP9YsSp/Pi3o9W7nMc0hxeQ4e5hM6qaVm863lzv5lCy4aBLGw6kKxwT9ls4GIevXm X-Received: by 2002:a05:6808:a0a:: with SMTP id n10mr5715266oij.10.1586424915762; Thu, 09 Apr 2020 02:35:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586424915; cv=none; d=google.com; s=arc-20160816; b=a3NycoA/6NrLJ1AC2EXbKdRWlAZH5A+RfqZTApQLe/mR7Hu9Xf26VhPqAD8LkVJHGY Zxw5L8LVrv2F3Uh4Yv7Q9XM/yBEtOtnbWvE28Yeu5Ukgi5I6iNo4UF8rQ2zPUMVN8d4U pI4Ng2G0ZbUALxAM6oYzD2fCvo4As2K2k9htXQWbCZ1CBuMo0gYDOQA9PrtcaTIukE7b peR50Rxt0Hj9JuYi6psXwh0gsXOnX1Mik59OBeLWfOwmwfM+rsd7Pd3xc4ys+/7lD5bx DVn9vwDkN0f33Ok9TJhAJoyroVNmGPmgg9KWnmpy5gKw8XdesgNMDvpnjwY1rMgxGnvX 3Z3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=7Q2NlCB63D2LhEGr0HwhcxP6aGwq461tbuIJ0oEX06M=; b=ZSrFPvR1WO90gTFQud8rwEWr8VqM3GP1eZQ4aqe0HvJS83viaFNwLbyutxyQrfZUXz 7ByTNwnBWR3T0ATokqZRwIsIFW2kTvAXOms/P0kgBoLpHSroa/V0sZh6x+HhCEN5e3lM 3xhNR6oyu9eZv2V10SR4gC2E3fIN6iLec42N8ZRu7Tz0zHi/gVMF9/vptiPUNrsc6J0d JBC/YjJWi3MCjn2PYIhhaRxZTT4b8yNuvy2pZaFSZ2CFoxFSRyTguA0y7s1g69JF1hSu KcZ3VIyBuLjXzCyNo9VYqRSxpffvLtF2L3s+q9YqU5lAzBAo5MJBj3cCMpg6BD4XPnoV ReBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vVpj55hQ; 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 t7si3846106otd.115.2020.04.09.02.35.01; Thu, 09 Apr 2020 02:35:15 -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=vVpj55hQ; 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 S1726671AbgDIJeN (ORCPT + 99 others); Thu, 9 Apr 2020 05:34:13 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:51758 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726638AbgDIJeM (ORCPT ); Thu, 9 Apr 2020 05:34:12 -0400 Received: by mail-wm1-f68.google.com with SMTP id x4so1073412wmj.1; Thu, 09 Apr 2020 02:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=7Q2NlCB63D2LhEGr0HwhcxP6aGwq461tbuIJ0oEX06M=; b=vVpj55hQZQvgH3Z3cGf73X1rvd1ZOVmJt3Ojbs5phtb5O/acyRVL6aXtux8iatz1KW X5oGIWVhTAcFuSlTN6gsnCxnj1V62CTHduOJdt3pQ5QlskkmM78GJwS6/I/oUr3Qrxaj n+ngvXzE5rJbiNcEToDunyRvf+5xjbYfoswYjfHEds2j93MQ+kAokg+7Bnztmv7TBPvz 0x9nt1MHgx8bK+aE6PUNX84lPoYI+LUhDQFpxTnxL4fiodyCQQJkmGFuLeAJpGzC3g3e C5DWz/P5hQ1Eylw1ZkLkl2zGGSRsmb7uyjTvGD3AOVMZx7Leh0hqKUhfvkgePzvJlywS 45OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7Q2NlCB63D2LhEGr0HwhcxP6aGwq461tbuIJ0oEX06M=; b=Cq8oT5+CMHAI++x6HO3lbIWLruT6oywLrMsHT9Rm74w4BQG5oFwBy2Gz64AD+OcG8u XkCp9qykXWvlfSR+W5F/iRqSssRKaCIjCcLEnnye+h1KdpMlWhcpZ+tNk7PfdoaPqPE/ ZQVWqrqfbDD92rizCAZJWFwHTBTzlofu+FK3Rupwbk25jJweDlLjRSgfDPw7T8yvRSeK u5y9dETCCu5yKzq8G/arS/mqPy1tB4S8J4ilARN/nifqinzbZETdxhdCTC7G2bJja9Bx xFxD+t4TKs2lEXHojcuNkkaJbh/cv4BRxTMNzOYcn/BU84JlyDiINbKhW9Yy742n20VY L4Lg== X-Gm-Message-State: AGi0Pub5cQB/9/3XPIcURQOlq4qHq/pUAqWD+sunp/opIR1cMUvwRNSf oJ/cGlH85HVbl4HTSo6Y8SVFKY1svng= X-Received: by 2002:a7b:c4c9:: with SMTP id g9mr282591wmk.171.1586424850185; Thu, 09 Apr 2020 02:34:10 -0700 (PDT) Received: from localhost (ip1f115f16.dynamic.kabel-deutschland.de. [31.17.95.22]) by smtp.gmail.com with ESMTPSA id f63sm2764515wma.47.2020.04.09.02.34.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Apr 2020 02:34:09 -0700 (PDT) From: Oliver Graute To: gregkh@linuxfoundation.org Cc: oliver.graute@gmail.com, Oliver Graute , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v1] staging: fbtft: fb_st7789v: Initialize the Display Date: Thu, 9 Apr 2020 11:25:32 +0200 Message-Id: <1586424337-26602-1-git-send-email-oliver.graute@gmail.com> X-Mailer: git-send-email 2.7.4 X-Patchwork-Bot: notify Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oliver Graute Set Gamma Values and Register Values for the HSD20_IPS Signed-off-by: Oliver Graute --- drivers/staging/fbtft/fb_st7789v.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/fbtft/fb_st7789v.c b/drivers/staging/fbtft/fb_st7789v.c index 84c5af2dc9a0..b0aa96b703a8 100644 --- a/drivers/staging/fbtft/fb_st7789v.c +++ b/drivers/staging/fbtft/fb_st7789v.c @@ -17,8 +17,8 @@ #define DRVNAME "fb_st7789v" #define DEFAULT_GAMMA \ - "70 2C 2E 15 10 09 48 33 53 0B 19 18 20 25\n" \ - "70 2C 2E 15 10 09 48 33 53 0B 19 18 20 25" + "D0 05 0A 09 08 05 2E 44 45 0F 17 16 2B 33\n" \ + "D0 05 0A 09 08 05 2E 43 45 0F 16 16 2B 33" /** * enum st7789v_command - ST7789V display controller commands @@ -83,13 +83,13 @@ static int init_display(struct fbtft_par *par) /* set pixel format to RGB-565 */ write_reg(par, MIPI_DCS_SET_PIXEL_FORMAT, MIPI_DCS_PIXEL_FMT_16BIT); - write_reg(par, PORCTRL, 0x08, 0x08, 0x00, 0x22, 0x22); + write_reg(par, PORCTRL, 0x05, 0x05, 0x00, 0x33, 0x33); /* * VGH = 13.26V * VGL = -10.43V */ - write_reg(par, GCTRL, 0x35); + write_reg(par, GCTRL, 0x75); /* * VDV and VRH register values come from command write @@ -101,13 +101,13 @@ static int init_display(struct fbtft_par *par) * VAP = 4.1V + (VCOM + VCOM offset + 0.5 * VDV) * VAN = -4.1V + (VCOM + VCOM offset + 0.5 * VDV) */ - write_reg(par, VRHS, 0x0B); + write_reg(par, VRHS, 0x13); /* VDV = 0V */ write_reg(par, VDVS, 0x20); /* VCOM = 0.9V */ - write_reg(par, VCOMS, 0x20); + write_reg(par, VCOMS, 0x22); /* VCOM offset = 0V */ write_reg(par, VCMOFSET, 0x20); -- 2.17.1