Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5990AC00528 for ; Fri, 4 Aug 2023 09:34:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 44FF886966; Fri, 4 Aug 2023 11:34:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.b="BVKUps/F"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 521898695D; Fri, 4 Aug 2023 11:34:05 +0200 (CEST) Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 334DC866E1 for ; Fri, 4 Aug 2023 11:34:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:in-reply-to:references:mime-version:to:cc: content-transfer-encoding:content-type:cc:content-type:from:subject:to; s=s1; bh=7aLl6cOD0Rve3qumozc9DF4hU/8DUkkeplLIOFTMW1g=; b=BVKUps/FkataRiJkk2byWho76U/yOTxpHU5bugdfCiQyOrdUFno27um85puQ3jzcXZvV J6T7kt1x70xYFHDEZ9GFSUBMmfYuuL8Osp4hj0uGpPrc1G9zoZ8SU+D3PgrodH48aXvWHc TXmwJbQXgTKxu8SHiz5+rI1bUOP7tpLiRlRFJPBGNbPzc2nyIrMi32zITf6zwdfCaApkHA 9hmgJC+DkR7bGZyMUg3egZquKjU3oxliNo+IS+QiTMC38ZM5YiVCY2jcX3kVvMTbwKJNVA pDXzByh2jlqrqxFUwXwHyY8prZVx9Uv2vNg+gxPdCdM7B9du6HX50UbQlAjC2Opw== Received: by filterdrecv-65f68489c8-xgx57 with SMTP id filterdrecv-65f68489c8-xgx57-1-64CCC608-16 2023-08-04 09:34:00.572446424 +0000 UTC m=+7379867.592691579 Received: from bionic.localdomain (unknown) by geopod-ismtpd-4 (SG) with ESMTP id kMUk0yeYSxW-w_WwvhH0Sw Fri, 04 Aug 2023 09:34:00.380 +0000 (UTC) From: Jonas Karlman Subject: [PATCH 4/5] clk: rockchip: rk3568: Add dummy support for GMAC speed clocks Date: Fri, 04 Aug 2023 09:34:00 +0000 (UTC) Message-ID: <20230804093354.6619-5-jonas@kwiboo.se> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230804093354.6619-1-jonas@kwiboo.se> References: <20230804093354.6619-1-jonas@kwiboo.se> MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h9p0ZR2qFwBhV4o0q?= =?us-ascii?Q?YxdDSA+wsFap3pvcp8iP+IqIvmpBDrqU34ApdOC?= =?us-ascii?Q?o+Gtp44gaYo2YymzCmd=2FzstD4VUfc=2FA0G8EhkE6?= =?us-ascii?Q?l8fUsLUi44qH74azeaMIibYRzJc7kKqnuDcvYhg?= =?us-ascii?Q?wgfq8g6NU6P0epZgVv+tZafNpcnFFMir7md6Gy?= To: Kever Yang , Simon Glass , Philipp Tomsich , Lukasz Majewski , Sean Anderson Cc: u-boot@lists.denx.de, Jonas Karlman X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Pine64 Quartz64 boards DT reference SCLK_GMAC1_RGMII_SPEED in the assigned-clocks property of the gmac1 node. This result in a ENOENT error when driver core tries to set a parent for this clock. The clock speed in rgmii/rmii mode is changed using clk_set_rate of the tx_rx clock and not using clk_set_parent of the speed clock. Add dummy support for SCLK_GMAC1_RGMII_SPEED and similar clocks to clk driver to allow a driver for gmac node to probe. Signed-off-by: Jonas Karlman --- drivers/clk/rockchip/clk_rk3568.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clk/rockchip/clk_rk3568.c b/drivers/clk/rockchip/clk_rk3568.c index dabc7e70dd5a..599b7b130eb9 100644 --- a/drivers/clk/rockchip/clk_rk3568.c +++ b/drivers/clk/rockchip/clk_rk3568.c @@ -2843,6 +2843,10 @@ static int rk3568_clk_set_parent(struct clk *clk, struct clk *parent) case CLK_RKVDEC_CORE: return rk3568_rkvdec_set_parent(clk, parent); case I2S1_MCLKOUT_TX: + case SCLK_GMAC0_RGMII_SPEED: + case SCLK_GMAC0_RMII_SPEED: + case SCLK_GMAC1_RGMII_SPEED: + case SCLK_GMAC1_RMII_SPEED: break; default: return -ENOENT; -- 2.41.0