Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E06CC433E7 for ; Thu, 15 Oct 2020 15:53:49 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D4A9A20878 for ; Thu, 15 Oct 2020 15:53:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RQ3bFUos"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=st.com header.i=@st.com header.b="frC6C3Qv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D4A9A20878 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=st.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=G49npuQGmv1YAENmApcnzH0ztYYEX9C1hK2uZR56r7o=; b=RQ3bFUosLxeH85lQBfuldH8KQ O+1YnnFvyfVt/BDpTRRSGuQXdTMHj3DqFvGRlABU5bq3IBbaAPwmCIoGr1wqPZDxSqMCdKm3GTLmN VmCM2w3pMmXN6nceNqxTd5+Ys8nkZpfOjvRvAirbb95a+JPzrovozwpT7Q5prEfCjzZXoeao03Nbx n4HL4rGNRIXhjdB5xV74haTsMViZ91HiQWdCQj+XY4NmvMhcrWJD0a3TLMTpTR0UjG4D9cqwElm1I 7beUe5oDIm5bmds5NNFimrJlVcoPcUhuN10Tq27CBXJDEOEOCbMEBaIikugM05qp34cfa1xaPGEG8 We1K9S69g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kT5YE-0005Px-0x; Thu, 15 Oct 2020 15:52:22 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kT5YC-0005PE-3w for linux-arm-kernel@lists.infradead.org; Thu, 15 Oct 2020 15:52:20 +0000 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09FFlVxm022682; Thu, 15 Oct 2020 17:52:12 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=DQoZvXhZdY8zvlwqNoG3Kx2x3idDsD/0xwAEfYm3lmg=; b=frC6C3Qvq4fZHf57420oWogSEGGUC0BWQGSoKkvNfjKDooZAj35VztML77in6NEUbC4q duZOMxxT0PhTQ+hCu4VlNRBr9h2ObFtbdU9GZoFUr/Unatrl8Oo2B9MuapLnJ6YImI3z 9U6jIoIg21ynWB5s63QMiOwy5S/FqDanX6lButpH2aMCBg/VB8YKISWCHpqT6uLsF/CG OeeHKtCUHTIgUmK+U41hiokz+WKm/+67e5Ke1V1ctfHuZ9RZqMu1+F39s8QZCGazWF6V 7rVw7Gac1Oj7gCUo3QEonj4WxVd4DeLasFVnm1NSc8YTd7QLhcjpRRvvprCee3LH329X QA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 343587e377-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Oct 2020 17:52:12 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 930E810002A; Thu, 15 Oct 2020 17:52:11 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 781E22CD045; Thu, 15 Oct 2020 17:52:11 +0200 (CEST) Received: from lmecxl0912.lme.st.com (10.75.127.49) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 15 Oct 2020 17:52:10 +0200 Subject: Re: [Linux-stm32] [PATCH] ARM: dts: stm32: Consistently enable internal pull-ups for SD bus To: Ahmad Fatoum , Marek Vasut , Yann GAUTIER , "linux-arm-kernel@lists.infradead.org" References: <20201009210820.243659-1-marex@denx.de> <33b2ff3f-3809-46db-a989-c7517d6e8369@pengutronix.de> <11b92f1e-fda0-e98a-8db7-f53004f2404d@denx.de> From: Alexandre Torgue Message-ID: <0f815500-9ff3-da51-42b2-7a262d57f510@st.com> Date: Thu, 15 Oct 2020 17:51:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG3NODE2.st.com (10.75.127.8) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-10-15_09:2020-10-14, 2020-10-15 signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201015_115220_364096_1843E400 X-CRM114-Status: GOOD ( 24.61 ) 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: hardware@linux-automation.com, Patrick DELAUNAY , Maxime Coquelin , "linux-stm32@st-md-mailman.stormreply.com" Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi On 10/15/20 3:47 PM, Ahmad Fatoum wrote: > Hello, > > On 10/15/20 3:40 PM, Marek Vasut wrote: >>>> Currently the >>>> stm32mp15-pinmux.dtsi is not consistent in that aspect. I am not arguing >>>> about any one single board, but about the dtsi, I suspect by default the >>>> pull ups should be enabled, and possibly on board-DT-level they should >>>> be disabled if not needed instead ? >>> >>> I think this is a good idea. But existing boards should be fixed up so that >>> their old behavior is maintained. >> >> So, which boards do we fix. The automation-1 board and the ST ones ? > > fixed up, not fixed. I don't know if ST is fine with the changes, for > the MC-1, please do: > > -------------- 8< ------------- > diff --git a/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts b/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts > index 5700e6b700d3..7134466256b3 100644 > --- a/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts > +++ b/arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts > @@ -208,6 +208,14 @@ pins2 { > }; > }; > > +&sdmmc2_d47_pins_b { > + /* board already has external 47K pull-ups */ > + > + pins { > + /delete-property/ bias-pull-up; > + bias-disable; > + }; > +}; > + This proposition remind me an old discussion we got with Marek about "where pin definitions has to be done ?". My approach is to not define pins groups inside board dts file mainly because pinmux is a SoC configuration and a board only use one of those configurations blablabla :). But counter-argument is that pull-up/pull-down, Open-drain push-pull settings are "driven" by the board configuration and I agree. We are exactly in this case here but before to rework all STM32 DT to split pin config I propose to keep what we have today, and to enable bias-pull-up, (or other settings) in boards that need it. Marek, what's your feeling ? cheers alex > &sdmmc2 { > pinctrl-names = "default", "opendrain", "sleep"; > pinctrl-0 = <&sdmmc2_b4_pins_a &sdmmc2_d47_pins_b>; > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel