Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp819581rwb; Mon, 26 Sep 2022 06:19:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6aFTsANsBb4uE+x66dDNfw20/BZLPXQ/FL4HBPWp7zXeta7ln1J5ArH0tcgTt9qQKlJrse X-Received: by 2002:a50:ee15:0:b0:457:38e:9d76 with SMTP id g21-20020a50ee15000000b00457038e9d76mr10718796eds.242.1664198366707; Mon, 26 Sep 2022 06:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664198366; cv=none; d=google.com; s=arc-20160816; b=ZmJmKSd/rVOJctZ7REuwOkbLVKhiwKvQon//D0URe4J73vJiMuKc2EFMwsJmjH05zk +H7ncqiXIMzYvyAvvQSry0HQv9YC5vqDpKJ6xDS71fSxbqF7bslaUw2EKPLOzf0tpUZ/ Y0K+e0ANu6Qt/d6o0S85zB0KKJY7FYgbQuzkyZTSPWs3XdWxrkDtbFh/TAkUurV862jY RhqouvzorSVft1S5jZVu1GmLsfWLpssPISrlU5gu+nDnTRCYimyL5BJ5qGlp8aBGUEYY FxbRVyjEadmvMkF+mhNprxF9sg+QiTmH6T4u51cl2AW6T2cJqVHyrPGMlvOKZoIxuJhm A2ZQ== 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=21UXH1ZaLaj3plW9BCjY5s2jAhq8Wlu7mhRwcpuCV+I=; b=dYGPlIRcPC16vrDFnlTTM7W1AbkSB3C6BOBwxLC9+bmoeuAjKKWP/xAxpaUkJKhtFK VN2HxgQws9O/0EKgyKTnr6M9+7MrVBhhlC8qZvtI7nUmJ7UeJb/rKEeGXQV9GIBkpif1 DqHWI7alkq8okrHsKuSKEBg7Fshv7PgonaPQDXv68sbcsvCUGv+TXQDpj40bM6kVA824 Ye9zVu++uAkB76WqzuTsWEU0BJ74i1WyX4hOKT6h/tlGXjWe39sTuiMCG93+335QgJhM 7gaUEq0sb1NUDMQCV+5HFlqkQ41r0+sAPMefKqFv/Gfs5S9Kf+5U46NlFBA+AqZEGIZs ED2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=U41rnF2j; 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 sc3-20020a1709078a0300b00781599eb7e4si580071ejc.753.2022.09.26.06.19.00; Mon, 26 Sep 2022 06:19:26 -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=U41rnF2j; 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 S235865AbiIZKbM (ORCPT + 99 others); Mon, 26 Sep 2022 06:31:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235739AbiIZK3B (ORCPT ); Mon, 26 Sep 2022 06:29:01 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 610714E85C; Mon, 26 Sep 2022 03:19:13 -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 5057FB8091F; Mon, 26 Sep 2022 10:18:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A649C433D6; Mon, 26 Sep 2022 10:18:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664187522; bh=1JVInhKzRgYxeBtuLIgpRUdjVEz6qTPyMirFBcB/qzE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U41rnF2j21EcWkp84f3JFBxpSV9xn05go53B3Q0wmOLW69fFxz+XXOMtzYSGu+Mz/ 0VFp4wM/GiQaHLpJCFSHKuvjsBc4r/LFk/QrCw4qooM0ID9hiB9uSEfiLJyHjwJXAn BHsh34+THufjLs7TZFmyrFt7PX/wWscCrKKajJ/g= 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 4.19 34/58] arm64: dts: rockchip: Set RK3399-Gru PCLK_EDP to 24 MHz Date: Mon, 26 Sep 2022 12:11:53 +0200 Message-Id: <20220926100742.725846454@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100741.430882406@linuxfoundation.org> References: <20220926100741.430882406@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 ff81dfda3b95..3ba927f30347 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi @@ -232,6 +232,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