From patchwork Fri Jan 31 05:39:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 3560261 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7F71F9F2E9 for ; Fri, 31 Jan 2014 05:39:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 91535201CD for ; Fri, 31 Jan 2014 05:39:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B0683201D5 for ; Fri, 31 Jan 2014 05:39:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751238AbaAaFjm (ORCPT ); Fri, 31 Jan 2014 00:39:42 -0500 Received: from mail-pd0-f176.google.com ([209.85.192.176]:35207 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750961AbaAaFjl (ORCPT ); Fri, 31 Jan 2014 00:39:41 -0500 Received: by mail-pd0-f176.google.com with SMTP id w10so3906488pde.35 for ; Thu, 30 Jan 2014 21:39:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:subject:user-agent:to:cc:in-reply-to :references:mime-version:content-type; bh=WLDYUpOXVPUiWOlWJnnkqLT7rSu5Ft2viQUTnQqBKNg=; b=LYooz33S08RGf8wFrskSi2Mc733G/PeBNwnpR23EzNbrQt8nal4h06MjA38v1EfUYs oVnwmDWsPg8GXqDVr1UYa1gcMH4jcDMT6ihDAK/6F7RcJ2AJBrJ2QnoeEG201XamVkcX OYNRFgTg8zqvyRq0Hn5NT8Q7VZX7aJW/RBMrbbEXc+o2GiFA2Wk/uUvZDwB0kwInkTQ+ j/HIjK8XlWTMZErUkDUc5P5EmPCptclrYr6AeBEcbt0PJsYWGVVpVc2Ml9vRpVxed2Rp 7Bu9ImhZrVp/KrK/vfcZlIbO16tdPQ8OyK2LBuq4mIQzmv6fVolShwkKU4SiYqubX3QR EkFg== X-Received: by 10.68.35.129 with SMTP id h1mr18814808pbj.163.1391146780978; Thu, 30 Jan 2014 21:39:40 -0800 (PST) Received: from morimoto-Dell-XPS420.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id zc6sm58527077pab.18.2014.01.30.21.39.39 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 30 Jan 2014 21:39:40 -0800 (PST) Date: Thu, 30 Jan 2014 21:39:40 -0800 (PST) Message-ID: <87zjmc676u.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto Subject: [PATCH] ARM: shmobile: bockw: use wp-gpios instead of WP pin User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 To: Simon Cc: Magnus , Linux-SH , linux-mmc@vger.kernel.org In-Reply-To: <87lhy090m0.wl%kuninori.morimoto.gx@gmail.com> References: <87lhy090m0.wl%kuninori.morimoto.gx@gmail.com> MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Kuninori Morimoto Latest Renesas Chip has some SDHI channels and the WP pin availability depends on its channel or HW implementation. Thus, this patch decides new policy whch indicates WP is disabled as default. But, we can use wp-gpios property to enable it as other method. Signed-off-by: Kuninori Morimoto --- Simon This was included on v1 patch series, but no relationship with mmc part patches. arch/arm/boot/dts/r8a7778-bockw-reference.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/r8a7778-bockw-reference.dts b/arch/arm/boot/dts/r8a7778-bockw-reference.dts index bb62c7a..06cda19 100644 --- a/arch/arm/boot/dts/r8a7778-bockw-reference.dts +++ b/arch/arm/boot/dts/r8a7778-bockw-reference.dts @@ -17,6 +17,7 @@ /dts-v1/; #include "r8a7778.dtsi" #include +#include / { model = "bockw"; @@ -84,7 +85,7 @@ sdhi0_pins: sd0 { renesas,groups = "sdhi0_data4", "sdhi0_ctrl", - "sdhi0_cd", "sdhi0_wp"; + "sdhi0_cd"; renesas,function = "sdhi0"; }; @@ -101,6 +102,7 @@ vmmc-supply = <&fixedregulator3v3>; bus-width = <4>; status = "okay"; + wp-gpios = <&gpio3 18 GPIO_ACTIVE_HIGH>; }; &hspi0 {