Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3192118rdb; Tue, 6 Feb 2024 09:38:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqbMp3q62edZBUEUnnnOreBuZaDiFc9sEX3EkOCUik1kjRHkmeytFdODlVlAsAx4AuCmyf X-Received: by 2002:a05:6a20:1609:b0:19c:a575:bc7e with SMTP id l9-20020a056a20160900b0019ca575bc7emr2512538pzj.45.1707241118363; Tue, 06 Feb 2024 09:38:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707241118; cv=pass; d=google.com; s=arc-20160816; b=zLMoPeqyRBJVD4D/W6+HSuT9LvbS7CzOPVZay35mr1SpsNUl4zW69yHpq5vLtQ2TK6 krfGFc6V1IWFhswlv8WRbSip9I+E87dO646TmyCNutTCxvqNI6tCaiGXWkxsHEhmtKRd +bi9xwwa2f/ju4ICcquEswVZjcErURYkR4xuZBtU/q7l6AhbBAFnD56Mn5SHB2FJ/ute oZvm0o6kpM0KcyYpVtZVHSniyyKT0+JvaB7TwDC034njSzPCB7juNy2LwxzLE625ZG0q 8Mhk08fK6YrKTBTz/thAYhgw9U5bxM5Idy1hn5eGs+A3jBNDS7QAYDrr3IwCLWxzsYhJ JXmA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=xaoA+WDat1FJlr5cBeBddcywk0i1Oklt1CF1ajVk3kM=; fh=LRuHCWzUU917kWKf+2Xjw+iF1fbKZLUWuqaFsIass38=; b=K87nVm/VULyQ1H50civlIx9iMYYn7GGaHWuP/R2n3fHUtWR6HC7XJnwaNiyMgW7dSC GryT7tXTVWD67lqPB6ysfUeBHNdFFkxH5fT3k4PbD9ymjxMxmNHk+pBVWZKHcHoRYYPg ddQa06suWaCnO/yqDZpK/Jhq6b96iTvgNLHFo8R/wAwRoxLFjv0Lurvih2b0VyiT46DT 1G5eWoT0BNZTZk+2X254aTA6+zNIH4kHBFeH70/BzdMHbVVNRz290ADaZ3QKLzgpWoYN sbDLR5ZSnARoNi5Yi+LvYHqTUd/2u9VPZxpuK2FiKn/uS1OhLUK+IBs7LFV8Nb/cd7N9 l0TQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=L2xZfaVh; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-55396-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=1; AJvYcCVl4UUXvaWXj3YUSrUtKSQtWTFBJ0YqRZEmTq5CSEGSAzg75TtIpiU8Z7DkFEm2rl+GpanQ38oc5EbC+fbX1QMY0v7/ldp5kF6HQU39wA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j10-20020a63ec0a000000b005cddfe1270asi1973944pgh.827.2024.02.06.09.38.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 09:38:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55396-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=L2xZfaVh; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-55396-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55396-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 19597B226ED for ; Tue, 6 Feb 2024 17:37:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE06413FE2; Tue, 6 Feb 2024 17:35:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="L2xZfaVh" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7BF9ADDAE; Tue, 6 Feb 2024 17:35:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707240933; cv=none; b=kXVzJnjPpVYeLMuKj3Wu47Jp0txxjbR5lqiVJeqNIMLuSCDaMrA3TQjAXv7j0LzyYrSy3VrZUgTdeBwKxfT5md8/hWANuUg6ZNKmPQ8TgNHSpmjwBTeJfEpalFLfPcbsUStALOoP7mzwxMAxx7qt+2gbYDdXoTdIHJNW+DCmK5Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707240933; c=relaxed/simple; bh=mKEg8NSA+MWEsWOtYemeNPanDj5YdywtPZx/Cs37/D0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=K7RctNFXCf3pJzAmX+3cGufqBoLyY3lZQkLOxm147873Zb5u4nWd+/2RDm48V7mnr3z+xsvZzJiUXRuK1Zr0RnY1l1B8VCBJYJnCkUZ54c9ynJkH2HzzDrvwdL/bc2jsjMu4zJ5l3ZPqgE4PsXrIBNEHxas+sixqrFBdC2OHwk8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=L2xZfaVh; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 22DE240008; Tue, 6 Feb 2024 17:35:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707240923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xaoA+WDat1FJlr5cBeBddcywk0i1Oklt1CF1ajVk3kM=; b=L2xZfaVhIHa26kVoZAs1UG/T1TeVIT5oX04AE6DGkHNL1za2UbistMzqLYaIIxVNm0CJ/n emHEOFg1uXnVr6famrQDH1v0K3ggxD28JjNSWSwb96rVRvNd3M/WKOzcE1UchoBl+Zb5sE wIl9l5fkr2RdOLgPs4+9HCWrlkQydC4pv+vUvTT5YGxGAMUnRfu6bOZLrdsu2MZ7o70fzQ KLphmSosUipkmfglqar4JYTOAT476ic+DoKCc5Cw7plSJd63GKv66gtOQO8krLixVGpnt5 u/QbJA/otO9hh+ODyrC5glCdsSgqkn1VJPWpqX/RjLEDqYH+nN5sLRMa/kFx7Q== Date: Tue, 6 Feb 2024 18:35:17 +0100 From: Luca Ceresoli To: Adam Ford Cc: linux-arm-kernel@lists.infradead.org, marex@denx.de, alexander.stein@ew.tq-group.com, frieder.schrempf@kontron.de, Lucas Stach , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Philipp Zabel , Vinod Koul , Kishon Vijay Abraham I , Catalin Marinas , Will Deacon , Liu Ying , Ulf Hansson , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-pm@vger.kernel.org Subject: Re: [PATCH V8 02/12] phy: freescale: add Samsung HDMI PHY Message-ID: <20240206183517.2b9dfb07@booty> In-Reply-To: <20240203165307.7806-3-aford173@gmail.com> References: <20240203165307.7806-1-aford173@gmail.com> <20240203165307.7806-3-aford173@gmail.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-Sasl: luca.ceresoli@bootlin.com On Sat, 3 Feb 2024 10:52:42 -0600 Adam Ford wrote: > From: Lucas Stach > > This adds the driver for the Samsung HDMI PHY found on the > i.MX8MP SoC. > > Signed-off-by: Lucas Stach > Signed-off-by: Adam Ford > Tested-by: Alexander Stein [...] > +#define PHY_REG_33 0x84 > +#define REG33_MODE_SET_DONE BIT(7) > +#define REG33_FIX_DA BIT(1) > + > +#define PHY_REG_34 0x88 > +#define REG34_PHY_READY BIT(7) > +#define REG34_PLL_LOCK BIT(6) > +#define REG34_PHY_CLK_READY BIT(5) > + > + Nitpick: only one empty line here. > +#define PHY_PLL_REGS_NUM 48 [...] > +static int phy_clk_register(struct fsl_samsung_hdmi_phy *phy) > +{ > + struct device *dev = phy->dev; > + struct device_node *np = dev->of_node; > + struct clk_init_data init; > + const char *parent_name; > + struct clk *phyclk; > + int ret; > + > + parent_name = __clk_get_name(phy->refclk); > + > + init.parent_names = &parent_name; > + init.num_parents = 1; > + init.flags = 0; > + init.name = "hdmi_pclk"; > + init.ops = &phy_clk_ops; > + > + phy->hw.init = &init; > + > + phyclk = devm_clk_register(dev, &phy->hw); > + if (IS_ERR(phyclk)) > + return dev_err_probe(dev, PTR_ERR(phyclk), > + "failed to register clock\n"); > + > + ret = of_clk_add_provider(np, of_clk_src_simple_get, phyclk); Ouch: > This function is *deprecated*. Use of_clk_add_hw_provider() instead. Appears as an easy replacement though. Otherwise looks good. Luca -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com