Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1573709pxp; Thu, 17 Mar 2022 11:51:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhHADvKMt9C1mV2AdKWBk9nQsnVYajkzmzmhQdSWF4oqoWH3FOw3tJSrOdA0/r4ZyT7MKx X-Received: by 2002:a17:906:1411:b0:6da:f354:fb83 with SMTP id p17-20020a170906141100b006daf354fb83mr5796610ejc.539.1647543070978; Thu, 17 Mar 2022 11:51:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647543070; cv=none; d=google.com; s=arc-20160816; b=NzCpSNiKElPikpImkg9G/grK5oSTKhtVoDdQK/3zt8cC9VhzZX/PX2CxofYzkKl48B KFUJtIPiH/AOtSQIkMBYK+w4yB5Vt6OVCMZyL9q4q372cdr5+vLX5pGtSCWvR4D7aSfO 90ECEkcJtqJTW3+hboJ9Z3xRTa46uJOo++3ZXiFPijIrmQdek2ihMTpFbN28v9xtw4gJ UKKWtku2jGH53VbU1vGKlzDQqo/2Ejkhl5LZ2B2cbWqpCUAGD7aWwB/hBmTLW7EzkNDf wVXZsK8/4LwP7lTivOnfTeZFDNb+jJxq1qvEUlyCScBYQjCJB8Uvb9ADIi4AYNJQhBt/ jwig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bA83BwADuvuiYAVjVR+/jxJEL8SUTpgSWGJSi6nxBGs=; b=fxJMdWfX+x8PFT46wORjdnBUAMYbQiL3FcFYpGkd3xbaQt2nnOGTMTQk99Z5toNnds DTOYzi22Whee0LW4TfenRh2vD/gaqT+8F6ZKP/fHZxfMEWr7qnrEXyHovikqNTmUFkTu x+jQViJN6e67udP7qSO0/Yqj3yCTJZVXh5I/z2Br7I3LnOmWeDjiVq42DgLYbs+T7bTG dYudglq4fKRLHJmFYhtssjGIAiOIIMCiiVhEkxSdSYDxYhjPPvXqfVjUEkjcAS7sk0PI VQ5iyIcRhq0nNgpCl96JncFrH95tmU2YlNL+GeW2KYuXPGKQvRCY25rP4uG7M/c/o4r2 h1BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S05oLSeX; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r25-20020a50d699000000b00418c2b5bf0csi2075902edi.494.2022.03.17.11.50.41; Thu, 17 Mar 2022 11:51:10 -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=@linuxfoundation.org header.s=korg header.b=S05oLSeX; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234360AbiCQM72 (ORCPT + 99 others); Thu, 17 Mar 2022 08:59:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234335AbiCQMz7 (ORCPT ); Thu, 17 Mar 2022 08:55:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70C72BB920; Thu, 17 Mar 2022 05:54:05 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0FE56614F0; Thu, 17 Mar 2022 12:54:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02807C340EF; Thu, 17 Mar 2022 12:54:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647521644; bh=DPdfF6q9H15BXcu0xyHzF22kFQv23DsT8xa/YMq2E1I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S05oLSeXKc3hOfghWJtg+hbBpaQ6c9Nb4bB23q5baJfHdGMuQZZ7vy8+qW5KVM3La oz/BBKqnOXmiVdSqJJ+pEle0PzgfZ+/EXMzka654i6oxCWFH2Y/h9FVMWyAAAsJGal N89kd8zJljBvM25F2fnFKyxCTS2qnLRWKja4U24k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Quentin Schulz , Jakob Unterwurzacher , Quentin Schulz , Heiko Stuebner , Sasha Levin Subject: [PATCH 5.16 06/28] arm64: dts: rockchip: fix rk3399-puma eMMC HS400 signal integrity Date: Thu, 17 Mar 2022 13:45:57 +0100 Message-Id: <20220317124526.953096814@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220317124526.768423926@linuxfoundation.org> References: <20220317124526.768423926@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Jakob Unterwurzacher [ Upstream commit 62966cbdda8a92f82d966a45aa671e788b2006f7 ] There are signal integrity issues running the eMMC at 200MHz on Puma RK3399-Q7. Similar to the work-around found for RK3399 Gru boards, lowering the frequency to 100MHz made the eMMC much more stable, so let's lower the frequency to 100MHz. It might be possible to run at 150MHz as on RK3399 Gru boards but only 100MHz was extensively tested. Cc: Quentin Schulz Signed-off-by: Jakob Unterwurzacher Signed-off-by: Quentin Schulz Link: https://lore.kernel.org/r/20220119134948.1444965-1-quentin.schulz@theobroma-systems.com Signed-off-by: Heiko Stuebner Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi index 002ece51c3ba..08fa00364b42 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi @@ -439,6 +439,12 @@ }; &sdhci { + /* + * Signal integrity isn't great at 200MHz but 100MHz has proven stable + * enough. + */ + max-frequency = <100000000>; + bus-width = <8>; mmc-hs400-1_8v; mmc-hs400-enhanced-strobe; -- 2.34.1