Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1461011ybb; Thu, 9 Apr 2020 02:35:01 -0700 (PDT) X-Google-Smtp-Source: APiQypJjnkLIaW96g9UHYq8TWOf6iZ6IjBnAYG5VwSjJY/qT2swMW/D7yZSdqh35EFhbTgyyhv58 X-Received: by 2002:a9d:1ee5:: with SMTP id n92mr4558286otn.176.1586424901752; Thu, 09 Apr 2020 02:35:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586424901; cv=none; d=google.com; s=arc-20160816; b=C961qX7LR3uPo1Olyd8wIoT/blnidwS9ZWsaT6jP19uTm0S5GUMerItrVKrGSEiRci zcvLS6X52RZtdP7Vd06bM9lSxANQkiwKhJIPlbKfgKU1rZh8EBfwOMAb+HQjl25XnxPC EGEVZbMd+qYs0QkZBnpm03kgYJGZyDw6Ygddgbv6RbMcytsBhObDT9Wzyik8HTU9+zXR tRrWkW7+M93Ux76cM8V767+2ZWBqQmz/W7RQguy9kYVai8qceUW8XA/hVx8urNjbJiPq UbklQ5sRLPBcB5igrHXtd+dyO75m5GLTp9qY+CYM6hUGT7X/zviduHeNOKCiRXNq+5t0 LszQ== 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=vFKY58EHDI35uWqTXFRcYlKrXpE9AmTqUd0lTuoZycc=; b=i7VVH+j6V2Pz7ofFrpaiOpp3rUongx9cfL9YeVTRxDKBWuPua6V3hOpDvOkQg8dQBP yQOKLL/RtrcXMgFSRspFgVghKrLRirZSiooHONIAEtRyBmz3kACHqXAHuaKRMvEokLdU DHId9CqMbZZ9kla75Yyli5twRUWLebWJuK41o/QjQ9LovqFYIzPsRDuk+zbEITiU4Ywe FV1YxMCPvD5mjiiwCVqnh9HYKNS88E39RNZ30IZ8C9Vn5LTbJ8yPvo04Ol8n/qF3MKyb tLh5gQdPuyJldjL8S0VCx8g1U+WvLY0NP9ZK4KAQbKEMT27+xcxmIjLRHhO/eTY9fwuG nJnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Vluwa6jv; 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 q11si3711483otm.263.2020.04.09.02.34.48; Thu, 09 Apr 2020 02:35:01 -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=Vluwa6jv; 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 S1726647AbgDIJeL (ORCPT + 99 others); Thu, 9 Apr 2020 05:34:11 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45560 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbgDIJeJ (ORCPT ); Thu, 9 Apr 2020 05:34:09 -0400 Received: by mail-wr1-f65.google.com with SMTP id v5so11101492wrp.12; Thu, 09 Apr 2020 02:34:09 -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=vFKY58EHDI35uWqTXFRcYlKrXpE9AmTqUd0lTuoZycc=; b=Vluwa6jv99EFa0y3quZjb49M0cgeiVocOWBa7QIiBKYvYGJY7V0w2GjxOzU0DvqBB2 Nb+5jY6WzMvAFVr7+8Ys8cs/E8W+eSH7gVqp9SXwjXmeXK/fsM9P8X0pxGVa8CRje2WC g3y3AHexyE7aae+UXl275caZKdGy3bXMWW3dOX0pxx/kD46g0wwTIx60fxsbAA7dgI1x 3xFzJ3zU4lMTfDFv0mkxtk/La2DIonGAbNbfo5hjR4wtvI44ZywsUdkq4FmMJmN3jx1p DfoQ6ycgEdCR5XR/YjooLFM2As21WdGwPk7QuF5UpUfyNAWu7GlOOrJdpnAnF0PHtHfj JPVA== 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=vFKY58EHDI35uWqTXFRcYlKrXpE9AmTqUd0lTuoZycc=; b=OhMDXk93e7IuqQjxcvXPjaPxXYEilIIZlfTEdycrrQYrJkRPNEppBa60kthOvDGmTw rsim4XB4zY1DXaS2dcaLYy8UqhHW2kCd1j2DkjHpI5e0buDsNa3I2fc3e8vUikJyMnSW jomr+Ft+0axJEMuvZ7dmbc8CeSm6qPiHma5z7SO6e708T3VUf6SLbFP3aZkou5tAPcaF geK5ewnPqdRnBhUjymrO1iKKvfmZMkTjNHb/kT/e1KUP1s3ioZeEnUjpI7AVEiyuuubU nBsgnbcVABuVw08+lEV/vGn31w3IpLYv3MLDGa5B161WRw3+ejs1TVa+CMdcuj1m8iMx 2kdQ== X-Gm-Message-State: AGi0PubY5+IgboKAkxcqnBc6Zh8rRW5imifpOw9w9Ttg8PBiM7iB2Haq J3y8VSs+e5F4pqv415SU0nlE73PKSv4= X-Received: by 2002:adf:904e:: with SMTP id h72mr12881868wrh.367.1586424848253; Thu, 09 Apr 2020 02:34:08 -0700 (PDT) Received: from localhost (ip1f115f16.dynamic.kabel-deutschland.de. [31.17.95.22]) by smtp.gmail.com with ESMTPSA id h2sm1916942wmf.34.2020.04.09.02.34.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Apr 2020 02:34:07 -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: enabled inversion Date: Thu, 9 Apr 2020 11:24:05 +0200 Message-Id: <1586424250-25897-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 Enable inversion mode Signed-off-by: Oliver Graute --- drivers/staging/fbtft/fb_st7789v.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/staging/fbtft/fb_st7789v.c b/drivers/staging/fbtft/fb_st7789v.c index 3c3f387936e8..84c5af2dc9a0 100644 --- a/drivers/staging/fbtft/fb_st7789v.c +++ b/drivers/staging/fbtft/fb_st7789v.c @@ -120,6 +120,10 @@ static int init_display(struct fbtft_par *par) write_reg(par, PWCTRL1, 0xA4, 0xA1); write_reg(par, MIPI_DCS_SET_DISPLAY_ON); + + /* enable inversion mode */ + write_reg(par, 0x21); + return 0; } -- 2.17.1