Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp183212pxu; Tue, 1 Dec 2020 08:48:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzb7wTjOQmE06a5El5IgTP8xg1f9tMWtFKdQlEnu9/fVbgTFc9IsulygiGtu0mM6LLSQZ/E X-Received: by 2002:a17:906:c193:: with SMTP id g19mr3771535ejz.393.1606841314659; Tue, 01 Dec 2020 08:48:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606841314; cv=none; d=google.com; s=arc-20160816; b=J9KNOerQYI7Vjhdkuh3Zq5qjUQ1kzI/W2FhNyRXb+viB0iM25za+amjwC2IOGTCanQ Ue97VU6cOaRSL9b50mxa/h4Fe5y3XdCNyz8VCCDErdDUevNyxWTxmq3ml8O+6u6YOrGw 2K7wCB3a9Rs0Bn4ddX/R0bRi+E/YH5uCauJGvQFjV1BYfQSeWdsKrLSjaCmFPd57VCaD v+HHIlgvmORB35SoPv2sVc+Ao54epCvQy9xCYBLYBFwSfuyiF4xSxrGoEzQXP7w35VJw rQ7OppoqDE4yrPQN8is32s45HeTTOdCDq1X3xO1CP7p6ktTLFRuNQ6z/xxLZYo239qe9 BQqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=zclhRxSb9+y0XMSIjcT31hSNmgYF3XT/Tz4gRdIjVo8=; b=wYudi09SdDysT5BIV3SnFQspT+QqaTSI6rqG2PfMK/PeiBNv0ShiYs5ogsWiURSxQK dCD//744e1vm2PV4C9oYPmrxyDG9A7IS5qlKcX3DVtWg2XqjBhhnWMuwRxmhcbz3D0VO Cb6rDDnmbBLbn+jpQAtwc63ecpFPeF0gfXphGCqpUVH0chwawLlyiuQkJ2tiwf1+/N/R zhgr/jog/OP6PKqb/p+7Ez81qH6l50QYV76jLKOeeigGvWJsZgHFGJ+y8ETWe616zvol jMQN40W/N0LySGULediO8wDPHt/1iWsIscSIZ8VXQ80LUtDCjCfM2wkPfFwhir5lU26/ 1s0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=WuCviSTf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k23si290076ejk.626.2020.12.01.08.48.08; Tue, 01 Dec 2020 08:48:34 -0800 (PST) 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=fail header.i=@kemnade.info header.s=20180802 header.b=WuCviSTf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728674AbgLAQpU (ORCPT + 99 others); Tue, 1 Dec 2020 11:45:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727736AbgLAQpU (ORCPT ); Tue, 1 Dec 2020 11:45:20 -0500 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a01:238:4321:8900:456f:ecd6:43e:202c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07454C0613D6 for ; Tue, 1 Dec 2020 08:44:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=zclhRxSb9+y0XMSIjcT31hSNmgYF3XT/Tz4gRdIjVo8=; b=WuCviSTfjeYikqFDZu8+w6tn46 Beueo3XPclImx5zS92/e1vvSm2omf3ZyGMlZElFrOvjo0/u1NxNusXMiKErqDcADfq09X8yHubnoD fnuLZUtPSSAD5W84Hbfv+aoDP0az/alAocHzsbIkRFAJZfRzaSLHpHBDEzyWyZkiTe0c=; Received: from p200300ccff124e001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff12:4e00:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1kk8lW-00021b-05; Tue, 01 Dec 2020 17:44:34 +0100 Date: Tue, 1 Dec 2020 17:44:33 +0100 From: Andreas Kemnade To: Sven Van Asbroeck Cc: Discussions about the Letux Kernel , "H. Nikolaus Schaller" , Linus Walleij , Mark Brown , kernel list , Laurent Pinchart Subject: Re: [Letux-kernel] [BUG] SPI broken for SPI based panel drivers Message-ID: <20201201174433.2000c8a3@aktux> In-Reply-To: References: <2D7916FA-678F-4236-B478-C953CADF2FFA@goldelico.com> <4AC29229-9542-4E77-B993-217E29C7E209@goldelico.com> <20201201121620.GB5239@sirena.org.uk> <6283C16F-549C-4463-BC08-E2C1A1D78B2F@goldelico.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 (-) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 1 Dec 2020 11:10:49 -0500 Sven Van Asbroeck wrote: > Nikolaus, > > On Tue, Dec 1, 2020 at 9:38 AM H. Nikolaus Schaller wrote: > > > > Let's work on a fix for the fix now. > > > > Are you quite sure the chip-select of the tpo,td028ttec1 panel > is active-high? A quick google produced a datasheet which > seems to indicate that XCS is active-low? > Schematics is here: https://projects.goldelico.com/p/gta04-main/downloads/48/ The display connector P204-LCD indicates some inversion at the XCS and XRES pins. This patch fixes things for a boot where the display was not touched by the bootloader diff --git a/arch/arm/boot/dts/omap3-gta04.dtsi b/arch/arm/boot/dts/omap3-gta04.dtsi index c8745bc800f7..003202d12990 100644 --- a/arch/arm/boot/dts/omap3-gta04.dtsi +++ b/arch/arm/boot/dts/omap3-gta04.dtsi @@ -124,7 +124,6 @@ spi-max-frequency = <100000>; spi-cpol; spi-cpha; - spi-cs-high; backlight= <&backlight>; label = "lcd"; So if that one is really active-low, why did it ever work?! Regards, Andreas