From nobody Mon Nov 25 10:57:41 2024 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2078.outbound.protection.outlook.com [40.107.20.78]) (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 E8F3A200BBC; Tue, 29 Oct 2024 06:04:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.78 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730181881; cv=fail; b=P5YilKYpk9XA5iDhDU48FlQaaXfBtLVE99fUHVrg9x9LxyFXKcHhWQHXF78kCB+xixe6gKynsxebaUMVdhztFlCqC6qZwSVNU79ZPoHQFUTJwDSryybsJktxUh4qoq28O8pkzupcgFfm3sxCdgNdoAlu13sM5twxmeTvJWSATiQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730181881; c=relaxed/simple; bh=042F6lJqXUDJp9tOgd/TnLFRlCM/IuyWBU7n9xLfL1o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=t6ai+jKqzDpfO0uS7sYKTNSGuVbV4EqbMW1Ruj3tjneUHEenT904PXLMmXHtYBEGAWHjGD+SMdf9TWKyuBUOuAqxooi50LUoCpMQz/FPIMyOR8+RAzGTLV7s8TmrGQRpLPEoPtMBbwz+gPVj5yiIgK5sHK4K4LRTvpr6kPizcqk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=H0llgiSm; arc=fail smtp.client-ip=40.107.20.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="H0llgiSm" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fRcKyoUkg5fTjFGH1xpHRsgM88Ip+1E2X/MmyO5FkRoY5Ti30WzH/o51oWggNJfCGN/rbCrQsmsCe+OZ6Pg4Pr63MNn+AfF0XzrY7p2Nw/resPD8uP6R91SEH3OWrg1+EvKisw8B+xGvomU5ukF7gY9e5GNUHUd40C1DfWY2DZE7xoGFy5NZ7z/qK7h4y+VhXKcsFQS3FZvxBR/VZbqXw6Zwhon4Q41sHGHjJPcBwQZqd9XhndlZtFxRBDnloU4pkdTiIpYWjQo8hJx/8DZTkXYaFVPPsvhtNNCNYTqAH4q5+MseNXJueCFe4Xe026ix4122KU4dqTJct4njbIHvmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8cl2GgfvQrPuItTGFrR7habFXyGI34o7VUU/NOXY5KU=; b=nn69rACiecQPcfaLajkvcetAHanJGj25dtTyeWoZCwRbq3ZW99hVY8FBPMImmWeWijpBV4fnpnK8+gauP0AcNREs1ihCgT14Li6+N3yOF27zOejUTuBEegVFMdGmXJcRHPKeMKUmIS/yzIfoHAVrwf4dVupXdrx1JeV3717iseNQ/ggJ2T+SG6Zkd5RbtIDA0UmSEjhQoJGC/vIgLb/7NXBBOjT49jgI2j2fPCkKDqaiTvaLZsmw8rkP/cdZ+RRf/zaVhicHtUafCZ+SiHZdUaIUDIuxcbeCJQmdSsvXd5FE9mYGzqY6UHchfCk9OTXT4u63APuKCoUEDs7niGYTFg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8cl2GgfvQrPuItTGFrR7habFXyGI34o7VUU/NOXY5KU=; b=H0llgiSmKU4JyhwNvAkyjAtW3zU1cjpdhi9B+uee+MUzlpsWO8pdxiMd3oLsRjb82DAJ8blCHMU0icEnug06zhG5/U1bB9i1ch/1Umq+S3gkXpA1JKy+9Yoa86fE3DOt0jJsln6mvO5JLVWDTMr6x8qKV1v1VjgjurH8fkZ8iLvdCHWrzf20YsMMWKSc+U3EcoLwV17oDk5thTZFeXjcBrZdPRFaD/aE7/OPzsIMAR9vWrBgZCZjtIrhzx/YYuP1YkX6ta97Exfl/s03hs2NeinJcp+AUhw9hk9Cf4aLICg3xNoQ5BlDFRRwK4iZEn6VJXdCIc3dtWaTnZIlvX84dw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) by AM0PR04MB7172.eurprd04.prod.outlook.com (2603:10a6:208:192::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.27; Tue, 29 Oct 2024 06:04:35 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::51ae:5f12:9744:1abc%6]) with mapi id 15.20.8093.018; Tue, 29 Oct 2024 06:04:35 +0000 From: Sandor Yu To: dmitry.baryshkov@linaro.org, andrzej.hajda@intel.com, neil.armstrong@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, mripard@kernel.org Cc: kernel@pengutronix.de, linux-imx@nxp.com, Sandor.yu@nxp.com, oliver.brown@nxp.com, alexander.stein@ew.tq-group.com, sam@ravnborg.org Subject: [PATCH v18 2/8] phy: Add HDMI configuration options Date: Tue, 29 Oct 2024 14:02:10 +0800 Message-Id: <64f6885b5a5ca89c8214b3138cb58c3133ac2109.1730172244.git.Sandor.yu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: SI2P153CA0003.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::20) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|AM0PR04MB7172:EE_ X-MS-Office365-Filtering-Correlation-Id: 001e49d2-5472-4c79-f0a8-08dcf7df905e X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|7416014|52116014|376014|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?P4d30eftMQk+rdFhu4JfQMt4U+kZGYXDQwp9ugEbDLzaAoLtpl1pOMVCvefs?= =?us-ascii?Q?8ks4koMFsWCTQkkIz/IYXWHAIw2kyaBy46PeactVb5Q7QFJYTutbZgZRRtIf?= =?us-ascii?Q?qfzbnuc3Lyc+MOuxChS0TUFLmVO7Q6QRgN6ziFH4DVGVVz45Ke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eQxPe8q2qKwkghUukjDA3y7mD?= =?us-ascii?Q?DzfGl0Nqo9EBhUbCR3z90RrcQVJEMjfIPQf1TOeXHgxEqNgf43AxDnw9Y9GC?= =?us-ascii?Q?27RgD5IFhITubS8Ch7H3TnvM0z0m00bS9Jza/AGWr+kzcRH2NMQeB7krbbkQ?= =?us-ascii?Q?oZ1/WIgDFOOrnJPEMhokYVpSnZqgDNJKD0Y3cx52YCA3zSlLzmKJDfi/9jCH?= =?us-ascii?Q?9tDhsIO8JIv1JX1nrzBDcMs153xaWnr9T+1UPs+qH6cxKsSnZEd/d4RVmHo+?= =?us-ascii?Q?Zct6zHiOQx2/HJHzbNipFlSTSMlhmoF62QwfviLVuWLcTHgXFsQdz5BR3Vum?= =?us-ascii?Q?A5Df7fkIOBxVxPOY0Zw2Zn4PTyDM?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9448.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(7416014)(52116014)(376014)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?1XDavMFBwBNz6scetqXbAvZzx2o8WZvpvAwTRd3IUtXp/wD8KI/EMD7uc1qL?= =?us-ascii?Q?06/ffocn7B1bSZakDpz2RMCd5/qqd0uYT+UuE7x5CxZZm0l81id+KGIsx8/f?= =?us-ascii?Q?amPumtAEfx4ZZvFBwrDYlodjaeoRazb9HOu/F01jGszWwiQbJC1XTXL9+t3g?= =?us-ascii?Q?ugS2HaEC5pjEqcGlJAVjQptF1QH/Tmns7RoDz8D++1q10eWfMq/3ZwwdCts7?= =?us-ascii?Q?zd8zxxtww6lj8BW3HxFJmYHiUJYCCSbReapV2J8cxOYH1dpkqazCblwWCnvY?= =?us-ascii?Q?0iyeXpKUczsga24R7JC2m98h7R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ascii?Q?DZhyj3L1DhbKqjxHaRLhuXz2yyvtPxrRfz/1kzaj2aK7lZYyhwojhCml2pbs?= =?us-ascii?Q?IIntzpew5asmeQwT7ZKpyTyuWFyuAjnwwrkEg2JXRjZsQFOmqV2i1nE5IFMB?= =?us-ascii?Q?vwPlx82PmD9LNUCtvZO2565KKGMwCCuNw1uhgJ9w/p44vdW8G1CukEwq+y8a?= =?us-ascii?Q?8R3+4lylydJg1FFNzAqO4e6vBBwmh0NFwBaI9fRB3QJl8bZFmYloIbYqQery?= =?us-ascii?Q?iA9ormssyKM6Whyd709sN4TG+5dQAfZeT68AK5b9r7e6UB04+IWa/AejxlWx?= =?us-ascii?Q?Gs1TxpoeouI4pItSbq7nFPGQfLQTeEvPX0S5FP62oVuMw65atHpXsmU6LOV3?= =?us-ascii?Q?97EcrT+BYxepUnjIWCONvxESoXFP2ZYNMZEbmEFu?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 001e49d2-5472-4c79-f0a8-08dcf7df905e X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2024 06:04:35.3515 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yKYhpLTE8FHd9WLFlNlS8zbNYKyAjT8mWiBmQuCwBIw2julnGwBC7bE32t/Mok9xglTd5RyFC+Zrq9uHZ01deQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7172 Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Maxime Ripard --- v17->v18: *No change. v16->v17: - remove headfile hdmi.h - add 2024 year to copyright - Add r-b tag. include/linux/phy/phy-hdmi.h | 19 +++++++++++++++++++ include/linux/phy/phy.h | 7 ++++++- 2 files changed, 25 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..6a696922bc7f2 --- /dev/null +++ b/include/linux/phy/phy-hdmi.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright 2022,2024 NXP + */ + +#ifndef __PHY_HDMI_H_ +#define __PHY_HDMI_H_ + +/** + * struct phy_configure_opts_hdmi - HDMI configuration set + * @tmds_char_rate: HDMI TMDS Character Rate in Hertz. + * + * This structure is used to represent the configuration state of a HDMI p= hy. + */ +struct phy_configure_opts_hdmi { + unsigned long long tmds_char_rate; +}; + +#endif /* __PHY_HDMI_H_ */ diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index 03cd5bae92d3f..4ac486b101fe4 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h @@ -17,6 +17,7 @@ #include =20 #include +#include #include #include =20 @@ -42,7 +43,8 @@ enum phy_mode { PHY_MODE_MIPI_DPHY, PHY_MODE_SATA, PHY_MODE_LVDS, - PHY_MODE_DP + PHY_MODE_DP, + PHY_MODE_HDMI, }; =20 enum phy_media { @@ -60,11 +62,14 @@ enum phy_media { * the DisplayPort protocol. * @lvds: Configuration set applicable for phys supporting * the LVDS phy mode. + * @hdmi: Configuration set applicable for phys supporting + * the HDMI phy mode. */ union phy_configure_opts { struct phy_configure_opts_mipi_dphy mipi_dphy; struct phy_configure_opts_dp dp; struct phy_configure_opts_lvds lvds; + struct phy_configure_opts_hdmi hdmi; }; =20 /** --=20 2.34.1