Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2142860iob; Thu, 5 May 2022 17:03:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTb7iNDvWCdEaTJa/UZp8fXnmWkO41hdCBiJ+8yAA/pBLXVQW1j06V6lIpQ2/brv8CFrRr X-Received: by 2002:a17:907:961d:b0:6f4:d3bd:6758 with SMTP id gb29-20020a170907961d00b006f4d3bd6758mr611949ejc.401.1651795421710; Thu, 05 May 2022 17:03:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651795421; cv=none; d=google.com; s=arc-20160816; b=MRtMpcdpyvyHC1+OlBIf0BCTTqQqteD74nRFt77+zJOGn+0Kw76EMpc4Q1azgU4qKg CGa00th1zr/mbHrBNvGTY9AyATULJ0XSGDAOp26tkOK0wygxIrselEpeWcAtHsNuuxrs nsnWOImVkm2qdLscaevvpKBZIhhG7tWbbcbHHyEdtCfMmWW/uZpxnJGuCpCrn8//XWPb lCZaa1ixxKxWhmV3G0uRrtoj4lLU093GqO12VjN6/v7IdZyWN1sc7xsYD2XxMvZYVCJY iFmCZfIVcXVV0odbO4itWdD0JNEy4z+Rlopajq6jh67dHEAYHWeA2f8ktYF52mOJ3Zmh 3WCA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=exaaHa2mLKFLac0eZobaGEHbV0/JNK7vLnDhGL0Py+E=; b=0fowwz2Ks8wDIWL/hR/A2RtrkqBlMS3YQuY0CxJCASqNpszVZLEnKlc4PZyM69EbR0 Y717iaAdyqrUEueFJs/tf8DoGDjaQI6YLctDDtPuzYyEQ5N+dpiC7uss7HRwbgk//fof 9OKeuvp823kcZL5zR9WC5pdlXi8JI0cjHiiWX0a/SB8UmaKbhWXs7gckyGVW0Ocxo7Yc rI9sQrbuDbnzxomlGu/QqKgWi9hDJgyIL9pdFfZ3ah0MRam19PlM0pylPg+A/7MqQATI Tk66Eh9MrQtIxCpcYg/q5aEYobwQKdnbQ+wZO/7EA98jH9pUozBETXF4fWEqtNs0jr3A cPNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jMc1P2EV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y14-20020a056402440e00b00425f304e98fsi3948409eda.495.2022.05.05.17.03.17; Thu, 05 May 2022 17:03:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jMc1P2EV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356535AbiEDRdX (ORCPT + 99 others); Wed, 4 May 2022 13:33:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356955AbiEDRJv (ORCPT ); Wed, 4 May 2022 13:09:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 720CF473A9; Wed, 4 May 2022 09:56:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0DFFC617A6; Wed, 4 May 2022 16:56:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55FF3C385A4; Wed, 4 May 2022 16:56:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651683399; bh=kPLz94WvLTpi4nn5bI9RZUlYwgXMZk6o7VGKl86N18I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jMc1P2EV3cxxf9VNM5fiK9K1SzUJUkgL15oahxxIgslnJbao6LjTtqU/+HW34/3h3 J/z5xdUFOsWdEzyqLILwjBrGyrfIGcDXHuwQk8Mys9mdeu7+6IUeypAVbsKsTCw4js qVZfo5Hl8C8uNZ94dFLYSoeMxYTws3qknFUB4HpU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ajay Kathat , Claudiu Beznea , Nicolas Ferre , Sasha Levin Subject: [PATCH 5.17 084/225] ARM: dts: at91: fix pinctrl phandles Date: Wed, 4 May 2022 18:45:22 +0200 Message-Id: <20220504153118.564236955@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153110.096069935@linuxfoundation.org> References: <20220504153110.096069935@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Claudiu Beznea [ Upstream commit 0c640d9544d0109da3889d71ae77301e556db977 ] Commit bf781869e5cf ("ARM: dts: at91: add pinctrl-{names, 0} for all gpios") introduces pinctrl phandles for pins used by individual controllers to avoid failures due to commit 2ab73c6d8323 ("gpio: Support GPIO controllers without pin-ranges"). For SPI controllers available on SAMA5D4 and SAMA5D3 some of the pins are defined in SoC specific dtsi on behalf of pinctrl-0. Adding extra pinctrl phandles on board specific dts also on behalf of pinctrl-0 overwrite the pinctrl-0 phandle specified in SoC specific dtsi. Thus add the board specific pinctrl to pinctrl-1. Fixes: bf781869e5cf ("ARM: dts: at91: add pinctrl-{names, 0} for all gpios") Depends-on: 5c8b49852910 ("ARM: dts: at91: sama5d4_xplained: fix pinctrl phandle name") Reported-by: Ajay Kathat Co-developed-by: Ajay Kathat Signed-off-by: Ajay Kathat Tested-by: Ajay Kathat Signed-off-by: Claudiu Beznea Signed-off-by: Nicolas Ferre Link: https://lore.kernel.org/r/20220331141323.194355-2-claudiu.beznea@microchip.com Signed-off-by: Sasha Levin --- arch/arm/boot/dts/at91-sama5d3_xplained.dts | 8 ++++---- arch/arm/boot/dts/at91-sama5d4_xplained.dts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/at91-sama5d3_xplained.dts b/arch/arm/boot/dts/at91-sama5d3_xplained.dts index d72c042f2850..a49c2966b41e 100644 --- a/arch/arm/boot/dts/at91-sama5d3_xplained.dts +++ b/arch/arm/boot/dts/at91-sama5d3_xplained.dts @@ -57,8 +57,8 @@ slot@0 { }; spi0: spi@f0004000 { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_spi0_cs>; + pinctrl-names = "default", "cs"; + pinctrl-1 = <&pinctrl_spi0_cs>; cs-gpios = <&pioD 13 0>, <0>, <0>, <&pioD 16 0>; status = "okay"; }; @@ -171,8 +171,8 @@ slot@0 { }; spi1: spi@f8008000 { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_spi1_cs>; + pinctrl-names = "default", "cs"; + pinctrl-1 = <&pinctrl_spi1_cs>; cs-gpios = <&pioC 25 0>; status = "okay"; }; diff --git a/arch/arm/boot/dts/at91-sama5d4_xplained.dts b/arch/arm/boot/dts/at91-sama5d4_xplained.dts index accb92cfac44..e519d2747936 100644 --- a/arch/arm/boot/dts/at91-sama5d4_xplained.dts +++ b/arch/arm/boot/dts/at91-sama5d4_xplained.dts @@ -81,8 +81,8 @@ usart4: serial@fc010000 { }; spi1: spi@fc018000 { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_spi1_cs>; + pinctrl-names = "default", "cs"; + pinctrl-1 = <&pinctrl_spi1_cs>; cs-gpios = <&pioB 21 0>; status = "okay"; }; -- 2.35.1