From patchwork Fri Jan 22 05:52:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 12038343 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.9 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 8B614C433E0 for ; Fri, 22 Jan 2021 05:54:33 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 1774E239D4 for ; Fri, 22 Jan 2021 05:54:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1774E239D4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=samsung.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References: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:List-Owner; bh=hCv/h0rMDkK/tQ2tPZH1cbYaGLGdY6sbp4Wx06n4QGY=; b=tqv7Sasymk8jUdvO6et5i1pd+G X1MuPRi6LomPnGAS69azyVKneEYgfT/7a71D/ze4jxJ0N+nST/XhPtWSIy6KDfahaWxetEcY/Eoik 98n8ruUkZUo2s2VziGUuBNtcXHjxUNhETmOJxUBhene4rzqWbTaIbau8Ya44IGIX/iQebZxRPp8iz 6V15U326liISZbU5/GBan6HNY1K4ok/05sb9rrDbfvcMJfd1vq45RQzc0YTxVr91QRCU40KQ411le 4hvmy28C7mo+nxdCzrmr3A/R9+Kvj55R1FZMgS88TImqjkdMSIv+Lx6ukKbvnb+D4aH3WSzaVFIpJ fj4v/hBw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2pN3-0003pI-T1; Fri, 22 Jan 2021 05:52:33 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2pN1-0003oa-GP for linux-arm-kernel@lists.infradead.org; Fri, 22 Jan 2021 05:52:32 +0000 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20210122055228euoutp01fddbba6ea0768b3bd41f4d6d57f9a9fb~ceAlwEX7C3007130071euoutp01S for ; Fri, 22 Jan 2021 05:52:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20210122055228euoutp01fddbba6ea0768b3bd41f4d6d57f9a9fb~ceAlwEX7C3007130071euoutp01S DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1611294748; bh=z8MpXKNoMZZ1oO3BXP4bh0KDG94N2UwukrTz0Tph21k=; h=From:To:Cc:Subject:Date:References:From; b=bBCVvOokFsZZNW1+0uVI752YoE2mpaGk9BtRs2sCNO18LvjYnKRKRR/KodxdpH+nN nJzGJ4aZQVAzVQP36oHwe6NmfgiOdTev3VLFfKE4Vclsz35SArMYPVURop2tTL8E5C JTotEAqJ+7aeql2bB2SBPff64yceuODaMIfMIg9I= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20210122055228eucas1p1cc93ae5c732b061d26b59e567e4db5b8~ceAldTM2k3232032320eucas1p1u; Fri, 22 Jan 2021 05:52:28 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 88.35.45488.C186A006; Fri, 22 Jan 2021 05:52:28 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20210122055227eucas1p1a61e2ec3e562ed13a6b8decb5069c180~ceAkQ70Ia1133911339eucas1p1f; Fri, 22 Jan 2021 05:52:27 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20210122055227eusmtrp1faad2c7f59e3cee5cfb7bd3e9d3d13f6~ceAkQQmEe1579515795eusmtrp1p; Fri, 22 Jan 2021 05:52:27 +0000 (GMT) X-AuditID: cbfec7f5-c77ff7000000b1b0-8a-600a681cd04c Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 15.34.21957.A186A006; Fri, 22 Jan 2021 05:52:26 +0000 (GMT) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210122055226eusmtip23b1e524fa3e309d44f57e41d198cfaa8~ceAjwRmtQ0850608506eusmtip2U; Fri, 22 Jan 2021 05:52:26 +0000 (GMT) From: Marek Szyprowski To: linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2] arm64: dts: meson: switch TFLASH_VDD_EN pin to open drain on Odroid-C4 Date: Fri, 22 Jan 2021 06:52:18 +0100 Message-Id: <20210122055218.27241-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrGIsWRmVeSWpSXmKPExsWy7djPc7oyGVwJBg1LeCw2zljPavHm0RFm i5/tW5gsFszmttj0+Bqrxdojd9ktji06yWJxqC/aYt/jNcwOnB7vb7Sye+ycdZfd4+mEyewe m5fUe/RtWcUYwBrFZZOSmpNZllqkb5fAlXFw4xu2ghc8FdMX1zQw/uHqYuTkkBAwkVjS1cjW xcjFISSwglFi/Ya5rBDOF0aJW09uMIFUCQl8ZpR4vCGki5EdrGNBAETJckaJlnn7meHqr2x8 wghSzyZgKNH1tosNxBYR8JbY3NYJVsQssI9J4s6812BDhQViJD5//MUMYrMIqErMXHUXqJmD g1fAVuLYm2KI6+QlVm84ANYrITCRQ+LJxANsEAkXiQ9z77JD2MISr45vgbJlJE5P7mGBaGhm lHh4bi07hNPDKHG5aQYjRJW1xJ1zv9hAtjELaEqs36UPEXaUWDjvDlhYQoBP4sZbQZAwM5A5 adt0Zogwr0RHmxBEtZrErOPr4NYevHAJqsRDYscpNUiwxUrsONHGNoFRbhbCqgWMjKsYxVNL i3PTU4uN81LL9YoTc4tL89L1kvNzNzECk8Lpf8e/7mBc8eqj3iFGJg7GQ4wSHMxKIryPLDkS hHhTEiurUovy44tKc1KLDzFKc7AoifPu2romXkggPbEkNTs1tSC1CCbLxMEp1cDUUOv4+6d6 +ptFv1+tcWTT2cAkpXeCa5WhZQPv7vzwZZ/yWI48fXxvZuOGxz/DzE02Om7dHF+jeipHb8O1 e1fXBrRf83/r/MOp8Fd1xIMZf6RfbNL7zpFkH8Kx5+Tx1XOToy9vevZbu3r2Ev0nEv6ny7a+ NxCckXvmUG3uOa1tUVMKgj8dMPO7Hb5kv8seyxmlS8OCPuZZHqv+LLCAM7/ozjZnMTYNB7Ov quvO3/8s+Cp65h/PY3sO3q68yXN/1r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7H2j8kqWRcnBJxSYinOSDTUYi4qTgQASsqa7NACAAA= X-CMS-MailID: 20210122055227eucas1p1a61e2ec3e562ed13a6b8decb5069c180 X-Msg-Generator: CA X-RootMTR: 20210122055227eucas1p1a61e2ec3e562ed13a6b8decb5069c180 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20210122055227eucas1p1a61e2ec3e562ed13a6b8decb5069c180 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210122_005231_888114_EF43E831 X-CRM114-Status: GOOD ( 16.28 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Martin Blumenstingl , Kevin Hilman , Bartlomiej Zolnierkiewicz , Dongjin Kim , Marek Szyprowski , Jerome Brunet MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org For the proper reboot Odroid-C4 board requires to switch TFLASH_VDD_EN pin to the high impedance mode, otherwise the board is stuck in the middle of loading early stages of the bootloader from SD card. This can be achieved by using the OPEN_DRAIN flag instead of the ACTIVE_HIGH, what will leave the pin in input mode to achieve high state (pin has the pull-up) and solve the issue. Suggested-by: Neil Armstrong Fixes: 326e57518b0d ("arm64: dts: meson-sm1: add support for Hardkernel ODROID-C4") Signed-off-by: Marek Szyprowski Acked-by: Martin Blumenstingl Acked-by: Neil Armstrong --- Here is a discussion on u-boot's mailing list that inspired this patch: https://lists.denx.de/pipermail/u-boot/2020-December/435295.html Changelog: v2: - fixed typo in the commit message v1: https://lore.kernel.org/linux-amlogic/20201218102228.16211-1-m.szyprowski@samsung.com/ - initial version --- arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts index cf5a98f0e47c..a712273c905a 100644 --- a/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts +++ b/arch/arm64/boot/dts/amlogic/meson-sm1-odroid-c4.dts @@ -52,7 +52,7 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - gpio = <&gpio_ao GPIOAO_3 GPIO_ACTIVE_HIGH>; + gpio = <&gpio_ao GPIOAO_3 GPIO_OPEN_DRAIN>; enable-active-high; regulator-always-on; };