From patchwork Sat Dec 29 12:57:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10744843 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 AD7CB13BF for ; Sat, 29 Dec 2018 12:58:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CC51289EA for ; Sat, 29 Dec 2018 12:58:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9149628A1D; Sat, 29 Dec 2018 12:58:02 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 42C0D289EA for ; Sat, 29 Dec 2018 12:58:02 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=mB297IEAE1snGcheEHOFbaS67duo9nbCv0j6lBfwT7U=; b=isuTSY2J+YxIwT /LTKi/9lAFb3WNj092ioqVb83IDR8qbkiTebDzkxbf0revsCBsJX7S6DkYVtrLDmM3uuazQkbcrr0 ALIheUVsjXefnuR8DEPxbGnFU/ItfG9v1+vktBmJDUpUG3+rJ6yMaly6xi+BBorxZwqe0ezr/Wl5U kn8zWOiO4s//B73xCo1oConyKes8b5USh/y2LANvGlwmTnVE9kPojHJo9uZdLLQt47rlIbIryNPkx NmnrFKh+bYjenAEqk+q6MtsEqktQdlH67vpj3Ym6tYZeH9fVKbomqzeAMsnFYYHsDsquES/oRkhio yCpt3EFXISLo9Xj3rBmA==; 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 1gdEBk-0003AC-2T; Sat, 29 Dec 2018 12:58:00 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gdEBW-0002wh-ES; Sat, 29 Dec 2018 12:57:47 +0000 Received: by mail-wm1-x341.google.com with SMTP id f188so21506483wmf.5; Sat, 29 Dec 2018 04:57:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xIicdGAZhx3oX8Do8U6owJozuwFheS9BvjevYH1ytJA=; b=vSUJsCZJay6P1s9+cUUsg4EyQY9B6g4wPoUkRr8ugPyFd3BGS7dx8WDQOHQvZTJeKJ dUTXEIadRwkCclQbLgGyaYVodzD+2fQE12cyRzh7sNQ6ud2O1TyrnO6yYqGS+GzYv5hR seYqOs5MAMtjG7Ltrqy5DkmNkRONLjnVWAp8Fx1cUow2JaSlRZNK66CUiTtb1OR0h4Ne D3lARx2Hp3r2b4Ib3diJs5ckbOayVD94K7QHwjZt4Le2IyNFrE8utt8YNY4gIh6bZ6mN 9HkhTH7Cc/AggtlefXDjnlZd7s4KU2ld+/Vw0KaPDlWZRiE/GToc+LBvjW9kKC+pwV/P xvpg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=xIicdGAZhx3oX8Do8U6owJozuwFheS9BvjevYH1ytJA=; b=MMaARdG4osbjdO0Rq90uNwLKfAtLTUoqZ8O1afAMNNCjN+SDZcd61thh+NYV+SxcaL cw/3wFsTsrbtLLhzh3Uw0kklIn+XwIV1kEj+85JbsBnDO8aOgy7+ixU/fzejew7V87Yi CaGtUQ6DnyT2Lkef+k+hcm6XVLkRftqGQpvXqlpgxS5E1SmOhW3FfFkJIQ1rtoL/R2CZ cOjR2KsOY8QkH/wPstRk7i2X+eYxcCiRJCsW/+WwcvHdSbZRb/yPo1O5VN646pAodn2P xBSQSQeaB/RmHsekZzt3joi/iX81feHnHtlGPwzl7J6mTac2GyjzmUx8EVqfbbKd80w/ eW1Q== X-Gm-Message-State: AJcUukcftBEIa9Ff8xN1ybKs1yO9Wq+TwGnRTe2Dno559poR7vf3gOA6 DiuY+C6IoyKYRubRmXG86P/eFcfp X-Google-Smtp-Source: ALg8bN5/l9t6q0dLNUkjDZUDqscN0lPtglIgBb1+hFQqy60FkUOIXZDXWxyVoBbpJYIP5/WaH2GCWA== X-Received: by 2002:a1c:1a43:: with SMTP id a64mr25464631wma.136.1546088254367; Sat, 29 Dec 2018 04:57:34 -0800 (PST) Received: from blackbox.darklights.net (p200300DCD7294600914F24DE1716D3FC.dip0.t-ipconnect.de. [2003:dc:d729:4600:914f:24de:1716:d3fc]) by smtp.googlemail.com with ESMTPSA id h17sm31987059wrt.59.2018.12.29.04.57.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Dec 2018 04:57:33 -0800 (PST) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, linus.walleij@linaro.org Subject: [PATCH 1/3] ARM: dts: meson8b: odroidc1: mark the SD card detection GPIO active-low Date: Sat, 29 Dec 2018 13:57:09 +0100 Message-Id: <20181229125711.5205-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181229125711.5205-1-martin.blumenstingl@googlemail.com> References: <20181229125711.5205-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181229_045746_481588_50701C18 X-CRM114-Status: GOOD ( 13.66 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linus.luessing@c0d3.blue, bgolaszewski@baylibre.com, balbes-150@yandex.ru, linux-mmc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Martin Blumenstingl , linux@roeck-us.net Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP After commit 89a5e15bcba87d ("gpio/mmc/of: Respect polarity in the device tree") SD cards are not detected anymore. The CD GPIO is "active low" on Odroid-C1. The MMC dt-bindings specify: "[...] using the "cd-inverted" property means, that the CD line is active high, i.e. it is high, when a card is inserted". Fix the description of the SD card by marking it as GPIO_ACTIVE_LOW and drop the "cd-inverted" property. This makes the definition consistent with the existing dt-bindings and fixes the check whether an SD card is inserted. Fixes: e03efbce6bebf5 ("ARM: dts: meson8b-odroidc1: add microSD support") Signed-off-by: Martin Blumenstingl Reviewed-by: Linus Walleij Tested-by: Anand Moon --- arch/arm/boot/dts/meson8b-odroidc1.dts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts index 58669abda259..070d69889f3e 100644 --- a/arch/arm/boot/dts/meson8b-odroidc1.dts +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts @@ -273,8 +273,7 @@ cap-sd-highspeed; disable-wp; - cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>; - cd-inverted; + cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_LOW>; vmmc-supply = <&tflash_vdd>; vqmmc-supply = <&tf_io>;