Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34993247rwd; Mon, 10 Jul 2023 00:36:54 -0700 (PDT) X-Google-Smtp-Source: APBJJlGOy+gM1x2WQ4GYkIiH4JzQBfv9jgmrDUm1PaGh8z0tjXwVCCpUw7msgazoXW7+2VXA+6dD X-Received: by 2002:a81:6e8b:0:b0:570:85b2:e6dd with SMTP id j133-20020a816e8b000000b0057085b2e6ddmr13079807ywc.17.1688974614292; Mon, 10 Jul 2023 00:36:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688974614; cv=none; d=google.com; s=arc-20160816; b=n+JW38mcy3rHyS18gedGMYUYhztCSTAsJajEGTANfWnyySbn+EnAXgrWCCUsUYK29O 4NAVnekpK+5/ey092Y/npMpC4akWQz2uEswm7pZm2I8js/4BA4TOOH4H683VQYpXCIhF T4CjE5GTj+dFfEtN8Zg6U3rsPCcY8uY9cJdvK2Bu/1FI5ymXli2N27FGOoBQlgzrC112 jGacdkMn3T/Qf0fcOZ4mTG+ngBqzgY0DS98CQsUDRQC1DD+rVqzgeFO9cPe6dE2pX8xI xT9wkwsS3FkBO5vOcxfbx3IvC87+9dHdBg6EjhLAgxjGyQOOoFfzO0eG4H8a79cdyEh1 s7EA== 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=oHl7fngjoZwHTC555h5RUzOAC7pZIoIYa9Mwto78lz8=; fh=INoe9475uSxF4+3NuvMjDU5EKin/d2CGCyqmkEiMF8k=; b=NBrtQHRNFuM3kAI1RxdOeI8CqHykPaQX58tLRSvDWLtUt4NYY6CnZ7g5sjPjSDyvQ/ mEzGpHQhuFfK0z0QlPtradKQQpac/1IM6UUaeLysUq9zZw8knoU6Tu5wSkWc3YQ1XBE3 F9+/OD/QwFEVsaKNwqpndfjaleVIfMBLqQ9qfS7iLI0+P70Aqj0rRCpHvbt0iytzMNFn 5i11aCB9m4hu3AIBobfa4DZb7tiRUv1z7tj3jNxppIZHhErbxX0ZZnwej6FIiM5QHoq0 47qQMm/UVjDda0nh6FzSB4dtBys26zeTPm0xxeFQvwQzIS8pNfZo/GFuo7qKVjMYypD1 2eKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lkrRgScJ; 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 f10-20020a170902ce8a00b001b8971cb96asi9151690plg.601.2023.07.10.00.36.42; Mon, 10 Jul 2023 00:36:54 -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=lkrRgScJ; 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 S230389AbjGJHap (ORCPT + 99 others); Mon, 10 Jul 2023 03:30:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230477AbjGJHak (ORCPT ); Mon, 10 Jul 2023 03:30:40 -0400 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61DB213D for ; Mon, 10 Jul 2023 00:30:36 -0700 (PDT) Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-c5f98fc4237so3941420276.2 for ; Mon, 10 Jul 2023 00:30:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688974235; x=1691566235; 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=oHl7fngjoZwHTC555h5RUzOAC7pZIoIYa9Mwto78lz8=; b=lkrRgScJqf1Nw2g0ZJDW7UYJfVZu6eF+vC1cpqOvcDFGTpKmkaWBV3dSDN6RYDg53L /scvszYKpui2Xnk3z6kdhx216eezRZAgLBqt1WW84cGx1aR0lQkUCZFtAnbwYI969D5d yOnaXV4anp/NDbt0BrotYiIAKeYLPDqgQOEu4CfuWVQCWiRmoBnd/39g4OV1dYaFFYMZ AjW2NGFp8Jn5wizmcI/yY1YdYS0CxKYHMM/ywLppHolPfUw9fMLF00rEQ5J34IL8QfJ+ UfQfA0nZlNXhn7UMJHoHPkqQ6qmKfwHe6i5biYNoTsa7LY6q8FbPBLu3TPOV1GAvuIWb qV/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688974235; x=1691566235; 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=oHl7fngjoZwHTC555h5RUzOAC7pZIoIYa9Mwto78lz8=; b=IUAJ0bQ49ux3aWgC9PqmGnFoan6OZWJX6iFlkMIBmsDstV8ZRWlCUO0f5kKFppoA6U V5jb0whXY0KShEen891m2RWGdeXlz2JSmqxBiSge4dDsmNDHSsLjHizkj5LttP8xGNMP 59K9gPx2KvDymUD6saJrXE9OlUg3sIFDz+aLknLWRgVDk4H5Z1PV9e3Aig2ixBDvp2l0 ah74iHckk0J2iqp1Op9NxB78wyUwCsLgj7/PcRg/HYMEUbc/yyKTiCA1EWwoaNDfkZCN o6fblsIhsYZMLL5vhCf9ZsVwZghpf/5Re4bUUC7kUP8aqFo6CDeFKODHgPJ4l8zjjJ+c E6bA== X-Gm-Message-State: ABy/qLbdrPogyExZnUvum3eAyjnvu0JzIUJDeoLRbfZ6e34JPSO3GcXj r0Cyxg1bwHAXIsfLhphv55otyBtC52dyuF7D5gNzQw== X-Received: by 2002:a25:9904:0:b0:c60:c70d:b4de with SMTP id z4-20020a259904000000b00c60c70db4demr10948008ybn.39.1688974235384; Mon, 10 Jul 2023 00:30:35 -0700 (PDT) MIME-Version: 1.0 References: <6f590bb6-7d17-3ae8-684d-2d4403d6ff55@linaro.org> In-Reply-To: From: Dmitry Baryshkov Date: Mon, 10 Jul 2023 10:30:24 +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=ham 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 10:28, Sandor Yu wrote: > > Hi Dmitry, > > Thanks for your comments, > > > -----Original Message----- > > From: Dmitry Baryshkov > > Sent: 2023=E5=B9=B46=E6=9C=8825=E6=97=A5 2:02 > > 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: [EXT] Re: [PATCH v6 4/8] phy: Add HDMI configuration options Is this part necessary? > > > > Caution: This is an external email. Please take care when clicking link= s or > > opening attachments. When in doubt, report the message using the 'Repor= t > > this email' button > > > > > > On 15/06/2023 04:38, Sandor Yu wrote: > > > Allow HDMI PHYs to be configured through the generic functions throug= h > > > 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 > > > --- > > > 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_colo= rspace in . Hmm, you need another header file to reuse this enum. > > 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 > --=20 With best wishes Dmitry