Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2090160ybp; Thu, 10 Oct 2019 02:01:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmtDTvUEbn3DX2nSltRkIkMbopILA/WrNS2HljbY1HvgfQRuEDClll68XQM7viRbwLP6Ax X-Received: by 2002:a05:6402:751:: with SMTP id p17mr7037125edy.161.1570698094935; Thu, 10 Oct 2019 02:01:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570698094; cv=none; d=google.com; s=arc-20160816; b=RMj7Su/SfdRJTKSiKEeMWQ8ucHhA/7JojVUaW5gd5rjYHj3emjQjdIuK+B6SRu034B WtM2QIQqkJFFyCDORt0YiC9xB8cGlFl+9qd0GEp2wIIPmLYaqlBR6VOHu0n12rZjJmnv 8zisl/w3+gGHjNMhdZRohA9Kqhv4EEcHQ1KMGueOOukCj+zroS4hZ86XHQTxHYitbnw0 rwIrl0Uk8R5wyrGvwcrC56PViU8MFK3vKIsBE+OZlO9yDYkPqAXFYlvLN4q2fRrhlQfX jSpmDnIgC4v/khCY6v3wXkZD+6/HHsd8wLtduLYyBFwUuGVh0wl2fu6ym+u+bup9NJvt EH7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=fCNKZF4z8GUKrGj3r1Zn0gEAsehCkddXTa2O0qiNZUM=; b=ZXzoE9/97QPmjVZ2wtzReXMFZkys+/f7u+HLXyx7a9jiekpwmyxjm+1C+l8Xl1ZXdm uTIk+7wJRClbBuY3Olzv/rD5YlQ8cfKv9Bg00A+zDSJ+bLd9WPTnS7CJSPVi57wNhl8g aeRtUdrLQtKJ0L8uxDWWH6HhzEnOalXN+BsJXZKjSCtuc0jVdwFrQkwuSlvuL2hZgX7v LXmFtRa0FHoOztoz1ZFlM2dlSqLHL/C8WEVXLtYhRqDfk3+fanHE+u3YRjdJfOMd8IZO O8B6YbvLEpgy0W6pHCjuzOF6w76Vl9MhD0F50erBBerouIGvUSQwyeX5sYQBgUiTrH8g /K/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JuoItyXt; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8si3132263edb.335.2019.10.10.02.01.11; Thu, 10 Oct 2019 02:01:34 -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=@kernel.org header.s=default header.b=JuoItyXt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388448AbfJJImA (ORCPT + 99 others); Thu, 10 Oct 2019 04:42:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:46408 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388411AbfJJIlw (ORCPT ); Thu, 10 Oct 2019 04:41:52 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9E6802054F; Thu, 10 Oct 2019 08:41:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570696912; bh=8Zflg7lZGju3znOPM11CWJ5ivnYcOP2oM1Gv3T3aW9g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JuoItyXtBDpl+MsVf+au2XXu+aTcSNuGVPGWf9uGYCJlQkEPAvBQB7Ad4VBr8KnWL nShsFiYIhXy+21pzzTDdoHqXAZHvnkMBdcRFOrFB9f7q/nw8icyKICfrwf7ZZHXwO/ tienev9MqaoZ2iUoR+AIV0BTMWKqH0sQMl/6xHv0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "H. Nikolaus Schaller" , Tony Lindgren Subject: [PATCH 5.3 081/148] DTS: ARM: gta04: introduce legacy spi-cs-high to make display work again Date: Thu, 10 Oct 2019 10:35:42 +0200 Message-Id: <20191010083616.242624592@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191010083609.660878383@linuxfoundation.org> References: <20191010083609.660878383@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: H. Nikolaus Schaller commit f1f028ff89cb0d37db299d48e7b2ce19be040d52 upstream. commit 6953c57ab172 "gpio: of: Handle SPI chipselect legacy bindings" did introduce logic to centrally handle the legacy spi-cs-high property in combination with cs-gpios. This assumes that the polarity of the CS has to be inverted if spi-cs-high is missing, even and especially if non-legacy GPIO_ACTIVE_HIGH is specified. The DTS for the GTA04 was orginally introduced under the assumption that there is no need for spi-cs-high if the gpio is defined with proper polarity GPIO_ACTIVE_HIGH. This was not a problem until gpiolib changed the interpretation of GPIO_ACTIVE_HIGH and missing spi-cs-high. The effect is that the missing spi-cs-high is now interpreted as CS being low (despite GPIO_ACTIVE_HIGH) which turns off the SPI interface when the panel is to be programmed by the panel driver. Therefore, we have to add the redundant and legacy spi-cs-high property to properly activate CS. Cc: stable@vger.kernel.org Signed-off-by: H. Nikolaus Schaller Signed-off-by: Tony Lindgren Signed-off-by: Greg Kroah-Hartman --- arch/arm/boot/dts/omap3-gta04.dtsi | 1 + 1 file changed, 1 insertion(+) --- a/arch/arm/boot/dts/omap3-gta04.dtsi +++ b/arch/arm/boot/dts/omap3-gta04.dtsi @@ -120,6 +120,7 @@ spi-max-frequency = <100000>; spi-cpol; spi-cpha; + spi-cs-high; backlight= <&backlight>; label = "lcd";