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 49310C001DF for ; Mon, 7 Aug 2023 00:48:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8B3E9868E6; Mon, 7 Aug 2023 02:48:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 75B18868E7; Mon, 7 Aug 2023 02:48:13 +0200 (CEST) Received: from mail-m11886.qiye.163.com (mail-m11886.qiye.163.com [115.236.118.86]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3FE7784782 for ; Mon, 7 Aug 2023 02:48:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kever.yang@rock-chips.com Received: from [172.16.12.93] (unknown [58.22.7.114]) by mail-m11886.qiye.163.com (Hmail) with ESMTPA id BC54A8017E; Mon, 7 Aug 2023 08:47:59 +0800 (CST) Message-ID: <484f68f2-23f9-35bd-645d-ae4ef2d91aab@rock-chips.com> Date: Mon, 7 Aug 2023 08:47:59 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 4/5] clk: rockchip: rk3568: Add dummy support for GMAC speed clocks Content-Language: en-US To: Jonas Karlman , Simon Glass , Philipp Tomsich , Lukasz Majewski , Sean Anderson Cc: u-boot@lists.denx.de References: <20230804093354.6619-1-jonas@kwiboo.se> <20230804093354.6619-5-jonas@kwiboo.se> From: Kever Yang In-Reply-To: <20230804093354.6619-5-jonas@kwiboo.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZQkNJQlYZT0wfSkxIHxpJHk1VEwETFh oSFyQUDg9ZV1kYEgtZQVlOQ1VJSVVMVUpKT1lXWRYaDxIVHRRZQVlPS0hVSk5MSUpJVUpLS1VKQl kG X-HM-Tid: 0a89cd77119b2ebakusnbc54a8017e X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PBw6NCo6ND1RGiIoLjkBDS4U QiEKCgtVSlVKTUJKSE1CSUNLT0tKVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlOQ1VJSVVMVUpKT1lXWQgBWUFJQ0pNNwY+ 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 On 2023/8/4 17:34, Jonas Karlman wrote: > 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 Reviewed-by: Kever Yang Thanks, - Kever > --- > 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;