From patchwork Tue Aug 13 07:27:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 11091375 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7D9DB14D5 for ; Tue, 13 Aug 2019 07:27:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 63EEA285C9 for ; Tue, 13 Aug 2019 07:27:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 556B4285D9; Tue, 13 Aug 2019 07:27:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 05EF7285C9 for ; Tue, 13 Aug 2019 07:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=WJqcatAe8zH9cuslNTgOgnWvUzcX5t5HPXUDUD7uyEg=; b=qiG/teP4HIVa2M 8CozloYfdcBZh+tpTkuAbn0dWENzKxeHUnh7y8k3YTNOpoA+5OAtdcOJo1yNROL6Ot/OdaCM4Xdxs XSqCaODHQ3soJNqbzAr+lXJQSIicaRw+k9DoIQl3KBtqM3QAr6yJ1iSGUWaDm9hhtJC3Q7IS2qNPA iqMBxvUTK+zZJznAnSzei2JeKhA1tk3Hyo1lLl4vSBV4THbVBZdbIgYqr7/KY3TJfj4cYA1psnk7k 50N5MBrUgyOgqHoYSje7475JofI+oe4gd8oRkKZsjBwMiXj4Lm/rWVfrHonXDXcDX6PybIyZPwgXV el1NCPQ12Chei3hJSqiA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hxRDX-0007u7-Jn; Tue, 13 Aug 2019 07:27:39 +0000 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hxRDU-0007t1-Ev for linux-arm-kernel@lists.infradead.org; Tue, 13 Aug 2019 07:27:37 +0000 Received: by mail-lj1-x241.google.com with SMTP id t3so12069498ljj.12 for ; Tue, 13 Aug 2019 00:27:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Gxw6O48J9qRmzDYXvAWMeWAUk3rGowLbkm5cB//pjK8=; b=Z82dKHpy5Gu4J7/N3lAkpPg8JsM19vCbBE5kstbntzk0Dfl/5x1fEMljqq5Msxk2/J nZcH+vOfcvml6lkbtjPiuJH1HKH013l+xCy4vm8XvxUo6OQQTIJv5is/9j9WyZ5AH30C BiccQwyF/pbJYLDOJ7b3Cro5RR+UM0GFiWIubSQD8VO08COAur8HqvQDXOvDCE74k0tP IESgy8IOLHUR7QJeNfb3U2ta6NgALwNLoy8FTll0is2n2+8cn+AE4n3exqYIx/Khj/L7 uh7rHt7wrMicG8DUcR+8OiwubLvfjvV4MRdef3/wBJrK0RYJh6qx2JLNbMUGDZtgV8Sr TnWQ== 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:mime-version :content-transfer-encoding; bh=Gxw6O48J9qRmzDYXvAWMeWAUk3rGowLbkm5cB//pjK8=; b=Jl8u7WwB51hqE09niWb5K5NqQplIzzeGCyFP+ghD+mullOgh1xfO+Z/UmFIioMoUW3 FW3+Qn3VAc5n06DZcUEqGu+DBYhahGOM1wW2E4nhYGYOigqCRWWKiKqFFaPAWu6Ns/UL u2W+pAl5cUqUUG93OOtWK46NucFhnmmCtvEDbXrIrKDQIZRCf4odPUkXvJggU0Z+LiJu 5BqdKHE6lklLMPSoQefe9M2L1YTCSQCbv/ufSXDRI0f6BiuEOacrC5tGlqV7BkqsjLF+ PbVRvuN9HLkiSoi9YmzxKdxBoEZNZp87LW6NX8YEiCifIq+4RVvk2gWEAQmYuIzLrqlq BCnw== X-Gm-Message-State: APjAAAUlod1VeEz42fIGTe3Dt7VI1fQ3IHYeSPgqbWJacMtZA8FRh9Fr dIiQ7fGivQ8tjiDws4J2pdZ0kQ== X-Google-Smtp-Source: APXvYqysE1zoOaMXVVrhPhIBzgFCPB3jNNndUZAP7c+tNqs2RgHpaFLlNgeFmS76jP1fiEV3l22XOg== X-Received: by 2002:a05:651c:95:: with SMTP id 21mr2819969ljq.128.1565681255104; Tue, 13 Aug 2019 00:27:35 -0700 (PDT) Received: from localhost.bredbandsbolaget (c-2ccd225c.014-348-6c756e10.bbcust.telenor.se. [92.34.205.44]) by smtp.gmail.com with ESMTPSA id r23sm737884lji.3.2019.08.13.00.27.33 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 13 Aug 2019 00:27:34 -0700 (PDT) From: Linus Walleij To: arm@kernel.org, soc@kernel.org Subject: [PATCH] ARM: dts: nomadik: Set up the CS GPIO right Date: Tue, 13 Aug 2019 09:27:31 +0200 Message-Id: <20190813072731.4558-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190813_002736_500216_A0698742 X-CRM114-Status: GOOD ( 11.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Linus Walleij , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Now that the SPI GPIO driver knows how to handle these chip select GPIOs and we get nasty messages about the core having to enforce active low on the GPIO, fix this up by actually requesting the CS GPIO line as active low. Signed-off-by: Linus Walleij --- ARM SoC folks: please apply this directly for v5.4, I do not plan to send more Nomadik patches this merge window. --- arch/arm/boot/dts/ste-nomadik-nhk15.dts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm/boot/dts/ste-nomadik-nhk15.dts b/arch/arm/boot/dts/ste-nomadik-nhk15.dts index 04066f9cb8a3..41ed21a4fdc1 100644 --- a/arch/arm/boot/dts/ste-nomadik-nhk15.dts +++ b/arch/arm/boot/dts/ste-nomadik-nhk15.dts @@ -212,13 +212,7 @@ */ gpio-sck = <&gpio0 5 GPIO_ACTIVE_HIGH>; gpio-mosi = <&gpio0 4 GPIO_ACTIVE_HIGH>; - /* - * It's not actually active high, but the frameworks assume - * the polarity of the passed-in GPIO is "normal" (active - * high) then actively drives the line low to select the - * chip. - */ - cs-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; + cs-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; num-chipselects = <1>; /*