From patchwork Sun Jul 16 09:31:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yogesh Hegde X-Patchwork-Id: 120895 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp540460vqt; Sun, 16 Jul 2023 02:55:28 -0700 (PDT) X-Google-Smtp-Source: APBJJlHRxUJgw4LQqvu/ONhry3LJmx1h8aewfwMlsBxRHzZ2x2TlI2pj7CiKFEgeKON+VYSYDH1b X-Received: by 2002:a17:902:900c:b0:1ac:8be5:8787 with SMTP id a12-20020a170902900c00b001ac8be58787mr6804005plp.21.1689501328437; Sun, 16 Jul 2023 02:55:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689501328; cv=none; d=google.com; s=arc-20160816; b=uF53dUJfFuWyOQANde+Aw8svTjwZpHMrNrxE/Jt4QdyeULHw+rlY9SxWmVKafi499O 0A/S77mFdxVXBOs5rTdcMG6GBvZLRl18xFihmngszNAobk50KX+D9TIjcHrtiIglLbTl /+efwKncxphCT7PClqMS1tZp0pGWQzamuHAVU94xBxfqQxIetr9TxR9E9OhmL6mzqhY0 RkJPSuMITizpkEOTjoLdMRy6J0zpSgWV2I8euBeZnu8Dm3Kixjh2CWhn4zgWmJvC9X4O 1R7PlgaJuMjWXHvVUR9/NifgqOeAP1atvL66O8TC1jBJY1sq2Bv/A2fdlleStLPzWEIi Qyug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=PAEW5pBQpGEQa8+u+L9FSRTp3sQn8Q/V86sBZoZsPWQ=; fh=aR6JnZoPQXyfwrAhRBimnmQL8wtShytS86MN8eur2+w=; b=AX0dR6KKfifA+z3FJ8uZYeWzNiVDrlYnLg4kadaGL6VrSF13cFnNBAuiFiRYCHc2Us wbwJRWUtwzSsed680xwIK7/E8qu86ofjNfJD6Jr52G6OHVTtfqw3pu6WRJ1zSc7QZSR7 ON9OrZaJCjO8nZCb5VcBVlmSmEp6KiiYCEFvN8v44ACbtLInrUthNsYCbb5D67kkOpKZ eSESbQ7AdvdxWUgrktrUj2UX7NCnCjLwssj6xqxJfXS4GJAddwy7aK4PJbFJRqMluNSg +xB34/s6FXRoCKMNh0AS1tueWDxTnRfR3F7N7yhuhrA1CYnpJlyGwp8ldxJBYLHsDx4g 1ZwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=l6RwRWza; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u20-20020a170902e21400b001aae905065csi9650398plb.284.2023.07.16.02.55.14; Sun, 16 Jul 2023 02:55:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=l6RwRWza; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229722AbjGPJb3 (ORCPT + 99 others); Sun, 16 Jul 2023 05:31:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjGPJb1 (ORCPT ); Sun, 16 Jul 2023 05:31:27 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 696A5BA; Sun, 16 Jul 2023 02:31:26 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1b89d47ffb6so19158685ad.2; Sun, 16 Jul 2023 02:31:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689499886; x=1692091886; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=PAEW5pBQpGEQa8+u+L9FSRTp3sQn8Q/V86sBZoZsPWQ=; b=l6RwRWzaknd6B76niiuL3tAR63PuV1iQSjFKFJXxADmQb4HesnoyQ447/WNd4TUcO6 XATKCziG9vWxMed+uSYI0nDY901HvvRQdJlAETW6bwI+GaFGfsR6yJpEQqdJ+U0ay0+W 0CwrvCc3JTkBzqTM/gPZOgHYYgVf/TnJDOCxKIXFO3EgW5HKFXKYnrDdPkP3tN//SC5o rE7IIgz7ANUGNYdgbKHmLhxbJj5Hg+Q+Ai9AvZ2m/qLmj8HfNj5ddXWulXeOSXHc/WGU os6aCBAz8ugrM3R+5w/KlXe2yoPjQ2jOpjxBoiy8/BIdbvRnBCBsk4ab5hfJVly6J/wV R8gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689499886; x=1692091886; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PAEW5pBQpGEQa8+u+L9FSRTp3sQn8Q/V86sBZoZsPWQ=; b=eR+7hxRHsU4HY7JdmCVXr03PcIqKVvwhZEoU8BeHu8PrejFD3xASUmUIhlZ9JOoZm+ r6ubkXSrzdT1z9AeQpXsEE7Syp08CZc0zqYDubPzg5/Jj6KONJ59qnz2bCk6bldi9Web PTIBO2jTNq/7Go/WwQa6RceBKbZwudVabfMWH2Zfxxdcz447AX02Q6eKrC1kbuq6aRU6 M85nNOc5+hYjCZsk/j/sddq3jGp2VHchCuSRgbpKpLiD34dVTYf2GFBDy59DVVodGOel D+oWAEt7k9ynvNjO9P41DqNFfWZeHarcvEbixQ//is9JBlQTK1Q7QvXN6dLk5GWp04mR 9Pig== X-Gm-Message-State: ABy/qLbiuiU/EgFbGVXh+m8PIV64+IWUEqW9RYFDZVhqBvXrKQOvJcYt iV3b4fiehkFbaT6OXtEsEXQ= X-Received: by 2002:a17:902:ec88:b0:1b7:fef7:d578 with SMTP id x8-20020a170902ec8800b001b7fef7d578mr7533075plg.41.1689499885772; Sun, 16 Jul 2023 02:31:25 -0700 (PDT) Received: from zephyrusG14 ([103.251.210.195]) by smtp.gmail.com with ESMTPSA id q9-20020a170902dac900b001b89f6550d1sm10662211plx.16.2023.07.16.02.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jul 2023 02:31:25 -0700 (PDT) Date: Sun, 16 Jul 2023 15:01:19 +0530 From: Yogesh Hegde To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, heiko@sntech.de, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org, ivan.orlov0322@gmail.com Subject: [PATCH] arm64: dts: rockchip: Fix Wifi/Bluetooth on ROCK Pi 4 boards Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771570544928578952 X-GMAIL-MSGID: 1771570544928578952 This patch fixes an issue affecting the Wifi/Bluetooth connectivity on ROCK Pi 4 boards. Commit f471b1b2db08 ("arm64: dts: rockchip: Fix Bluetooth on ROCK Pi 4 boards") introduced a problem with the clock configuration. Specifically, the clock-names property of the sdio-pwrseq node was not updated to 'lpo', causing the driver to wait indefinitely for the wrong clock signal 'ext_clock' instead of the expected one 'lpo'. This prevented the proper initialization of Wifi/Bluetooth chip on ROCK Pi 4 boards. To address this, this patch updates the clock-names property of the sdio-pwrseq node to "lpo" to align with the changes made to the bluetooth node. This patch has been tested on ROCK Pi 4B. Signed-off-by: Yogesh Hegde --- arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi index 907071d4fe80..795a70948d9a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4.dtsi @@ -45,7 +45,7 @@ led-0 { sdio_pwrseq: sdio-pwrseq { compatible = "mmc-pwrseq-simple"; clocks = <&rk808 1>; - clock-names = "ext_clock"; + clock-names = "lpo"; pinctrl-names = "default"; pinctrl-0 = <&wifi_enable_h>; reset-gpios = <&gpio0 RK_PB2 GPIO_ACTIVE_LOW>;