Received: by 10.223.176.5 with SMTP id f5csp1741wra; Fri, 26 Jan 2018 16:09:16 -0800 (PST) X-Google-Smtp-Source: AH8x226qEy7maO96lFuHGLScHI9OEFaOTtL9YHTcd8dXW341uybgLQY/7iwGO8Iz4RxfPYOYE5lr X-Received: by 10.98.163.79 with SMTP id s76mr20805430pfe.67.1517011756856; Fri, 26 Jan 2018 16:09:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517011756; cv=none; d=google.com; s=arc-20160816; b=GouT/WMRbfoA3La+adtoDjrr4p0tNvq+oz3zH5NIuLQHMkrk2THNv3G/Gqig33Yeqm jRkdtO2ThmMVBp/iJr8NTOvkwyAZY5EiVnCme1IXyJCGT8erqrnnZZqvhcI9++wIBXsH cyvzqb/JLOIJ24ie8ZeuPl4ikH9H3xPhxxq4jExxJnkEvqDDJJjInoN8KkyXmoaS6hBU VScCAsP8GCq0Vjorl1pxTAPY0yYkyXRn/lEv+n56hAQ50hltW8F7meUbY+Ydwj0YYN5O m9iyEeg7zzMCPNX+le+ztcr1wyH2WfNFiwoqWeFp53egjcG3vry3TANG2Dsxw3lsYoJU TDMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=ToZX3C229p0eIKCj1ZbZYJgJJeYSd4Y+HOrwK280DSg=; b=wDdr0+LFeq3jrzst23nQM+wT92ZMSdwQRqZ/TBUDpKadhB6wZ+tyUGGfZvi2N3PuKe MJ/JK640E0fynk668Jfbqh78/MJ1aRxzO68mWAD0Vi5JhA2y3L/X1a0kQb6tpYJosbbE 3rDAuk7JYyfBOHC+DdPXMqGG+xHOgZj0hR8Nl4iLzCcYWIVDqjVQnmU+FKza1nDQ0z+d gPmOC+Qfw9gXMI3ym6JYD6kl4JZ4UduDw35iksVcfF9HXgf6krgdz+RWVAog9pblEfoR dkfkOwVXhaCM6pfs2FOi+YAuVXUYPWP6v/r2n5CoHlx4mFCLPvJwD76WTpPr2E7q3Rjp V3Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X0LdTgRa; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s1-v6si4549683plk.234.2018.01.26.16.09.01; Fri, 26 Jan 2018 16:09:16 -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=@gmail.com header.s=20161025 header.b=X0LdTgRa; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752033AbeA0AId (ORCPT + 99 others); Fri, 26 Jan 2018 19:08:33 -0500 Received: from mail-wr0-f196.google.com ([209.85.128.196]:43414 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751509AbeA0AIb (ORCPT ); Fri, 26 Jan 2018 19:08:31 -0500 Received: by mail-wr0-f196.google.com with SMTP id t16so1876286wrc.10; Fri, 26 Jan 2018 16:08:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ToZX3C229p0eIKCj1ZbZYJgJJeYSd4Y+HOrwK280DSg=; b=X0LdTgRaKaIFikE4TCVuOF+qucvpibA2rLUVBiEDN1lkS6gmGW30oz8zvZ6rsH4d+I WJkZZLjAKr4KPV1o5bZdDuzTzvK+PruPHLbNan59SiBqUErLXqryH1EdIAjRHTJMxHaI 5VBeXN/X6P48iFdoGxV6Oz1e5KFdtFmykX+1yH7BP3LHZjKvMe4oKvVdvOXbM77pY5Ku 2+Jasu/fWeTVUN4rlP/IvKv4p8V6VGAzc8dXQnq+SyNloaUYAKhRzSRTmqCPn+XQ8iid 09aqVwYMJrXxtAJV8GUINPgke7KhJ/fAweiHDEC6HkbuOsPlM67trv8UpNoNAdUGqDx4 XokQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ToZX3C229p0eIKCj1ZbZYJgJJeYSd4Y+HOrwK280DSg=; b=cAaU0PLym7Oee8GE23Jdr7PEe2QlxlI4jAtbG/6TLpBuxNo71aJ97QsJqVYKjAz6NC GaJZb7UySWQWpLoTmJROnZWb2L4JVhsrz9Z47hOa/fLG0OQ8ivPnwsrdKYONB4QFLCYZ 3aXaSZFeWAId5qxF7VcuqqsmCQYnWlY9W69XyObruDm93IgtVrVvMdWH74lNzz7OuML5 ypjbMbAd+h4kfGb15uau8FNviahua/F0RLiFYZvwI8A2X4T+bpC0tKsnoXNtqy9dqusJ pAXYmXIBaz0sMJ3K81ia3eJ0d/6sgFMTFTaV5cmOlEDJ7gy18Wgn3yudEGtD/oQUwDyS WMLw== X-Gm-Message-State: AKwxytci5gKN/SQVc+ohYA60e0cd0svY/FnXJ0vn5fwN5S2iDkQKGYnk SEBPgpCfH92Y2SOPyEGbh+oQGUWh X-Received: by 10.223.190.142 with SMTP id i14mr13704474wrh.111.1517011709959; Fri, 26 Jan 2018 16:08:29 -0800 (PST) Received: from localhost.localdomain (vno44-1-88-172-188-148.fbx.proxad.net. [88.172.188.148]) by smtp.gmail.com with ESMTPSA id k60sm1987025wrc.2.2018.01.26.16.08.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Jan 2018 16:08:29 -0800 (PST) From: =?UTF-8?q?Beno=C3=AEt=20Th=C3=A9baudeau?= To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Russell King , Mark Rutland , Rob Herring , Fabio Estevam , Sascha Hauer , Shawn Guo Cc: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Michael Nazzareno Trimarchi , =?UTF-8?q?Beno=C3=AEt=20Th=C3=A9baudeau?= Subject: [PATCH] ARM: dts: imx25-pinfunc: Always set SION for SD CMD Date: Sat, 27 Jan 2018 01:07:52 +0100 Message-Id: <20180127000752.2879-1-benoit.thebaudeau.dev@gmail.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The eSDHC does not work properly if the SION bit is not set for the bidirectional CMD signal, whatever the eSDHC instance and the selected pad. Therefore, setting SION is mandatory for all eSDHC CMD ports. Do this for MX25_PAD_*__SD*_CMD in imx25-pinfunc.h in order to enforce this behavior for all boards. This had already been done for eSDHC1, but not for eSDHC2. Also, define MX25_PAD_FEC_MDC__SDHC2_CMD so that all the possible cases are covered from now on. Signed-off-by: Benoît Thébaudeau --- arch/arm/boot/dts/imx25-pinfunc.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx25-pinfunc.h b/arch/arm/boot/dts/imx25-pinfunc.h index 6c63dca1b9b8..6cc71f7e1baa 100644 --- a/arch/arm/boot/dts/imx25-pinfunc.h +++ b/arch/arm/boot/dts/imx25-pinfunc.h @@ -236,7 +236,8 @@ #define MX25_PAD_LD8__LD8 0x0e8 0x2e0 0x000 0x00 0x000 #define MX25_PAD_LD8__UART4_RXD 0x0e8 0x2e0 0x570 0x02 0x000 #define MX25_PAD_LD8__FEC_TX_ERR 0x0e8 0x2e0 0x000 0x05 0x000 -#define MX25_PAD_LD8__SDHC2_CMD 0x0e8 0x2e0 0x4e0 0x06 0x000 +/* The eSDHC cannot work if SION is not set for the bidirectional CMD signal. */ +#define MX25_PAD_LD8__SDHC2_CMD 0x0e8 0x2e0 0x4e0 0x16 0x000 #define MX25_PAD_LD9__LD9 0x0ec 0x2e4 0x000 0x00 0x000 #define MX25_PAD_LD9__UART4_TXD 0x0ec 0x2e4 0x000 0x02 0x000 @@ -316,7 +317,8 @@ #define MX25_PAD_CSI_D5__CSPI3_RDY 0x12c 0x324 0x000 0x07 0x000 #define MX25_PAD_CSI_D6__CSI_D6 0x130 0x328 0x000 0x00 0x000 -#define MX25_PAD_CSI_D6__SDHC2_CMD 0x130 0x328 0x4e0 0x02 0x001 +/* The eSDHC cannot work if SION is not set for the bidirectional CMD signal. */ +#define MX25_PAD_CSI_D6__SDHC2_CMD 0x130 0x328 0x4e0 0x12 0x001 #define MX25_PAD_CSI_D6__SIM1_PD0 0x130 0x328 0x000 0x04 0x000 #define MX25_PAD_CSI_D6__GPIO_1_31 0x130 0x328 0x000 0x05 0x000 @@ -496,6 +498,8 @@ #define MX25_PAD_KPP_COL3__GPIO_3_4 0x1c4 0x3bc 0x000 0x05 0x000 #define MX25_PAD_FEC_MDC__FEC_MDC 0x1c8 0x3c0 0x000 0x00 0x000 +/* The eSDHC cannot work if SION is not set for the bidirectional CMD signal. */ +#define MX25_PAD_FEC_MDC__SDHC2_CMD 0x1c8 0x3c0 0x4e0 0x11 0x002 #define MX25_PAD_FEC_MDC__AUD4_TXD 0x1c8 0x3c0 0x464 0x02 0x001 #define MX25_PAD_FEC_MDC__GPIO_3_5 0x1c8 0x3c0 0x000 0x05 0x000 -- 2.14.1