From patchwork Thu Nov 29 09:27:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10704235 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 9604E13A4 for ; Thu, 29 Nov 2018 09:28:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 822BF2EA2C for ; Thu, 29 Nov 2018 09:28:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74A5E2EA64; Thu, 29 Nov 2018 09:28:23 +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 199EC2EA2C for ; Thu, 29 Nov 2018 09:28:22 +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=nwblnuE/Z5pS+S5tJxWYiXXkMYICa2ghs/GlxkU3eEk=; b=TPg Fb8VfiOaVuwUIYx7Yszor6OhtkauNE6YJpLiQ4+Wjn5tFkpX5eGdT2b/3PZ0N7mYRfRcoLXmSAPPH onLjZNPBj6EexXcEDFgVCYpmstNbRO+LsCMPCy5WPGKk1dXqodyLdMrNhDum33SL7TOytpeWMhZq+ 5+PBSX1QKJ9UcuPE5S3BFl+aIrqNdJ1VSevgIJnWO0kipk6IKE2spwvlzmx4UC6xK0b8T3w5WFFwg jtor/PcQ0qwXBxTXBDLw/SLRHfGwDXhnToHgfRv4OxQ9DTRlhFgRX96zfPhqBgMWr84KpSBL0r7jB 0DHznjfSNo73b9SW5QOhsMPYilBWD4g==; 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 1gSIcN-00051f-AN; Thu, 29 Nov 2018 09:28:19 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gSIcK-000516-9G for linux-arm-kernel@lists.infradead.org; Thu, 29 Nov 2018 09:28:17 +0000 Received: by mail-qt1-x842.google.com with SMTP id r14so1222880qtp.1 for ; Thu, 29 Nov 2018 01:28:05 -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; bh=1F75fWnUvi27lMO2OpfVN1i8vxpRzxPGmQyoHxe5gAg=; b=tcsWh1Y3mCErnOfLrcpZz4GFUR76KuXSdeCm3aSv6HRzXNosMccS6939h2lbPwQjYt TpZZfirYklcJOyVqoLhmKf/8rr3VkqGErS+lQ9VNJ4/b7Q5beOxRJCx4+AreaWDtGwgY TW2pmlvRR5686tu/SEORurUC5cCGWgqOuHKJ6zu4CT2/P9IBk3Zzg7U+ltnNf8OTI5ix 1gniWqTdAekgk0CfyaRmEdWNAhKcu9dnKXL86EvtVIlFAJKw6HdV55tevHBjl7sGGeLJ xmWJjmPHdHEgTG50pEeLiafwbOQweIiUHb08s92Neb6/zzHEvNcs8XGn3hIEiNFOyp9m qkUw== 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; bh=1F75fWnUvi27lMO2OpfVN1i8vxpRzxPGmQyoHxe5gAg=; b=FGJJdX5+UuzCzqc45aule34F01B66/eHUePV8mK0QAsX9ooWaF1JIf2zEMIxPzsHt/ hzAjsSpmhpPOcsIh7mK79oRGnsXv/h26GJdp9r2JJYC/DH+DTs7OTf/8NLDsKXV772Fj TRJhiGfuKEd97cOuCTXTnd6tbYgEQOcsg0Y12ADJxAUm2QWruF/2FU8vRvY1DCKa2ri6 dyR+hFBYYBWOrecnbpFIqfjf/7IvbxSkiVxFdM8Y0OhH+IPIT3VaabC1JG8iKpRGu3+I U+Qg4NW8juPMvkK3rVizuhS/cn7TjDbAzDqUP7nBSYKIOx5QHA8Yic70zSARL/M1fmSc j6AA== X-Gm-Message-State: AA+aEWYFXXUqQ3EL9UaTPZrP7brjWuddnb9ng4z9PtZExxT6YAMqtQb/ qRYtIbX8/2WxTXJnCC4OO6A= X-Google-Smtp-Source: AFSGD/W9sH03U+t5ptiGtkUrq3N4pC7LgLY3SB+pvep7xbqm1VROSxRcxe/YathB2Y0PehFQ7wSOhw== X-Received: by 2002:ac8:4086:: with SMTP id p6mr586334qtl.378.1543483684730; Thu, 29 Nov 2018 01:28:04 -0800 (PST) Received: from localhost.localdomain ([2804:14c:482:caa:6498:17a4:644:4338]) by smtp.gmail.com with ESMTPSA id h25sm805140qtc.49.2018.11.29.01.28.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Nov 2018 01:28:04 -0800 (PST) From: Fabio Estevam To: shawnguo@kernel.org Subject: [RFC] ARM: dts: imx7d-nitrogen7: Use mmc-pwrseq to activate the Wifi clock Date: Thu, 29 Nov 2018 07:27:59 -0200 Message-Id: <1543483679-1100-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181129_012816_331976_61DD0D47 X-CRM114-Status: GOOD ( 15.40 ) 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: gary.bisson@boundarydevices.com, Fabio Estevam , linux-arm-kernel@lists.infradead.org, troy.kisky@boundarydevices.com 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 In order to turn on the Wifi clock the correct location for describing the CLKO2 clock is via a mmc-pwrseq handle, so do it accordingly. Signed-off-by: Fabio Estevam Acked-by: Troy Kisky --- Hi Gary/Troy, I don't have access to this board, but I was working on something similar for imx7d-pico-pi and needed to add mmc-pwrseq in order to turn on the 32kHz clock: http://lists.infradead.org/pipermail/linux-arm-kernel/2018-November/616048.html Is the 32kHz clock still needed for the Wifi chip used in the latest version of nitrogen7? What do you think about this patch? Thanks arch/arm/boot/dts/imx7d-nitrogen7.dts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx7d-nitrogen7.dts b/arch/arm/boot/dts/imx7d-nitrogen7.dts index 4fb7e84..9ba9084 100644 --- a/arch/arm/boot/dts/imx7d-nitrogen7.dts +++ b/arch/arm/boot/dts/imx7d-nitrogen7.dts @@ -87,13 +87,17 @@ compatible = "regulator-fixed"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - clocks = <&clks IMX7D_CLKO2_ROOT_DIV>; - clock-names = "slow"; regulator-name = "reg_wlan"; startup-delay-us = <70000>; gpio = <&gpio4 21 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + usdhc2_pwrseq: usdhc2_pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&clks IMX7D_CLKO2_ROOT_DIV>; + clock-names = "slow"; + }; }; &adc1 { @@ -376,6 +380,7 @@ bus-width = <4>; non-removable; vmmc-supply = <®_wlan>; + mmc-pwrseq = <&usdhc2_pwrseq>; cap-power-off-card; keep-power-in-suspend; status = "okay";