Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp14076569rwd; Sat, 24 Jun 2023 11:31:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4tqPppjaVfxCw7k/0Cuf3qfJKSIUzZtPw9W2+SPS7lBufvZdQSSDSGxNVZjvd7bqpZSw+u X-Received: by 2002:a05:6359:6398:b0:132:7a28:e13a with SMTP id sg24-20020a056359639800b001327a28e13amr9029294rwb.17.1687631464888; Sat, 24 Jun 2023 11:31:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687631464; cv=none; d=google.com; s=arc-20160816; b=BCzJx3xfJxbFvoUgfpTacX7Zsk4zedJXKkmXxY/u3hviUf5vTCaFEz4CUbQEYMF2qO z2D0qsMjzXbEIXSaL5Du22z8ZwsOh2VSC4KlKUikAI29ECOUE05epqEWl07FPdmGAL0S Dbx/wxXmT7OklJ0j9wHP3ILLM2qt35D9I4i2r4QGDaN5+NYLwpE/lKeVWg7Jeh7CYyPY C1Q71h2WBvr9e1/GGhbSvLo/L3ktdeP5wegQQ9TrW/Tzv/MrsvTZStZXwbyGQqakUN/G aS0WnQqXwD8g6QWf6+cEnHgNvb35863XJG1T5aKHIwuWNSPNSq2hhDNGioEDzXrMSFtS VrRA== 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=b8aXK79fA9FR8gAtXzWQUHnQm80+lmfMQEsV5inLFFs=; fh=aK1S2VjVtdOLiQ8qVH2En4R+969RBFU3F0XkPXP2JF4=; b=oMUzxutrth2MUOgWzPhF58iqkLHlQglMGyOPsy93USW1hcf5wyZIpHkgh0VI5KQoLl 6c+ABC9SJ8eOqPaG8wAFNgqOmff1idChphl/muO5g6V7IJkLI1oBZxDklANuyDSVdY6X Xx54Ur4Zl+JEWwyOneRalLapk7unyFjWBwqZKWIZhuuNw88pEysKWBAUt+/3nLXtSYTa rjYUqD9FImwHK7thqUdx+bqVe6R2jDFNYFxhSVIjvAL/kaZqyqa2romFHV1GmhmC5tbu 1cjiAigTcwBnuVzWuuTneVQyvDb0H762FcQ/KK4fZJPOCzshDqSaZSA5EFGgXK9aYScV Gmrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HWf9+bLf; 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 c23-20020a63da17000000b0053f228ce43csi1912114pgh.547.2023.06.24.11.30.47; Sat, 24 Jun 2023 11:31:04 -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=HWf9+bLf; 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 S229662AbjFXSCO (ORCPT + 99 others); Sat, 24 Jun 2023 14:02:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229824AbjFXSCM (ORCPT ); Sat, 24 Jun 2023 14:02:12 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D27DC7 for ; Sat, 24 Jun 2023 11:02:11 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4faaaa476a9so278331e87.2 for ; Sat, 24 Jun 2023 11:02:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687629729; x=1690221729; 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=b8aXK79fA9FR8gAtXzWQUHnQm80+lmfMQEsV5inLFFs=; b=HWf9+bLfsRsQ5gE5EplC6PQgmM/X18AmoRfH1ZpiWsNARJZdODjeXjJL4WSLHnirjP tUXHS7lRPy8UB4ot23yvWGA5rmp8sX0moTPJYFCAaT1xNZOy08gHKgEbmI+J2RH6IXKO 0Rw+CGF2tc0EY3SmtGu4Sc0HuSTGwooqfVDjZ8bJUPgDSyFGheq5PDJ7DbeiUIqng3Kj i2OUAeajWNEQjbdn3X5/Nvw8MO1k6YY/ssyfjvAxzllzn5RQ4Ib09vPQMUlXCzCrbLEK KuDnSjuKBWtnX6Xl3FoX95oj0KZ5AQhft7FdRDTs4kQ8cLzCevkMsmOZgguTqloef1Fg VDzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687629729; x=1690221729; 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=b8aXK79fA9FR8gAtXzWQUHnQm80+lmfMQEsV5inLFFs=; b=RZVBiaIygdqpGxSmvOsR7xkje8EYE48Y/BLhVZn7a6duy/ftk8WBEiL7QJfeUz3ZSC vgTgmFSrNhofkBDe4KEd0JI2/sGT65brBqOCEQEr0csqvJ2GILXP0AqhdUmllh3oxozN c9l6pII8lMUOCvX0E5bhIXzbI4zGY22tU4E+C7uC/CORbxeqQ4+uLq7cYbmjKrUwzOt1 9Hl1I8QKhrX67Rv68Jemea37ZkluVMS+dQ3bkNkVX0EP84mKvpCiNXTXFVaEVIjfs2UQ xZkz7wViiSHLeyJQVoL0rZ3TvmX4fy4vedUtx81r6VZmrfwxK40ev0Hzo49EkcIWRNN1 KMAg== X-Gm-Message-State: AC+VfDwUk6bU6z/yZG8WM+KqN96RoqaarTw7+bLPAq56+Jwo9SJ2wY68 Ytyz/usAkl2z1hIsOPrmEakzlA== X-Received: by 2002:a05:6512:3f05:b0:4fa:abe7:7c80 with SMTP id y5-20020a0565123f0500b004faabe77c80mr320140lfa.39.1687629729435; Sat, 24 Jun 2023 11:02:09 -0700 (PDT) Received: from [10.10.15.130] ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id m25-20020ac24ad9000000b004fad16596fasm61996lfp.21.2023.06.24.11.02.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 24 Jun 2023 11:02:08 -0700 (PDT) Message-ID: <6f590bb6-7d17-3ae8-684d-2d4403d6ff55@linaro.org> Date: Sat, 24 Jun 2023 21:02:06 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: 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, linux-imx@nxp.com, oliver.brown@nxp.com References: 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_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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? > + > +/** > + * 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