Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35042572rwd; Mon, 10 Jul 2023 01:30:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlFZhiIOIVo+fvXk3Vd+ORIbT8+RLoJlIhBxHZStb/Equ8NU8OuSShAcPC4vNQ/4hil0YekD X-Received: by 2002:a17:907:1b1d:b0:98e:1729:aeee with SMTP id mp29-20020a1709071b1d00b0098e1729aeeemr17747632ejc.2.1688977833008; Mon, 10 Jul 2023 01:30:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688977832; cv=none; d=google.com; s=arc-20160816; b=SC6z4AxZUW4QyS9iA5jPA8QKnLz8Idvs/u9SC62YcEhRcPflUtGPIsJWPo7RJJzq/Q gkgYrtq/WcRNTqlGeZXsYz/U1DM1o6dkVbQ+YxPuklh6+5aA1+a8d8mRZ24njEJVKvv3 o6G2OoWFc2deUVQzoAeOBdF1JjIv9EpxNLKus/i/LaUgYOunkQpu3xB9aRiAogjPyWQ/ M4/plfYaVxOo4+yJDYT5++NXvdD699egWyRrVllSLe+QyC1plldSyIbqWgq3YS699QKJ kfVwj7IdyreF4lXIvStpphljKJjQDPY2AdxeFPAxa0foHJQVuUr/W5b5Ah2zo9lNUbKn A5Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=QA/OQiX/pzJCCl8hjUqWSyMfpeWVEaj4HEKssATZWgM=; fh=INoe9475uSxF4+3NuvMjDU5EKin/d2CGCyqmkEiMF8k=; b=fMr/hrituNMrDv7GiT7DU2W9016C8MJlWaLOGLWFJGeoMGND6g2ok32o+9Ot9Y6Ohe pkwY0MpEP/Cos5OymM0nDUQr3QlDZH1YTF2ClNgIdjUkxn74zN44Z6dLHLJtw+O73H/N iPEYMj1S/Xybd6ohzYeERvbcodIsgnLkEOWrCFOoJchoUz7KrW4tAUVvROGbOLh1isr+ f/YQhxubMBZvgz6jt5DmyRAD+InfnZFl+QuoLqCakz3B8urqE8Ujl9RdQhMSXu5K+L+P loKKj4VFn700WimxZiH+GXccde5QGf7zhILto0mJxM2I6PAchQlgGONGHdFt1tXxsF54 LJaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RZU+51th; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rl1-20020a170907216100b0098770f63085si8619875ejb.33.2023.07.10.01.30.08; Mon, 10 Jul 2023 01:30:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RZU+51th; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229736AbjGJIGG (ORCPT + 99 others); Mon, 10 Jul 2023 04:06:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232562AbjGJIF6 (ORCPT ); Mon, 10 Jul 2023 04:05:58 -0400 Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBFAD195 for ; Mon, 10 Jul 2023 01:05:55 -0700 (PDT) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-579e212668fso60715277b3.1 for ; Mon, 10 Jul 2023 01:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688976355; x=1691568355; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QA/OQiX/pzJCCl8hjUqWSyMfpeWVEaj4HEKssATZWgM=; b=RZU+51thCwJE7K/xTfv65nD+a+HixYp05Wa6SBlO2OPNmy5m37MA39idOCBf48iw4I JAUO3x4LUqFv5n9ZrELLbiRS/BO1nAGtwpdrXb8nNN8cnDlJ8LzjAQtWkEXmxTcomt/b 6SKNDx9Qnh0AyCoMIGQBFqko7Wj7IF9txSuTbmmzEpWua6Gd2wGn7hBgEqSgPDGJTBHx rX0RleQMfXN1sw6RfY3oojqQIbFW8p9AqKQHEIMY1DqZDGQmZgWBqNdXw08LUdm4UA/H NFFls4u9z7XvDbgPxkpjt/TGONun/oCEiAsv7cRZlG36Lvqp1p0iOWBwyDqUuyNHI4TI frYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688976355; x=1691568355; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QA/OQiX/pzJCCl8hjUqWSyMfpeWVEaj4HEKssATZWgM=; b=lOGvz1G3gAs/5s1UTwm0JvR008DltAetJPT5SAVdVUZHH9eB3SmKGf4trDzYet/Lq5 5JmPX/M24uJ9Iq1KVVVs3im28pn1b42jCGO1WSWFILukB6lbwArB282ZChjnyYCy3sfQ VWuRvSwGMWTJssYGAjzgPYJ5uU5fEMZfN145kiGzLe/Kq8WT0W8aXxPMJGUEgwyIdxgr kH7jzP3IVqHmc4DRV2HNl+KbODmC7ZlhmFScp2NnbLXX1hDt1XmIPHze58jt+kYKJ2rK 2zdFSHF/hGwkD13+Yl+HL+uPGtlsVU8OixpQ6SyR32cEyGRdG5Htdq7lpXRFxMMMgr5Q AeLQ== X-Gm-Message-State: ABy/qLZ2qk6o3vtwrp+P0yBL7NYNIinb8xmoLeDyc81JvUBwGWvGizMP wHKYhfPbUc6fw4SOGrVtXNEQ/S4E4ZUuXUm1zL7UQA== X-Received: by 2002:a0d:d48e:0:b0:56d:2d82:63de with SMTP id w136-20020a0dd48e000000b0056d2d8263demr11415234ywd.3.1688976354895; Mon, 10 Jul 2023 01:05:54 -0700 (PDT) MIME-Version: 1.0 References: <6f590bb6-7d17-3ae8-684d-2d4403d6ff55@linaro.org> <8966feba-eef9-2ea3-dbec-13fc53232a6b@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Mon, 10 Jul 2023 11:05:43 +0300 Message-ID: Subject: Re: [EXT] Re: [PATCH v6 4/8] phy: Add HDMI configuration options To: Sandor Yu Cc: "andrzej.hajda@intel.com" , "neil.armstrong@linaro.org" , "robert.foss@linaro.org" , "Laurent.pinchart@ideasonboard.com" , "jonas@kwiboo.se" , "jernej.skrabec@gmail.com" , "airlied@gmail.com" , "daniel@ffwll.ch" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "festevam@gmail.com" , "vkoul@kernel.org" , "dri-devel@lists.freedesktop.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-phy@lists.infradead.org" , "kernel@pengutronix.de" , dl-linux-imx , Oliver Brown Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 10 Jul 2023 at 11:01, Sandor Yu wrote: > > > > > -----Original Message----- > > From: Dmitry Baryshkov > > Sent: 2023=E5=B9=B47=E6=9C=8810=E6=97=A5 15:44 > > To: Sandor Yu ; andrzej.hajda@intel.com; > > neil.armstrong@linaro.org; robert.foss@linaro.org; > > Laurent.pinchart@ideasonboard.com; jonas@kwiboo.se; > > jernej.skrabec@gmail.com; airlied@gmail.com; daniel@ffwll.ch; > > robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; > > shawnguo@kernel.org; s.hauer@pengutronix.de; festevam@gmail.com; > > vkoul@kernel.org; dri-devel@lists.freedesktop.org; > > devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; > > linux-kernel@vger.kernel.org; linux-phy@lists.infradead.org > > Cc: kernel@pengutronix.de; dl-linux-imx ; Oliver Bro= wn > > > > Subject: Re: [EXT] Re: [PATCH v6 4/8] phy: Add HDMI configuration optio= ns > > > > > > On 10/07/2023 10:28, Sandor Yu wrote: > > > Hi Dmitry, > > > > > > Thanks for your comments, > > > > > >> From: Dmitry Baryshkov On 15/06/2023 > > >> 04:38, Sandor Yu wrote: > > >>> 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 potentia= l > > >>> users. > > >>> > > >>> Signed-off-by: Sandor Yu > > >>> --- > > >>> include/linux/phy/phy-hdmi.h | 38 > > >> ++++++++++++++++++++++++++++++++++++ > > >>> include/linux/phy/phy.h | 7 ++++++- > > >>> 2 files changed, 44 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 > > >>> 000000000000..5765aa5bc175 > > >>> --- /dev/null > > >>> +++ b/include/linux/phy/phy-hdmi.h > > >>> @@ -0,0 +1,38 @@ > > >>> +/* SPDX-License-Identifier: GPL-2.0 */ > > >>> +/* > > >>> + * Copyright 2022 NXP > > >>> + */ > > >>> + > > >>> +#ifndef __PHY_HDMI_H_ > > >>> +#define __PHY_HDMI_H_ > > >>> + > > >>> +/** > > >>> + * Pixel Encoding as HDMI Specification > > >>> + * RGB, YUV422, YUV444:HDMI Specification 1.4a Section 6.5 > > >>> + * YUV420: HDMI Specification 2.a Section 7.1 */ enum > > >>> +hdmi_phy_colorspace { > > >>> + HDMI_PHY_COLORSPACE_RGB, /* RGB 4:4:4 */ > > >>> + HDMI_PHY_COLORSPACE_YUV422, /* YCbCr 4:2:2 */ > > >>> + HDMI_PHY_COLORSPACE_YUV444, /* YCbCr 4:4:4 */ > > >>> + HDMI_PHY_COLORSPACE_YUV420, /* YCbCr 4:2:0 */ > > >>> + HDMI_PHY_COLORSPACE_RESERVED4, > > >>> + HDMI_PHY_COLORSPACE_RESERVED5, > > >>> + HDMI_PHY_COLORSPACE_RESERVED6, }; > > >> > > >> This enum duplicates enum hdmi_colorspace from HDMI > > >> 2.0 defines '7' to be IDO-defined. > > >> > > >> Would it be better to use that enum instead? > > > Accept. I will create head file hdmi_colorspace.h to reuse enum > > hdmi_colorspace in . > > > > Excuse me, it was supposed to be a question. > > > > Do you need another header file to reuse this enum? > I'm not sure community whether would accept the patch that simply include= in phy-hdmi.h > because there are lots of other definition in that not nee= d by phy-hdmi.h. > If the answer is yes, I happy to follow. In my opinion it's a better alternative to creating yet another header. > > > > > > > > > B.R > > > Sandor > > >> > > >>> + > > >>> +/** > > >>> + * 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_phy_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_phy_colorspace color_space; }; > > >>> + > > >>> +#endif /* __PHY_HDMI_H_ */ > > >> > > >> [skipped the rest] > > >> > > >> -- > > >> With best wishes > > >> Dmitry > > > > > > > -- > > With best wishes > > Dmitry > > B.R > Sandor > --=20 With best wishes Dmitry