Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp870078rwb; Mon, 26 Sep 2022 06:58:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5mdWcvOH2tZWUv9DATW90we3B92JeGEmllnXHtOVUkuFUezcRV5hw2b2F11ew552ZlmogV X-Received: by 2002:a05:6402:3547:b0:451:3be6:d55b with SMTP id f7-20020a056402354700b004513be6d55bmr22378484edd.57.1664200682065; Mon, 26 Sep 2022 06:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664200682; cv=none; d=google.com; s=arc-20160816; b=O8IH2cl906JkfjszJF/JauNfAhHvVVEWtjd46WwOz/hDPHTi2sY/c9U1Uvd3d0TX11 YnfPR/Q0Aq1dyYIDfKt8O6EY2vLpAgB4bTPebHZFerDwArSIsvAr1N3exZdhyyXhBAn0 8oqAnrLByuxRU9OOjp/+icpL9DQoszfWg4MxLHx5Rum50KIQWlITEfuXMKaKziq7v2sI auiIijcYvMFifu3FvZgdCfhNibBUkjzfYI0gEC14HmZOsBMTi1XTAMEr67g+kiK0wLjZ nqSXadZdyHcnNZ03pOCzZjuo2kJHvgv0epnlwYhFdFxlDehCrWrXx+WGmvXZyNkFch7V 7zXw== 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=KlT/wi1ozX5blqD2UF1CzshHn1WlmqtbTc/7jIHViRY=; b=V5N6E5kDhcyb5KlX7rNU9e0XvbnFksh4EC3LZ6iMxz9o8IXEkr2IPLzvT5JQHScZU4 zLGHE1nl6ZNV7L2pCumyRmYsW6Em9gF//voxkrRhYEDKBd8tajTSLzv4hyK/owxPHdCj +ucpJ8Xdnk4qFBHwMaiKQ9yg+YmhdbHx6sRM50aHpITL3cmN+zhXooMV7pUOMPIn7X6f eadOelkB50R+Kkh6Hu20MXLLHN7PvI/WaaQ3FO51sY/X2RvaAvv5VFclax2gIvXL2q2h 4T+k0J8ycv8F0UJyob9ozgMpicJgiHA4XYwN5hsm7JoSJOpffjj8JoqnRbA+y6exjgCR hGag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=N31Bkqb8; 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 hc41-20020a17090716a900b007823f12eaf7si16609097ejc.510.2022.09.26.06.57.36; Mon, 26 Sep 2022 06:58:02 -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=N31Bkqb8; 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 S237729AbiIZLU7 (ORCPT + 99 others); Mon, 26 Sep 2022 07:20:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237842AbiIZLTI (ORCPT ); Mon, 26 Sep 2022 07:19:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B05D252E45; Mon, 26 Sep 2022 03:38: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 878D2B802C7; Mon, 26 Sep 2022 10:36:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9FDFC433D6; Mon, 26 Sep 2022 10:36:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664188605; bh=6tasvJ3bw1ZpODK/m7Ahrqs+W9D5eONd94fDDdQIjt4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N31Bkqb8nQkyylve3xCz+Ghzuk+Jpj/1dhT9qn4Gma8kqqXCDG+B4Mw0t6soQfI1R n+TDd0iCYHki59eG8z9NJOggkfi27uaAkv45CGr6qWtS2i6rD5xvJGA8VETwCJRoKq itAACaqadtdU4OF96sMO7qcR7+Vu8zHnqC3GEOoA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Douglas Anderson , zain wang , Brian Norris , Heiko Stuebner , Sasha Levin Subject: [PATCH 5.15 063/148] arm64: dts: rockchip: Set RK3399-Gru PCLK_EDP to 24 MHz Date: Mon, 26 Sep 2022 12:11:37 +0200 Message-Id: <20220926100758.399210028@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100756.074519146@linuxfoundation.org> References: <20220926100756.074519146@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 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 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: zain wang [ Upstream commit 8123437cf46ea5a0f6ca5cb3c528d8b6db97b9c2 ] We've found the AUX channel to be less reliable with PCLK_EDP at a higher rate (typically 25 MHz). This is especially important on systems with PSR-enabled panels (like Gru-Kevin), since we make heavy, constant use of AUX. According to Rockchip, using any rate other than 24 MHz can cause "problems between syncing the PHY an PCLK", which leads to all sorts of unreliabilities around register operations. Fixes: d67a38c5a623 ("arm64: dts: rockchip: move core edp from rk3399-kevin to shared chromebook") Reviewed-by: Douglas Anderson Signed-off-by: zain wang Signed-off-by: Brian Norris Link: https://lore.kernel.org/r/20220830131212.v2.1.I98d30623f13b785ca77094d0c0fd4339550553b6@changeid Signed-off-by: Heiko Stuebner Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi index 0d8458d55626..739937f70f8d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi @@ -237,6 +237,14 @@ &cdn_dp { &edp { status = "okay"; + /* + * eDP PHY/clk don't sync reliably at anything other than 24 MHz. Only + * set this here, because rk3399-gru.dtsi ensures we can generate this + * off GPLL=600MHz, whereas some other RK3399 boards may not. + */ + assigned-clocks = <&cru PCLK_EDP>; + assigned-clock-rates = <24000000>; + ports { edp_out: port@1 { reg = <1>; -- 2.35.1