Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1866516ybh; Sun, 8 Mar 2020 15:27:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt9RZ85813ohanbxbU/z4SUM4nhDtlmHgwwb6ftRoV2Gk1z4KQ6gITjTyhHvnCMqF/Yo7K7 X-Received: by 2002:aca:4987:: with SMTP id w129mr9958532oia.103.1583706444779; Sun, 08 Mar 2020 15:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583706444; cv=none; d=google.com; s=arc-20160816; b=da+UYcOFr9Yzvhg18WX0mLHRtWSTF62iDikakKKg30CYMh+Sqrc+9xi3Eq5K5BmYQ8 t1cQ0dWYHJk+kvqMMWa5CvexzOdIDcInbD+KBHSbER8q4gOyfwY5T1vKstVV36OK2DGA 8GB0jrWR09+u9/hQeJaV1Vku2AcFgvHAYVBYABa9PnJ8EXbKUul/I+F3dedjMZmj2G5h bTW98zoveH4IMxRKKOoU2wop7P7aDhGjJQHAWGdlcjxSZl2n+fBFqLoeKWDkTH8W6V/5 Z9BYCrEk1tCNtOOIdbJ2/EQwAhSiwNaOsVj1QiGpItndKzzpB2HiNoAcfjzre/PHtuIg bkdA== 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=d9uANtqqjVRwOWMSyb++r8818TlXjH+7k+MeOvfjjAo=; b=S2ocA4fS2w7sVvgu3R9dJTHAx7QAi5Budml2H2AcIj58Fe7gmG0kTcA7FVvTHWzwVQ HSCrscWJtipFtLmaduGVotN/M9HWNKj+D+z7y9/lePUi6a607TrXw9jf3dugYocDpVJP pQPn+4iWP5omQvYnzQch3F/NRqhjICLgPD2531eO/ziP6YxAAqhpFM+HokHmIR+jawFx CsxF/GRv9N4tEpWJbxuTKW+04OHa1mdEyBkmlFPpTKglJ1Ou98yUDvYpwsOMRuEKIW1/ h8yLAzTz9xjHXFbCD6La0S9VOVd4wlRJKNrIZejEm+n2DXBIH9JHoyr9BcDnF3ZaNiJf /cVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@heimpold.de header.s=strato-dkim-0002 header.b=A3oqdy+P; 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 i19si2582732oik.272.2020.03.08.15.27.12; Sun, 08 Mar 2020 15:27:24 -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=fail header.i=@heimpold.de header.s=strato-dkim-0002 header.b=A3oqdy+P; 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 S1726403AbgCHWZJ (ORCPT + 99 others); Sun, 8 Mar 2020 18:25:09 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.51]:20612 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726346AbgCHWZJ (ORCPT ); Sun, 8 Mar 2020 18:25:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1583706306; s=strato-dkim-0002; d=heimpold.de; h=Message-Id:Date:Subject:Cc:To:From:X-RZG-CLASS-ID:X-RZG-AUTH:From: Subject:Sender; bh=d9uANtqqjVRwOWMSyb++r8818TlXjH+7k+MeOvfjjAo=; b=A3oqdy+PX8PD0cNpjQs47ICTEpjOrCOukRPRFlPEOYv6xPq9i09aHbtjEHRADGyeQo BJ4ITDeLGy2+YNXfS9ZKry9vEAMjx8PLspeM0FecHZoBm2cl1Cka3WahN3INoV0dQlhK lCoq3HIR02fggWNrgymb4QXxYaGGA5BLkj0i7bvvMCGtwqCqlKcCziyAK0eJRXNeEidc Or/dSlYXiFfovllXJcuQvYi3vgSo8tCUQaoO67eBrxCEWxr87D0VFcDQvNftTdzaxbD5 7JfWU9grT6yTD92P0Lc7nQnzfKnMba4t03nBOGMjQvapwRfquS7ANLKLMBkM9mttDXHC newA== X-RZG-AUTH: ":O2kGeEG7b/pS1EW8QnKjhhg/vO4pzqdNytq77N6ZKUSN7PfdWTGQORRBv+ASfYPl1MuUOoWmb+wVC/S4hO3Q59Bxjg5s+JNFtEYYiw==" X-RZG-CLASS-ID: mo00 Received: from tonne.mhei.heimpold.itr by smtp.strato.de (RZmta 46.2.0 AUTH) with ESMTPSA id Q06422w28MM4gKy (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Sun, 8 Mar 2020 23:22:04 +0100 (CET) Received: from kerker.mhei.heimpold.itr (kerker.mhei.heimpold.itr [192.168.8.1]) by tonne.mhei.heimpold.itr (Postfix) with ESMTP id 6D0F71512E1; Sun, 8 Mar 2020 23:22:03 +0100 (CET) From: Michael Heimpold To: shawnguo@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Michael Heimpold Subject: [PATCH] ARM: dts: imx23: introduce mmc0_sck_cfg Date: Sun, 8 Mar 2020 23:21:44 +0100 Message-Id: <20200308222144.24863-1-mhei@heimpold.de> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Olimex Olinuxino board has a user led connected to SSP1_DETECT. But since this pin is listed in mmc0_pins_fixup, it is already claimed by MMC driver and this results in this error during boot: [ 1.390000] imx23-pinctrl 80018000.pinctrl: pin SSP1_DETECT already requested by 80010000.spi; cannot claim for leds [ 1.400000] imx23-pinctrl 80018000.pinctrl: pin-65 (leds) status -22 [ 1.410000] imx23-pinctrl 80018000.pinctrl: could not request pin 65 (SSP1_DETECT) from group led_gpio2_1.0 on device 80018000.pinctrl [ 1.420000] leds-gpio leds: Error applying setting, reverse things back [ 1.430000] leds-gpio: probe of leds failed with error -22 This fix it, introduce mmc0_sck_cfg and switch the Olinuxino board to it. Signed-off-by: Michael Heimpold --- arch/arm/boot/dts/imx23-olinuxino.dts | 2 +- arch/arm/boot/dts/imx23.dtsi | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx23-olinuxino.dts b/arch/arm/boot/dts/imx23-olinuxino.dts index 4c9aafe00b5d..0729e72f2283 100644 --- a/arch/arm/boot/dts/imx23-olinuxino.dts +++ b/arch/arm/boot/dts/imx23-olinuxino.dts @@ -23,7 +23,7 @@ ssp0: spi@80010000 { compatible = "fsl,imx23-mmc"; pinctrl-names = "default"; - pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_pins_fixup>; + pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_sck_cfg>; bus-width = <4>; broken-cd; status = "okay"; diff --git a/arch/arm/boot/dts/imx23.dtsi b/arch/arm/boot/dts/imx23.dtsi index 8257630f7a49..e18ad74d5470 100644 --- a/arch/arm/boot/dts/imx23.dtsi +++ b/arch/arm/boot/dts/imx23.dtsi @@ -267,6 +267,14 @@ fsl,pull-up = ; }; + mmc0_sck_cfg: mmc0-sck-cfg@0 { + reg = <0>; + fsl,pinmux-ids = < + MX23_PAD_SSP1_SCK__SSP1_SCK + >; + fsl,pull-up = ; + }; + mmc1_4bit_pins_a: mmc1-4bit@0 { reg = <0>; fsl,pinmux-ids = < -- 2.17.1