Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4261604ybf; Wed, 4 Mar 2020 00:10:57 -0800 (PST) X-Google-Smtp-Source: ADFU+vscI8njTl06ixiKgD+ONDAPa5yUrfP7rO6rYPQqeRZr5RHx+fCuuIHmrkqpBsjfhECpLmrS X-Received: by 2002:a05:6808:a0a:: with SMTP id n10mr961885oij.10.1583309457737; Wed, 04 Mar 2020 00:10:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583309457; cv=none; d=google.com; s=arc-20160816; b=btxmW/M3fb2rDB5P5VVyq040YcgVt7euah6ZHnwKdrxTh4VI35uRrs1nS0W/GglNqE tOPm/6yr9/xQhN/tmXzy+x3iw2hAOn2aI3E2jt02b+R4VKMx+daba46DtUJ91DTdlwUs UAJws5g7d/0Y6UnM/bDXRFFM0o0M/C5PSyC9vi+s8veoc4K7Nr2jnprgqT9ILUpRR3hC klC0Gd6t+LqLFdTEfZlDhdTcuXKTLck1nSnswbDeaPdYknpUjxnsEF7+z0OkuQ+9jRL8 BXN0yQvoy3XPV4ksVslQtLKj3ul8WYOU5CT7cSF+I+y5GSv0ZJrjkYflKWcc23Bu//iv NBkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=eCzixOUfq5r9UpQnewtb7MxuweEMYFpNFZEz0vgGxiY=; b=c0Qs9h2knjerewMa13xF5euf612w37XxH84/E4DdZN3R+UcwbsbRoh7CcpodGYKRsj l26r+w5h44yJjMHzVErvHkuycjg7TdNfowREXpFsdrj2rw5vFnUm9QSmdvhXQXOOf4eO zoIhMaFgTxcJ6BBfAtUKiTeZXao725R5w/WW++DGSBx6RGIaQzkHis6v9iGtKcuKfcgC MR/5gw+wT/syAQmqy6++MbPg1Trikdnw7QFh/61Ac65tDWjdpByMXGm7+vvlqzaaLCG5 tB1qHUFCajOO1VDtUI2FbSuGPsqfS75+ESKEtT19NmM3r9PczQ3iV9iHkgY9BM3ckhxO 0RVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=FWSZDpXj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l15si777709oic.220.2020.03.04.00.10.46; Wed, 04 Mar 2020 00:10:57 -0800 (PST) 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=@st.com header.s=STMicroelectronics header.b=FWSZDpXj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728993AbgCDIKd (ORCPT + 99 others); Wed, 4 Mar 2020 03:10:33 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:34943 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728744AbgCDIK3 (ORCPT ); Wed, 4 Mar 2020 03:10:29 -0500 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02487rix032637; Wed, 4 Mar 2020 09:10:09 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=eCzixOUfq5r9UpQnewtb7MxuweEMYFpNFZEz0vgGxiY=; b=FWSZDpXjEYgq2r2Q26HrIUhJc8yu109joF/LALnFKZkC+hfIAjg7g+FulJaSRFrjjS/W 41JaMB8WpI29FqZE5o49S/9yNlL+uyReVWGznXEP7kXkiFoF/DiFeY6U+vf0oazGT9LK IQmSVmE9HBy5M/IQguhYUtSWxsPGWNx2WpHJ4DxfI2RfMozmnJWUMjmC4QQIpcKH7LNw m42mce8cmCfmCcXhaQh/nuugsUG73Xn+poVxQpBWIlvFjNS1ieE5pFtFZqx9NGu9Pze5 z7n7OTCsdnhZO47dmyb17LEGX+VHw5yK8DIjKczgw4Z26dXh7V3IHBPWmS3CTGVaXZr0 XA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2yfem0ybwx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Mar 2020 09:10:09 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B85DC10003A; Wed, 4 Mar 2020 09:10:06 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag6node1.st.com [10.75.127.16]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A6E6D21FE85; Wed, 4 Mar 2020 09:10:06 +0100 (CET) Received: from localhost (10.75.127.45) by SFHDAG6NODE1.st.com (10.75.127.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 4 Mar 2020 09:10:06 +0100 From: Yann Gautier To: Maxime Coquelin , Alexandre Torgue , Rob Herring , Mark Rutland , , , , CC: Yann Gautier Subject: [PATCH 1/3] ARM: dts: stm32: add cd-gpios properties for SD-cards on STM32MP1 boards Date: Wed, 4 Mar 2020 09:09:54 +0100 Message-ID: <20200304080956.7699-2-yann.gautier@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200304080956.7699-1-yann.gautier@st.com> References: <20200304080956.7699-1-yann.gautier@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.45] X-ClientProxiedBy: SFHDAG8NODE2.st.com (10.75.127.23) To SFHDAG6NODE1.st.com (10.75.127.16) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-03-04_01:2020-03-03,2020-03-04 signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The broken-cd properties are replaced with cd-gpios, with the correct GPIO to detect the card insertion. The GPIO lines require a pull-up. Signed-off-by: Yann Gautier --- arch/arm/boot/dts/stm32mp157a-avenger96.dts | 2 +- arch/arm/boot/dts/stm32mp157c-ed1.dts | 2 +- arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/stm32mp157a-avenger96.dts b/arch/arm/boot/dts/stm32mp157a-avenger96.dts index cbfa4075907e..2bdfab192a39 100644 --- a/arch/arm/boot/dts/stm32mp157a-avenger96.dts +++ b/arch/arm/boot/dts/stm32mp157a-avenger96.dts @@ -300,7 +300,7 @@ pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>; pinctrl-1 = <&sdmmc1_b4_od_pins_a>; pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; - broken-cd; + cd-gpios = <&gpioi 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; st,sig-dir; st,neg-edge; st,use-ckin; diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm32mp157c-ed1.dts index 1fc43251d697..5daaec3aec9b 100644 --- a/arch/arm/boot/dts/stm32mp157c-ed1.dts +++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts @@ -313,7 +313,7 @@ pinctrl-0 = <&sdmmc1_b4_pins_a &sdmmc1_dir_pins_a>; pinctrl-1 = <&sdmmc1_b4_od_pins_a &sdmmc1_dir_pins_a>; pinctrl-2 = <&sdmmc1_b4_sleep_pins_a &sdmmc1_dir_sleep_pins_a>; - broken-cd; + cd-gpios = <&gpiog 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; st,sig-dir; st,neg-edge; st,use-ckin; diff --git a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi b/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi index f6672e87aef3..02d52eb3c34f 100644 --- a/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi +++ b/arch/arm/boot/dts/stm32mp15xx-dkx.dtsi @@ -479,7 +479,7 @@ pinctrl-0 = <&sdmmc1_b4_pins_a>; pinctrl-1 = <&sdmmc1_b4_od_pins_a>; pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; - broken-cd; + cd-gpios = <&gpiob 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; st,neg-edge; bus-width = <4>; vmmc-supply = <&v3v3>; -- 2.17.1