Received: by 10.192.165.148 with SMTP id m20csp2456616imm; Sun, 22 Apr 2018 07:25:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx49bWXyHL7V6wVJPrd4/uYrCvGJgY0uD+LSrEFGnbVyvq9OCAEL4E0WdUeS5YuQloXObt3b/ X-Received: by 10.98.82.131 with SMTP id g125mr16669321pfb.198.1524407149626; Sun, 22 Apr 2018 07:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524407149; cv=none; d=google.com; s=arc-20160816; b=BCnoiG2OTuMMEdyvYLgqB8lBpOTChRsB5R4yQjCCplJXE7S23g/eGS3ClF2ChqK0oN l9xtQl4yJ2TvXWkVz64XmNNn0KPSNnsWUxOjmH9JfVVOSOaaq9uXZ4QhGOz8C2P3JPwv u3u2EnSYTfNg9alv7ZDebxqhepmIkVLNZRh5Ct9Uu52O4xjsk34nQkX+wi7TbR5b0I4z ppPnnVJXVU8s91yEttNnwN0h9IsYpgNkxYtMQbC8ejyMaSHBuC3kkqcXDU9+WG7NJ4c8 dyArTZoYRLgLaYFtxvmi6CeWoCvoy0hQK0N7zE3o0t4C35tLCb/s8MbtgmLgBeGeh1Ku qHuA== 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 :arc-authentication-results; bh=wicYnOwLKpjXpesoNPqpIGB1z3sxgm1WegXKGwM0SIY=; b=PPj+ppeXeBkPwO2Vf5o0f2LQ1/VaoBZcIXznHjHB4Dc3pw7AZ+7XgTIjUGZ2r56ViG 7qSpVfDfEsgsZ4/lL7RZerREKqnttdGVK4z+ZmdVLu8doAw2nfld+t+KmZYAsD4KnxRE 8+JJFtzt+JDFpmW5QtehK8CMOXIzPB+NQtqOfcdMHRkKmGCBHTR2olUnTMRflkPOiSLg dzMDYx1A29LFbbJfnuC41MX4vpEQp28z8CWmzS+97yY5Z27aXU9UWSO/u3dcOs5Cn/2G gKvm4EVk1bYJpF1cs2Zp3vWQkaYM7RWpFmgUMW1VuCGCN2gufyetutVvXmcpvPAjvJUY hwmw== ARC-Authentication-Results: i=1; mx.google.com; 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 l12si8251170pgr.518.2018.04.22.07.25.35; Sun, 22 Apr 2018 07:25:49 -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; 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 S1757697AbeDVOWN (ORCPT + 99 others); Sun, 22 Apr 2018 10:22:13 -0400 Received: from vpn-0-22.aquilenet.fr ([185.233.101.22]:36024 "EHLO leonov.paulk.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755522AbeDVOWH (ORCPT ); Sun, 22 Apr 2018 10:22:07 -0400 Received: from gagarine.paulk.fr (gagarine [192.168.1.127]) by leonov.paulk.fr (Postfix) with ESMTPS id 40CA4C07EE; Sun, 22 Apr 2018 16:22:05 +0200 (CEST) Received: by gagarine.paulk.fr (Postfix, from userid 114) id D0E1FC0C31; Sun, 22 Apr 2018 16:22:04 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on gagarine.paulk.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.1 Received: from localhost.localdomain (collins [192.168.1.129]) by gagarine.paulk.fr (Postfix) with ESMTP id 9794EC05FC; Sun, 22 Apr 2018 16:21:53 +0200 (CEST) From: Paul Kocialkowski To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Russell King , Shawn Guo , Sascha Hauer , Fabio Estevam , Rob Herring , Mark Rutland , Paul Kocialkowski Subject: [PATCH] ARM: dts: imx6qdl-cubox-i: Move card-detect GPIO to 1.5 SOM devices only Date: Sun, 22 Apr 2018 16:21:51 +0200 Message-Id: <20180422142151.17910-1-contact@paulk.fr> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Solid-Run CuBox-i lower board used in the first generation of CuBox-i devices feature a hinged micro SD card slot, that does not have card-detect capability. Since the card-detect GPIO was specified in the common cubox-i dtsi, it is moved to each device using the 1.5 SOM and is thus removed from the imx6q-cubox-i dts. Enabling the card-detect GPIO on the first generation CuBox-i devices results in waiting for a card-detect event (that never occurs) and thus not detecting the mmc card. Since the CD pin is still dedicated to the purpose on the SOM board even on the first generation CuBox-i devices, the pin control properties are kept untouched regardless of the slot capability. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/imx6dl-cubox-i-emmc-som-v15.dts | 4 ++++ arch/arm/boot/dts/imx6dl-cubox-i-som-v15.dts | 4 ++++ arch/arm/boot/dts/imx6q-cubox-i-emmc-som-v15.dts | 4 ++++ arch/arm/boot/dts/imx6q-cubox-i-som-v15.dts | 4 ++++ arch/arm/boot/dts/imx6qdl-cubox-i.dtsi | 1 - 5 files changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6dl-cubox-i-emmc-som-v15.dts b/arch/arm/boot/dts/imx6dl-cubox-i-emmc-som-v15.dts index 2b2fc360b865..90a15f3b4fc0 100644 --- a/arch/arm/boot/dts/imx6dl-cubox-i-emmc-som-v15.dts +++ b/arch/arm/boot/dts/imx6dl-cubox-i-emmc-som-v15.dts @@ -50,3 +50,7 @@ model = "SolidRun Cubox-i Solo/DualLite (1.5som+emmc)"; compatible = "solidrun,cubox-i/dl", "fsl,imx6dl"; }; + +&usdhc2 { + cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; +}; diff --git a/arch/arm/boot/dts/imx6dl-cubox-i-som-v15.dts b/arch/arm/boot/dts/imx6dl-cubox-i-som-v15.dts index e09c565d1d1f..9bdec07fefe3 100644 --- a/arch/arm/boot/dts/imx6dl-cubox-i-som-v15.dts +++ b/arch/arm/boot/dts/imx6dl-cubox-i-som-v15.dts @@ -49,3 +49,7 @@ model = "SolidRun Cubox-i Solo/DualLite (1.5som)"; compatible = "solidrun,cubox-i/dl", "fsl,imx6dl"; }; + +&usdhc2 { + cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; +}; diff --git a/arch/arm/boot/dts/imx6q-cubox-i-emmc-som-v15.dts b/arch/arm/boot/dts/imx6q-cubox-i-emmc-som-v15.dts index 3e59ebbb3608..679a5431cbdb 100644 --- a/arch/arm/boot/dts/imx6q-cubox-i-emmc-som-v15.dts +++ b/arch/arm/boot/dts/imx6q-cubox-i-emmc-som-v15.dts @@ -58,3 +58,7 @@ fsl,transmit-atten-16ths = <9>; fsl,no-spread-spectrum; }; + +&usdhc2 { + cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; +}; diff --git a/arch/arm/boot/dts/imx6q-cubox-i-som-v15.dts b/arch/arm/boot/dts/imx6q-cubox-i-som-v15.dts index dab70d1230a2..b9b8733f13c3 100644 --- a/arch/arm/boot/dts/imx6q-cubox-i-som-v15.dts +++ b/arch/arm/boot/dts/imx6q-cubox-i-som-v15.dts @@ -57,3 +57,7 @@ fsl,transmit-atten-16ths = <9>; fsl,no-spread-spectrum; }; + +&usdhc2 { + cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; +}; diff --git a/arch/arm/boot/dts/imx6qdl-cubox-i.dtsi b/arch/arm/boot/dts/imx6qdl-cubox-i.dtsi index d1cfdc264126..170b3d27f875 100644 --- a/arch/arm/boot/dts/imx6qdl-cubox-i.dtsi +++ b/arch/arm/boot/dts/imx6qdl-cubox-i.dtsi @@ -254,7 +254,6 @@ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_cubox_i_usdhc2_aux &pinctrl_cubox_i_usdhc2>; vmmc-supply = <&vcc_3v3>; - cd-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; status = "okay"; }; -- 2.17.0