Message ID | 20241021064446.263619-6-victor.liu@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C5535D3DEA1 for <linux-arm-kernel@archiver.kernel.org>; Mon, 21 Oct 2024 06:58:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pwJjFbEQ08bHsxmMY3/mtRNTtRaMJCSX40jcwDqeRXc=; b=kCgmkcCcVLa1RpFvIUKLtXra9o bcyYLMW0IycaGhGuxdj0dTK1DtRYWjNSgSUEdFCWdCZKxkxBvffyM2f/viZrQKQQFd8qscPrq60WF wwGcTvyzKUHgr4C3p9WxIT1EaPwa8VjOEjZFTD6UOM48JBBNA4jQy/hdZYq/I59PackbVGt1o182J BnJ3BoP00/bg3caTk+ra69QoaNFetq5sNHDHC2qQm3tRaihURwDAUYdepgxwLmIQenvgAm1y3B1cr T7dPRq9OhXtOJcZk8rM/qy9eazvXfuYw+mL6DykRhLJH2kf0aBjFtUO9qqYepOOPM9ttiHQ2vG07o YdZSlCyg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2mMU-00000006Hqr-1o2W; Mon, 21 Oct 2024 06:57:54 +0000 Received: from mail-vi1eur02on2061e.outbound.protection.outlook.com ([2a01:111:f403:2607::61e] helo=EUR02-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2mBE-00000006FZU-0dWu for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 06:46:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VrbfTtYIhxin9Xy/WK+2kJjh9H53avY8eSERqwqpMxDm4GwwIGha3BRSHZwmBC8LOCtkjNsm57rXYZ3ttDT9gmI+TSnvDx5kFgmFnY4sID+YA3xtEhSjD5Crj7fDzc97YyGp3y33+DXdBdo6HfsMQ1iXCr3fCdoh5qwAWfmU/F1zgbmM1qYTkneJl+pA6jdWDNC7cTFFAzp6WrtymLFwXb5dZThu74VIKndiRVT/snZs21JdJTz2FhVUeEQ4NDaontupfge6p+mjlv/ph0j0smJn9Z+HkLPDzTQkeAhduOnBrKfYR0JcolmQL+FBM+sjigtp2jDwsk7tyYbWPHZ0hQ== 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=pwJjFbEQ08bHsxmMY3/mtRNTtRaMJCSX40jcwDqeRXc=; b=hXVueEMflCyUzzy5S1QuSVqVt5+k53EtmRE3W/+yTkQG2mMyKzHymT0nBEvciGg2eU19BDaA+9cRtkJoPOUplpL2x36LzwAcxxRUpRZOFMbgB/I0k5rwl+3LP+BrneEs/6BBQ+INX/V684r3mL15oyAXalpeapIPin8faR6j7bNj9cYCZNsShdLRtC84Gyi4jKFORZ9KlDHbv7cb9pJbMZpE6EH2jmUGMRQzOtNFtg54G8Y15WvvSJRa34OAgB+DMFYFrz1i/PmbmW5zEPyB2fWLwr1dxSH+cHlqbJbDFU1D8bQYrQhEFYrCHdGDe5HIQCD1A4n6q0cFcH8ECwJQYQ== 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=pwJjFbEQ08bHsxmMY3/mtRNTtRaMJCSX40jcwDqeRXc=; b=lqucqYKY0JndSYkVlMYRGGfJEqLls3gYdkEaiFd4HQkayErF/vOAbiTbFdRLEP6MMfj6R9vwARqLWWfkXfCyFhlkP34f2Yr/VaJLN55KRNJdYDd7m4D0oqzhyyMTYCjQOD0R+8P8KKJqOMZyGqf4hVxVTy5YW53Ig+mLS7He4QEbLEJU9T8M3qDPJzoMg1apWYwj+VRZNFPQIEYCU0u9rB3HQVF64cB9Yz9jFNPrKtL0MBg1zsbzECco1V8Owr+YDwe5J87AEGsacVwWrwxaiJ5KT47Hwe8mCkS0fHovsrVUsGXlm8Xvgaqk/53x4vTHKXPmqws1pP0VUdPAQCkUzw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by AM9PR04MB8440.eurprd04.prod.outlook.com (2603:10a6:20b:3df::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.21; Mon, 21 Oct 2024 06:46:12 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%4]) with mapi id 15.20.8069.027; Mon, 21 Oct 2024 06:46:12 +0000 From: Liu Ying <victor.liu@nxp.com> To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Cc: andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, airlied@gmail.com, simona@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, quic_jesszhan@quicinc.com, mchehab@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, catalin.marinas@arm.com, will@kernel.org, sakari.ailus@linux.intel.com, hverkuil@xs4all.nl, tomi.valkeinen@ideasonboard.com, quic_bjorande@quicinc.com, geert+renesas@glider.be, dmitry.baryshkov@linaro.org, arnd@arndb.de, nfraprado@collabora.com, thierry.reding@gmail.com, prabhakar.mahadev-lad.rj@bp.renesas.com, sam@ravnborg.org, marex@denx.de, biju.das.jz@bp.renesas.com Subject: [PATCH v3 05/15] drm: of: Get MEDIA_BUS_FMT_RGB101010_1X7X5_{JEIDA,SPWG} LVDS data mappings Date: Mon, 21 Oct 2024 14:44:36 +0800 Message-Id: <20241021064446.263619-6-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241021064446.263619-1-victor.liu@nxp.com> References: <20241021064446.263619-1-victor.liu@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR03CA0111.apcprd03.prod.outlook.com (2603:1096:4:91::15) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|AM9PR04MB8440:EE_ X-MS-Office365-Filtering-Correlation-Id: a90540f2-103c-4813-e24e-08dcf19c0d54 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|376014|52116014|1800799024|366016|7416014|38350700014; X-Microsoft-Antispam-Message-Info: 5x2g2EX1muf9hzzNxSg2Cws36FfZqiKAcVbqqshySiIpbzgb9rJVIB9FygfW7dkneGAe5QFXPge0WsV/idQsqa2GgLQE9ud3At8hdDKFAPM/2Jz8I48KRnVheXrPwCtXfFysjrJreIlrgKZksqjUw7m/W35s0i91WEDA6E4fguaeUb000hEtHgDBDUgjer+sXbjUIaotORhLvNle1c1pUDRY2/NMNDe7sCbTI5zv9bOPsWRpaCDt09XIIfGA8gLADio7sMEgmwjiigWM9hn2Gim7E2A9sxmGZeBdRiipU6bzSFznIfVOdm5IFlebMDC+OUwI/42AfNAP/jqUSd+hQmpV2O0jGYmjbp4amndp0luubjuyXtpQ2v4el9FUeGDt/MJGzZ4wirFY4VsN6JsYz3zDCTQOWNcKS3YR98WJ/YajKlBzf/LL9Ncx/ZtoJ5WTAc1nCAyz6EpSnACGNOH46n00fPMwPtkyqB54LnZWRIk4x/jaUpRZn7fUB4N1K/38KWyywl2phm364B8TDsJhxy5oZ9z9Kg+k9EF+1OmUjGYyd9+BOvxLM0TY56oEf9FVAoS0u8Nr2L/91MLvT/4/CsskaRTmAY7q818udYyXnpgH/lixCrUFthKTf8R+E3MSsb6uBg69xNpZFflV8cvycmJ8kx8zJ6wFfyETiq5kCtP8OyBfzNluzbRfD31Z3h76ph7TjDJpBiT+PrZPav6Gx4VIrJ694qgX20eoKlzDh/+dwNDoJFVa0WPNfELe+rRRjcpXElVH4THcSk68MHU1uT3SH8f1GOHyGtUbxOkQZ74TpW0LZxpWLXwVbroXkFe28uFeKlBoVPoOup83WY0ayKrPufm8TJZ/YvbK/vcH460B5TeRudaSPlTfTtvidUnGdE9IR+DEzw4oTFkR78XQp4ZEow60M4CM0HuLvjWI368Aah7bmAl/1xCmnf4lTj5GyBmTkZcCH7Y1GMOcHvgp5+3KqN8wevXUhy+UBMRt/5jdN+wlOdIEu45wyqnDg3hRAifd8w/8fnQzmkHGT6h1a9GyGe/NT1tTFXAAqT8oDDTKFXbzGgqvI8W+gTz8/P6AQUNY6q929S2XSFrTALRpldpHJ9Vc82JZR0QO4qZRDwTizp1CCm9zAfm/zbKxtIIlU4EhO2XdUkN8eDWpp40wjyRhmUXOITc09kvYCYnqGl2ej7w6owR8Nv3bMsNMDreVR/Tf3AHpRyd24YF/3Qn0z9l3omWkymEjG/jwxcgfl3UpgKvcO4zNYEuZVMcBHVqUamFwuXaJUBYrVxU+Ql9b320+1f/Ji3+xC+iHJ+GNQ/yx6VLvmhGRlFW025m0uMiiDdHNqb68khV/nCqg7dyHabi8AvmghqoeoQyl5oF+UsQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(1800799024)(366016)(7416014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: S2HVWJ1PleGtyOgRa8wX3xYkWgW1u8cHiAXaQX0+87eI9ez6E7LA6b5YUeVrGB20lXQMvbSSatKbIq2BiyYM47yKpk3JKbNAdwFfW8DGh136yUw5ktqftDX/3HhcqUVO+CFwOPWFy7JgA5jgGO6jGg/8/h8V7if1lGBtPjfGjhlkrQP+zH7TNWbDJOYW2t8Yvky3ixspaGe8Hy2sRzoR1FWOJzNOcLy6CnoSQeQwewPzQKfjeGctoKOydBNKObKsYbA5AcPEp/JwF1bZJX71zC9iKHNTPaN1Yd2uCj35HcNpBbyNzJrB5yZiNVbuyxM7H5jg30r4fbz36uFu1hEOjI/HsVjbfyp5WLquTx5mbnUyn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6AXVEoV68Uk0leabI1G5e8SuV4IZE5jf4TqkUB1cLd8T3AA0UWRWwHug4vpl41v0KsN1gSu9p6ZLfZhBzXbGVmC7JFwtjH1dk/Y0yUocvDOcQALbv+jxdced5ThqBnV3O1nd5EG7ZmUGVUMJuV6s0s7WfTqgYRieHSd X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a90540f2-103c-4813-e24e-08dcf19c0d54 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 06:46:12.2556 (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: DnbKhgOyFJ2Tqo5Y6+/uZMIXPc8yA7VLxo/lDr0ukp9afj51Us8uYDJlV5giQTWEiL0ewJDlq7DRJw9ajGTbtA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8440 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_234616_219617_3A2847E9 X-CRM114-Status: GOOD ( 10.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Add ITE IT6263 LVDS to HDMI converter support
|
expand
|
On Mon, Oct 21, 2024 at 02:44:36PM +0800, Liu Ying wrote: > Add MEDIA_BUS_FMT_RGB101010_1X7X5_{JEIDA,SPWG} support in > drm_of_lvds_get_data_mapping() function implementation so that function > callers may get the two LVDS data mappings. > > Signed-off-by: Liu Ying <victor.liu@nxp.com> > --- > v3: > * New patch. > > drivers/gpu/drm/drm_of.c | 6 ++++++ > 1 file changed, 6 insertions(+) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c index 177b600895d3..89863a35c731 100644 --- a/drivers/gpu/drm/drm_of.c +++ b/drivers/gpu/drm/drm_of.c @@ -410,7 +410,9 @@ EXPORT_SYMBOL_GPL(drm_of_lvds_get_dual_link_pixel_order); * Return: * * MEDIA_BUS_FMT_RGB666_1X7X3_SPWG - data-mapping is "jeida-18" * * MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA - data-mapping is "jeida-24" + * * MEDIA_BUS_FMT_RGB101010_1X7X5_JEIDA - data-mapping is "jeida-30" * * MEDIA_BUS_FMT_RGB888_1X7X4_SPWG - data-mapping is "vesa-24" + * * MEDIA_BUS_FMT_RGB101010_1X7X5_SPWG - data-mapping is "vesa-30" * * -EINVAL - the "data-mapping" property is unsupported * * -ENODEV - the "data-mapping" property is missing */ @@ -427,8 +429,12 @@ int drm_of_lvds_get_data_mapping(const struct device_node *port) return MEDIA_BUS_FMT_RGB666_1X7X3_SPWG; if (!strcmp(mapping, "jeida-24")) return MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA; + if (!strcmp(mapping, "jeida-30")) + return MEDIA_BUS_FMT_RGB101010_1X7X5_JEIDA; if (!strcmp(mapping, "vesa-24")) return MEDIA_BUS_FMT_RGB888_1X7X4_SPWG; + if (!strcmp(mapping, "vesa-30")) + return MEDIA_BUS_FMT_RGB101010_1X7X5_SPWG; return -EINVAL; }
Add MEDIA_BUS_FMT_RGB101010_1X7X5_{JEIDA,SPWG} support in drm_of_lvds_get_data_mapping() function implementation so that function callers may get the two LVDS data mappings. Signed-off-by: Liu Ying <victor.liu@nxp.com> --- v3: * New patch. drivers/gpu/drm/drm_of.c | 6 ++++++ 1 file changed, 6 insertions(+)