Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35045604rwd; Mon, 10 Jul 2023 01:33:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlGIcGBS1+GJBxZCW7bKfbtWSlhVMV9w4nnukLSKKb3p+CMPQyvFuKvusJkD8vbYub6WjfQ9 X-Received: by 2002:a17:906:77c7:b0:993:f6c8:300f with SMTP id m7-20020a17090677c700b00993f6c8300fmr5628306ejn.15.1688978025782; Mon, 10 Jul 2023 01:33:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688978025; cv=none; d=google.com; s=arc-20160816; b=xPdnbvpKtLa69UQgZ+3mhqmeWZBTFC/ormPl7+2o5DNoFVZrMXdy1pYs8YTPYGnK3f R49kvCo12goTKodMv9DR4AyUGzo/ECIKz04db6tuq4O+etoQ2iKHv/VpeP9gMdsU4kaR mLN/Vf3KPxhQMQONJeZh5jt/jLs94o2FPdc3j1UL/XLgp7O+AYNxxPxDDTb0MSfVUhY3 jdcqx5UKRbpVXswEKKeVKEVJ04pa8tsSmTwStS7Llth5XxaKN9dt2zU6Sxyuw3aPB8ln iulKEdN5DXFPuRnKDZJNCYgaZ2CcLQQAWhQVTnvDNmxvJHRS35m5zTJP4r+EJntQTIh8 0pTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=6XrmlGPg2875uNjm6boMUV/4SOLisp7J98OyN2fD1Tw=; fh=2h/xwm4sMK2Dn8JReH8GaT6ukRGaPq69m4SFDL4sl1w=; b=dpNEzpi7nDekvW4ua5QoMOOomsqg+W7Cd/qtMviK98w6/Z3eHJSuTFUc7dW0gr0GuL g6LbrKclfBvDpaFuh+TqMVO3KGD0crdDtSQEfucMZfO8Wz1KMa8v2ssm+3JYpYVsZ3z0 7EcFfbDUbEBp8SCh5ZakyLPbTQcbvlPYfkIrMpVITgt26hMZl5xayOYNbTMQwdICaFU7 Szgi3zOJVr1+SHCNNOYXMKWLzrrezRcBJkS9DTe72ffe6mLWhce4mWPvID5snttGMz/h HMB+V+aeXWsQjAfQ0n8MSHb9F7oWRszJZ2mSISjlwcQ/lprLL0VzYYMlM5ZCvq3VB2Uw tRCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pPrTTLBn; 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 y26-20020a170906915a00b009895e9b8819si8411943ejw.1051.2023.07.10.01.33.21; Mon, 10 Jul 2023 01:33:45 -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=pPrTTLBn; 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 S229795AbjGJHoj (ORCPT + 99 others); Mon, 10 Jul 2023 03:44:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231236AbjGJHo0 (ORCPT ); Mon, 10 Jul 2023 03:44:26 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A04C120 for ; Mon, 10 Jul 2023 00:44:21 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2b71ae5fa2fso13526351fa.0 for ; Mon, 10 Jul 2023 00:44:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688975059; x=1691567059; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6XrmlGPg2875uNjm6boMUV/4SOLisp7J98OyN2fD1Tw=; b=pPrTTLBnGur5kN4+tW9BpSR3CRK1iLs2xQ5LA2jYbG3ZnCOdgiR7x3rbMWZL0wIKcY ONovt9MrvNp/PSjRLm1unFrsXKnzjZzi//nZT3gxyU50a24CvIN5RidEKkSt+GVbrZp9 vZH80Y9T28gpopOKUjPEFZ8Vs3K2XDFsxTf2j+dtOdnKfFY9e6/Q0oKGetam1di2/X1y rt0YDTle3h8GKRvd70ctpI4X4Y8ZJHZvei8eceydWn7zMwZLNa6G34HqPTUTrwt3FpWx LnQz5pA0SadArrSv9a1CJYdaiP88Al05514dB6CU9x+4dPjdZZDS0q5iDfUjqrPToFHx VH+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688975059; x=1691567059; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6XrmlGPg2875uNjm6boMUV/4SOLisp7J98OyN2fD1Tw=; b=afVgSdKmaf6viI+MFVnhDGjL1clu95bUZBN5gp93j+VpKWLJgszSR/JXB3PXeVgcnn 43gjPDvDdOzk/Z8Nx6GFSd0NNYX30v3DS3nZ4JqINfjqM6kWq9iRnegW9KT5BClWcaZ+ fN3uzaBpuk8TvClDiTgMu5JUPbylO6DK6fwkZJV8hLWPqPP2Un0i3B9vRRgd+1sVpFQF ONa8JzcYWb3xnXvc5jDCVlzrdjebizZJvFIB6WAF6kz/z4huo8hElMD7JDSqNsfKRad7 Zs1SixVZFLZ7fPti6ud3x50AkVkai99NMqyNzuXZnTEU0kVqL57cweA28EaXS9ei0L+i EGRg== X-Gm-Message-State: ABy/qLajNS9UsSnCu4kVhaYFVfxOqpOVtHQQckNjiMNrcBpGTmrDvM6k ZXJume4FbbGUfE9LdoTSpPKfBQ== X-Received: by 2002:a2e:7013:0:b0:2b6:d536:1bba with SMTP id l19-20020a2e7013000000b002b6d5361bbamr9641213ljc.18.1688975059356; Mon, 10 Jul 2023 00:44:19 -0700 (PDT) Received: from ?IPV6:2001:14ba:a0db:1f00::8a5? (dzdqv0yyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::8a5]) by smtp.gmail.com with ESMTPSA id n25-20020a2e86d9000000b002b6cc17add3sm1886857ljj.25.2023.07.10.00.44.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Jul 2023 00:44:18 -0700 (PDT) Message-ID: <8966feba-eef9-2ea3-dbec-13fc53232a6b@linaro.org> Date: Mon, 10 Jul 2023 10:44:18 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [EXT] Re: [PATCH v6 4/8] phy: Add HDMI configuration options Content-Language: en-GB 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 Brown References: <6f590bb6-7d17-3ae8-684d-2d4403d6ff55@linaro.org> From: Dmitry Baryshkov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, 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 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 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_colorspace in . Excuse me, it was supposed to be a question. Do 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 > -- With best wishes Dmitry