Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1638588pxp; Thu, 17 Mar 2022 13:19:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdaK29pj7um3VAPyTdna8bSVfz9Hm8p4wLI9WUQa2zXX9tO/i2RUDBczl+oJKAbhqQM+FH X-Received: by 2002:a65:6cc8:0:b0:382:1b18:56a9 with SMTP id g8-20020a656cc8000000b003821b1856a9mr2551379pgw.347.1647548346268; Thu, 17 Mar 2022 13:19:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647548346; cv=none; d=google.com; s=arc-20160816; b=Pf7QBH5MXc+zytG61vnBC5IUO8vOsUNbvxnBBa/BY5S35VQEFC0GEYB/faTn4E6oZo qnO+tfrRtZEWeG2mj09fJdRyeRB+/DBL4JZANaCELtI66x74+X2ls7ft0UmpCuL4uPnV IaMUq1IUI13zu3rI3veKCyhk0bJx4L86wcTCKILdsUEFGaTbX6AhDk/CLlF1oqNDbcap t/NixupT/g7jAtqTATexNV34eAjlj+zH38F5jxdbhYpmc1KbH8ztF9j5G9X4C5HNF9xN 9rrPUpp4Mnjrl45ajRRmAwm27R2CsPM5oHOXV8smZouUq4BoWj8CMT+MS+f2dqKc/pzx 8cBA== 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=9lJqfjsYuCHGnT+1jh/NfnxcJt4roCNaVacySmuHgQs=; b=m15KDf9Ry1TnHAM3FbZqyAS5mvNvEgOUUzsV3StP+h6SL1viOavmAPTVzT2LV92Baz g1qOpc/+3gDsf0VWQixIWZXS5YxDjshOPt0av0q7dURYPOSaX1Xp50GqDvGVXgxz6USb 3WH8VCDqSkFYvYJ2Rudq6ZlnWx/pQEVtV362TINdvl1/7/h+SiaFTJCEtl4KrVmjSAqo EaeJTn53DvpUUY46dlbcPrNLpZf+DeqBns6wSH/6GnGJzGK7zrc54IXojl7B7LsSviQY 3J2QuhMxqFZntAy1e40wQpOJzuEZVp107NrBkWNGON8NoFPBV41CrntjWIHjto/MRrH2 ZseQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z7jH9KQZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l74-20020a633e4d000000b003816043ee9csi3315422pga.145.2022.03.17.13.19.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 13:19:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=z7jH9KQZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B1E9415E8AF; Thu, 17 Mar 2022 13:00:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229757AbiCQMt2 (ORCPT + 99 others); Thu, 17 Mar 2022 08:49:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233836AbiCQMtH (ORCPT ); Thu, 17 Mar 2022 08:49:07 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A0281F0C83; Thu, 17 Mar 2022 05:47:44 -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 ams.source.kernel.org (Postfix) with ESMTPS id 40C9CB81EAB; Thu, 17 Mar 2022 12:47:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86884C340E9; Thu, 17 Mar 2022 12:47:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647521261; bh=TXM6rZzk5Pm0ohoGOi3/0j3pqMZscZej1UXKiouYdxQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=z7jH9KQZkbLr5bosM7lNBnyy/GcvUfrayuxeSFrze/7BSC7yoRo+9Bn+PRlWuTovp Gl+MaOQuW+RcNeZZz+Dzpr2di42P9EigiF9mJppIJ8UmVrNYSRw25iVPX5SibL2Uru VB8DnECjh29BrA3kXGEjKQojyK8pj3iUk+gEYKaQ= 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.4 27/43] arm64: dts: rockchip: fix rk3399-puma eMMC HS400 signal integrity Date: Thu, 17 Mar 2022 13:45:38 +0100 Message-Id: <20220317124528.428426719@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220317124527.672236844@linuxfoundation.org> References: <20220317124527.672236844@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=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 45b86933c6ea..390b86ec6538 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi @@ -467,6 +467,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