From patchwork Wed Sep 26 19:02:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 10616559 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2B10F112B for ; Wed, 26 Sep 2018 19:08:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19874293A3 for ; Wed, 26 Sep 2018 19:08:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 14FC42B4AE; Wed, 26 Sep 2018 19:08:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0E1422B71A for ; Wed, 26 Sep 2018 19:07:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject: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=x24EzsxHVxgzw8I6KkBqQ1T6VGDq+WCfO6FcLsSf2Ew=; b=UUt qF37fxNzKzZ5pxoBzBv+dXNeQjW1m8ijVIUByZjyx76bTg4FgkFhWXN38xjFbLbWhFK1ufhAtVZ7d jHo+1QTBhrjdPD+zAXFUQKBJ5TbqpXTzJ0aHDScNA2Gr/L+/nYcVTdorrFe1FS9IkRTDG1IWeQezW 2k/a3UtiUvlQ5dwcPn2OKGlQalGS7Q2in3BUTP3xJDvv2JCYWsvE28DevgeV7aRARCVwssAs0opc5 xKMeqAlL/EfV7OC3wb7BxZkq5gG3wH7FL4kI9zcsfxLmPBXkf7hcMQ1nPhaE/OY7Tp1i3S/V/JZld Pt2ZRF0lnFigYnd+q0PTKjGhPseso5A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g5FAB-0002VD-Sa; Wed, 26 Sep 2018 19:07:55 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g5F5q-0000is-L9 for linux-arm-kernel@lists.infradead.org; Wed, 26 Sep 2018 19:03:27 +0000 Received: from localhost.localdomain (unknown [178.38.103.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 32A2E2150C; Wed, 26 Sep 2018 19:02:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1537988575; bh=g8o1YT3RxeHkdBx4JaUy+bmb1nF2286k1/uBWAqVwk4=; h=From:To:Cc:Subject:Date:From; b=qRCCdr9GPVi7/8Gjtc/9q4DzAE8PWkY6G0HjHxNiQ/FZP0+bsWPXLvIH3kA1nwKbL CnCBoUhnS/2XRixwlKPf5VKjU2wsH6Nt6u69gt12nundHBla+jZFZN44wGMIESA1TC T+6hCPMZTQidArZUYXcwf0dA9IgN6emvEaMmt5e4= From: Krzysztof Kozlowski To: Kukjin Kim , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] ARM: dts: exynos: Add pin configuration for SD write protect on Odroid XU Date: Wed, 26 Sep 2018 21:02:48 +0200 Message-Id: <20180926190248.6369-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180926_120326_707272_34DD2C91 X-CRM114-Status: GOOD ( 13.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anand Moon , Marek Szyprowski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add SD card write-protect pin configuration to be sure that it will be properly pulled down to indicate write access. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. Remove cd-gpios and wp-gpios leaving only WP pin configuration (after Marek Szyprowski feedback). 2. Pull pin down. --- arch/arm/boot/dts/exynos5410-odroidxu.dts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos5410-odroidxu.dts b/arch/arm/boot/dts/exynos5410-odroidxu.dts index a2046f5f998c..434a7591ff63 100644 --- a/arch/arm/boot/dts/exynos5410-odroidxu.dts +++ b/arch/arm/boot/dts/exynos5410-odroidxu.dts @@ -530,7 +530,7 @@ samsung,dw-mshc-sdr-timing = <0 4>; samsung,dw-mshc-ddr-timing = <0 2>; pinctrl-names = "default"; - pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>; + pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4 &sd2_wp>; bus-width = <4>; cap-sd-highspeed; vmmc-supply = <&ldo21_reg>; @@ -545,6 +545,14 @@ samsung,pin-drv = ; }; + sd2_wp: sd2-wp { + samsung,pins = "gpm5-0"; + samsung,pin-function = ; + /* Pin is floating so be sure to disable write-protect */ + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + pmic_dvs_3: pmic-dvs-3 { samsung,pins = "gpx0-0"; samsung,pin-function = ;