From mboxrd@z Thu Jan 1 00:00:00 1970 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=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable 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 89E15C433EF for ; Thu, 9 Sep 2021 17:25:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6EE436103E for ; Thu, 9 Sep 2021 17:25:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240976AbhIIR0z (ORCPT ); Thu, 9 Sep 2021 13:26:55 -0400 Received: from mickerik.phytec.de ([195.145.39.210]:46064 "EHLO mickerik.phytec.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234709AbhIIR0x (ORCPT ); Thu, 9 Sep 2021 13:26:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1631208342; x=1633800342; h=From:Sender:Reply-To:Subject:Date:Message-Id:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jbbetMc7CUD8n/rThyOnLoq5J7Z1RxGeMpNl5X/TCdg=; b=bP103GSntSORqfBR1JGFLA7wWyQcp3dNlF1nuvPBxSKWa+4iNE/g272sTVoRrwkQ 5+55B7dDRmoXZwqOsXw4hACa/ReZEYNVCI0RKUhankfN9Z7U4worzdBrfsWUiGV8 5WEyTUx96B1yq5ToU2obJk7I0lXKZEjb3KtI/iK4sl8=; X-AuditID: c39127d2-c63ec70000001d24-c6-613a4396dfa0 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id E1.31.07460.6934A316; Thu, 9 Sep 2021 19:25:42 +0200 (CEST) Received: from lws-ybas.phytec.de ([172.16.21.122]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2021090919254195-1638982 ; Thu, 9 Sep 2021 19:25:41 +0200 From: Yunus Bas To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: festevam@gmail.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: dts: imx6: phycore-som: Disable micro-SD write protection Date: Thu, 9 Sep 2021 19:25:55 +0200 Message-Id: <20210909172555.435430-1-y.bas@phytec.de> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 09.09.2021 19:25:42, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 09.09.2021 19:25:42 X-TNEFEvaluated: 1 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrILMWRmVeSWpSXmKPExsWyRoCBS3eas1WiwY/VAhbzj5xjtXh41d9i 0+NrrBaXd81hs2jde4Td4u/2TSwWL7aIO7B77Jx1l91j06pONo/NS+o9+v8aeHzeJBfAGsVl k5Kak1mWWqRvl8CVsfLmcaaC5ZwV93ZuZ29g/MfexcjBISFgInHgaWEXIxeHkMA2RonNWyex dTFyAjnnGSU+3bcDsdkEFCXO337LCmKLCNRK7N3+nB3EZhawkVj4t5ERZI6wgL/E0dM8IGEW ARWJjfd2sYDYvAKmEndOnACzJQTkJY786mSGiAtKnJz5hAVkr4TAFUaJn9+a2CGKhCROLz7L DDFfW2LZwtfMExj5ZiHpmYUktYCRaRWjUG5mcnZqUWa2XkFGZUlqsl5K6iZGYDAenqh+aQdj 3xyPQ4xMHIyHGCU4mJVEeE9ssEwU4k1JrKxKLcqPLyrNSS0+xCjNwaIkznu/hylRSCA9sSQ1 OzW1ILUIJsvEwSnVwMh2XV9K7QrLfbmSFLnFV/7du7j+nqRV4K+jrWc4J97IVOBzc3+/xkhB xqwjpXVC796Pf2U9aj0FFyx98GZtq7+AxnQTQYPXua5r17+aeVbzREGwT1qw9+9LU3c3lyxZ EpJaeJthybOX23vfCE2Ti/gRUbdIJJ4161u77JzfobwFZv9+b8ySN1diKc5INNRiLipOBAD2 Pqa3NAIAAA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The micro-SD card doesn't feature a write-protect pin. Set the corresponding property in the devicetree to handle this behavior correctly and suppress driver warnings. Signed-off-by: Yunus Bas --- arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi | 1 + arch/arm/boot/dts/imx6ul-phytec-segin.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi b/arch/arm/boot/dts= /imx6qdl-phytec-mira.dtsi index 019938562aa9..0873f53ea275 100644 --- a/arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi +++ b/arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi @@ -256,6 +256,7 @@ &usdhc1 { pinctrl-0 =3D <&pinctrl=5Fusdhc1>; cd-gpios =3D <&gpio6 31 GPIO=5FACTIVE=5FLOW>; no-1-8-v; + disable-wp; status =3D "disabled"; }; =20 diff --git a/arch/arm/boot/dts/imx6ul-phytec-segin.dtsi b/arch/arm/boot/dts= /imx6ul-phytec-segin.dtsi index 95e4080dd0a6..0d4ba9494cf2 100644 --- a/arch/arm/boot/dts/imx6ul-phytec-segin.dtsi +++ b/arch/arm/boot/dts/imx6ul-phytec-segin.dtsi @@ -191,6 +191,7 @@ &usdhc1 { no-1-8-v; keep-power-in-suspend; wakeup-source; + disable-wp; status =3D "disabled"; }; =20 --=20 2.33.0 From mboxrd@z Thu Jan 1 00:00:00 1970 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=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 6F897C433EF for ; Thu, 9 Sep 2021 17:27:33 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 35D536103E for ; Thu, 9 Sep 2021 17:27:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 35D536103E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=Oens7fVQ0b6bt6PqXh8odZfPSboiimiJ2UKU3dWr6+0=; b=LQtKPZzVjiDAlT koRI76ibRLjwYsxtgWUR37PY9p4Az6ER1xpl2M1DV+9F61ULvIkFfufhoAzoTWquiku3/ZD5GuBkV 3iUsSgrw3MzNcN2FADJq14yrGC59rTIyLhz0aMX3Hv2oHKfHyrCaHQBWK1wnfUVa1guhgjX88r9mk /rT+LEnCGUltqeq0LK0nOLZX1G4sdlouPTV5jPy3uSpS4LMQ9Dum38CY1gDvNP2H+/4nEhbjQxlJe ohCJK0ujV1PbqfwYi2pZu3EK0+q4zEA2OggGW6rR6Pn2IBvUyzDfNsC90+17Eq5N+uXRThK8Ub1nG RMD2defu6ayLAeq5Ggkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mONo6-00AVIF-BX; Thu, 09 Sep 2021 17:25:50 +0000 Received: from mickerik.phytec.de ([195.145.39.210]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mONo2-00AVGg-P9 for linux-arm-kernel@lists.infradead.org; Thu, 09 Sep 2021 17:25:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1631208342; x=1633800342; h=From:Sender:Reply-To:Subject:Date:Message-Id:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jbbetMc7CUD8n/rThyOnLoq5J7Z1RxGeMpNl5X/TCdg=; b=bP103GSntSORqfBR1JGFLA7wWyQcp3dNlF1nuvPBxSKWa+4iNE/g272sTVoRrwkQ 5+55B7dDRmoXZwqOsXw4hACa/ReZEYNVCI0RKUhankfN9Z7U4worzdBrfsWUiGV8 5WEyTUx96B1yq5ToU2obJk7I0lXKZEjb3KtI/iK4sl8=; X-AuditID: c39127d2-c63ec70000001d24-c6-613a4396dfa0 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id E1.31.07460.6934A316; Thu, 9 Sep 2021 19:25:42 +0200 (CEST) Received: from lws-ybas.phytec.de ([172.16.21.122]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2021090919254195-1638982 ; Thu, 9 Sep 2021 19:25:41 +0200 From: Yunus Bas To: robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: festevam@gmail.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: dts: imx6: phycore-som: Disable micro-SD write protection Date: Thu, 9 Sep 2021 19:25:55 +0200 Message-Id: <20210909172555.435430-1-y.bas@phytec.de> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 09.09.2021 19:25:42, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 09.09.2021 19:25:42 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrILMWRmVeSWpSXmKPExsWyRoCBS3eas1WiwY/VAhbzj5xjtXh41d9i 0+NrrBaXd81hs2jde4Td4u/2TSwWL7aIO7B77Jx1l91j06pONo/NS+o9+v8aeHzeJBfAGsVl k5Kak1mWWqRvl8CVsfLmcaaC5ZwV93ZuZ29g/MfexcjBISFgInHgaWEXIxeHkMA2RonNWyex dTFyAjnnGSU+3bcDsdkEFCXO337LCmKLCNRK7N3+nB3EZhawkVj4t5ERZI6wgL/E0dM8IGEW ARWJjfd2sYDYvAKmEndOnACzJQTkJY786mSGiAtKnJz5hAVkr4TAFUaJn9+a2CGKhCROLz7L DDFfW2LZwtfMExj5ZiHpmYUktYCRaRWjUG5mcnZqUWa2XkFGZUlqsl5K6iZGYDAenqh+aQdj 3xyPQ4xMHIyHGCU4mJVEeE9ssEwU4k1JrKxKLcqPLyrNSS0+xCjNwaIkznu/hylRSCA9sSQ1 OzW1ILUIJsvEwSnVwMh2XV9K7QrLfbmSFLnFV/7du7j+nqRV4K+jrWc4J97IVOBzc3+/xkhB xqwjpXVC796Pf2U9aj0FFyx98GZtq7+AxnQTQYPXua5r17+aeVbzREGwT1qw9+9LU3c3lyxZ EpJaeJthybOX23vfCE2Ti/gRUbdIJJ4161u77JzfobwFZv9+b8ySN1diKc5INNRiLipOBAD2 Pqa3NAIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210909_102547_004600_14236E92 X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The micro-SD card doesn't feature a write-protect pin. Set the corresponding property in the devicetree to handle this behavior correctly and suppress driver warnings. Signed-off-by: Yunus Bas --- arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi | 1 + arch/arm/boot/dts/imx6ul-phytec-segin.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi b/arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi index 019938562aa9..0873f53ea275 100644 --- a/arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi +++ b/arch/arm/boot/dts/imx6qdl-phytec-mira.dtsi @@ -256,6 +256,7 @@ &usdhc1 { pinctrl-0 = <&pinctrl_usdhc1>; cd-gpios = <&gpio6 31 GPIO_ACTIVE_LOW>; no-1-8-v; + disable-wp; status = "disabled"; }; diff --git a/arch/arm/boot/dts/imx6ul-phytec-segin.dtsi b/arch/arm/boot/dts/imx6ul-phytec-segin.dtsi index 95e4080dd0a6..0d4ba9494cf2 100644 --- a/arch/arm/boot/dts/imx6ul-phytec-segin.dtsi +++ b/arch/arm/boot/dts/imx6ul-phytec-segin.dtsi @@ -191,6 +191,7 @@ &usdhc1 { no-1-8-v; keep-power-in-suspend; wakeup-source; + disable-wp; status = "disabled"; }; -- 2.33.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel