Received: by 2002:ab2:604e:0:b0:1f4:60f3:cb4a with SMTP id a14csp10766lqm; Fri, 5 Apr 2024 07:25:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVXgiuQE2jBhYygK/VAlHcSj4Y3854q7VU+6ll2KKDLpvXHGWp+YMvnthJHNokT1b8CINFkUJ4u7IHUZFkz+dinwUtfn+cqIsigbW1L3A== X-Google-Smtp-Source: AGHT+IGE9Lzvdnzal+0j62PIc4YbxMzjWTHN25U3NYYI2zeOvF1KvnhAndz10MyuzkI2zm2YqxF5 X-Received: by 2002:a05:6358:72aa:b0:17f:882e:67d4 with SMTP id w42-20020a05635872aa00b0017f882e67d4mr1729860rwf.3.1712327104906; Fri, 05 Apr 2024 07:25:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712327104; cv=pass; d=google.com; s=arc-20160816; b=RCTHAiD6mtyJ7d6nHDXf0Jp0EICajTJwIb/wQhOSBqSnPp6xnZrhnK4oEwoDmtqA8h j3Gqyo/S4CHQHgeDO8X/DVDojBovEsnTavlZ5Tdfzk2YPXs7jzKuqyklJgtSBvdtL82G l9U28/Gpp5X/ZVoN4HlaSuLV9b662wXErMOkqV6usLFXxGxf9FrjbvkNzwJt74o8MZ8k LVkZnh600WbD2/xe1ffyh9nrZKtjFyAPU9Qh2PF4K+srKAhXlI1uFUP5irjo6QtPK0wf 19gaw5O4xbFQZTYLRPEgETLYGSZncOh0VIWDmtXnQrvh+f4Zg47F9/tWc/UIkGBdGRYo 3TxA== 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=8Nxom/EHevU82GqoBc5t2rYlpde9jbGzcIf/0lH411Y=; fh=Z5r5g2+2UecRLDi0JR0jmM6/Ev8TFv+r29Qj0omiQk8=; b=w6/wG3sGbeiF5ShgrulJRc/OGjndkOyK9Ud8z8W5hxknsnUZLMNKHG81+N1Emg1b5u 31nytE58+MVAVo3iw0Q/KOvttZcpwLhodi3hQpWEEL6cDRU8WKuI2UgQH+VoGuS1zTS8 xiuX+9/AM4FfDfaHlgfniqRFaF11R/0WyBLWYOpg4x2Ugk3cq8qC5V/K+hsKG/ZlSAp5 i9nU5154d7qRguj41M+pevrrz8w/gqJjgrb/kGnZI+MaTYTUKk64Mlt83JWJ6XdK9PuC CnAu8QSlxkGfywWSrrA4T3c/w3P4aNNjRBeKn/QLWXra+UZA++YO973RPnGqa3/qg2PO sl0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eltXqxIs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133145-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133145-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id k13-20020a635a4d000000b005e3cdc24c26si1478546pgm.467.2024.04.05.07.25.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 07:25:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133145-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eltXqxIs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133145-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133145-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 95E27B21795 for ; Fri, 5 Apr 2024 14:24:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EAEF216EBFD; Fri, 5 Apr 2024 14:24:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eltXqxIs" 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 15CB816EBE4; Fri, 5 Apr 2024 14:24:50 +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=1712327091; cv=none; b=B+epClVHGtr6/YZmeDjbkKpbpJU878mw9gg+t3J5KBG2XMVCIOqo/WeKHTnpGFIjHZ71baWrJ9qZD0GZZ9cHeQ4GTfCjLEf8fpUvQg10fITelUzt9Y0XVRWZTi3ffdA2mJuPUonczVVji3jfdx3q3/DUBWAiGMi6mwFC6iIdfG8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712327091; c=relaxed/simple; bh=9u276kZaHIRoTA4fadL2lfzY0PJaTWAhflWuDXQc7KI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mUJxMN+3j3/BbAWaUfeCMTpD/3/nc1qOvz4JrvkYYKiYQU4Bs5Wo2pgh1JBJrWsXo2vzWmQ7zg2uXCrltxOJzgXEtvlB/BsKTjqJA1d3GdNXY2Vdmgr/yCI13BsfV18rmnKMHoYd4rKnZ6JjhBGmzcLSYhtfTxcythVsgxp9eOA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eltXqxIs; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A85AAC433C7; Fri, 5 Apr 2024 14:24:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712327090; bh=9u276kZaHIRoTA4fadL2lfzY0PJaTWAhflWuDXQc7KI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eltXqxIseJTpiuRAJ13spAdHEBB1EkmRpmBqdjP6Uehu/d9KdmHKmpaLerp6rcb1b ytDBJQ9mj8iYPDlAFMU+rbHbI7B2A8Dr21YQV5p+SLT9bq/BLo1HPCnJfXavCO/sUD 6OTWC0kWWTQefiM8pVw61K31PavRnvXPa4a70nAJN7WnIQKT+hl3ylfcO4+L5O9/FT 01vmrmu0p3OPsUPjB0zEVjw7EglL8QZBLzv97TXIquUwe29e9IJw8PdTBlDh7jqG0B YEj5U8jtyTF0LwOlnHvMtkjYZnV0BpVaMaTgGCz7MrGdazCCg4SuYfSnMLyrUHnzed boUmhxbFl0yxg== Date: Fri, 5 Apr 2024 19:54:46 +0530 From: Vinod Koul To: Maxime Ripard Cc: Alexander Stein , 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 , 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: References: <20240306101625.795732-1-alexander.stein@ew.tq-group.com> <20240306101625.795732-3-alexander.stein@ew.tq-group.com> <20240306-inquisitive-funny-bull-017550@houat> 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-Disposition: inline In-Reply-To: <20240306-inquisitive-funny-bull-017550@houat> On 06-03-24, 15:48, Maxime Ripard wrote: > Hi Alexander, > > On Wed, Mar 06, 2024 at 11:16:19AM +0100, Alexander Stein wrote: > > From: Sandor Yu > > > > Allow HDMI PHYs to be configured through the generic > > functions through a custom structure added to the generic union. > > > > The parameters added here are based on HDMI PHY > > implementation practices. The current set of parameters > > should cover the potential users. > > > > 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 > > > > 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? Nope it should not -- ~Vinod