Message ID | 4f4ccf83cc63ff28ed2521225a54b076d1a75676.1697524277.git.Sandor.yu@nxp.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp3948651vqb; Tue, 17 Oct 2023 00:06:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHRrjsMdaHc6zIdo8PJrgmTCWBMnYML2629fm20E2T/ssTSDL/Re8MczHckxR/8SxU5BHJ X-Received: by 2002:a05:6870:6b9b:b0:1ea:7463:1b8f with SMTP id ms27-20020a0568706b9b00b001ea74631b8fmr1598629oab.0.1697526404773; Tue, 17 Oct 2023 00:06:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697526404; cv=pass; d=google.com; s=arc-20160816; b=ZXdwEPZRqlIsTU4IcrbJpzr5hDFz3qU8Ypk/OFUMZHeu6niyVWQGZcDUI41FeDGROF pM37NQWJHn9lM91HakcAG5tMaNJZWuIS6dfslaFawloO2Gc7OxnNf5wcb2o32y8s7y+g OZ72UrivgBxQfwenCMdXBaphNANuGbCjy+CP1irzkJUVWtMpGCkRbwS+GPqhseGQMdMA FJfHLG5MzmHpDpA8IYBuD3f9JH09TC/Tbt0YGeGq3qzeHUVYugHy65OV/0Ps3PwDSAtA mqvsOKJ0tDC8lwZOjbL0qRr+t4DnYPDOAAI1komd3EqG1GjUcKlUiQYvvVoQ5ShwXbam WvSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KzAZgLl2joNtA+vCPyQVBMSal6U3/ILkdme3HEMQtNo=; fh=8NLGe14sCJly95EXmVPGTZNu7Y8L8QDjBnK0D9mygcM=; b=HiBHpT2sL5UDnkhh9pBaV3y2klTHV6KAbnPVGH9vFz0mlZWqwdmjhNDttGq5g4bUP/ kbm9+hgLSpt09LTkzJuIPHLItFQzrxXfOvo+QNoUZO6HMKsa9d7/QOGYzS5YAiwynPes BeK4wh8jGFjd/JVvWS/vqHena2sOn4+dpzpk57jpUYJE85F+RUeEhIpVxOlGLzhAGqEe K+CjbN0n8fM4phDbqtCc4usrDiTdRvCe5AUJi9XMHImAXnffKVeWRLXAeySVjyeAnnaU sFuGRclWWGw4P49tOCd9/kgxQYSBwceMlgdYCIR9buXKrP65kra6XXfW+Pqs0tiezk7B XzAQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=UFEi2kvs; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id z185-20020a6333c2000000b00565f5281804si1138269pgz.195.2023.10.17.00.06.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 00:06:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=UFEi2kvs; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 731D780BA6BD; Tue, 17 Oct 2023 00:06:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234536AbjJQHGO (ORCPT <rfc822;hjfbswb@gmail.com> + 19 others); Tue, 17 Oct 2023 03:06:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234576AbjJQHGJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 17 Oct 2023 03:06:09 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2046.outbound.protection.outlook.com [40.107.105.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDE18FE; Tue, 17 Oct 2023 00:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ajvUztgYcM2DXAxEWXbq9ld8R66+S12cWGNThlEV6T4iGMmkkBJLe9Vy/v+HeZIDSJMMeJDTc/yOhdyA9HN0gHjZxfJJlwwBjyBAv1i7Z5/Bqe/Gvri7NgmAd5KMGaq2ilta6F0kGtZtbbbXJTvOdE8xTQvKWmBsHoAIYuNtxqlG1Edsm4AURslqKxkgsKN28JJeQOISlbpZepIus1pxu3rgl4t3W14/PVeJQaifCmv8CnpqlBVakMRTKr3h37l+uiwd7tTfzsEyBCgwNfPaaRCGq754l0EU9XUeoQj04Emc858xTTqzut7F7/PAlkd1Io4cE4jnFaulBPyDxLqlWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=KzAZgLl2joNtA+vCPyQVBMSal6U3/ILkdme3HEMQtNo=; b=cluz6Z+vf6akTRHZH2gnQJRF7BIoYnEzaw+8W2Po23qZrpYHq811D5JhxOMbSjF2lGhCvNGwhKMl/rvcNQICWOUleOb2ROrATOl7L5a044E9XtpMvhPbjA0tDVZt0MmsmScajXksAEX4wlBkzBjacKrRsRMokf2Vig09kZrLboHVvFxK4w6Cq4p9EQ9ulKoC/PnH4HDNkRWGsO1RLNoqF3xW4dYWLSR9F/4apqu+VraUdF4VEL0KrPbUTDMH+VGkvOB5fpqR55Aeb7r5r1za00du3w/qK8EGnPZcu63sM2NwHvZGsSqw0axE+7M2Q5qiqtr8hJB6OVGb8mB2nu67Ww== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KzAZgLl2joNtA+vCPyQVBMSal6U3/ILkdme3HEMQtNo=; b=UFEi2kvsgULG6KdpKwNZq7tP7ayjv729lQ4zVG+a2dhnCfuqdRYgs/UZVcXV3kvSIM3sNIEtHRZTQxb137lyf+ipCEuML+TOaUeRvHhRjT+5hD+F4EVaOaeU7ildnic1HREi5Go28NSq5dEHODjiYdlTcqqLYWW/owzjfU2AMaI= 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 PAXPR04MB8622.eurprd04.prod.outlook.com (2603:10a6:102:219::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.35; Tue, 17 Oct 2023 07:06:03 +0000 Received: from PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::3b23:7c3d:fd28:c3f2]) by PAXPR04MB9448.eurprd04.prod.outlook.com ([fe80::3b23:7c3d:fd28:c3f2%7]) with mapi id 15.20.6863.043; Tue, 17 Oct 2023 07:06:03 +0000 From: Sandor Yu <Sandor.yu@nxp.com> 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 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 v11 2/7] phy: Add HDMI configuration options Date: Tue, 17 Oct 2023 15:03:58 +0800 Message-Id: <4f4ccf83cc63ff28ed2521225a54b076d1a75676.1697524277.git.Sandor.yu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <cover.1697524277.git.Sandor.yu@nxp.com> References: <cover.1697524277.git.Sandor.yu@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR03CA0122.apcprd03.prod.outlook.com (2603:1096:4:91::26) To PAXPR04MB9448.eurprd04.prod.outlook.com (2603:10a6:102:2b1::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9448:EE_|PAXPR04MB8622:EE_ X-MS-Office365-Filtering-Correlation-Id: 611c498c-34d8-447e-330a-08dbcedf8636 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ol1uY7Yh33qPJ1V4XitI/tAoNf0RRMCvx04/Sc9lcdftSPn/oEoXvJpL7rOZekxk9VGIn45JTJxmJtCXtg0iCAK0wW/RFqGhKOAL/zHwObnGa5ra5JL9JEab9ww8o144xoEzfg7NRuH5pkt7lHajACuU+GxvXv40zsuHdqFKy14ZuoSHAfJrh2lLSLtBvGsB5ARTsMkT3vUnM6Y6Y8L4p1xNjId2ETMuvznq0P5GPcNXoNDJZHn06xd1fsymlnQ6EU0HiCvvgN0v+U3Ci02hC4mU35L4I3rHeTNbm0iodqJ/pdSFF0SjYx4sGtstLYpEXWeg1UqbC+fglzTWQ6Bn8SflQXFLOyxgZkVekShVJR+AGc/Rv5bZW0xosckC5j8Ep0I1rANGNeqBrleQ4j610ALccI9d68CVy0v0oPBxjhuGSAcANG+VjS6LxTry8FZeuVP6ZpUeJPzwXBurVcp1J6JWN7NB/PCzc/tsTS7xRyAVaw9FZ2hGmqGLpDquL9NbpktrYNJAIZ3l+qNvrTQJhe0Yl+KcTkflpRfVFpswgJN2SrVlRIEXDhd+BGCxaNSx8LlpDme3Q9cs/JhjmOV4Dgcp3SGhncQku8PuEW1YKI3ftA3Q4uUEXgSUWSdbZUt+kuWLcT0cMbq6zBT3LLtPVg== 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:(13230031)(366004)(136003)(346002)(39860400002)(396003)(376002)(230922051799003)(186009)(451199024)(64100799003)(1800799009)(478600001)(2616005)(6486002)(52116002)(6666004)(6506007)(41300700001)(6512007)(316002)(5660300002)(26005)(66946007)(66476007)(66556008)(38350700005)(921005)(36756003)(38100700002)(86362001)(83380400001)(4326008)(8676002)(8936002)(2906002)(7416002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 71Hl8eNSc3BLE2m+gItRUEFrTR+RwXYW+OgUa27+c+1biHssBvPrqVS8BDXnhmoRmc1pX0Lm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7CcBMAhYspM519sJCa1L2lDpdShesv9TXmOanOrMRHaMiK87d23Mo78czRLv0o11c7lwGATQ6TSAuslxDO3fY6AFqhXwu/kprITBN8rnuxVRf99YefUm3dH/mQj/mV10EFjn2ZojHl7V5yyDBRocv1Wv4jpf6eauQvM268xd3P4tYX2Afpo4doLgfgYQc9ku6AyUzbBwotHF0QvQGKinepyviCHbjY3xQ0s108bkgCi4BO4EilT2mkbAL8TvLtbvQC8Ez1UAeaSZqP7Hiya0lh31EhtLQPQgdFlOJ0E5mGrExp2VpTm79tt1vZwFyZkHKKUK7mVe3kbssMvwECxmN64xitz+R/Dx5zmSSU5VEC2FfnVzy+aBuK6wzlsVmYMSCViRfwPMGZeoQoK0vlFW5EoEsYn55sQIqPaBytiUQs4MTuWdvFTlkC4gkUqb740+ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 611c498c-34d8-447e-330a-08dbcedf8636 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9448.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2023 07:06:02.9958 (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: BwEWY7EOQF7qtGvbzE58sK6wbizNdPE/gAh/YlAzduHuIfTKtOeZXQtHW1MuT41PiuqIBwbyGU/n/xancSBOvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8622 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 17 Oct 2023 00:06:41 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779985447579918550 X-GMAIL-MSGID: 1779985447579918550 |
Series |
Initial support Cadence MHDP8501(HDMI/DP) for i.MX8MQ
|
|
Commit Message
Sandor Yu
Oct. 17, 2023, 7:03 a.m. UTC
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 <Sandor.yu@nxp.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Acked-by: Vinod Koul <vkoul@kernel.org> --- v9->v11: *No change. include/linux/phy/phy-hdmi.h | 24 ++++++++++++++++++++++++ include/linux/phy/phy.h | 7 ++++++- 2 files changed, 30 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..b7de88e9090f0 --- /dev/null +++ b/include/linux/phy/phy-hdmi.h @@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright 2022 NXP + */ + +#ifndef __PHY_HDMI_H_ +#define __PHY_HDMI_H_ + +#include <linux/hdmi.h> +/** + * 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_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_colorspace color_space; +}; + +#endif /* __PHY_HDMI_H_ */ diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h index f6d607ef0e801..94d489a8a163c 100644 --- a/include/linux/phy/phy.h +++ b/include/linux/phy/phy.h @@ -17,6 +17,7 @@ #include <linux/regulator/consumer.h> #include <linux/phy/phy-dp.h> +#include <linux/phy/phy-hdmi.h> #include <linux/phy/phy-lvds.h> #include <linux/phy/phy-mipi-dphy.h> @@ -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, }; 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; }; /**