Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp1114001lqs; Wed, 6 Mar 2024 06:48:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWdUpHKiGlnp6SaV6iL8QNI2dMoo/HaAB2MsZytHh9TCwnfp4FdBWVvTVi6P7SKppfLa4uoE/JnYKSJ4Um6CEyTylqt98S3tyCDr9t61w== X-Google-Smtp-Source: AGHT+IEAwsHWJsUQZrFVl+95oznhDgtgYYYaHom97PFwkLzUXJhQWbZoxbOCxJqboWMLTgBdOqgs X-Received: by 2002:a05:620a:957:b0:788:2ae1:6f48 with SMTP id w23-20020a05620a095700b007882ae16f48mr496718qkw.34.1709736503658; Wed, 06 Mar 2024 06:48:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709736503; cv=pass; d=google.com; s=arc-20160816; b=g47syFmY08l7u6+wOsfIXNvFBEAhx9qmeUPj1V9TCB9KwUrogwL/AZPYUBc/ycGDzX 8NVLhdWwfoo9xmGHlukssfDi/fvx3bS1dl8UXq+bkaZY2U5YL/XaDx+2vBbpe1msvHri AzkpgfDiTEZXdfQGZrpaHmdueJHsXolqu4Y+d/yCTQazIVLS0rgQ/FppYOf02TFunnwP /S4irgDTRO8MV8Tnb+q+m7FDv+Oxdka65twRfEipzg9o5Z2NUFLX3YRo5sr9okbDqbPo EZ95xhRizgPdriPuOwjNcCVp5/CR/Nn+gBYApmj09nAEWRhuxMtPcLx/yyyf2DwSxrni sWQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ML7FYa8aogRu8LfpehguoyY2L4PMc3se4FiTqGJdr5g=; fh=00+1N+lBXnMD157YEQEHVOpmre9MME43jb0EqRRmiQM=; b=dAoQl90sCHj+4nsMgZK4eC8WQO/A9QRyEk2+UkpWsKBvgEygpHE8epfiwKPqm2Pe8F wl1y+Z813z83tMYcJaEM/xJGeXnnNti4GgDgCO0tayO7T0k5PILmYXLYT4997SNOfbpJ lGBYwkunuYb2pFXS73CijjcqajHPAeZwJxSKByCTGd4lKNgsCiVUIIOjaC2t1BhqcDkA AAT0R+I2McOac4AK3iUDaOjI47pkO588NpCH6uLYyqoD/EwbllhCqwlrBsYnW8JfjWGF R4Veji9svZ6xc2Hw1gvdlyeUz49f+cXQ38jh41dfN30PSpKhtVesEaGNgW0e+DcKy+H2 Ad9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lXBlgeae; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94084-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u12-20020a05620a084c00b0078822ca598esi8447939qku.718.2024.03.06.06.48.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 06:48:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lXBlgeae; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94084-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94084-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 611831C20C0B for ; Wed, 6 Mar 2024 14:48:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0A483134404; Wed, 6 Mar 2024 14:48:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lXBlgeae" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2C1E7BA55; Wed, 6 Mar 2024 14:48:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709736496; cv=none; b=c2qtM+L8dYzUpTz0XlorgASIn8xRICymI6bhy+vJmIxfXDZxX+Szq8MU6DiZfvsj5DkkfZCjavITSKDqbPJg9ZczYH/kks6zjutR2NFulSGsDsFknT0wNEoqhpML7d4HmKqGEetdvptLKd0lJ3LK81HT3EhfBtO/kmCBH0rGq8U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709736496; c=relaxed/simple; bh=LKxAHNk2aLDWzzV1w2tW3dpSb8kzakIi8zhJRlDYp30=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Dc4A9wbwOIPN7xqv/qyhmtXjuogTpZesVeVJ99UIrF5bckjuqWEblgwPvQjC75gnPAa6DzdESiULcmddNkC/zZ2/adklp371/yR/r0xRR7UJXN8tu5sdQC1n+VGk2DR4Neb8ZYf58ONnEFwRW0ojwub1C+N7FwmXqY11S3jyBBQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lXBlgeae; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42FFAC433F1; Wed, 6 Mar 2024 14:48:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709736495; bh=LKxAHNk2aLDWzzV1w2tW3dpSb8kzakIi8zhJRlDYp30=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lXBlgeaeEd838cjSpXB5fqRMp0JDlOUS2RNQONh2ebnE3caajbq4gcz5fgrUUrSyU JDGeWAMG9Bd3x0Q0Zixif0b5VboyKVsI8uWeQeIvZPuadhN2GnG1MJasnaniRuvn/x A8RtYP6ecWpHi87rDDNV4VrS9FhOIwMilZU1k03FhdKOZ8eXDrbJ5AdHY5yCNPPldE hnxsilPlv7krDOXsoX6v5EEUo793kDnpUYR48kQKHhlrqJMcltGCEs5wkqN1KHlUnW 6kw8Bsa/Ah24iuGlq+MLiZgTuYSE7GBNJ3pm6O0Th8G+8NfhuQFFsJ+5VZJxmLi0KX FslSnN+FajSng== Date: Wed, 6 Mar 2024 15:48:13 +0100 From: Maxime Ripard To: Alexander Stein Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Maarten Lankhorst , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Sandor Yu , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux@ew.tq-group.com, Dmitry Baryshkov Subject: Re: [PATCH v15 2/8] phy: Add HDMI configuration options Message-ID: <20240306-inquisitive-funny-bull-017550@houat> References: <20240306101625.795732-1-alexander.stein@ew.tq-group.com> <20240306101625.795732-3-alexander.stein@ew.tq-group.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wazjs4qrv6r7qq5x" Content-Disposition: inline In-Reply-To: <20240306101625.795732-3-alexander.stein@ew.tq-group.com> --wazjs4qrv6r7qq5x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Alexander, On Wed, Mar 06, 2024 at 11:16:19AM +0100, Alexander Stein wrote: > From: Sandor Yu >=20 > Allow HDMI PHYs to be configured through the generic > functions through a custom structure added to the generic union. >=20 > The parameters added here are based on HDMI PHY > implementation practices. The current set of parameters > should cover the potential users. >=20 > Signed-off-by: Sandor Yu > Reviewed-by: Dmitry Baryshkov > Acked-by: Vinod Koul > --- > include/linux/phy/phy-hdmi.h | 24 ++++++++++++++++++++++++ > include/linux/phy/phy.h | 7 ++++++- > 2 files changed, 30 insertions(+), 1 deletion(-) > create mode 100644 include/linux/phy/phy-hdmi.h >=20 > diff --git a/include/linux/phy/phy-hdmi.h b/include/linux/phy/phy-hdmi.h > new file mode 100644 > index 0000000000000..b7de88e9090f0 > --- /dev/null > +++ b/include/linux/phy/phy-hdmi.h > @@ -0,0 +1,24 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Copyright 2022 NXP > + */ > + > +#ifndef __PHY_HDMI_H_ > +#define __PHY_HDMI_H_ > + > +#include > +/** > + * struct phy_configure_opts_hdmi - HDMI configuration set > + * @pixel_clk_rate: Pixel clock of video modes in KHz. > + * @bpc: Maximum bits per color channel. > + * @color_space: Colorspace in enum hdmi_colorspace. > + * > + * This structure is used to represent the configuration state of a HDMI= phy. > + */ > +struct phy_configure_opts_hdmi { > + unsigned int pixel_clk_rate; > + unsigned int bpc; > + enum hdmi_colorspace color_space; > +}; Does the PHY actually care about the pixel clock rate, color space and formats, or does it only care about the character rate? Also, how would you handle pixel doubling? Maxime --wazjs4qrv6r7qq5x Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZeiCLAAKCRDj7w1vZxhR xSnUAP41rpokDnniw6MdmXTRycs0PMI6TgR/87jmxzdVFERWKgEA/uUZeHTkC2sD 5V8zpf6ghz8P69W2+uKQN5GBGohZ5Ag= =ozbL -----END PGP SIGNATURE----- --wazjs4qrv6r7qq5x--