From patchwork Mon Oct 21 06:44:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13843675 Return-Path: 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 228B7D3E18D for ; Mon, 21 Oct 2024 06:52:04 +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=/qviRWjgRu+MTtK9FPhR1DN66q13nYR+CR1/uX4EguI=; b=vcGM/BsNnTLHpFaKI1QNM990VO zBDDKS+uZ6uw6O6ZA2j4Pyq8omDfulo8jaQ9yMn05Eu+Nw4/QQ5B5ZyHd5gcVaBx5ehkEqJFOy26q hXTNcaJcaFKbh8sTwKv0Q9MhN+aSyYfuyCBVa+OAyn2suwyR1IqKnyGbBznpCMYI9quQk7DvSdSvZ knWvpouOi05l6NWZ2DFpgQX2lKzM1IOJBpmxRzq9tiRSosu7rNI25M2eGHQHw8qzVJliTsA/sRusa TQLbcmE+ewUVMwAKkK6bVpthaIjmvVWX6bcZUp/ZcJvZd0frI76/61POfVcS/EXYCKargYVlBK2x3 Iv7yRhXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2mGg-00000006H1S-30iT; Mon, 21 Oct 2024 06:51:54 +0000 Received: from mail-db5eur02on20617.outbound.protection.outlook.com ([2a01:111:f403:2608::617] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2mAY-00000006FIK-1LyU for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 06:45:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=A/ScHWseTNkP4hUzje9QGjDw+ubnsmCHRJd3mPWiDfYaO3WqU6XxFe6HY8hqhwon3S+kuOwatlDTOEJFi71DtWoh0te35WfJBa7SdPWmK++jO0InabPG9xfOyd2Kp0dpETYpr4q4QhIwhd5LigZ6oBsSRW+l6cn35qLoFFVqeiZoWbvoZDdWUhswD/tXNilIyDpRaxu/xvwLxXVORDQkhV1opK54tLHvA37oVDnneVpMbS3MmN56klN6hi4nVUiS9+0RqwOotr5akr9Vy2ptQ9yXdwqkvgDG9y0TMRg7n/2I5CH9amXss6Nl3P+WH3KkiszHfbuyvJIfIZtCgwb0Pw== 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=/qviRWjgRu+MTtK9FPhR1DN66q13nYR+CR1/uX4EguI=; b=OGGXA17ZdSQFZjPExXw+m6UStL6w4k3tB5kE7JlOpydQAJuY8c4Q8kG4Bsbx2C2dH64a896tHaSxuWPGuRDkDadz5SuzJeAGVRTtXktM3DuCRKRMwLHeRLwePlLicuWGHUas24ctxFFMQYSc20KwrzjrwdpbYtx8FL4/hw3ENXqtjgSJbsOWYbHJAlPMwLOIrnhHmOEAJ/tjGYcQ0AGTh3lru2nUJ+etU/2wUI9Nqgp+UF5aSZqz+IZWEKQ2zYJnUlY/d0LlU99Ns76YRr+FPTwcwcTvdabkpIJ+18SQQWuucQZnIJ/jqSaJ1JtL4elDwK0ZA2eN2oTCXo4heKRygQ== 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=/qviRWjgRu+MTtK9FPhR1DN66q13nYR+CR1/uX4EguI=; b=ccYMRUaQA0bN6vowguGhft+kSQ7tg9yojXzDzuqr+lx/zYNjZMrosuiyjM5A9HqH29ikS5Zq2NxdD1WctqnGOrGZU5XpEXWBIeTHBoZKGbAFD+hJ9CPHII+SPHgNA3TZclvKjtBqH9opVT0HMu4gk/9OV72O4ACX0d8yfLCKS8S5eHhvRbm66Mx1zU6iLU38q03nV4OVianIu7aImrC3T6eYvXNehjz3zp/mKmvn/bysQkY090nDK65DqV18J4dFsUxbLv0koNTB9RtN71wyMjG29kSI1Q3DPJFLRRR7iGCUwaRyk0poqhxCeGMlJGPBheV1diz0kCQOTzDz1zdFsw== 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:45:29 +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:45:29 +0000 From: Liu Ying 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 01/15] arm64: dts: imx8mp-skov-revb-mi1010ait-1cp1: Set "media_disp2_pix" clock rate to 70MHz Date: Mon, 21 Oct 2024 14:44:32 +0800 Message-Id: <20241021064446.263619-2-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> 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: f4ed54df-e8fc-4424-e10b-08dcf19bf388 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: 0rITHi/CWD3/6zD9QCyLfOwC1ZqOJBh9tgVgm56dICowBYAj1vd/pisuZ99hbBiLTcWL2SZlG92GyThs3KoQOY7MfDYoRnRCr0EXU1oFFC8Kxq1dk/EvNRYHHSg+cgTXZuFyxstl3K6QmJJw3FcwycBQih//eZRPb2TC3InIy+NoK2kcCp1bZLN3rULbBU6PakOTYPzcr8ynnD1/vEcoTyakRyjuAy8bssMl681CLuMeVn5mThcFcLbhK03JcbW+qXRmh5ChvnugbjxcxHuabFC1bjczbvUwwwu95euIr3Ex77lrtAq90P3AhCmW0Yk9oM6LSyeifaxc0vN4pld7L+vHidR0OX3WNXA2CWCHFQ9yWYY5uSgMZ4fE2Rt5SyleC0j1qo9rYtjQ3TwYoMI7n+P4z+tNKP9yVqIccN355Qxu+lMa6zEd1tU9SKdQmtX2dL+qDxs921nzw3cVbufu/6JBRFU31s8OagAZPi7tyWESwqXjOYPgvYayEEo11vPN16Uw+YBMeWyM1RRRGxaYJeTa0qx9RZXX1YPTkdcESRsbmP3F+kKEQG3rRFfnC/lzPRi30TkIopxRMmX035Q6sMlVuFz0BWu/Mql7LXTWBYTv388GhC2CocLWsAmJc7jxXUdOvcDKIRSavwbSeU2Dddm17YUoKA+l0jSO8P+3ohrpmRFdxUvQsYVl6nLoQ7uXYXBYDtc5WNYbp6NsmGXdVClx0ftoXNfOoECkWCoYQ5DAdGlWjEnBYfKBHbJ53wzFmrNAhi4iRHle1vnqY3yT6RrWA2JacBo4kU3Y2HTbVs1P0CSQ093bfK9BpeLrbD41kmVRMLSj2SSlfRhk+c2qhTjZqCcF4dtQlDxYfFmFtL+UV8nECOEmJ5518dEf9uE21yNA7FdY+WQ8EKhQ0jAaIbiji2mPtBwqxh+FyGlykIy7PdaMMQu99gkO5rfJtW1YUKWwBw3y/9BMusFaY4MjIPYAhg08+pQr06GGvtWO6ceyhnc7vc39KKlug9RAE097j+p4YpI+4kaaufXRa1EMtBAvwJQaCMEB2jJHBhV1Xbz7L0Q07eC1E4dLkI2DqefGd3qbZ84KMh0T3+FTwnpmtg2t/xwfPNBqbYUFXUc8FEJxVndmL9JheFnSAFi4w5KTyY7WwoJtFTPvGzZQlC8bqu1G9a4VrBnD333riq6c4URqnBQJr8GgC1xh5LcEOAmYwza9KBfSEWra6aPfjmgLXB7nvdlpwUGBVPZ9KA3NUk8xtWh+H8BOtiydwz1y2azmzYAYnu3Yhs4fxS9ShlCZ4k8GzlN5s+mYZY/uTXRf8Hg93aMQKe2Sub6ZxKccQ8/p0UZlxqmHkFNwuDmpEUI/huHU9+avxS2F9Pvga7FGeEE= 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: RjN1OIxTxxg5s/7X8Hh9MayzQiHoh+94EnAjix6WTBMFkhq/GCxeigY1KKP60PU7KD596NQPQoP3/Yh04wVPM/Gsr1zHip0ICjEjnjcdcS4Z+5MeD98uJnENbhCJBtFVOq2gSOc3QWAxwlLq3kwXMcS8l35QmwkrrldAndIy5VVTu59fnRfhgXPQJiQpZHek+Pnw2tmnGyt7AGsPEkEzkzhhO0buFUDtPCBN1mIx6xrkL9qvkeRM6yfsMX1kpEl5QyZ4qUiVT4fwgP946X9I8fZf4Q7Qw7uO1QSDQJg9qzYHz11RTcDie6csUcyJOMVInc6ENdS6+yu2lKQL0redy71zOCaFyGxxTYfMqYUhebftlXhP+jBhwSZPWW4k7sxvzYGVQJ5FGwaYkFBvC+0R3PloAKr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d2FgbfwpMgTaLZL9nvjQZsDMUYO9yHXTzExvuQznHixO6/R+cj1jlMPpt/oGC0RZfLtZVPf90dQ6yZlf8kIbFsgETuwzz8o8Dqz0Odm8 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f4ed54df-e8fc-4424-e10b-08dcf19bf388 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:45:29.0158 (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: MUsgs8JoW7WLF4dCnOrFPvBZkftxWYsg1QzRQs/XLv+AFofafdQsHOWDoQ14bzGDY+OPJzLG6PNmqyyjTVdB5g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8440 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_234534_398611_2A7CFBB8 X-CRM114-Status: GOOD ( 13.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The LVDS panel "multi-inno,mi1010ait-1cp" used on this platform has a typical pixel clock rate of 70MHz. Set "media_disp2_pix" clock rate to that rate, instead of the original 68.9MHz. The LVDS serial clock is controlled by "media_ldb" clock. It should run at 490MHz(7-fold the pixel clock rate due to single LVDS link). Set "video_pll1" clock rate and "media_ldb" to 490MHz to achieve that. This should be able to suppress this LDB driver warning: [ 17.206644] fsl-ldb 32ec0000.blk-ctrl:bridge@5c: Configured LDB clock (70000000 Hz) does not match requested LVDS clock: 490000000 Hz This also makes the display mode used by the panel pass mode validation against pixel clock rate and "media_ldb" clock rate in a certain display driver. Signed-off-by: Liu Ying --- v3: * New patch. .../dts/freescale/imx8mp-skov-revb-mi1010ait-1cp1.dts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-mi1010ait-1cp1.dts b/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-mi1010ait-1cp1.dts index 30962922b361..2c75da5f064f 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-mi1010ait-1cp1.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-mi1010ait-1cp1.dts @@ -52,7 +52,7 @@ &lcdif2 { &lvds_bridge { /* IMX8MP_CLK_MEDIA_LDB = IMX8MP_CLK_MEDIA_DISP2_PIX * 7 */ - assigned-clock-rates = <482300000>; + assigned-clock-rates = <490000000>; status = "okay"; ports { @@ -70,10 +70,10 @@ &media_blk_ctrl { */ assigned-clock-rates = <500000000>, <200000000>, <0>, /* IMX8MP_CLK_MEDIA_DISP2_PIX = pixelclk of lvds panel */ - <68900000>, + <70000000>, <500000000>, - /* IMX8MP_VIDEO_PLL1 = IMX8MP_CLK_MEDIA_LDB * 2 */ - <964600000>; + /* IMX8MP_VIDEO_PLL1 = IMX8MP_CLK_MEDIA_LDB */ + <490000000>; }; &pwm4 { From patchwork Mon Oct 21 06:44:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13843676 Return-Path: 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 374ABD3E18D for ; Mon, 21 Oct 2024 06:53:36 +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=1CmPpsfCkh6wybwvHtXbbWkKQwnl/OWMG4oEyl7Rc3g=; b=1H9Dey2kd1FzRyYHql6P1yvX3m uT3MMDUtMoVmQmzAVheMdp28If5PV0JyaxEd8QF/0IJcJKIkLmTw9RAN2tfCIoJpU+KRLU4IFxUeC h0iWs+Q66bC6+HArSLYLr8J2smGYSPwymqcZcJqEDJmE03N8C0k7GnqylfQWCJIEf0+PC+UumMYnl 3sTI1fX5EjEq8vCaNAgQCvCEbnX7iRFI8bheV+0vm3rgWNolpds6d0HDM0j2a6nWl86WBFoNYA6TD YcKmtYgw35hrHQ3ZiJ9guJXbiQyrjEElNiUVHVlcUitWng7BEYZerShuHkczsRiVM4MwPsV6wOkRn fII+2kxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2mI8-00000006HIO-0mzV; Mon, 21 Oct 2024 06:53:24 +0000 Received: from mail-db5eur02on20629.outbound.protection.outlook.com ([2a01:111:f403:2608::629] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2mAh-00000006FMa-1Bg2 for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 06:45:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZOZtqR2Rl0sFQvjVoujSBRWJfbpU2j/w1rZBp6tId1gh1yw7K8dzhTwvtq2dIyRIgpBWxhhg3s6+RshJEzfckY/+U31Jfzm/UmyzJA4HO5QRdbGw5aZEJhyYMOWNUOnfFtldwRV2DkNTV+kKugPZU5ItxhO7Mxl/lARK3MBAmqdaVJItesGlqymes4t0OXeb/k++QnOOyxg7I8wzmiKQwZskS79Vj1K8SgDAsh1surdby/hpEBVUi4zOpTBFJwBoFkVILy81PWsCxECIFOslvnzZRyc7mnfaSsr2rY3KY2zbj1nNX0+adQs9A0+LMh1j4f1b/m0MXMgB/KDoFawK+g== 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=1CmPpsfCkh6wybwvHtXbbWkKQwnl/OWMG4oEyl7Rc3g=; b=MSlRjW9edVo68mPXq9/VKWBhquSuk4pZyZwdizL9tg4wlxAF+XGgpe271fMcGXrEs1BkDmIcIMBDkuIgI7TBvtMscnkCPl58/CyKx6MpajkitQoR6CXkbUOBrTq7GYty1IUUDKcTr16tiupecLGX2Z5pfDmWtW8Dj8aqgw52CCTrUcVKWuD3BKw1bmHq78cO4UgcuznRBT+soV/k+619IN9mXLCcu/ztFw/jfV95QXZDs/Ol65WBFxQ/RE509TeefPzAusJZd6djHeSjIRCo1WkHbs2FUqR7G/fXKo+zdDHPvMibgMpU1f7KlVJmABaHVlgsO1+jmJ75C9RmqS3sbg== 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=1CmPpsfCkh6wybwvHtXbbWkKQwnl/OWMG4oEyl7Rc3g=; b=Dd1ucfXg6UrH+t2zQbXqt/KcO/mgZQ5tzZ0Sd1uu6CDoX370ycGxcsidJ5pFzy/eMoABnL4Bu0helpvGn9ufZMp7VOs4Iq4kWXKtTOxRzJlPk46v/lT0UGDUOvqb3Y8qyd+R/pvX48QaJIRx9X4jWFiApmEEQx+KfQ18sn8cHhlqV40969qzr7lO2KWfcqSUZm27XmHQhLqxMSGxFt6VMBxb5LdkvnAr/LwkUgYgpdiytdj1tvpCpOaaK+yfq/GsRK9rWsK50HshFl7y47scBVJ9AMv/TUOuHrDOXc+OcoqXA86noWJ5RLqTI0o9hwCWzF+RVGq0FeVypEMqOGP7RA== 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:45:39 +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:45:39 +0000 From: Liu Ying 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 02/15] drm/bridge: fsl-ldb: Get the next non-panel bridge Date: Mon, 21 Oct 2024 14:44:33 +0800 Message-Id: <20241021064446.263619-3-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> 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: 0ab3b379-8b6e-4d8e-b69a-08dcf19bf9e4 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: tlQj8DfRsfs2wIOzk8hkCNSrybJgZmWlHdmaScEzTW5ajvhTbUFJtnlPx1w6IEnQG4XSDRVU0E5CGmOnqZExJ2jw+YkUoyFtC4ydSdnsVf7yUXJmqRpmKEEe8BBvQPPtyPoJVYd/8AQO0SotDWaLMUaGX3yxOrSsDIXk32+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8ow4vPr/be8Kd3TftzUy8ku7XFHZICH894A/x2cj9Pv5bYpYUKMEtD5/Eh+o2yZL8bjYBxNVOP4boZ4Bd9O7N35FHKIeP1+pGLQnHFHYkUn2GLVFoDcmhXCR3IOp/46nDI= 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: fZGKM5r0xw+4/0ACkobUWp0U+/MmtwDG3pJIVKuqcjBnRAcT7ZCnDb106Ydup5UKSwXGnP1GbrGNhguxIJYnvVLpZs1J9u+zsNFy9IVEIims7TDlN/D0b54ukcqaNf1v14qvzJGzXgIWg/B+RLFzuYJ/NFjQQBtgH9Rm/4RVVoixlIE+cLqUd6SEvWUYYIUKvlUkswuNQmAGJNDFxXyD+iQ22rh7uLxt9surnUIyqRoBEnMlaOCcs5DdRGTjwXrhkbvE2sMTIS99kQlUfPHvWnrrBG/oR7NBE9rpjYYHH1Jv7wf8ctkScT487ZNc78kog3r0KXPiLxl8b01N55Q8tGUOHPNN+NFUmcGcSj3eKeuUHBaIi8VbgjUk0EkN5INHbuKb7lcjcWc97Y6UMBN6IgFFr13VoJo2w9A/aTZBs4EXPsdZypUx4xN8Oz3SkTQ9cefyOJEwIJSmPXrV7SIqhWvaYbt1HyeCJpVv45gj9/0N1PisXGQKmwG2cCxLBflI5lNW0quTdDP6+OhHz7WZooJRpiMMsk0zHYyjtozoZds9PwEgxMWn/v91+eA4w9c4LdeL5WLpYtyg+CVF/m7Z2F1HMLx6o43Bx1uHW3EGDI1lYlb2xYgMaZailocdQpTIuXkPTSVIr1BX26PIWUEFJm6FoQjKdZ3qJrE+/EY8OcVSBCMwzLt1xRya/M4zX1xOR6f0HW/6xPUXGG/ucQb1NSYFrpKO2mX72L4z4cVb92tZ/I5IpNf33+wV6GS6iajTBCLc56qBdS8aSOqfWHzICBd78/2BJITD0G9pBIwGERU4CRLcmXPChhug1Fh7bFb1F4z1KFvsUMKcWVxnjZu3ANgoj7A2uazGqYh1AA4sVQZRZYPQufDJdB08t+WQVIntKNHQHoKfRwFsB2lBYNl0VPBH9haNmJSzzGukwSshb/qttfb8P8XyPa5zoS7a09QbXIwulPtv4YNPb/sVReIwveyhTSlwytnURi17J6rJ+B+nZQpapvQkuzicolHoXOXBpmj3vpJcpG+ht7hhasu7csHKg8AlwRBneL7Jg5iOifbYD+vXL/T1gOG8jTDu/tLla/n5XsPHQT/0ZqcCLU4jGAw/B7dGrgihgFJCJAwofyRl7jmn3HrQWrO2sNdVTigtzHD9S8PCZSmlLDlPi0L5qJRsO+RVnTeC7A3bBYCN6bOCIcAsYHAu8DQqhrue/hkInRwtfxGXt+ZCwkYw5FVl2nGO2V4oCPj376wwHZmqYfeD49Ad3MqbvCoBa4IqCtsoC3ZVCJdFkiFytuh/YUAkxKQmCy21RqjUnioE7YDEPjx/9c+iQ91/Z9Z/eExTtVUAyJ72Pk/ZCY1YLAUHiCN8K2G6EOlFtDcVzG3vxN+GI0Xy9HrdKt2c0HBHDhbMP6LXwB88JDQ7mZfgm8ntH1vbQJWJMapY1KLSVVNbsG4tqhOPkuWeiCXW6wWY5A+cbFH6wPiMoazzI47Pd3LtHfWWq3UszBLdPiUZmH48XHnPcYQY0tstjII0Z7cu0DCG4Lkc29IUJzRD3RBNfDIPmimpXVJPSBRZO8V7msCMuJqbmR30KGpaPlz7B/1NtmWi/3F7 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0ab3b379-8b6e-4d8e-b69a-08dcf19bf9e4 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:45:39.6420 (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: hhJSwcdH1sJ0WeDbFtWcipXaRNIM3XMc8lX7tAxl/5p7LupEg8QuEQ1gq1a+ysF9C0t3pBRfzqwyupKwkSEJug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8440 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_234543_359622_1A764CA0 X-CRM114-Status: GOOD ( 16.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The next bridge in bridge chain could be a panel bridge or a non-panel bridge. Use devm_drm_of_get_bridge() to replace the combination function calls of of_drm_find_panel() and devm_drm_panel_bridge_add() to get either a panel bridge or a non-panel bridge, instead of getting a panel bridge only. Signed-off-by: Liu Ying Reviewed-by: Dmitry Baryshkov --- v3: * Collect Dmitry' R-b tag. v2: * No change. drivers/gpu/drm/bridge/fsl-ldb.c | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/bridge/fsl-ldb.c b/drivers/gpu/drm/bridge/fsl-ldb.c index 0e4bac7dd04f..b559f3e0bef6 100644 --- a/drivers/gpu/drm/bridge/fsl-ldb.c +++ b/drivers/gpu/drm/bridge/fsl-ldb.c @@ -15,7 +15,6 @@ #include #include #include -#include #define LDB_CTRL_CH0_ENABLE BIT(0) #define LDB_CTRL_CH0_DI_SELECT BIT(1) @@ -86,7 +85,7 @@ static const struct fsl_ldb_devdata fsl_ldb_devdata[] = { struct fsl_ldb { struct device *dev; struct drm_bridge bridge; - struct drm_bridge *panel_bridge; + struct drm_bridge *next_bridge; struct clk *clk; struct regmap *regmap; const struct fsl_ldb_devdata *devdata; @@ -117,7 +116,7 @@ static int fsl_ldb_attach(struct drm_bridge *bridge, { struct fsl_ldb *fsl_ldb = to_fsl_ldb(bridge); - return drm_bridge_attach(bridge->encoder, fsl_ldb->panel_bridge, + return drm_bridge_attach(bridge->encoder, fsl_ldb->next_bridge, bridge, flags); } @@ -292,9 +291,7 @@ static const struct drm_bridge_funcs funcs = { static int fsl_ldb_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct device_node *panel_node; struct device_node *remote1, *remote2; - struct drm_panel *panel; struct fsl_ldb *fsl_ldb; int dual_link; @@ -318,33 +315,27 @@ static int fsl_ldb_probe(struct platform_device *pdev) if (IS_ERR(fsl_ldb->regmap)) return PTR_ERR(fsl_ldb->regmap); - /* Locate the remote ports and the panel node */ + /* Locate the remote ports. */ remote1 = of_graph_get_remote_node(dev->of_node, 1, 0); remote2 = of_graph_get_remote_node(dev->of_node, 2, 0); fsl_ldb->ch0_enabled = (remote1 != NULL); fsl_ldb->ch1_enabled = (remote2 != NULL); - panel_node = of_node_get(remote1 ? remote1 : remote2); of_node_put(remote1); of_node_put(remote2); - if (!fsl_ldb->ch0_enabled && !fsl_ldb->ch1_enabled) { - of_node_put(panel_node); - return dev_err_probe(dev, -ENXIO, "No panel node found"); - } + if (!fsl_ldb->ch0_enabled && !fsl_ldb->ch1_enabled) + return dev_err_probe(dev, -ENXIO, "No next bridge node found"); dev_dbg(dev, "Using %s\n", fsl_ldb_is_dual(fsl_ldb) ? "dual-link mode" : fsl_ldb->ch0_enabled ? "channel 0" : "channel 1"); - panel = of_drm_find_panel(panel_node); - of_node_put(panel_node); - if (IS_ERR(panel)) - return PTR_ERR(panel); - - fsl_ldb->panel_bridge = devm_drm_panel_bridge_add(dev, panel); - if (IS_ERR(fsl_ldb->panel_bridge)) - return PTR_ERR(fsl_ldb->panel_bridge); - + fsl_ldb->next_bridge = devm_drm_of_get_bridge(dev, dev->of_node, + fsl_ldb->ch0_enabled ? 1 : 2, + 0); + if (IS_ERR(fsl_ldb->next_bridge)) + return dev_err_probe(dev, PTR_ERR(fsl_ldb->next_bridge), + "failed to get next bridge\n"); if (fsl_ldb_is_dual(fsl_ldb)) { struct device_node *port1, *port2; From patchwork Mon Oct 21 06:44:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13843677 Return-Path: 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 3AB98D3DEA1 for ; Mon, 21 Oct 2024 06:55:04 +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=Nt9M2lSJpBGXu4CmRzgoq8sdaw1tL7EcgJLhMx0kBXY=; b=lTBJ/GUkbxemo55kT9VXmQP3Wl 0wWxk8TDBXwwqTtmOPVtblOWHTgha2yRszD/+NC2UfpNUMLIuUNEW1OQD9Rs85tI9VHrIT34aQx/n nFCfIPJPUqYQmcu8Lyloo4jtSsHE7SOEFkLxqVVjxSugd1EwTT3m/Gkh1O5oaB+R6t4LzmB2X0ZEN 9d7imCi3a4DW30S6vvTWThi0Jp8BIGtR9vvuMCptkbioz2kA2Wa36I6EO1NeG5MJ51RkZnFNHYV4R HPpqW2O9z3NSIjr86c2g1U++6kBHWt6YxRs9bVgFZRiMUE0YKex9+L1wRqlNUSoErpZCLZSXxsD4t UC3p8/2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2mJZ-00000006HP7-3jdi; Mon, 21 Oct 2024 06:54:53 +0000 Received: from mail-am0eur02on20629.outbound.protection.outlook.com ([2a01:111:f403:2606::629] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2mAv-00000006FRG-0NvR for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 06:45:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DQSFgp2qvOlXULNZ5zn3BCTiofwysJ2G1gzCD9juRw+jAv8w/OC2CX+sR5Ngo8w2Jf90933G2as7osA4DiZZsRCrmmP/oPPgb/vCq1EJI+Xog9DVsPDX9uQxWhmSyd3nfiBzfYllNCfM3gbnBuc0U2jaCwxHHuaaVeyREx+a0u6oKBITQk18Ir5HuVLja5coe260X9JKC1zdi8wFLnzyujXv1o5KNrcKonH6KX+f9B0oFTMCTWPO9STiWLMvz6f4iUktAC3pkYwqfRvCtyzltnojUU2qoITJBDu1yQ7JtwcejsJJ6E+Vet/Msxu8YkaRN4/KrCYA++VL2nfUjuG+VQ== 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=Nt9M2lSJpBGXu4CmRzgoq8sdaw1tL7EcgJLhMx0kBXY=; b=IxUadANDkiyUoorkJVaDCnXtEN4laH+a8a1VxZBUGeaIaMwGQ2MQJDqxQ3gS0jPgsY3K4O3TdHaj7w5V4rXqYiqnuBBDNLFO31VdxrjQhorgyvbFEFkYM3fqiRW29+NOq6nIEcbUvwO774VArAvBH0OD9DJFq2I/KCG93XYyS0uwDsi3mluUedlK6EPaB/AAOblxN1ifL9JVpZ8HFPVsC/TTAdKgdW3okN4bSipLAQtjoADw9QgfM34hV0ajAa4jh//Vitely0Cp1aK95Q6URKvTuNCs22D8Utr9H2WwjipQgPNI8thgBT7IYbI1I4dm1DPXrSDuQtHeVAFr/QN+iw== 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=Nt9M2lSJpBGXu4CmRzgoq8sdaw1tL7EcgJLhMx0kBXY=; b=MBcY1HW1sKLA6c03rA8Rmh93LGzgnD8KA8Q5K88os4Mdna98KwaOphi6ndqYIg3i6+KEhI9NbrtWqW8EuzY8OnUEnyUliwder8FycRPZsBft0d1owHdLP/v0jNNgPWxtwrxY4WyCyU75tntWWy+ma8NxDF7OyjtrJPV6nLjwSaNYWuDklg9xprhrFBcepeYjKnfKVAjmdVl9pPabN0usMFvm5/eEd50ZDvjLrhw5dREdSWJiUjv680fpbYcDcgMHfV8RaKVbcsCAqYYR8BivP4HphkrGSiLBe/GDSt5eAx4Hf72XAZq4U4hozMFtPlqMEUjkHnqf8m/uS0khILORdQ== 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:45:50 +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:45:50 +0000 From: Liu Ying 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 03/15] drm/bridge: fsl-ldb: Use clk_round_rate() to validate "ldb" clock rate Date: Mon, 21 Oct 2024 14:44:34 +0800 Message-Id: <20241021064446.263619-4-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> 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: 6231fb2e-eba8-441a-686b-08dcf19c0042 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: /7e2Z+6qN7v0RO24a90mg7wzDHbbV96SD7PxVnhrIp1qR5mZr66EcYnFOLip0BjqhQBlbtLaJqnLux4UDYXzGn8PMeOdhZOyYYFcRozh/C/e8sQbL12fk8nMzW9ZgtAnkZxaXvMlefzZeJ3wTdoJzcWsr6ddgq30xEMVPEVVJAP59SESPic7DzAoEphkDtuGH0TZEgdeBrMQylu5Uz6mDvp2+foTPrl2XHN8lN1rnMT5ma/I7S+CRVlNZEIWyR41V+L9bK6Ok4ncc7UgWpQsg4Pq+LWF/u6cRJSBFn9JyQW1r722I8nUY75y2eanrbbze0azf98FU/EmYTrB2Lmcpyn2V/Q5JxUTWX89wkNLkoRf9wlzUZ7lBwf516lJVdTIFlXFR/5Y1asSNWXuuyJKebF/QohSfiW759aGkAO3gZDTUxQuz8A+d2FY9ZU2kttbshHFGRHajXc6vZXZ9Vacw25eSDDhWt9JEQG3oXklyDWbFTkDTHODZ4Taht1qv3l8B31zSZYMSeg2KyKycV3uGllzxUDeZmu+K8ggAmx3eofE9DNy8iaRWY83+3bjQXUnYZxYWd0UpBQ1Mb/JNCEEPh4CyQG8IqHGIDiUz+LWQjs18k+AKVO7+THiELgl+tG/F+gzV+OLQYOrHpYKntshkX17PBqUUPDSHzxIzSR81lLJh/6Bw0TlINB6FZXZF0jxRA5U0rPBU+nfnLSvjqbWhHBA31Wc59t7AaeISDewMmA/vkvK6EpcCzbYgeljVfrlR6HKDJxcpud9vI5fhhW8aSHhbAkJEs5hsHUrDoBtH1m0Hgh9el26fa3WzjU94KvFTwiP2VRQLIxS8OQmUeR+TKHbFpiEMZVaXp5gYk9NnBbBfpvkwsm0IVjeVMfCxPkUIFON1TIXktlxOHtfRZOBlZGuq+CQr5w+cxOoUCdKtnFLDmX4L71pEeOXkxyqsi+MSK/5AlR7zk9955LFqrA9KhPlRk1m/b8iUBH2ctQ01uKgiKt8sOLnJ1YEClUnA9YDvcQxAbzNKOXxFU0WS+l47n6o2Cz+BACQO9plUsYp/Ge2b6RupQoCqFXbP/2Eht7mZemnjcogv8htHp506jxsxEfS1iFgezXweCNP9KqTrO4Yn7BZP81bYkwQlxwxCjBUg+WfiUCyUyMplQt++hK3G17Zuq6/XN/ge7tRFwgNIPzmXZWjZZFjQGerUtr+n5H4Rp4FQivz8haDm2t3LeKJJeBRImmX6Y2m0yxuWzeUU+/1T7KY1bqC1x8ZiNFmF+JkbaisNO3DBFRTSfeTlfaQZIe6V9w1nah9nptlRUM+kaakEnsRNS7pqRxQBRmRApYQv2AeIj5GnOKkh2mfqOo3Klbpf5aDvgX8YjJgLJiPg/iU6Jya/9w/BO34IjCXJJTa 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: o/oeRq33tupiiYU8ek79w0xFufYdHvcV0MTi6f1n2Nsbp/SyOUGsk8u6Oels59AKIAIcw+QSdtEuxHrRKLOvV8updZo7cqc85i+eQgqevZgr/BYlOBUL3RtyIstpfJggWMoavcgCgG7vZQ5BEdsgeZ0Xay7QVb/jzrZU+Je31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TVk4xbZB1s2fBa0/QLIaaEXkFXJEnZsp5gAwtLwp9o07Ei13XswIrBYRHqGSk2SOfnA8dtVTIVSNRuI7EJRZlQgTmuvQbgpmh4a3P07Yz2xNh7KUOcVMmiPRDO3Ujiya8SoSNP3TpirS0z65tpW98TlGM+gUDS/F49DOpjHzGEQegDmwnPi60vzj7JFDVBX7UxKLGCto21lJ40IhoztLZ5k5cwp5Tcepj3szKWpLSlHilutHTBJjxYW6RyhU1l0K5vdIZyr4/ewXS3KWlpLQc0UaaJ8EAijpRkHg9WTb6ZjUmqlo7QpPfyVbJcubprNcVAOagoyR8r5d3xb4PnG5GR3HfiGofh3PMQ3 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6231fb2e-eba8-441a-686b-08dcf19c0042 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:45:50.3981 (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: 0OGJSNBLcMXMU7O8xmzNQL9U0sQbmL/fpb0hTtuz94Jpbd/VPvohH4Ly6zMaa85cTiYGpemnnhrQpCpjjMHLvQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8440 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_234557_170789_094CE163 X-CRM114-Status: GOOD ( 18.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Multiple display modes could be read from a display device's EDID. Use clk_round_rate() to validate the "ldb" clock rate for each mode in drm_bridge_funcs::mode_valid() to filter unsupported modes out. Also, since this driver doesn't directly reference pixel clock, use clk_round_rate() to validate the pixel clock rate against the "ldb" clock if the "ldb" clock and the pixel clock are sibling in clock tree. This is not done in display controller driver because drm_crtc_helper_funcs::mode_valid() may not decide to do the validation or not if multiple encoders are connected to the CRTC, e.g., i.MX93 LCDIF may connect with MIPI DSI controller, LDB and parallel display output simultaneously. Signed-off-by: Liu Ying --- Note that this patch depends on an in-flight patch: https://patchwork.kernel.org/project/linux-arm-kernel/patch/20241017031146.157996-1-marex@denx.de/ v3: * No change. v2: * Add more comments in fsl-ldb.c and commit message about pixel clock rate validation. (Maxime) drivers/gpu/drm/bridge/fsl-ldb.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/drivers/gpu/drm/bridge/fsl-ldb.c b/drivers/gpu/drm/bridge/fsl-ldb.c index b559f3e0bef6..77afc169f0d3 100644 --- a/drivers/gpu/drm/bridge/fsl-ldb.c +++ b/drivers/gpu/drm/bridge/fsl-ldb.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -64,6 +65,7 @@ struct fsl_ldb_devdata { u32 lvds_ctrl; bool lvds_en_bit; bool single_ctrl_reg; + bool ldb_clk_pixel_clk_sibling; }; static const struct fsl_ldb_devdata fsl_ldb_devdata[] = { @@ -74,11 +76,13 @@ static const struct fsl_ldb_devdata fsl_ldb_devdata[] = { [IMX8MP_LDB] = { .ldb_ctrl = 0x5c, .lvds_ctrl = 0x128, + .ldb_clk_pixel_clk_sibling = true, }, [IMX93_LDB] = { .ldb_ctrl = 0x20, .lvds_ctrl = 0x24, .lvds_en_bit = true, + .ldb_clk_pixel_clk_sibling = true, }, }; @@ -269,11 +273,31 @@ fsl_ldb_mode_valid(struct drm_bridge *bridge, const struct drm_display_info *info, const struct drm_display_mode *mode) { + unsigned long link_freq, pclk_rate, rounded_pclk_rate; struct fsl_ldb *fsl_ldb = to_fsl_ldb(bridge); if (mode->clock > (fsl_ldb_is_dual(fsl_ldb) ? 160000 : 80000)) return MODE_CLOCK_HIGH; + /* Validate "ldb" clock rate. */ + link_freq = fsl_ldb_link_frequency(fsl_ldb, mode->clock); + if (link_freq != clk_round_rate(fsl_ldb->clk, link_freq)) + return MODE_NOCLOCK; + + /* + * Since this driver doesn't directly reference pixel clock and + * display controller driver cannot validate pixel clock due to + * multiple types of encoders connected, use "ldb" clock to + * validate pixel clock rate, if the two clocks are sibling. + */ + if (fsl_ldb->devdata->ldb_clk_pixel_clk_sibling) { + pclk_rate = mode->clock * HZ_PER_KHZ; + + rounded_pclk_rate = clk_round_rate(fsl_ldb->clk, pclk_rate); + if (rounded_pclk_rate != pclk_rate) + return MODE_NOCLOCK; + } + return MODE_OK; } From patchwork Mon Oct 21 06:44:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13843678 Return-Path: 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 DB2E8D3DEA1 for ; Mon, 21 Oct 2024 06:56:38 +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=ggvmD3n24BdIPMUEWaPP5wE/R1edbKTSVNFeFODbZ64=; b=wU0+llY+QhB/Ym3ugeAwldnmQQ sxs9qbuDI88cfIctZk0XLOU4ux3LTpQHKPtFUlU4ig4g86WFIVkr2IQU+xZ84xASxWTJALK6u844B L3vvlWFkA6nvivnenxCFst3KCtbysXWhxDiGqslTRT5YcIDspSphWJ9qVPnOdB/NlTiWvVtoiUM9T YVDqyOk2CQhTmRC61lUEj9WKrLKG1Q4w7lZTuDsReWjwrmhaqOv2IKS/dF21w0V+5rKyAW921zVxo xbot4pdpzCmAPuSBDLa+WROohKlKjGyvET1Pol8FjF1wfRAE7ARGh4eJxPBtIzt8CqjuPFWj/rN0D t7shgn4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2mL2-00000006Hke-1D70; Mon, 21 Oct 2024 06:56:24 +0000 Received: from mail-db5eur02on20631.outbound.protection.outlook.com ([2a01:111:f403:2608::631] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2mB2-00000006FVV-41ST for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 06:46:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LAyHFF4R4/i52U8e1Kv1vjcZ+ukp17C5lMneFbLvj2xZG5utj5HhNWdWa8My1dbDl1VriIiVrZxd3Q2QDbbWz2cXgmNkqao7jz6hJMYcIpCohVwTjUxYgR1wiJRD7C6d1V7tNZequB8miJV0CzZzL7CXikG76DaNpNvbqcNc119ddtxnw9ZcWczFhtdrME+pYYNpJYUzKYzpGkEs4o9eczucYaeGyptnnFrYHn7R0lPJfRYG/5Ewkbr1Qa2FpsGvj6HCviyI00+h8OX80W4ULfUwngs2c9cxpBUySJFIvG1U4lst/3RNxLIw8PE3Qw6qnQXCWNWcLfUxjUnSNAuxGw== 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=ggvmD3n24BdIPMUEWaPP5wE/R1edbKTSVNFeFODbZ64=; b=mpmh/RyJIVO6MWysX/11SrKNqSBaGsmEA4QI9/E7lV4wF+UsUPNnWPd52XrR0hBrKFOjWxQjCFQAD36WtlPHT4gJSsMx+YfbTz2fPL+gBid5FYvRW73nOBImLsn0SK+ewRCmVSQGk9kIwJzQ3251xgC1VgAfq0MxIAOLVqLvfvl+0g5m4whZXn5WVAaqOv1PCq2bWcau5IxavfZM6ZQuxwv8e0gb/klCt3j6Z6AY1cEhUA4E70/BM9yJrB5r7WvRG30WLvoOWCpk7Ls1SbKb26vbD+S2pIMFi1AvOQeFc5/GIBVyuYR04ErnY3XE/ISoYoxoeD5CDtfuV0Ko82jWSA== 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=ggvmD3n24BdIPMUEWaPP5wE/R1edbKTSVNFeFODbZ64=; b=dfUFZ/U/iQ7LwYHELkZWsZA/+mdwrt7zsG6z1E/S0e6seENdP5v8Gsbq8fpnZKlaRynBYfq9DFlOSrpgFsocCQWzhrSD5AyCr+wNxN6zoviDzGdQhQ6+84Cc9leRnGkrp5y2jpWDYEq5qOv4ZSb7BtTptPq8eMHJ8zo4+8727hrDI0GF3P1snWkRKTfyiPOTILPo2gJocR5Xq1JIybVfRfqmuKHAjlVSzWJ3DKFu8tvVo0yQaGruunYcNSqNcCzJYZgxjeMGePnjGSNklpUa8VNN0wcVqLOAWOISG1Ft/vtlgosufdQtFKlOS4/+1Kcn/rbFCqzsY9XETnmiBbz+Yw== 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:01 +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:01 +0000 From: Liu Ying 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 04/15] media: uapi: Add MEDIA_BUS_FMT_RGB101010_1X7X5_{SPWG,JEIDA} Date: Mon, 21 Oct 2024 14:44:35 +0800 Message-Id: <20241021064446.263619-5-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> 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: 5c6318d2-d5c0-4a29-1e12-08dcf19c06e5 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: +Vh4zbH6nbQASmdOWZQZv2anhqTfHgnTxWfTR/dP2QBoLgrN+/JVmMRrbY6vIpQB0O8y5JHACA6/t9OKiVNjj4NmaD4lUjxsBvNDigq20AqVT6YcIntUQjYDa9HBbTYwKj4dpffKRUIIGHO85zcCHik6xJo0D/qTjLUSZFLqMMOd98G9lwJm409WCO9nT67dTJOMEdPSUfJQCieDm+gXo6No3Gn0raOWOfdFNEtAIG8aW7gKaniN/ipfcR0MvDuYXeFgsTLMy3HiLcw74XGOXQVFzEykHLMy0vQhg8bV0rXXgSYCI4Us5nPdFRPQJYC5M+D+i6SyXMtn5wlU7YGO6ZUCOmtyHVP1UwzxOQ9NIqQ4wuAEwJJQ3rEeJJCauBxlWDkSA33m4ldHnfHeJjeFENrY4SCzotpYHVE5JNR9PEwW88MRWM/P7CZeS7ixcjf0FEz0qZ6r/jYY1w+PKinZlRh9q/E7bR2oCctviDKDSK1cE3lmRd8hYO4BjNJitcKFYELoYc6+mqEYegQOJSgLmNcrVXjDeA69PAWjbJq+nZsYsfFjVw+r7LzUhA0ySb3Al/9N/apmoup2x68oD3dKvZ3y9hcsD0visxjJ1nxnXsBpgGc4rj40lwlz9W9NNpV4qGrimmF5WhEt5qA7Gs6INLQhv3pX+awq2SuumyUvNQsyPW+U1rqNazzF2spBOeIGRv1u20Dd6/ioNWToQNVcxfWdUPIePzvEx/mrHlHe2HwO3/jcXCmW03idznrwE+j4TVC07Wm7Ejw0hnshFdRomK0oz+NGUUqzMA29GTvSXALnqIaBnbic1F2ukGQfbiM/hJU6IC78CknrzgEoJhWQB2Cd71NIJGP/WePEM05/BQbpspHX/FQrMzRBP9CJj/sf5WSB8jXoL1WMQgzyBItG09T1aDQQyYdVqn9cVScK0IgsBeSo0NszLJtE8NVpoZ1m27MWcKTBoQqBs4BU9IiWkeG7USfjGQjR3trJi3G4ltjNN5eBx4vOKnaYvwBOMp6AhKtdSgZy2MbrbMt6fL/h8Vz/5dFuedzLqNxVbpuQrUKnbbn1GgR6XU1DXsm+ONzd//p4GF5LCeyh72kGRP+8XTHx0eKh+tVfKSHeEUGpWy2NoZlXeZysTXYuJlLIX92dj8U2rEgXeWwWI+rN8glGM7q95S+dSo0l1QNt7+DjGegFTYeVM5pmKa/AMUb5T0lxw+NdTbwKl1AuWAukT5AoR/NRuaWUGM6/cF0U1vXv3gd47iZq2EDUctecLKxxK0fht2PoqtsR8kuMVHXYyijfEsH1qF/wgKqN0R8ww5kj3qLzwPN9CYPPuNDZBskATiyNGfQ3wVkMZnYRU5Cno9/rBLOT4tyOGfdIos5MMjPMJlM= 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-M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RqTJm351J+Mbf7y2QMFelw2Q+HBi2J7/NZSfdViCDf2wUKtrFJmi89O2KbYII00kNUT74vrj45PSGlxaFaZJzbfjCDgj7AN7+4nbi99QT1Fw7UUr48anbkWe9guJe6d6tjoesPPMbAfpQ7xtVCDtQlXwzr/yEvaRjT2jfPSTRdqlE9XRpjh4aFU2tiYJ3NQlGM/S7m8I2i1gHpr4eU47uwSsu2GHjQyTyZihDk6zLoEiGG9p+zHa8BZ598YcapmTkf6oORWJ2Ia41ShdZuTXE7NbNjxEzrr4cCWBP50E/TonCknAh5uL9x7Ws2HQy03F3g7GJPpNwzvZsOjDbutp9jeFn4oIZKoiOYvuGqiGPD6U79y8NJmXwWd/p5sKZMgzqlYQ80XFwISIK2yfsGVb00THtHlm0sBlkUd9c69yde7uOIuZYjppfKul9ZMVfbCy5wIHJqHznq/tMxSBoGuXm1qEFA/UpOWA+E4VkJL8JMsO4/o+Uv/CxYzGxrNxWmBtf8F3t5uRfK5aPSMpRv5SWUH9D7AdUXBL1tFrHsEbIMj4hJAwjNVehlNefJpLEx9zOnWEnXbTaiJgT X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c6318d2-d5c0-4a29-1e12-08dcf19c06e5 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:01.4426 (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: +Q7LdAa7xJO5T6Nas9aNEakuzxEcUhOQ5uN90WOaZDg7GgMDCCTdxygZI27qJ9iaz6z2989JiodrHnU9hLp/+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8440 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_234605_177464_108072EA X-CRM114-Status: GOOD ( 11.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add two media bus formats that identify 30-bit RGB pixels transmitted by a LVDS link with five differential data pairs, serialized into 7 time slots, using standard SPWG/VESA or JEIDA data mapping. Signed-off-by: Liu Ying --- v3: * New patch. .../media/v4l/subdev-formats.rst | 156 +++++++++++++++++- include/uapi/linux/media-bus-format.h | 4 +- 2 files changed, 157 insertions(+), 3 deletions(-) diff --git a/Documentation/userspace-api/media/v4l/subdev-formats.rst b/Documentation/userspace-api/media/v4l/subdev-formats.rst index d2a6cd2e1eb2..2a94371448dc 100644 --- a/Documentation/userspace-api/media/v4l/subdev-formats.rst +++ b/Documentation/userspace-api/media/v4l/subdev-formats.rst @@ -2225,7 +2225,7 @@ The following table list existing packed 48bit wide RGB formats. \endgroup On LVDS buses, usually each sample is transferred serialized in seven -time slots per pixel clock, on three (18-bit) or four (24-bit) +time slots per pixel clock, on three (18-bit) or four (24-bit) or five (30-bit) differential data pairs at the same time. The remaining bits are used for control signals as defined by SPWG/PSWG/VESA or JEIDA standards. The 24-bit RGB format serialized in seven time slots on four lanes using @@ -2246,11 +2246,12 @@ JEIDA defined bit mapping will be named - Code - - - - :cspan:`3` Data organization + - :cspan:`4` Data organization * - - - Timeslot - Lane + - 4 - 3 - 2 - 1 @@ -2262,6 +2263,7 @@ JEIDA defined bit mapping will be named - 0 - - + - - d - b\ :sub:`1` - g\ :sub:`0` @@ -2270,6 +2272,7 @@ JEIDA defined bit mapping will be named - 1 - - + - - d - b\ :sub:`0` - r\ :sub:`5` @@ -2278,6 +2281,7 @@ JEIDA defined bit mapping will be named - 2 - - + - - d - g\ :sub:`5` - r\ :sub:`4` @@ -2286,6 +2290,7 @@ JEIDA defined bit mapping will be named - 3 - - + - - b\ :sub:`5` - g\ :sub:`4` - r\ :sub:`3` @@ -2294,6 +2299,7 @@ JEIDA defined bit mapping will be named - 4 - - + - - b\ :sub:`4` - g\ :sub:`3` - r\ :sub:`2` @@ -2302,6 +2308,7 @@ JEIDA defined bit mapping will be named - 5 - - + - - b\ :sub:`3` - g\ :sub:`2` - r\ :sub:`1` @@ -2310,6 +2317,7 @@ JEIDA defined bit mapping will be named - 6 - - + - - b\ :sub:`2` - g\ :sub:`1` - r\ :sub:`0` @@ -2319,6 +2327,7 @@ JEIDA defined bit mapping will be named - 0x1011 - 0 - + - - d - d - b\ :sub:`1` @@ -2327,6 +2336,7 @@ JEIDA defined bit mapping will be named - - 1 - + - - b\ :sub:`7` - d - b\ :sub:`0` @@ -2335,6 +2345,7 @@ JEIDA defined bit mapping will be named - - 2 - + - - b\ :sub:`6` - d - g\ :sub:`5` @@ -2343,6 +2354,7 @@ JEIDA defined bit mapping will be named - - 3 - + - - g\ :sub:`7` - b\ :sub:`5` - g\ :sub:`4` @@ -2351,6 +2363,7 @@ JEIDA defined bit mapping will be named - - 4 - + - - g\ :sub:`6` - b\ :sub:`4` - g\ :sub:`3` @@ -2359,6 +2372,7 @@ JEIDA defined bit mapping will be named - - 5 - + - - r\ :sub:`7` - b\ :sub:`3` - g\ :sub:`2` @@ -2367,6 +2381,7 @@ JEIDA defined bit mapping will be named - - 6 - + - - r\ :sub:`6` - b\ :sub:`2` - g\ :sub:`1` @@ -2377,6 +2392,7 @@ JEIDA defined bit mapping will be named - 0x1012 - 0 - + - - d - d - b\ :sub:`3` @@ -2385,6 +2401,7 @@ JEIDA defined bit mapping will be named - - 1 - + - - b\ :sub:`1` - d - b\ :sub:`2` @@ -2393,6 +2410,7 @@ JEIDA defined bit mapping will be named - - 2 - + - - b\ :sub:`0` - d - g\ :sub:`7` @@ -2401,6 +2419,7 @@ JEIDA defined bit mapping will be named - - 3 - + - - g\ :sub:`1` - b\ :sub:`7` - g\ :sub:`6` @@ -2409,6 +2428,7 @@ JEIDA defined bit mapping will be named - - 4 - + - - g\ :sub:`0` - b\ :sub:`6` - g\ :sub:`5` @@ -2417,6 +2437,7 @@ JEIDA defined bit mapping will be named - - 5 - + - - r\ :sub:`1` - b\ :sub:`5` - g\ :sub:`4` @@ -2425,10 +2446,141 @@ JEIDA defined bit mapping will be named - - 6 - + - + - r\ :sub:`0` + - b\ :sub:`4` + - g\ :sub:`3` + - r\ :sub:`2` + * .. _MEDIA-BUS-FMT-RGB101010-1X7X5-SPWG: + + - MEDIA_BUS_FMT_RGB101010_1X7X5_SPWG + - 0x1026 + - 0 + - + - d + - d + - d + - b\ :sub:`1` + - g\ :sub:`0` + * - + - + - 1 + - + - b\ :sub:`9` + - b\ :sub:`7` + - d + - b\ :sub:`0` + - r\ :sub:`5` + * - + - + - 2 + - + - b\ :sub:`8` + - b\ :sub:`6` + - d + - g\ :sub:`5` + - r\ :sub:`4` + * - + - + - 3 + - + - g\ :sub:`9` + - g\ :sub:`7` + - b\ :sub:`5` + - g\ :sub:`4` + - r\ :sub:`3` + * - + - + - 4 + - + - g\ :sub:`8` + - g\ :sub:`6` + - b\ :sub:`4` + - g\ :sub:`3` + - r\ :sub:`2` + * - + - + - 5 + - + - r\ :sub:`9` + - r\ :sub:`7` + - b\ :sub:`3` + - g\ :sub:`2` + - r\ :sub:`1` + * - + - + - 6 + - + - r\ :sub:`8` + - r\ :sub:`6` + - b\ :sub:`2` + - g\ :sub:`1` - r\ :sub:`0` + * .. _MEDIA-BUS-FMT-RGB101010-1X7X5-JEIDA: + + - MEDIA_BUS_FMT_RGB101010_1X7X5_JEIDA + - 0x1027 + - 0 + - + - d + - d + - d + - b\ :sub:`5` + - g\ :sub:`4` + * - + - + - 1 + - + - b\ :sub:`1` + - b\ :sub:`3` + - d - b\ :sub:`4` + - r\ :sub:`9` + * - + - + - 2 + - + - b\ :sub:`0` + - b\ :sub:`2` + - d + - g\ :sub:`9` + - r\ :sub:`8` + * - + - + - 3 + - + - g\ :sub:`1` - g\ :sub:`3` + - b\ :sub:`9` + - g\ :sub:`8` + - r\ :sub:`7` + * - + - + - 4 + - + - g\ :sub:`0` + - g\ :sub:`2` + - b\ :sub:`8` + - g\ :sub:`7` + - r\ :sub:`6` + * - + - + - 5 + - + - r\ :sub:`1` + - r\ :sub:`3` + - b\ :sub:`7` + - g\ :sub:`6` + - r\ :sub:`5` + * - + - + - 6 + - + - r\ :sub:`0` - r\ :sub:`2` + - b\ :sub:`6` + - g\ :sub:`5` + - r\ :sub:`4` .. raw:: latex diff --git a/include/uapi/linux/media-bus-format.h b/include/uapi/linux/media-bus-format.h index d4c1d991014b..ff62056feed5 100644 --- a/include/uapi/linux/media-bus-format.h +++ b/include/uapi/linux/media-bus-format.h @@ -34,7 +34,7 @@ #define MEDIA_BUS_FMT_FIXED 0x0001 -/* RGB - next is 0x1026 */ +/* RGB - next is 0x1028 */ #define MEDIA_BUS_FMT_RGB444_1X12 0x1016 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE 0x1001 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE 0x1002 @@ -68,6 +68,8 @@ #define MEDIA_BUS_FMT_ARGB8888_1X32 0x100d #define MEDIA_BUS_FMT_RGB888_1X32_PADHI 0x100f #define MEDIA_BUS_FMT_RGB101010_1X30 0x1018 +#define MEDIA_BUS_FMT_RGB101010_1X7X5_SPWG 0x1026 +#define MEDIA_BUS_FMT_RGB101010_1X7X5_JEIDA 0x1027 #define MEDIA_BUS_FMT_RGB666_1X36_CPADLO 0x1020 #define MEDIA_BUS_FMT_RGB888_1X36_CPADLO 0x1021 #define MEDIA_BUS_FMT_RGB121212_1X36 0x1019 From patchwork Mon Oct 21 06:44:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13843680 Return-Path: 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 ; 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 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> 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|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DTKFXbzGgqvI8W+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/HsVjbfyp5WLquTx5mbnUynWjRKfhvZ9o89gYwzJw6i4Npy6PWX8o47miH+OrTqmSUw380nlsMBwHqXOU9OVZzePy1BjcklMgh0FC/aj3/Hnrh6Vk1JXaBviKtJ3l/JSOYVMfnFOYdb4muQ2GyXZ0NpjKKF1eQVQl0EHznU0UTYml+To9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TqgYRieHSd 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Dmitry Baryshkov --- v3: * New patch. drivers/gpu/drm/drm_of.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; } From patchwork Mon Oct 21 06:44:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13843684 Return-Path: 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 CFD9ED3DEA1 for ; Mon, 21 Oct 2024 07:05:26 +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=VHKR5g0p6TAIkhKLLA0H/3FEJuQUjo4rnI6YjMndRes=; b=ciXU2Uv6AfFA0cPwVme88vFbNs WLR6dh4LfdkNqAJ9VNFzO1dA5DFoDW3XVmeFNHmIsAU+v6YhGRTjQMwzp90K42EtZwyPNmL2l+iVe 8fskeJqHKcw0rB8Cs0HFDkn+qCD3gNQqQP7gKb+rF480rR8NPysJqe14RkE7jt/ECTlO/vEek5aB0 LL76bmi/a3jVownrWqQmrnmfYtiMvo7AfqqbzwikMdi0keisuMltd7leMHumK5OBSr+ihNUC3H408 abwWCMLikSRpZQ8O3Uruahf4+U/tBKILv6VH7p8EYio9Poq8vaSlwtHZUgsKnskFPJNmHncy+r+yY 5vA3Gv+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2mTY-00000006IxO-0GWg; Mon, 21 Oct 2024 07:05:12 +0000 Received: from mail-northeuropeazlp170120003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2mBP-00000006FdG-11gr for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 06:46:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=YW+9if5ld0SEC7gVSKl1J21Rwvfn7SNPPZfDjGg0YiCIA8nTHGVSgJGZituvWv3dx8BQyQKT95NmaqM2jz1UsSV4VC8AlnfT10x1bxrO/551lulFpfRwo86xAxB/m/2X/db8lKR44LveP2OMjscJw/pUOn2soAXhjZhxaDNC5O3yWzoyfuLIpDhy8Cs5MLy8CCxPkzc2GF22MmFNEd6Cxup+xSEZ088lGuUoDshtpAX10Qy4y48LA2P+OlPTlS/nQux1/+VHSyY/FQtmduQZLR5PJyq/UFHrfUNZEnQmw/gmHlAfMJUUAHOW7/xzInUd8xFb1yjTwJr+JljcKVvBhA== 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=VHKR5g0p6TAIkhKLLA0H/3FEJuQUjo4rnI6YjMndRes=; b=Q4yYO3PZ42ru7xcKhJ7BvTGn4YbQYcx+8QHw1wd+oLC8Yg2V0tnswSL7B+lr0reObTAGL0UCirU1U3aLm4M7x+hEdquReRB9QJXfVwvkj8lrz8Z79W+F96p0lmpcCi26OQGxk4oTqpeVXpdQpZ5nuIXLoMrP46mMwTN7EEemyO8/tKoBFP6zxuOOWOAKXSjV9U48GWdyZJB8cwSCqvat1NZtYDi45KqIMHLGl0bjvQ+/7gHyIxyQG3QtD2m2ICq9HJM05x2USXZZKqtpsdWNiu+IeEaRc9uFw1znGHPtSA/pNsGkTQL/PDFL9oq8fRsYhXMa0PyIyPJ6F9t2c8hP3g== 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=VHKR5g0p6TAIkhKLLA0H/3FEJuQUjo4rnI6YjMndRes=; b=hXnAFvw4n/sgSUOUMweN8DafWLDWCtST2g13nyc9K0hqchbh39N1o190KNuWQ++TCffyyrc4w5Fy/9M90sClISPgwkgdfzxflqgWYgh3KdOVx9/99VpZ+lCeDDSZO88URagzz/iLrl1ZuCl6VuKltRuk6pHO1V/oYnLWkzA4DqYcSjdpxrOIfH0xOtEpjMZOG9AID1hb5NrZ3+leh87viRyfQT1cPWV6n+dU3aQ8MeUucJp7HBtb/Gv8KHbZ9oIuy9fqD3U8cS42IjNfshIHB1FnYgyQHofA+cU8n1ZgbPK5jkKJUW0Z6h/5QHQ8xndqvoEUn3ketZg4CTWchO7dLQ== 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 VE1PR04MB7374.eurprd04.prod.outlook.com (2603:10a6:800:1ac::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Mon, 21 Oct 2024 06:46:23 +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:23 +0000 From: Liu Ying 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 06/15] drm: of: Add drm_of_lvds_get_dual_link_pixel_order_sink() Date: Mon, 21 Oct 2024 14:44:37 +0800 Message-Id: <20241021064446.263619-7-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> 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_|VE1PR04MB7374:EE_ X-MS-Office365-Filtering-Correlation-Id: 2eba65f2-abaa-4e55-3a52-08dcf19c13b6 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|52116014|366016|7416014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: 1WD3GpEFgQ5fE8wR3pbRnlae23gWzhVWXlRYSpd8AQXz3YLf68Ru68FXEusmngncbNNn0uwwhjRopS2AJGq+M6GAzmBpmE3n9i9xJrM53T6iNg2gnzIibEhOzTetCZm8kIKXnja285v8jtmxXXxMD/+pGQ7NOIxPaCYZ2qQzSmLNh1vMsVwYu6HZrd0sXUVAGHRqK99J4b8XdBYrR2vzAMRdDxo/dXXbeEUndD5Sd6M2sz52lQUkWryzha81p4tiHLU2w7b8Nsq22aonsDI1t9ohnYORzpho+qCJiWHZoAx7ug1EceWyD6S8djM5njFLJUxzJh9B17TTpldahaByxa3OXFWa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: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)(52116014)(366016)(7416014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qyLhsoimX1JV1qFeHZsU1Y5H3O8FtiZYjxYC0Z4y7Ks4tC9QhRQsVXkkQK2A355KLmf4pfHtasfjqrMM+bIKTP/EmyjR5LBZdM6Mbt6XuIIAkAalEcNmbCf18unWF4ISBWaH8VIhuWYuGPvHZ/GzyUzR7K2U2ynIcC8kSl4KSDQWEZH/JBavUdKZlgHYrcDlrk/1uaWWlR5kDyWPcwknWCjXekAB3x+RriB4+m6kGx50geLY/SdILC8aw6IP9v0daAVTiH2w8hWvuIx4eJ54qHUyWxJ1uqqFNc0ySKK7FiRvthul8131+CGsXdsZ2MfdiOmXnYlEWGsXFEowhFB9q2RHY9FFNKg6cf+Eu0B09wojetsbWUqWEwPeNfXaelbyscDibJcvwc6GE+Y/Knuu5vjIgWq+9Q1OtHAiR/SYRmMcH3pEZQkrcvymWCxCtw0Q9mzDlvMYSeN9xNQuZINVBOiH7AtUccllHsHBIDDL2FRyHYJNP4NfZhgat5mZeuqw1KgnhzpVEaoI3vDGCTuQchCc+YLSK9v8RCNHd7QWLDPR38pp0TgntmZ/120sfB7679ssPKhUsLlOGwclpkoImI1Z/UkGOKkZloecrEo9RU56HnIHjwXJOq7c9tVyR8nzqg6JwNW368vqOJMASNxu4L79pHZVQvJq3nter/OdiC4Th6li4UXL/iw0ZZ7NaXCyPGBYsoRVzqTlobEdV5v5GvyrvoiXm+x4C6rbQPswHLx9PjjyAzVcDSi2m+2cen0yIfakjUw9ebvvd1JIGEHi3IhHraD0N6mqWglNmSlxaX6riElfTIE7RdGSnypBfswznF57APKA9LuEaUGatnOEIuFxtgDwhv5gWIRGXlHLN6HSg43TS4hY2rwmijTIAQSkJJnpVPior9ylBcm/WsZyY4qgPD+IFxdRR/N9uLr0MCzqgnyXiny+tSciPQwcGgPJ5cPXsW4EIV3D9Ra/mfxfjb4zjJLWvg/V+DA8gtxz2aUDfOn6TyltAs7z8D9kRKsIMpJkSxivjzuVHlgaCT98I4ChMLNuZx+N7YMmjhvk7lAFeycSRgMqt7iI/X6xuFZZmP6sPdkf7bd5C2hR4EFq00AnTUvDQzORluNLX8KgvLMpP1y0rVnxTU/36b3wQf925BuCVTYgu/gCNrPxWzy7z/U7YZWFFzkBuXqbqW3NxgMzLTtnes2lSP4tCJbVNeDVQBsYWX6BopzuOhEDr3VQF4BWt+Sa0eEEuqlZBZlaNm3hKR7AscOqJ1ruX/6yv4L2CxS2HQspM8JelcVgohRlA8bqQ1FmPVxTfhuhcsvr03K1MiKH/7LpLCxqCg3URpTzyvMk0cPtyVdD7Am4QxbZVeE4wgA5flxVyoXk5xqK9e7VoeuxyjcVzPMl1WyRftwWZkA9cLCe+FUdFs4svAC/ZdfhCfU/hAkZqAwoekzOtGhnNrtDOfiAa9TF0d89NCuY8IQt73AwFyOZuD4PUyQzG7HiBtAw+XsJb8JzZZGHmLZarhzwyCKAY54RposX3PjWtTTEECoBP7U+s5lv922fIxLuAcuoe9nGaSB2dn3UBA1B7wctU5dG3zsJSCGhYUT1 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2eba65f2-abaa-4e55-3a52-08dcf19c13b6 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:22.9847 (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: XqRBn44RmuvvTSZlHH7W0ZB3+fEhY0TE9SqtMg2qqePK5qDFcRrVhh+bkg2DetsucQmfUg+PYUFW0i1MyKwFnQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7374 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_234627_461482_59A61D87 X-CRM114-Status: GOOD ( 16.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org drm_of_lvds_get_dual_link_pixel_order() gets LVDS dual-link source pixel order. Similar to it, add it's counterpart function drm_of_lvds_get_dual_link_pixel_order_sink() to get LVDS dual-link sink pixel order. Suggested-by: Dmitry Baryshkov Signed-off-by: Liu Ying Reviewed-by: Dmitry Baryshkov --- v3: * New patch. (Dmitry) drivers/gpu/drm/drm_of.c | 76 ++++++++++++++++++++++++++++++++++------ include/drm/drm_of.h | 9 +++++ 2 files changed, 74 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/drm_of.c b/drivers/gpu/drm/drm_of.c index 89863a35c731..5c2abc9eca9c 100644 --- a/drivers/gpu/drm/drm_of.c +++ b/drivers/gpu/drm/drm_of.c @@ -341,8 +341,23 @@ static int drm_of_lvds_get_remote_pixels_type( return pixels_type; } +static int __drm_of_lvds_get_dual_link_pixel_order(int p1_pt, int p2_pt) +{ + /* + * A valid dual-lVDS bus is found when one port is marked with + * "dual-lvds-even-pixels", and the other port is marked with + * "dual-lvds-odd-pixels", bail out if the markers are not right. + */ + if (p1_pt + p2_pt != DRM_OF_LVDS_EVEN + DRM_OF_LVDS_ODD) + return -EINVAL; + + return p1_pt == DRM_OF_LVDS_EVEN ? + DRM_LVDS_DUAL_LINK_EVEN_ODD_PIXELS : + DRM_LVDS_DUAL_LINK_ODD_EVEN_PIXELS; +} + /** - * drm_of_lvds_get_dual_link_pixel_order - Get LVDS dual-link pixel order + * drm_of_lvds_get_dual_link_pixel_order - Get LVDS dual-link source pixel order * @port1: First DT port node of the Dual-link LVDS source * @port2: Second DT port node of the Dual-link LVDS source * @@ -387,19 +402,58 @@ int drm_of_lvds_get_dual_link_pixel_order(const struct device_node *port1, if (remote_p2_pt < 0) return remote_p2_pt; - /* - * A valid dual-lVDS bus is found when one remote port is marked with - * "dual-lvds-even-pixels", and the other remote port is marked with - * "dual-lvds-odd-pixels", bail out if the markers are not right. - */ - if (remote_p1_pt + remote_p2_pt != DRM_OF_LVDS_EVEN + DRM_OF_LVDS_ODD) + return __drm_of_lvds_get_dual_link_pixel_order(remote_p1_pt, remote_p2_pt); +} +EXPORT_SYMBOL_GPL(drm_of_lvds_get_dual_link_pixel_order); + +/** + * drm_of_lvds_get_dual_link_pixel_order_sink - Get LVDS dual-link sink pixel order + * @port1: First DT port node of the Dual-link LVDS sink + * @port2: Second DT port node of the Dual-link LVDS sink + * + * An LVDS dual-link connection is made of two links, with even pixels + * transitting on one link, and odd pixels on the other link. This function + * returns, for two ports of an LVDS dual-link sink, which port shall transmit + * the even and odd pixels, based on the requirements of the sink. + * + * The pixel order is determined from the dual-lvds-even-pixels and + * dual-lvds-odd-pixels properties in the sink's DT port nodes. If those + * properties are not present, or if their usage is not valid, this function + * returns -EINVAL. + * + * If either port is not connected, this function returns -EPIPE. + * + * @port1 and @port2 are typically DT sibling nodes, but may have different + * parents when, for instance, two separate LVDS decoders receive the even and + * odd pixels. + * + * Return: + * * DRM_LVDS_DUAL_LINK_EVEN_ODD_PIXELS - @port1 receives even pixels and @port2 + * receives odd pixels + * * DRM_LVDS_DUAL_LINK_ODD_EVEN_PIXELS - @port1 receives odd pixels and @port2 + * receives even pixels + * * -EINVAL - @port1 or @port2 are NULL + * * -EPIPE - when @port1 or @port2 are not connected + */ +int drm_of_lvds_get_dual_link_pixel_order_sink(struct device_node *port1, + struct device_node *port2) +{ + int sink_p1_pt, sink_p2_pt; + + if (!port1 || !port2) return -EINVAL; - return remote_p1_pt == DRM_OF_LVDS_EVEN ? - DRM_LVDS_DUAL_LINK_EVEN_ODD_PIXELS : - DRM_LVDS_DUAL_LINK_ODD_EVEN_PIXELS; + sink_p1_pt = drm_of_lvds_get_port_pixels_type(port1); + if (!sink_p1_pt) + return -EPIPE; + + sink_p2_pt = drm_of_lvds_get_port_pixels_type(port2); + if (!sink_p2_pt) + return -EPIPE; + + return __drm_of_lvds_get_dual_link_pixel_order(sink_p1_pt, sink_p2_pt); } -EXPORT_SYMBOL_GPL(drm_of_lvds_get_dual_link_pixel_order); +EXPORT_SYMBOL_GPL(drm_of_lvds_get_dual_link_pixel_order_sink); /** * drm_of_lvds_get_data_mapping - Get LVDS data mapping diff --git a/include/drm/drm_of.h b/include/drm/drm_of.h index 02d1cdd7f798..7f0256dae3f1 100644 --- a/include/drm/drm_of.h +++ b/include/drm/drm_of.h @@ -52,6 +52,8 @@ int drm_of_find_panel_or_bridge(const struct device_node *np, struct drm_bridge **bridge); int drm_of_lvds_get_dual_link_pixel_order(const struct device_node *port1, const struct device_node *port2); +int drm_of_lvds_get_dual_link_pixel_order_sink(struct device_node *port1, + struct device_node *port2); int drm_of_lvds_get_data_mapping(const struct device_node *port); int drm_of_get_data_lanes_count(const struct device_node *endpoint, const unsigned int min, const unsigned int max); @@ -109,6 +111,13 @@ drm_of_lvds_get_dual_link_pixel_order(const struct device_node *port1, return -EINVAL; } +static inline int +drm_of_lvds_get_dual_link_pixel_order_sink(struct device_node *port1, + struct device_node *port2) +{ + return -EINVAL; +} + static inline int drm_of_lvds_get_data_mapping(const struct device_node *port) { From patchwork Mon Oct 21 06:44:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13843685 Return-Path: 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 6FD9FD3C937 for ; Mon, 21 Oct 2024 07:06:56 +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=3DuV7KFTyFyicCDR/hyADtZQbwKk5waEIVAObtX4OHk=; b=1tBkq1pfWXXcCdnKgJDkKk4R7P ab/Wd9fBztkqrJe5gb1FsNUVLShNXPUDix7wUj/4RefNpg+4euVXjmHdUQOEExZ+GxUAbxTTwvg/w /Zt3WFtMTL3qLiiDK24FhizQlgDLV/fS/O41hpg18xRFAFiWAlxGiiIHQMqqANQ8Nd1kPyUuTYpUa hLD3TOh77dG5ni6X9k2gl6XAYfT27JkSJpgBqBi3yu6wMYI5ujeDOdqrG+yDxmpSwdKNmap/B7pB0 tKW0V22zXnFi3KoFB51d2xAcjgn4kBNKy2dPjvhaqdyTobo2NaaOyPdTImE18NXpDPxG3bxJWPTzw LeXzvWjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2mV0-00000006JHt-1Ltm; Mon, 21 Oct 2024 07:06:42 +0000 Received: from mail-northeuropeazlp170120003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2mBY-00000006Fh1-3n95 for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 06:46:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=e+AkTtI550diKcF0n5K4MGIF2youbHXOrN9K8lzaB2YDHTPCsHDVaNTxJur+LlSj/dp8o5MtNauTpZEBZd3z8//8oLkMise0WgQlSX6c658lGfRKVqs3nb7oW7cHAfZlkgJZG7yNVaw8OqgT7FJIKa19czJXICd1meAWdLNdLmgOpqq3nX3NEDsZwiUQsxdqVdkbpDZ2RPOftxHS92ZhTWCt/NkYb2ncDquWuQvfdZ70j1405h+kpoRl6INvVf8nxDKbO/gPUfZskz7ZFLY4HLvzuZKDGcOchadXWIpIn8xMDi8LG9syBIUsxcnmYG7ENkv71x95BwCjSHbkIcH2qA== 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=3DuV7KFTyFyicCDR/hyADtZQbwKk5waEIVAObtX4OHk=; b=ZY7bVKWSx04ZiQz/dZVnESipftiWb5kHe7qoUv7kQpBpFCuTgmxtRafQGuhJw9Q0VI2RM1JaFi/sl3S7y9a9QhhmYh63Cbc731QEl62W6mqtSmYKZ6ttg2g2i9dMmpXuZFtKwmVk1PVuX2XOHVoC0E4ifm+qq+3pV24zTSroY6Jo6c14lQHGZ07UsS1arj6LOPmMj/Ku0iUxHz6mj53nIEEBee8qZLUXki+iVQ/soX4zxPifgER4h/wYoay6TquBjjI1tt41SGkvHSrzoa7okVLzJyuDMIGbOu6/VnCOvS88WHkqOVnON0gjXu8CG757IxeM7d8Zat53kRLi5uxUwg== 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=3DuV7KFTyFyicCDR/hyADtZQbwKk5waEIVAObtX4OHk=; b=CD8rRob5XOHRkQNkfHF+yieOUGlHcqOlEnN4mb10Q+NMxUgeQkvpro5FGvEU0oz3Rimo06t0JMF8v3S4qDtjsToNzvZPIr5rnelZTbL0UWCAJ5IlfHJr5GeffeLG8RxmbVk4qZj8w1RPOImV/yIxcTOjzYlvTqBLZhQ0Pv08yWx8H5IX93FcToic1Tx5eob6u5fGGMsL1ffJCetfkERpiTF7AE+7JuDM6IUapkOwKolefj7ROchv3Pdrp0QhX01C7iTF6FvXY1JQMBzIV7I1r6nB9gHpnSviE/Z2HheTantzV0a2a9WsWQsdSt8ZjzqGuTmTVCg86krzsRrKP0y8iw== 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 VE1PR04MB7374.eurprd04.prod.outlook.com (2603:10a6:800:1ac::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Mon, 21 Oct 2024 06:46:33 +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:33 +0000 From: Liu Ying 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 07/15] dt-bindings: display: lvds-data-mapping: Add 30-bit RGB pixel data mappings Date: Mon, 21 Oct 2024 14:44:38 +0800 Message-Id: <20241021064446.263619-8-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> 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_|VE1PR04MB7374:EE_ X-MS-Office365-Filtering-Correlation-Id: 7f7b0406-8efe-4dd3-8a2d-08dcf19c1a14 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|52116014|366016|7416014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: QN5CL0jLcGhGXvVbiWJ4g/XPgYlG4zuibpY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ICL0SOyGEqr2Q4mroNi7Ta5FjkLsO1IV5SjFt0ISp4V3PIRrhFISqDyT5dv42Y9mGeXjqJPCkAvWDaIV9sedP4Ixdk15EIUXFlbs8G4z00LBq68yz+RxXQLENz6G/6EBUE4t1y52S0Gt4BCG98Gr1XJ41L1Q7ApPZFb777zZ9t4nBvBt7YuPnNR2vbcp8XIJtIY4uswNvB+bcGa8zhBaG3AbDZF5vC7xvgKA337UA02DkO3mmRJboPq9bIqgE1ktZ6mKSOjLGOWfSuOkvrc= 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)(52116014)(366016)(7416014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cY7gOJw9IisfTNBu3d3eIZ52m5WZEHgTvqL22PCuD+D5wTsyZNka3zeY+MrgTVSgQuKPqEvRapP772/IOG7kNNcg8vDLxfvHz75kgKznLhddThckMtzPapOyxJMXEPDepWg79ugLZqT2deDXIois3uoL04tYZFcWZNWnsxo3dMf7xbi+T9VEeZYb9H3oiIDUEDTQ2nbu/0+DHASPduPFYkWjqjKGoKS3OCJtnrPV4PRVXdFY9tRssm+5FX6JO/5eNItZBg+rlF8pXvpCaJWHVHnBLuLcd4rsrIBu5/OLP2PG4SUDPgXvPTtVkwHU32fUsE4JkcsDh5jbkShmQ3M+tHc0Lu16trqVuHzFJ12GA107SjypgARVeNxZhmiLmQvkSXRSKd5Y8m6m1RMNaGe/Xq3jrEa8VKye+y8+qb7/CP9y3OPrSoAvGYXxOuH4ZXI0pnUh5v3qUc6mZXl5VPEMdkRKVg0nz3muVBttgfO8QFxfsraOAqQmwn7T/2YaOoLBgj/D0OhbQ1ymOclk21H6n34Mt2BqgHbQK7SJU0wTROC3kdS7Xz6QTtC9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3-8a2d-08dcf19c1a14 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:33.7009 (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: vlVh6pET/L7+ysGFi7vPkLxmPA0tGPgGz0QIvLVbXR4NOOhJtzmzzmIQhsOqThTDUz8WesQxjNGSbO3GattTAQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7374 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_234636_969557_10F5294B X-CRM114-Status: GOOD ( 10.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add "jeida-30" and "vesa-30" data mappings that are compatible with JEIDA and VESA respectively. Signed-off-by: Liu Ying Acked-by: Krzysztof Kozlowski --- v3: * New patch. .../bindings/display/lvds-data-mapping.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/display/lvds-data-mapping.yaml b/Documentation/devicetree/bindings/display/lvds-data-mapping.yaml index d68982fe2e9b..ab842594feb9 100644 --- a/Documentation/devicetree/bindings/display/lvds-data-mapping.yaml +++ b/Documentation/devicetree/bindings/display/lvds-data-mapping.yaml @@ -26,12 +26,17 @@ description: | Device compatible with those specifications have been marketed under the FPD-Link and FlatLink brands. + This bindings also supports 30-bit data mapping compatible with JEIDA and + VESA. + properties: data-mapping: enum: - jeida-18 - jeida-24 + - jeida-30 - vesa-24 + - vesa-30 description: | The color signals mapping order. @@ -60,6 +65,19 @@ properties: DATA2 ><_CTL2_><_CTL1_><_CTL0_><__B7__><__B6__><__B5__><__B4__>< DATA3 ><_CTL3_><__B1__><__B0__><__G1__><__G0__><__R1__><__R0__>< + - "jeida-30" - 30-bit data mapping compatible with JEIDA and VESA. Data + are transferred as follows on 5 LVDS lanes. + + Slot 0 1 2 3 4 5 6 + ________________ _________________ + Clock \_______________________/ + ______ ______ ______ ______ ______ ______ ______ + DATA0 ><__G4__><__R9__><__R8__><__R7__><__R6__><__R5__><__R4__>< + DATA1 ><__B5__><__B4__><__G9__><__G8__><__G7__><__G6__><__G5__>< + DATA2 ><_CTL2_><_CTL1_><_CTL0_><__B9__><__B8__><__B7__><__B6__>< + DATA3 ><_CTL3_><__B3__><__B2__><__G3__><__G2__><__R3__><__R2__>< + DATA4 ><_CTL3_><__B1__><__B0__><__G1__><__G0__><__R1__><__R0__>< + - "vesa-24" - 24-bit data mapping compatible with the [VESA] specification. Data are transferred as follows on 4 LVDS lanes. @@ -72,6 +90,19 @@ properties: DATA2 ><_CTL2_><_CTL1_><_CTL0_><__B5__><__B4__><__B3__><__B2__>< DATA3 ><_CTL3_><__B7__><__B6__><__G7__><__G6__><__R7__><__R6__>< + - "vesa-30" - 30-bit data mapping compatible with VESA. Data are + transferred as follows on 5 LVDS lanes. + + Slot 0 1 2 3 4 5 6 + ________________ _________________ + Clock \_______________________/ + ______ ______ ______ ______ ______ ______ ______ + DATA0 ><__G0__><__R5__><__R4__><__R3__><__R2__><__R1__><__R0__>< + DATA1 ><__B1__><__B0__><__G5__><__G4__><__G3__><__G2__><__G1__>< + DATA2 ><_CTL2_><_CTL1_><_CTL0_><__B5__><__B4__><__B3__><__B2__>< + DATA3 ><_CTL3_><__B7__><__B6__><__G7__><__G6__><__R7__><__R6__>< + DATA4 ><_CTL3_><__B9__><__B8__><__G9__><__G8__><__R9__><__R8__>< + Control signals are mapped as follows. CTL0: HSync From patchwork Mon Oct 21 06:44:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13843686 Return-Path: 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 D9B88D3C937 for ; Mon, 21 Oct 2024 07:08:25 +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=O1buX1yMSBwMTNJzNx6IMvplt4J4WhZF3jsTCKKII20=; b=SE5h64ECamOhGRsIPveoFsMZXP crIYBtjJ8gl87oqu69AYtaOnz2OSUMQaFCtsKGYkA3Bk6sbu314kbmdpjs+2USFpTJaUkyqcoLWk5 9X2Sv7lArTfLV1XKLM21yrGCzckvsj1BU7Gjil3CuHjk846vWtNvX3OAMiH6UjpOwjXaG/vtbWR9H gVJ+vR/u7ru6hyFkcaf6fk+La6CXUss0UIt22p6bjRWJu4Cy61F/rxyZ+TqNrZQZdG9UIg96JgEUL zNOyL0+GBE8iahheScouCWdgyu3eoggVZhndeAdc9Q/cASlqUw9rBG+vT2ygaJydpTYlbRsBQoMJM CcMFiZlg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2mWS-00000006JQ1-1GPy; Mon, 21 Oct 2024 07:08:12 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2mBk-00000006FkR-3K6E for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 06:46:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=vcLWGPEJUVV58CRBdrDgbIPSDE/YyhKNgNv1wKXx2SG/AV8GzFnjyXMLE1KJLK2cWPyaPE+SuK0+ZkRNmAQLExrjbQFgsckSatUT6vWNCeydFsYryMEk9ipL6uBO6N1VYJkScW1znko6dHY4fW6jyxHMIXGWlAEe+qmEqLM3lpRzQS5Q/sqJXc++7qtX+obg8nh+VNkdAnj7sj4JtnAotL9A5p7xtHnkDKvdKURxJQKeuojf1jXwa6gqvGtyoPB13EWWGy4htb1Qq8dbXqIJIARLQOHpAs7ImVKB0/b2hwMRIFsPAZkQov1TMIuY1c9h/GALmYXJP8gCs3pRW8pAAw== 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=O1buX1yMSBwMTNJzNx6IMvplt4J4WhZF3jsTCKKII20=; b=wuJzyPlNBXKAPxxEwx1fp2UAWSd20dJxYV57lszvTxxLkzlPml4ZXoSW2e9EeT/IliKSvrinV1NLXOpKXqLBhz6J2fagAHjhxAtDLNJapozNxo1oZ+09G+ulw5Gru6AyiWpZ7sbnfA5NaZFAmja7pYfL6zB+WDKRW6oyq2uuzpSt7//jPeQ8oAG4nyZQW37mwr68OXZRSFhmPg+aLvOzMLhsrotNhSP6MsTo3Vz6GSDCroEn1PLGPj3Cq57i1mLZb+llAY58xuU6cLlkjlerov89Xc7lkCXBpqmCBJRODxH7pNFOo0UA9IKEkULKNd2xzU7Bi+h7sg9AgJQ7IFmCRg== 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=O1buX1yMSBwMTNJzNx6IMvplt4J4WhZF3jsTCKKII20=; b=JozP/6ESRwoSt55SaTQWfJDG7Q6LOOBOqM4diwGE5M+QgGJ/cdQCcPpo/5SM7S+RxS9wbnd1ae7TV/lNA8o/FB5vYu1xiN9NJu8WhYCAIPS0bIcRMJieqokpKk5dYAZ+u9kaAx8RxL93GFWvoR9n/QBRmGwFekgGECpez0s+ZgfFXhgQt1UnWD24MvLT+KCPzK9W4xB89/MvNIYlYSAagbl43fm1CyFB1MXmxJjiIuq5ZfU7Z/76uOkyyPleZ1gtNj9x8w2hCxQiJR7KXK2HAQPOGA+vdd28PfFNBwEKra1NeraJCSktZPUE6b/kAFpYr0ha0Ay0QRt+YX0OiI++wA== 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 VE1PR04MB7374.eurprd04.prod.outlook.com (2603:10a6:800:1ac::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Mon, 21 Oct 2024 06:46:44 +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:44 +0000 From: Liu Ying 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 08/15] dt-bindings: display: Document dual-link LVDS display common properties Date: Mon, 21 Oct 2024 14:44:39 +0800 Message-Id: <20241021064446.263619-9-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> 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_|VE1PR04MB7374:EE_ X-MS-Office365-Filtering-Correlation-Id: 8247aab9-e1a3-4676-5964-08dcf19c2099 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|52116014|366016|7416014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: nQLk5xIhXFX7cKx5GDhrOJLEo9k5msmXNig49WEukkMHPa5SaDoxgcObiw/qcMW/F895YDebv6JiqIzOCshthQMssyZaFBnR0rLR16cD4ASyKt1DHPp1Ok8kTx30Zfrok/6maubTOB3eF3GwZU4aOccmH8njm0ik/kTe9nVYunUaWm8y4qpT5fL+Gzib/tUOmW2YdgrYWPl1oQFohgDT6iwXgMlOlygWOjh9VVjGxNjKzNjEFpvEEyBwmjGFAmB2OcDif/jRtqB+ZgEX0iw4JIgHfL8WZVzhOSWQimjXNbFb73hNX1iDkqVzCzFYNgYKfGrxJpj21natX2mSeEAt1Ka814We7iF6AmcQWxEjpkLPHBwtARo72v17q+/hE2dXMAGKb8QT33iWblGuMK5n5n2czl6wrMGq6/u7ohPEIQncrXt3Ty9rbdOvMqyq1Pxr+5OfAmZsZ2jikV5EVPR1BddHZr5rHl5kVqP75AIr5ypXTt/SDTLnRylqq6CF0ejmvV1neAKy5UGndIaQnOWF4/fL5fP5857pC1M43JnbHRo61TTj33R9dKavZXN+LdKLbH4oRzKTL8h/sJf/7XoGIdNqC5eNKp6GfW03M0p5RttApJgSxGmfHQYr/Nqwrkuc/0zPknh02G1Fq7rgP/+AVaiGqglV2BhC3Po5cDaFZfnD8BF026rAlPz/PeyZxgCP8Vw4l8MVbD2ilX4+8dBNxjd+P+SUb8J4HsKz/ypMP+hWBlvAuznddRT2Jj0SxBh1KszEfmP7LE74UJYRmbKPXe5XT0XqzQRidTu4PMWBxGLKFpyL76HbH7tuH0Mpo1VqVlcFqVqVBOD+dES2eOEKBiPmWWAsbj5B+CPzbtUpoUKvrw5/NwJVhAbz9MTY/TyUlUZ29S9d0e/3mn9zlFtbBA0DuPtekSlbQngUCgVe/q6hPmgjoIsYn+blJyWXVYQ/AZkPWloxcAqhEK+kExZBHpYIf9qwO4oiw0058PwVmjN2ZoRx218MguCrsMPQoAj3mSyusMzLxMoScxmW8hqS6/tQ3txTax+wvBAxHw8+TJz2Tw7o61B7Wrh/n5wF4TFEc+EudNNHcFi0t8A/PlFCWGywXYEyLm36CRu8pmGjyMXPgFGmkOtJSiQ7vO6vC9BxkTumbMSkQhXQQ5tiuq3nR2TDEzGIQFLvLWiu8IKvdY40HEb4DbS1dRGPnsTKO5vV1doFoogrZPtmmzN8Idqfpw97horuyKfB719IimbHkwS8gK25LEMjDTOVN2a1+qvDnwSGGSQhmKEIhJE3mRCKPp55QlpRCVmSFXTLQympTJp6pqmfb6qw2PbCHOe5F19A 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)(52116014)(366016)(7416014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: S2BKxWbAtEdD5J75aFOL8Mz7aryd4251DMSJCMeSWvQiSV+bbtBLOoOnfKEsP2PLoKF+KvrbVvI7uCoIeb3U2Qg8RnfZhkBsedl+8kc748aj3FyE6bolk+YCroo5AsiF6zZxtP3T2lORPNFJTAltfEeraAYjoyYkSIIsVsK5T7kNhxT51XYT3qnLqb50t0aKJAuHX07RAqHk5sjzYELGXK5l8WAl4DOqiLCBENF6mnjSqzUyCuKnulHsin1CNZ1b8c51/SbJvS5RH/k19HM6uzBAqagQcLz4eQNRlY7rVG3RzNW7oH5jyCvNBHLGwPP2PvY1bXNZPbrjUma4ttz3qOW5AzeDp2Ms20o+lj+54X2X5cuDWwKmm1GeINRQnKHCMOOgOTwyawZoP9G/iEFhlyiedpaa0ZsFUyvXrLelbjTR69Cj1nOrcAwVFakzwFpkzRzHzbQzZ+MCiha1pzBXaJ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Qzgp5yJqfsFgB8lqGaWBZ6Vf6mi9cOrfaYY/dLeCQZ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8247aab9-e1a3-4676-5964-08dcf19c2099 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:44.6862 (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: ZCkN97LeU425pam5UJCyeJb8ka9wHtMUZBUiaDNVYdxToDfTgnWQ5dVkzk/iGWUdA9uV26DFIDl4D3EC6Q/IMw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7374 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_234648_893498_87E5D424 X-CRM114-Status: GOOD ( 12.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Dual-link LVDS displays receive odd pixels and even pixels separately from dual LVDS links. One link receives odd pixels and the other receives even pixels. Some of those displays may also use only one LVDS link to receive all pixels, being odd and even agnostic. Document common properties for those displays by extending LVDS display common properties defined in lvds.yaml. Suggested-by: Dmitry Baryshkov Signed-off-by: Liu Ying --- v3: * New patch. (Dmitry) .../bindings/display/lvds-dual-ports.yaml | 76 +++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/lvds-dual-ports.yaml diff --git a/Documentation/devicetree/bindings/display/lvds-dual-ports.yaml b/Documentation/devicetree/bindings/display/lvds-dual-ports.yaml new file mode 100644 index 000000000000..0ac4c06d0a17 --- /dev/null +++ b/Documentation/devicetree/bindings/display/lvds-dual-ports.yaml @@ -0,0 +1,76 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/lvds-dual-ports.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Dual-link LVDS Display Common Properties + +maintainers: + - Liu Ying + +description: | + This binding documents common properties for LVDS displays with dual LVDS + links. It extends LVDS display common properties defined in lvds.yaml. + + Dual-link LVDS displays receive odd pixels and even pixels separately from + the dual LVDS links. One link receives odd pixels and the other receives + even pixels. Some of those displays may also use only one LVDS link to + receive all pixels, being odd and even agnostic. + +allOf: + - $ref: lvds.yaml# + +properties: + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: the first LVDS input link + + properties: + dual-lvds-odd-pixels: + type: boolean + description: the first LVDS input link for odd pixels + + dual-lvds-even-pixels: + type: boolean + description: the first LVDS input link for even pixels + + oneOf: + - required: [dual-lvds-odd-pixels] + - required: [dual-lvds-even-pixels] + - properties: + dual-lvds-odd-pixels: false + dual-lvds-even-pixels: false + + port@1: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: the second LVDS input link + + properties: + dual-lvds-odd-pixels: + type: boolean + description: the second LVDS input link for odd pixels + + dual-lvds-even-pixels: + type: boolean + description: the second LVDS input link for even pixels + + oneOf: + - required: [dual-lvds-odd-pixels] + - required: [dual-lvds-even-pixels] + - properties: + dual-lvds-odd-pixels: false + dual-lvds-even-pixels: false + +required: + - ports + +additionalProperties: true + +... From patchwork Mon Oct 21 06:44:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13843687 Return-Path: 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 A8178D3DEA1 for ; Mon, 21 Oct 2024 07:09:58 +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=WQM4/MYFJ7rokhH4z/YJqDLp2nV38Ib2IwVQ4T0CMMg=; b=z9Nnrv8Rw5Jk1Led2OxP7/3ABn W4jMmOFPcSW5eHlYWE/QqMeRI7+LrqAerTuLlKx888JFpetcCdzQNN/9GunBBp6dOU4BSxRxeOlBs w8npMmnttjdZZNkIZn+yp9EuN1fcJdS8nYuJQPr8ck1hZvzyWiHo6f07AbF2LxAYEuzcwVdWxfK3t /66FhZhDNaiaE9s9oLJO2mHSH5fN/6IF8gsE5LVGQbAnWOZmlyxZeGIRXlUZ9p9l95DCNR9FsvQ4q fWtjJKytGxLgI4w917iZtBUZ5ctR8C17HpVH5CCBS78LIUSAAhmptndWAmAJVLnDVQoF8akLarBWh CAIwZ6zQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2mXu-00000006Jdx-1eJx; Mon, 21 Oct 2024 07:09:42 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2mBv-00000006Fnx-1lUn for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 06:47:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Le0eYUCedBUQiwMOue7fVxW1FC4aDNSuxL0x/hDXtJyYZbS46lyKcU/YSipWPQl4riBLvNDMeWxnDULuYtAEjWU7bNXnTa2XV59hTSBDwrG7iwk4K1N4/JUcfEZ3fNHtgrrx+XNM7mP7IymoKW8sl4PvOYK/weAfJ1AiL5MYJWfy8i/LDuWbNz4DZirnDZSLkEHZYihfyED+/YYcZs01xl5WEf53S/hQoIBordWgvheroKWEmLz4dyHk8K5VlN8EV0WS+hX5ifjueMkGirPk3BKcGZb4xPK8sRjbIqkakvFgmXKU+hM7HKAFz8hA8L/JVGyKSu24HHTsQXXv0V/fRg== 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=WQM4/MYFJ7rokhH4z/YJqDLp2nV38Ib2IwVQ4T0CMMg=; b=SaoYOEv1wOTC+d+BIY7FaGfAOcnop9HjLtm0qvDx+d5e+Nb/8qk5YcPvLfD/v7Vka9mzvYGSVyEkBLqessWc3xOH5JiblBAOFoxYyMNpD4ryg2WqSDcIoklqqnIuBE3m50OADY1X7IwhgPsdAXaAGc2dyQw21tpgYpb/qlyomZjzkS9VZBiqgWIRQ6RVIpeXFtuHGrFAAKeZiWpddD6KQSHVKtQX3jQJlESlf6qzwio8A1BECzAWNmvYxNXfW8PFdK8ZIXwxm0XykrUH24ATSDISxza3MPUZcMBdUYRI07jQsCTr/LYfwJpSJbJaRo9Cf7A1xPNY6bgCoR1Zgs/Kug== 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=WQM4/MYFJ7rokhH4z/YJqDLp2nV38Ib2IwVQ4T0CMMg=; b=Mdr+Da3wPplIpxvLGbwJinZ8STu/uLdVe5Mjl0zE/X0dlxnLj5QxhH5L2bk/HQbLMrEzQpx5s4oJfA3Ywl37DqERQg/SvLUoLFRbgHEzx1NOSgwi3P9ZVyvKYqvLPw67d72+FlzYI1Xc/LkOUsIglWMOW8dLLhla7NLBHvUGRVml+6+OUT1MlARbpGC00jmIEHwC7iUPewLNzdPyhdcBkMxio3v0RuZ0WtHr9m1VUfv57byye1np6fnw6xFTiqoIEwnkRhtvfBJte0VdIF/irhWKxwu9maLY3tUwdspqAq5w8Z1Ko6RPX9Jqo2ImntQ+5IZ4jGk2oqQQlUYF8HKksw== 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 VE1PR04MB7374.eurprd04.prod.outlook.com (2603:10a6:800:1ac::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Mon, 21 Oct 2024 06:46:55 +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:55 +0000 From: Liu Ying 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 09/15] dt-bindings: display: panel-simple-lvds-dual-ports: Reference lvds-dual-ports.yaml Date: Mon, 21 Oct 2024 14:44:40 +0800 Message-Id: <20241021064446.263619-10-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> 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_|VE1PR04MB7374:EE_ X-MS-Office365-Filtering-Correlation-Id: 1bb1bb5e-af6c-4375-50f4-08dcf19c270b 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|52116014|366016|7416014|376014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: Dkpvb2WiVrpVRh/Nriz36DvXrPI+c3d3kYq7YBMD5VEzotM0AfemvMo+UPnOmiGNPJ2Tiruxlwgk0pZY/qBn1KEPXOQE81pUVqehZYFG83Mm3s78dlrfTF/q2Bn34JWLYggnUn8MKhitXeBGncs2gZ4FLBFw2qG2uqJr7R7GqF3Cumwe5YaRaGSmXxLLM14JQXo2z1H8piYkrDb4u244kYUfR0fb0B3icAs1M6O7yRbQX/DJOfQ7YdyOngg17DIXDKv5lVq7F43UEmW4csgOqxt0OJqQXjWfGrPckTFYaTjLZCQfC1RY1mIdonelrn9SHPRaYidtvIhozZ+ZR78DnetdXL+9AxAhr3o4/UWWtmBfGPcd0OW5wT/Q71nLksSmXAdKXOkKQ2tJ8l8NLk+7xb4BRcUahj1BjHoyRwJkO759VqAPHk3IMoz1lFx06iCPat7e17TUedcx9rWUhmADxxjWC7Dm7D7ZHHdxLhEdtUEu/VybuxZ4jKNU1ee4f5NQDnCjWBeEMRNYdNllqAoNO/9L5GYVTmGvpA4iaf+QXwGDi7JjkerHv1wjqoCXbzXepTmrueZdSmSWK1HOgqXTyARDIsyWOsmlaaGFAMBn6/VMkU6Qrb9syyPjjPOzec3dqV2RvAQIsi0SGx7fw3EeXNqEJu58GVuK0u/snhwGrIPsbEcjixG0VGmXraux60S3VTzif9rziLPWLkhCwEZqe2HppQlhpGCF0wbhMj9jo453lzevosMEy8DAqq34yAPim9J33bQM4vFx627klr6a7EGIZ6tnE/uV8qlOdJdUeGUXtz0NcBgQy0Vx8cIkXIP8uIrVRfZ2MjjDgX1QCcB74uNAbyyUfh+vMRntvsDD0gHd31jehOCwbsECMZMoa8hOV/jQr+wp0biKTgOIhE5u2ta+RsKmEcQ6VhogkqHa3fdHCPruH/k9B2FZjGBj52paMEv3u99cuqopPNF+EkuW4val7cKxMoX+oD+NQyiqLBxxkpLULwYhIeTr0unbilEMAKhuN7iRsV2oYChwohRydQS2gL1PMgiWH4pCro7YLhjKPcTtcZ+Z41vFmBwD7jqVFSbap0U2c62RziwQjR83Ku9veBqhvAUKrr5MJyTWjuVi53MvgXmHjJuuG/waaPScYxbEUiMQegteBVQZx/cELyNWyJY1acD8T+kC9keChGPCC3ZfdnZcvEb3TS89PGlITCtBFR3aAVUoWStnYg6tV3IKgy0mdCQL79WgDB+ov1az7KhHd7G07lK2jgDUwR2MtoOT62nURJOliHOtQX5khs4Nqsm8PIp5bsd4D5+Wbvj8xO/RsXlaId7GWTKsxVIyDawBM01vDKYxDKTbwqYGf7zCELQNfpyqcurpbzvHk1I= 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)(52116014)(366016)(7416014)(376014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +nIfdF1oM4ZC6F0BLM+Zx0onK2AWqsmOh3MetT4pra56tPpHQXFvsOkxBBcC16NaAemTIOGEvLQEEQUmWd7ZQAQk88sKtPjGWCYVwqIcOpJUYvqAPzYH2Ata2ubXPaSZn0jugezD1eyCxrwzwx0ueiDXZ73+/9bENxLfwI1p0W8k33lYr4UFba3wG3KJSwv9pgWy1T2NkB5OldWnB2Tkulx80igv6Dydf44bIFYymBJbhuujBg7sEdM8T3VXhjDxWqVeU/hicsCwAI7kL01dI8hYHtfc5ZQCqiUHz82ZW+qUiVmHtKyN2v6zi8BMlQBnf4a7H8EZcxtbIREy7CbUxu5DpluQEMpt1VHW4Ca1JpuxauhcwBRCpyyWWfX7sr8+e3KYrf481ReqnOPwBxWJWlLiQ1pzEkDAJooo0ajqQEJhaJNAmdmO//7IsxcmRlbTGwh8E2mtw10PWLCmNZTBjMFWT8R4NonYP5qvxSRLTs7wZJctvSIw3qCjMK4SqeZJ4mYCJBml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Org: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1bb1bb5e-af6c-4375-50f4-08dcf19c270b 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:55.6994 (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: xmV0ib0lyiknYjwoHV0B5QGJF1mP/Upr2/OfhlddJ1nCAad8s4tjBAq3BgN/a4O+NsPP7hHk4sFELmscz7i1JQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7374 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_234659_517051_DD2593DD X-CRM114-Status: GOOD ( 10.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This schema documents LVDS panels with dual links. lvds-dual-ports.yaml documents dual-link LVDS display common properties. Reference the ports property defined in lvds-dual-ports.yaml to save lines. Suggested-by: Dmitry Baryshkov Signed-off-by: Liu Ying --- v3: * New patch. (Dmitry) .../panel/panel-simple-lvds-dual-ports.yaml | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/panel-simple-lvds-dual-ports.yaml b/Documentation/devicetree/bindings/display/panel/panel-simple-lvds-dual-ports.yaml index 10ed4b57232b..e80fc7006984 100644 --- a/Documentation/devicetree/bindings/display/panel/panel-simple-lvds-dual-ports.yaml +++ b/Documentation/devicetree/bindings/display/panel/panel-simple-lvds-dual-ports.yaml @@ -22,6 +22,7 @@ description: | If the panel is more advanced a dedicated binding file is required. allOf: + - $ref: /schemas/display/lvds-dual-ports.yaml# - $ref: panel-common.yaml# properties: @@ -55,28 +56,10 @@ properties: properties: port@0: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: The first sink port. - - properties: - dual-lvds-odd-pixels: - type: boolean - description: The first sink port for odd pixels. - required: - dual-lvds-odd-pixels port@1: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: The second sink port. - - properties: - dual-lvds-even-pixels: - type: boolean - description: The second sink port for even pixels. - required: - dual-lvds-even-pixels @@ -88,7 +71,6 @@ unevaluatedProperties: false required: - compatible - - ports - power-supply examples: From patchwork Mon Oct 21 06:44:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13843688 Return-Path: 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 20718D3E18D for ; Mon, 21 Oct 2024 07:11:27 +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=4wUFT1LW2LIr0aARsL/CecqQcdSy+5ylxKXBMD5MyGE=; b=beCgM1mzeyFScfjlETLxswCy4e Bg/7z948UKGfE4nudRK2uY6zLqP53bd9QyzMrUVz4pACHYRt2AKxQqgcoe/Ek9Vk1xOLcG9MBGb0S 0XlzHb98aEXpji60WwKXhNQu64b4yxjIsy3FCU6rKTR+cGVAKXPE1GScZOdjn52lDkrlEB+kvIOzR T3iB6m+iEFV+AX+w/XhklEz5n6HXjQgwN2bcJ6la50qoVNqzAhjjgvnmkSa/y2+O4YO3r0rgVhJaR xvxxtCBamR2vnDDyNsyqcoA5u0AhpXiNlQS6x+yTtkREX9Ucz1VZuyMY8u/F4h6p/NoIR8thVZq2J Gn1Kd6Hw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2mZO-00000006Jlq-33Tj; Mon, 21 Oct 2024 07:11:14 +0000 Received: from mail-db5eur02on2061a.outbound.protection.outlook.com ([2a01:111:f403:2608::61a] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2mC6-00000006FsN-0NXV for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 06:47:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Zgpw8bEDFk1E8XQ0DdR/p9DEfV9rZZQ3xAjzaFVfh0xaWN3UMN9rQDYDLJKAjTbEbl1dZIZQkaU0U2wC7nExr5VaEzijRXgRHBwKRhSDgKcK9nzuH7+OSgg0injqyjVMnY5bXPVUQIoB53vD+poWtDd/VApQ8OsIid6vXDaT8rf1KOrCvAVL5W8ey+EoRfCdbXvgSOznKNNeGQLMpIpslJg8C9AlNQoon90HxTyuo11wyWlTXwHNHJHlMZzJkiKm4HlUwxEn9WmYCXZgz1Ng+lWyggm1G4Rp3XQf3d/f7zzBgzA21NRWMIcMF0KwdWLKCgC4OHIYuyQYLWVSnl5Keg== 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=4wUFT1LW2LIr0aARsL/CecqQcdSy+5ylxKXBMD5MyGE=; b=b+0OSzxRQ8K+zI9Q+UjsQIENEjje23jlGZy1bi+BnpjrDvAEI1hbHbLIGG6AYjVvF9IplbxPTYYLLXwQyMN2e9nnxCztR1PoIvMKFjiDmKo9tRX2h8a19MuxRPxbBvM7LvR/3V+HC5oxry4mnWpR1b1Zm7AlgkGCejU1nCars75EqSFxeGNTk+eN5wmf+KU9Dkq8IxGWZDR0Kfs93/BqiI+5kXNFFD4fHX4MkR6QDCWzC3rE0lGpNHRQfByEv+X7i89ugv9vYlRG8gV6od9fGAhDVDSBXu1r8wI14SxTHO5hC51jY/C5KpbJMgmokCUQk8pP7dI+5mdc04RKGgJT+Q== 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=4wUFT1LW2LIr0aARsL/CecqQcdSy+5ylxKXBMD5MyGE=; b=MqdJ45cOIQyoPoepIlVE+ijvv3XUVG7/KjRoIUPj6cK/ckTfgq4bLC4tTudJNJGwLvwMH0O08OcJOlOMTXX672iNKJ6qpvjSZvyZUyKfySNfnrjIGUWqD9g4EtiHWZoA+TSX918YSYr7ELdyHGcEwMbX1sGiES2+Iksz90O3Vtr+a6jdztgd7I8XqSDSS6msZiVoDeQG1+z+n6BUYvPLTALkt+FexdrdQzq0oHQDefS4FxXXA0MDGdIoJQVtkJwzpi3++vdcFbeUVqPEXrevc8V3jm8/IPJ7yVJCilgO6d0W4vJSMAl5tmhsGG9WfA2sHIuHAHACFcQeUZlwzyAecg== 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:47:06 +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:47:06 +0000 From: Liu Ying 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 10/15] dt-bindings: display: advantech,idk-2121wr: Reference lvds-dual-ports.yaml Date: Mon, 21 Oct 2024 14:44:41 +0800 Message-Id: <20241021064446.263619-11-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> 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: 5c0ae607-936e-4588-9f5a-08dcf19c2dcc 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: 9pG4HosxCoXFMjmydJPSC89HV3qcXQOHojjv4OmfWlisICZEINgUvWwX9uMitc+w+ZGNUTeRmiVZXq+4FFFU/SlFn2u4q1Klja88BZiI9i1Hyd9b19nrk3/K7K4sjWsb/Efm+QWyDTIvP8kHFoFkMZMHA5p751amtzFMiqbLBBFtyiSkbA5admBSgE5GKzWesq89TVqDwAWbjoDbECCOQYB+C5uLg/W0+00ONZPWOR0lyoCyMiGCQAkelyNPz1GkV9X+I3VdG9ROsw74P00DSaTvRJuQpd5BirYNCcIXlrd4bu9i9X7sF3gfsWyx0lDDgPikhAyC0mVIBcNj30+ojIe4o8E+bVZt3nS4PUHrcdYK2gkzAkCIuc3iznVuDSmdVCshASBEixOgPh/IZrt7g6G+fYCpWwVjHKq/mTxhddmN3JbZoGCBWVF+ckRfgsSjIb3fr2U4NMPHpfKA8VOAK/1e+h/xiNuFTnt6zJshtwCDhUiJdQrxLnKjDCmzYqzAU5Fg69+tVwd+8u4J8EvhWb8gnNPRWacf5cpRdO6B2FEs89SU3y6ROwCwhgtvIc+cImeRvcPupVrQCyICGf2lNm0xIDMyr0XcxiSEGk74dpTpDAwXkarOQEYjSVRnbIlD69iGZn+CevNhaW40VUR783HqS94cAXCOIM+S5uP1UOOxPx8L63f+LnfAWvkOYsX/dQip7ODRWF+lWegkT2oZj9KyNIPCwNv+0SZ2xJVpZB7aP+GA4w6zW1pHnhZVCJ/mbfqX9mAACZ5/OaGLNH9yw4RurJeN0TccLkaMxjd0AiEmbffV3TEENdD7Sxh4jKNpH7zYA5BEPGgk3rRT5RRF2eFZQ2H7wm/ZPib+4ZmOvG4puYGoU5oQvu6AqbtyX81ln4Y9twaPnM1EptePaFXY/okcO0oyx16tvSs7o0zQgWXRv+UepIclscWLht8JaQJ5aestmMUZAWDgU2KzTPPA/hcnLdVtttrwnN0NJYRabntBhiHGYcPJzWRaWAzDyd6hzp6eHpZoFGp6UioFz2SjRQtAa5nBuDSs++Ib2YHFpZNpoN6C53163VflYsBXGh/5ZJLzMo5eIOeqPqlg7ZHO2i2YnQJ1ruBbWZ+lqPKEQsO7rzVAQHlMnrmykf4v2BVJu3ImorKZyObS0zeI/SN2RXUb9htsw5iG3kvfzzY38Cnhtu7jE4mJ3gu2+IsYxPGy1BvB+FAZLk9dSjkQpVjmrkOoknf3WiQqWvX0kfCVBYA47oW8OVxE/NgiGYgwJ84IsVJGWyqLM3VdjHt8xT5EcDVvowKS6z2U1x47lf7pUPXSHrkGZeuTL3SZQAwK0dRc9C4IXJ9LQjOU5JTDWwbCV/tQSPaxRiTsPFUtMXe/d+g= 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-Ch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0kIB5RuGxPjWy3nH7Yrr2kPaUEESdHC22CH7PRvkBoKJY0N1fDR04vbpw18bMzWkb3ZgSketSCx60m7hxCEIzc7MKa5pHJwxPHJgnKWzQvT88eHAl2vQDWfEA8Nonv29WHXuE3S77orAL4chV+rfvK9ytej5rbZaxZTNnZtp3f39Ay5ovK/CJC0mKaB7iIX5CaVB5EcB3o1m3IXV3oWWBvZjuGAi45kEoVhFG9c6kH0rIrOjJHYNiEUKiDx7lRpcjZdDD+lpkM8y0F1ZHPLXlrMII90ePpIveBn8yukK+AYVPNRjkaRuuU71vnQKOxJp3EgYD7DAYBhvPiUck4yiiVffTdfqj+wceLwYS3up8IXFpRsYaGqQAUMvFZ7lAaqHTSuFRRD8alVDiSBd/G6AwbuI0r41oZwUtrWUYl/8O5WanI7XVXyqp9FXKHCUBTYLuxoyD5lqOPZGA4AElNMJlwoSj+2lopSlmWL3dlcf6cpasMpsWVf1tSWIlkIhIQ6HjForZ+ca2AZbpW4cVwee5w2oqQpPmPuhQmEXtvA2FDVxKu3kv X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c0ae607-936e-4588-9f5a-08dcf19c2dcc 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:47:06.7879 (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: IxDZZ8yTX+0mCyJ6sQukVaFtTZ00MIbQuXGYsmzLMRicHutNkJtq+Du3630e+FnOPiKAdq2pscbwCH8bmz32wQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8440 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_234710_155867_6BEB2B0F X-CRM114-Status: UNSURE ( 9.17 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org "advantech,idk-2121wr" panel is a dual-link LVDS display device. lvds-dual-ports.yaml documents dual-link LVDS display common properties. Reference the ports property defined in lvds-dual-ports.yaml to save lines. Suggested-by: Dmitry Baryshkov Signed-off-by: Liu Ying --- v3: * New patch. (Dmitry) .../display/panel/advantech,idk-2121wr.yaml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/advantech,idk-2121wr.yaml b/Documentation/devicetree/bindings/display/panel/advantech,idk-2121wr.yaml index 2e8dbdb5a3d5..05ca3b2385f8 100644 --- a/Documentation/devicetree/bindings/display/panel/advantech,idk-2121wr.yaml +++ b/Documentation/devicetree/bindings/display/panel/advantech,idk-2121wr.yaml @@ -20,6 +20,7 @@ description: | dual-lvds-odd-pixels or dual-lvds-even-pixels). allOf: + - $ref: /schemas/display/lvds-dual-ports.yaml# - $ref: panel-common.yaml# properties: @@ -44,22 +45,10 @@ properties: properties: port@0: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: The sink for odd pixels. - properties: - dual-lvds-odd-pixels: true - required: - dual-lvds-odd-pixels port@1: - $ref: /schemas/graph.yaml#/$defs/port-base - unevaluatedProperties: false - description: The sink for even pixels. - properties: - dual-lvds-even-pixels: true - required: - dual-lvds-even-pixels @@ -75,7 +64,6 @@ required: - height-mm - data-mapping - panel-timing - - ports examples: - |+ From patchwork Mon Oct 21 06:44:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13843691 Return-Path: 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 66953D3E18D for ; Mon, 21 Oct 2024 07:13:59 +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=M634R4S1WWqTWtnbcUmZp+QgxhcDWb6qattsLotylYw=; b=mgVbqhQoirbun52vtb2xS7SjXt 0+QrNwXeUNdWLvkmlVa+gny5Y4z/Vm6VSs50iUzT37YoLK10/JZQ8imOd2WZ7g5ZNrNMDhwHkaWx+ ckjeEx9WNyqrFEPBWZ3mYlwiiadRkL6ERIRRjtnso8XFwOdjkd8kazOgqkSNPGStVxd5CD/hEYFuF jMVdaDek+9I+VC8phFLFn/GFMk0hOSD6CShSFSNeV6QGFSkKeNHcggu/y2XGr6AVFPXVA4FkKQW9y URomA/szBXaC4Tsh7Jd6PktufmO2+fx4sY+subarHnfeLWNYdI8mU6bjI2VoLNpi6UJWbpT7CVjVz ftUAsC7w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2mbo-00000006K8D-3ecd; Mon, 21 Oct 2024 07:13:44 +0000 Received: from mail-am0eur02on20606.outbound.protection.outlook.com ([2a01:111:f403:2606::606] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2mCG-00000006Fv0-3pbq for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 06:47:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=HlYLsrMdpJHVY9AKG7cZP1kL7r6slOwR6YFco7DAMF1adnNxTFrV/O3QwKERMCD1JRbTU4NS3iGKrybnmLdXL15KByeyzIBtk3DphXjHdE5i9EO9Bb6Jlr1CSTuM1e9quBBi3t77jk+FjnmZmh/ojpKAc8PxbKO4XK5sIQp00NwMYBajOPdBfprNcrvf5GFjLFCVtzTBdkz1wSNAi90fXTwdt16A6FDLwg/MJxbon1zAm5mMoCC5e/V5n6xwC11Bso1GNbXyLRIcjDXRCvDC76mVxcP2Vq3aDcVNKtboPPuwFocOO2y40oiPzRF2Q2kXdPHTauxUY0jVbB62aQMMaA== 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=M634R4S1WWqTWtnbcUmZp+QgxhcDWb6qattsLotylYw=; b=MquCzwW5r9e96EENN7XQIaUiPG8WqFW8zkZNiYT21+a2kOLUs7uWm46+L91iATrthB+Ymo1SS7OwHxQGgoXbewRXEq92H6fXFzQZUPkFrRfEGLQkzm8toApX4Yiem3LODq8p0V/qg2evUV40WS4+zBwZn1EqeNHKpCNtZuHEcEJxT8UmgJp7wANh/mS/9xjaQEsdDIR2Jw9D9lFF/6kAEKNMeDboB8SkHgLYTrHXKv2aCWoECQ01/RM3HSbnxMEy1+EWWO3Bo4hyb4mF0IJyaGRoDviU5yOiiYBVaayGYpdpDW+tPODtaCO5ADTS0Rd3mFMtr5QDq7/fSdcK9yjXqw== 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=M634R4S1WWqTWtnbcUmZp+QgxhcDWb6qattsLotylYw=; b=Is/7Q9JGf23LinmyVrSBd5veuHMqosygFhV+6Ucjcv2QH+I/ZJf9bIFclkwJsWfrMRXvLJmndmDhwGRVCAUqE/yqsQZwAtB4c4uNwEP3JGXO/1Lop2LL8Sk9lZzB7b1V8tYSDNGkCsGhivoKz13ZjFkfbUTb8pWoCURJ9uV4gk7ozfDMkrXa2aqJ5fLUCRr4HHt7E42UJPOvCMPTMRq/28m14cSmCEYC0t1c9XVois4bxXrzoSmd8GQpDVHC2GchiHYjpzmjXxPTztqDVdsKMNzY4NO8w1Un1b0pVycEzvo5NuTOOsWo7w5l4fXJOSbQqRSTnhqkChUAbF1fOzPQxw== 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:47:17 +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:47:17 +0000 From: Liu Ying 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 11/15] dt-bindings: display: bridge: Add ITE IT6263 LVDS to HDMI converter Date: Mon, 21 Oct 2024 14:44:42 +0800 Message-Id: <20241021064446.263619-12-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> 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: aa378d80-cd4d-4580-e90e-08dcf19c3424 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;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rsodD7hHVIiQqPFqvwma2X2F6L3IhUEtYriHhGLVLdWkjIoHq9IpOBswzTaMYJyuCniPnYVBtvT5lNm/I2H05Z6Cp8edOxMqm8hWOjz0v1KhEafSWxgC5IG54SuEv81d7odziiy/GeF7T4V6IiYbpB7RfQ1IThtaaTYebJTc1YltjxZfhVjbxih4ajuB1jfzY06vQFOjtT8CqunnhZqxADHmNCCmozniwk7yp3ad7w0XYFUMBKvJEHlgmu/hAPpPk0GbEjq5UpORRaMRwCYNoEEMngP6LVAxdYq 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: oDSqxiTvPcDFsXemvJ6G6sd3dGXrnxnfbxZLJBfDQQDmlQ/QrJZgk9DeMuux0wRbYWVWaWEUwTkHq6mTjTKQu4R3cKkPjnhuqDXM9SBJnCinm5IpFAb9o8Tpkk9TvbxiuwK+I1zjmGFzBIMH8MILI2kRbvEgdr7FqK92Zy4HFXK2chHkLvZgVzNNRAs2erev04DgzCFSLBTdMvKSAzRFUr26jmsXnRvTY6RmbVY2aMIA+EH9+3VcH7NKNtme0q0d5osZuXzmACLK1bmg5DNkxn6/KNVOWGlVHNcY+yFfVXpLmloxjusM3aAdSQot8mXHwt6yrYqCjwke7J66H4yA5TxMq4voswL+bgZgjVFW12mcZRWXMXChuOWlVjmO9JBvhxatdQd4TZXE6BfNL2j3dK5xS6yFlKr1oLojDxxu/05l18sQC/PYbZKBcxl5gF3oL99NlrBqSNKnCEFgz0oAaNiTWRxeVdcdNLsdeCrpZTBFRqJigQekFjEjueB5nw/YUZbt3qrd8P6nD9KSgs7rcZdNWXFpvniDBH5f0Is3X27/bMW6Whd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-Message-Id: aa378d80-cd4d-4580-e90e-08dcf19c3424 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:47:17.3622 (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: GhC0L367pETJXeeItp64B5xs5eQt1uNii/lVhCE3BIORN4QMW7XuDiqbe/SifY7jgmO/huGeecGBPCA0ap7Ogg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8440 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_234721_152697_08D39471 X-CRM114-Status: GOOD ( 15.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Document ITE IT6263 LVDS to HDMI converter. Product link: https://www.ite.com.tw/en/product/cate1/IT6263 Signed-off-by: Liu Ying --- v3: * Reference lvds-dual-ports.yaml. (Dmitry) * Add data-mapping DT property. (Dmitry, Biju) * Allow data-mirror. * Drop ite,lvds-link-num-data-lanes DT property. (Dmitry, Biju) v2: * Document number of LVDS link data lanes. (Biju) * Simplify ports property by dropping "oneOf". (Rob) .../bindings/display/bridge/ite,it6263.yaml | 249 ++++++++++++++++++ 1 file changed, 249 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/ite,it6263.yaml diff --git a/Documentation/devicetree/bindings/display/bridge/ite,it6263.yaml b/Documentation/devicetree/bindings/display/bridge/ite,it6263.yaml new file mode 100644 index 000000000000..8aedbaab5510 --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/ite,it6263.yaml @@ -0,0 +1,249 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/bridge/ite,it6263.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ITE IT6263 LVDS to HDMI converter + +maintainers: + - Liu Ying + +description: | + The IT6263 is a high-performance single-chip De-SSC(De-Spread Spectrum) LVDS + to HDMI converter. Combined with LVDS receiver and HDMI 1.4a transmitter, + the IT6263 supports LVDS input and HDMI 1.4 output by conversion function. + The built-in LVDS receiver can support single-link and dual-link LVDS inputs, + and the built-in HDMI transmitter is fully compliant with HDMI 1.4a/3D, HDCP + 1.2 and backward compatible with DVI 1.0 specification. + + The IT6263 also encodes and transmits up to 8 channels of I2S digital audio, + with sampling rate up to 192KHz and sample size up to 24 bits. In addition, + an S/PDIF input port takes in compressed audio of up to 192KHz frame rate. + + The newly supported High-Bit Rate(HBR) audio by HDMI specifications v1.3 is + provided by the IT6263 in two interfaces: the four I2S input ports or the + S/PDIF input port. With both interfaces the highest possible HBR frame rate + is supported at up to 768KHz. + +allOf: + - $ref: /schemas/display/lvds-dual-ports.yaml# + +properties: + compatible: + const: ite,it6263 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + description: audio master clock + + clock-names: + const: mclk + + data-mapping: + enum: + - jeida-18 + - jeida-24 + - jeida-30 + - vesa-24 + - vesa-30 + + data-mirror: true + + reset-gpios: + maxItems: 1 + + ivdd-supply: + description: 1.8V digital logic power + + ovdd-supply: + description: 3.3V I/O pin power + + txavcc18-supply: + description: 1.8V HDMI analog frontend power + + txavcc33-supply: + description: 3.3V HDMI analog frontend power + + pvcc1-supply: + description: 1.8V HDMI frontend core PLL power + + pvcc2-supply: + description: 1.8V HDMI frontend filter PLL power + + avcc-supply: + description: 3.3V LVDS frontend power + + anvdd-supply: + description: 1.8V LVDS frontend analog power + + apvdd-supply: + description: 1.8V LVDS frontend PLL power + + "#sound-dai-cells": + const: 0 + + ite,i2s-audio-fifo-sources: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 4 + items: + enum: [0, 1, 2, 3] + description: + Each array element indicates the pin number of an I2S serial data input + line which is connected to an audio FIFO, from audio FIFO0 to FIFO3. + + ite,rl-channel-swap-audio-sources: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 4 + uniqueItems: true + items: + enum: [0, 1, 2, 3] + description: + Each array element indicates an audio source whose right channel and left + channel are swapped by this converter. For I2S, the element is the pin + number of an I2S serial data input line. For S/PDIF, the element is always + 0. + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: true + + port@1: true + + port@2: + $ref: /schemas/graph.yaml#/properties/port + description: video port for the HDMI output + + port@3: + $ref: /schemas/graph.yaml#/properties/port + description: sound input port + + required: + - port@0 + - port@2 + +required: + - compatible + - reg + - data-mapping + - ivdd-supply + - ovdd-supply + - txavcc18-supply + - txavcc33-supply + - pvcc1-supply + - pvcc2-supply + - avcc-supply + - anvdd-supply + - apvdd-supply + +unevaluatedProperties: false + +examples: + - | + /* single-link LVDS input */ + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + hdmi@4c { + compatible = "ite,it6263"; + reg = <0x4c>; + data-mapping = "jeida-24"; + reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + ivdd-supply = <®_buck5>; + ovdd-supply = <®_vext_3v3>; + txavcc18-supply = <®_buck5>; + txavcc33-supply = <®_vext_3v3>; + pvcc1-supply = <®_buck5>; + pvcc2-supply = <®_buck5>; + avcc-supply = <®_vext_3v3>; + anvdd-supply = <®_buck5>; + apvdd-supply = <®_buck5>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + it6263_lvds_link1: endpoint { + remote-endpoint = <&ldb_lvds_ch0>; + }; + }; + + port@2 { + reg = <2>; + + it6263_out: endpoint { + remote-endpoint = <&hdmi_in>; + }; + }; + }; + }; + }; + + - | + /* dual-link LVDS input */ + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + hdmi@4c { + compatible = "ite,it6263"; + reg = <0x4c>; + data-mapping = "jeida-24"; + reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + ivdd-supply = <®_buck5>; + ovdd-supply = <®_vext_3v3>; + txavcc18-supply = <®_buck5>; + txavcc33-supply = <®_vext_3v3>; + pvcc1-supply = <®_buck5>; + pvcc2-supply = <®_buck5>; + avcc-supply = <®_vext_3v3>; + anvdd-supply = <®_buck5>; + apvdd-supply = <®_buck5>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dual-lvds-odd-pixels; + + it6263_lvds_link1_dual: endpoint { + remote-endpoint = <&ldb_lvds_ch0>; + }; + }; + + port@1 { + reg = <1>; + dual-lvds-even-pixels; + + it6263_lvds_link2_dual: endpoint { + remote-endpoint = <&ldb_lvds_ch1>; + }; + }; + + port@2 { + reg = <2>; + + it6263_out_dual: endpoint { + remote-endpoint = <&hdmi_in>; + }; + }; + }; + }; + }; From patchwork Mon Oct 21 06:44:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13843692 Return-Path: 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 1B6ADD3C937 for ; Mon, 21 Oct 2024 07:15:29 +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=r3b6iOEvIH5yGXR8cWLqSiHBunbnq9m9pNm7zQtSyec=; b=twv2KCuFrHpXoAh8Mb0S9pE8ps zKEP9V4q73e7CfOIILwJ23DO+G39lvUdge5FG0UGG1rv/eFXBR1zPai6bXV3tcR5rPRg62mlJeD2T aR5paqqW3frqte+PrHeluPvBDwSNJIhm4FNCVr7WQ92VEQnLU7Y3OZymgWtCdzxrRNOq6n/q3m1O/ SobuIIPlvUMoyIFmuaFTslgopeCPYzKzw4HagkBL2YFVe3ZdDBlGgxYx34VE+OqZuuOl4jwSDRxel LCSdJi6ZUu77/DYxYvCDXqYkOcMHmscQO8FGDaP8ubIYQl/A/o59KJ3Llg//WqN7CsaJpNNsVJ/+e kmmU1pNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2mdF-00000006KLB-3svb; Mon, 21 Oct 2024 07:15:13 +0000 Received: from mail-vi1eur02on2060d.outbound.protection.outlook.com ([2a01:111:f403:2607::60d] helo=EUR02-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2mCS-00000006FzV-3MNC for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 06:47:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rPYi8Rw1nevMrAkyw/ExrYd7+QMx+zroQKpxRh2Qo2VcJFttx9EJBlmr/nFU+yECAbcq+OTQTpBLhb93AgfIsJ6hpBZ7BRsrBObsBuQSU8oEiCzKpy4DukQ3yv+aSKZoAfXfLDIx4MJhHlr+tFblpk1Qm0WXxNd9ccnjzydFh1i/sOg+O68fckUvNQn63M+l5MyXBHy3n6p2chbWVEDtCIQnckFBqAs7scN8byTT4pf5PMCD95881JoYzw+ShY2mJuW3610I7XpTe4DwI782DMyDi+XOzZobvUwr9VQlLkN5er0+BbinX0WFW5RNiszQp7uh7KEA3Fsnjfbg2On0QA== 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=r3b6iOEvIH5yGXR8cWLqSiHBunbnq9m9pNm7zQtSyec=; b=FfsJvTaDq8WT7VFC5hmgmibB23mkio4eliKH/YWhh05uwbYf9qA1JySRn8yV8CGNf3IcMpq4CLRESWQ3A8Zm4l2o9r8lzJ2aBtSvpCtnXcvZ+XYFAYqMy598GLdtxvEcsAne68hJfFJDVwdNqTKp9wbfwtDs4uniMBFtDsL2c6uqyQZMTDPsI3kQHMQlSmLN8CIcfSw7HwrQi06LKB+LWuvJGOpEPPizpahNee0Be7+beS2CUuccPqFexCkSy3In94tKw6V5y5dG0qtXYY4uKCNFvVFUV31FnhbHcof1LOO42RPMOhddUnmqeM8xBBX/tgcT5EnmChFcIznsz4/1tw== 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=r3b6iOEvIH5yGXR8cWLqSiHBunbnq9m9pNm7zQtSyec=; b=Q9Q9SI3kPB1G/UZv0Vmz8WqD1KzexKW6hmyv/pLs0L5Oq4SZZlMKqS0a/Pcxlu/LsK7TwBkfikCYkf7d55ARv4n5GdaIDPOG0JTJcqx8LjnRG2SvXNTh/8B+Cp2dktnPyBKeiiaB8C52swV0Ylf9tWAwmOzkeapkLIU5lZjjd397BhHRYSd0MwDkAtLauLHkqeTeoiRAcIL3hzCYAdBg+YydffK6Mo2q1lebjcZJk7SQPvKkGf512X0tpofiPnTsH5MxOMfzxWbtq/VHld/7++sIZjHI5C44o5RaCWD8IGfGmbW3yBdH/zkgj17HXQButsJno1c0T3p6rDERM+sqgA== 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:47:28 +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:47:28 +0000 From: Liu Ying 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 12/15] drm/bridge: Add ITE IT6263 LVDS to HDMI converter Date: Mon, 21 Oct 2024 14:44:43 +0800 Message-Id: <20241021064446.263619-13-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> 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: c0ad52bc-3ac6-4a1e-abfd-08dcf19c3a77 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: +4F6xdGU8lbvReZHb2+9oeT9pZZuKOgSth3jNUD8tFdTEQM6gK9GKlp7wnEhPAg3ax7n5w6aW08AHZsT0gTIDRfy+Jz/UHoTyKa/CHmt93ySqpmKe3aGWC0FZQGBy/qnevVcm20bXH8tXgxVKpMFINJPeXvD/MlROgkFHmLX4/qHbl9+RRFC1SvxF75grIBoEF+DCKxe/0oXjHtHaMOOU6WVZ1+SCFegaHC1pzIHZRtokQvRX+xbcAJBAAYnBEZNo+HCfBfkrv9AX50Hm99A49YnhrUSJUMQtOxTrD8bj6SAu54tzMQSGh37hVR1KsVhtnLs2LECw/jw153islFz2S/Xfwlz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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: dFLLyP3XwEU/F0+fP+Cjppr5L35ugIfyED1D4Ct4cxMbABeqB78L6gWMfkbMokoZcD7ki+H+eqBScKwt890Qh2F9DqO7pIm40B2a1otUhmR3nKYi0QYx3RKzq1SgHcxC6v8oVNvz4KBHY8kU3nF7HFRblA74J8Do6I6E/NgrgqkhpIRUz9GJiMscxq3S6BmShJZv/ebeC2Y03LFptAbZi+08Kda89hR95NyfO6HotCsHGMtUUQbI+x4chgVAoqqrpSbjK2WHtqn2OpuNX2K2aJC+b+A6KDwE47bmPTVQQ+Bl53l4ENuHhR9jtb12KxEG7xnlNQ0bS5jxr3iLr49cer3oD2aZAiGjXOsdLTy55N5bmw9xh6C9rerqrmzGToAWwDgfgPtJniMxio45Q4mnKh3RmfMx1ZUko7zLrypv6YKSAF+Kts1tJwNCxsffVKPVALa9/1oGRtKO5bV9X9mh7GdgFeH/azyvZr9Ktin/FURF4tSkZ4R6kRrxJxOhDNxx1I5LQKEbNCp2fRhp669n/Tpp7CoSJi3/7QvahoJ+YnzC/NnZ49amo3rFBVjlgDGkt9T21HNrPEKpT6m7PUTj9ZnzAPTOFBQZrQpWK/tSPJVWVVgKzufjMeEa/h6WdCqEFLPp62PACsWjR1MI22ji3nkk32c11AF5k/gLBsx+6cFDQyn0Lld2odXb+5OcD4lhYXiLe68R3c2lQ8wShT4nW7egGBSI8qEXYKosQ7PKdNAhH8dRzwTXBbtSJ7vN2eB/9EVi1uMmKQ5rggnrBVkjLttnx/OxKPKxzDnBC+2N0nQPctOtfEGoNyGPrwFol7vo/3u/gkXJ4KY5nOnkwc24wbv58gtYaciRbsmA7pfbGN4uQp2oDM8/688h1XBPOyv0+Vqu2Jj4QIrrfFP+6BJOL3pgf6b54+fgXEGvBBRWBjBYV91ldJkmgLYyV5X4BG+ZVytG/E6yz4rTnFC116rDEEd0eKwC/RKigAauWjogFGcGbkOSgEoyZL5CKYwEeMlmz1KJ19HSnWK97MRy5oBNj0CbhU6T11sHejkAXkd7AuyJE+3IpAH1LelK4qS1jxir32sqBvQCKSTiy72PFY0tBh7+S0GLrfAdSU/Lkzvvb7I3m8I+YxfYE69l08OuFJYc4pxpGuG15gDO8fUdRB8qALvtFnWxxCTQfQ3LG/5YrDo+x+daXsiqogII4OQo/5AmJdRElYSMZ2Cp3gbbfrIl7F/X17QzI8LETSwbibpqtWWFkEbbgZFpDypp0yCBXckThdTIKUvsPhYa7NYlGGvStYZQU1kYq7bEUNTqlWTnkl5PJld04H9VeaEZ/ROd6iFs89bEqOtq0Y7AIt+fSKokNcfqFAlbjXZ35hsKyGBa1qjJZvJYZE7fWpS928fbvSjmFYnyitEnCLnRbQ6YYyrfdc8ujZFHB4njGPAzhJLLd3oj2LcF9RIp8Ki2dNLnflSy4xtQfl4IhgmwL0hTSGdF1xxiNzwQw4wfHa5Dn7uralWDLuvcEYnlGr70BmaAJGpRMtTwdd6EvXpLbepnAOUGTjhUoHssH5WZtGHvbDDI2BDUy3L1G/7MPHaQrH4CHK8W X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c0ad52bc-3ac6-4a1e-abfd-08dcf19c3a77 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:47:28.5375 (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: HAylx9UhM1QPdH43nREmG312ZgQ8Y6z4exHG9Awy/9wAys2kzqRVOfa+h0IiryB3Wd9wmGsgLrlOeCj36BwmBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8440 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_234733_060886_09A46FAC X-CRM114-Status: GOOD ( 17.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add basic HDMI video output support. Currently, only RGB888 output pixel format is supported. At the LVDS input side, the driver supports single LVDS link and dual LVDS links with "jeida-24" LVDS mapping. Product link: https://www.ite.com.tw/en/product/cate1/IT6263 Signed-off-by: Liu Ying Reviewed-by: Biju Das Acked-by: Maxime Ripard --- v3: * Use HDMI connector framework. (Maxime) * Control the missing HDMI_REG_AVI_INFOFRM_CTRL register. * Validate the maximal HDMI TMDS character rate. (Dmitry) * Get LVDS data mapping from data-mapping DT property. (Dmitry, Biju) * Validate 30bit LVDS data bit order by checking data-mirror DT property. * Use drm_of_lvds_get_dual_link_pixel_order_sink(). (Dmitry) * Initialize a bridge connector instead of open coding. (Dmitry) * Add a comment that IT6263 chip has no HPD IRQ support. (Dmitry) * Use devm_drm_bridge_add() instead of drm_bridge_add(). (Dmitry) * Fix a minor build warning reported by kernel test robot. v2: * Add AVI inforframe support. (Maxime) * Add DRM_MODE_CONNECTOR_HDMIA. (Biju) * Rename it6263_reset() to it6263_hw_reset(). (Biju) * Check number of LVDS link data lanes. (Biju) drivers/gpu/drm/bridge/Kconfig | 11 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/ite-it6263.c | 906 ++++++++++++++++++++++++++++ 3 files changed, 918 insertions(+) create mode 100644 drivers/gpu/drm/bridge/ite-it6263.c diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfig index 609f4d0ac93d..6b4664d91faa 100644 --- a/drivers/gpu/drm/bridge/Kconfig +++ b/drivers/gpu/drm/bridge/Kconfig @@ -90,6 +90,17 @@ config DRM_FSL_LDB help Support for i.MX8MP DPI-to-LVDS on-SoC encoder. +config DRM_ITE_IT6263 + tristate "ITE IT6263 LVDS/HDMI bridge" + depends on OF + select DRM_DISPLAY_HDMI_STATE_HELPER + select DRM_DISPLAY_HELPER + select DRM_BRIDGE_CONNECTOR + select DRM_KMS_HELPER + select REGMAP_I2C + help + ITE IT6263 LVDS to HDMI bridge chip driver. + config DRM_ITE_IT6505 tristate "ITE IT6505 DisplayPort bridge" depends on OF diff --git a/drivers/gpu/drm/bridge/Makefile b/drivers/gpu/drm/bridge/Makefile index 3daf803ce80b..97304b429a53 100644 --- a/drivers/gpu/drm/bridge/Makefile +++ b/drivers/gpu/drm/bridge/Makefile @@ -6,6 +6,7 @@ obj-$(CONFIG_DRM_CHRONTEL_CH7033) += chrontel-ch7033.o obj-$(CONFIG_DRM_CROS_EC_ANX7688) += cros-ec-anx7688.o obj-$(CONFIG_DRM_DISPLAY_CONNECTOR) += display-connector.o obj-$(CONFIG_DRM_FSL_LDB) += fsl-ldb.o +obj-$(CONFIG_DRM_ITE_IT6263) += ite-it6263.o obj-$(CONFIG_DRM_ITE_IT6505) += ite-it6505.o obj-$(CONFIG_DRM_LONTIUM_LT8912B) += lontium-lt8912b.o obj-$(CONFIG_DRM_LONTIUM_LT9211) += lontium-lt9211.o diff --git a/drivers/gpu/drm/bridge/ite-it6263.c b/drivers/gpu/drm/bridge/ite-it6263.c new file mode 100644 index 000000000000..1ad7727742bf --- /dev/null +++ b/drivers/gpu/drm/bridge/ite-it6263.c @@ -0,0 +1,906 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright 2024 NXP + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/* ----------------------------------------------------------------------------- + * LVDS registers + */ + +/* LVDS software reset registers */ +#define LVDS_REG_05 0x05 +#define REG_SOFT_P_RST BIT(1) + +/* LVDS system configuration registers */ +/* 0x0b */ +#define LVDS_REG_0B 0x0b +#define REG_SSC_PCLK_RF BIT(0) +#define REG_LVDS_IN_SWAP BIT(1) + +/* LVDS test pattern gen control registers */ +/* 0x2c */ +#define LVDS_REG_2C 0x2c +#define REG_COL_DEP GENMASK(1, 0) +#define BIT8 FIELD_PREP(REG_COL_DEP, 2) +#define OUT_MAP BIT(4) +#define JEIDA 0 +#define REG_DESSC_ENB BIT(6) +#define DMODE BIT(7) +#define DISO BIT(7) +#define SISO 0 + +#define LVDS_REG_3C 0x3c +#define LVDS_REG_3F 0x3f +#define LVDS_REG_47 0x47 +#define LVDS_REG_48 0x48 +#define LVDS_REG_4F 0x4f +#define LVDS_REG_52 0x52 + +/* ----------------------------------------------------------------------------- + * HDMI registers are separated into three banks: + * 1) HDMI register common bank: 0x00 ~ 0x2f + */ + +/* HDMI genernal registers */ +#define HDMI_REG_SW_RST 0x04 +#define SOFTREF_RST BIT(5) +#define SOFTA_RST BIT(4) +#define SOFTV_RST BIT(3) +#define AUD_RST BIT(2) +#define HDCP_RST BIT(0) +#define HDMI_RST_ALL (SOFTREF_RST | SOFTA_RST | SOFTV_RST | \ + AUD_RST | HDCP_RST) + +#define HDMI_REG_SYS_STATUS 0x0e +#define HPDETECT BIT(6) +#define TXVIDSTABLE BIT(4) + +#define HDMI_REG_BANK_CTRL 0x0f +#define REG_BANK_SEL BIT(0) + +/* HDMI System DDC control registers */ +#define HDMI_REG_DDC_MASTER_CTRL 0x10 +#define MASTER_SEL_HOST BIT(0) + +#define HDMI_REG_DDC_HEADER 0x11 + +#define HDMI_REG_DDC_REQOFF 0x12 +#define HDMI_REG_DDC_REQCOUNT 0x13 +#define HDMI_REG_DDC_EDIDSEG 0x14 + +#define HDMI_REG_DDC_CMD 0x15 +#define DDC_CMD_EDID_READ 0x3 +#define DDC_CMD_FIFO_CLR 0x9 + +#define HDMI_REG_DDC_STATUS 0x16 +#define DDC_DONE BIT(7) +#define DDC_NOACK BIT(5) +#define DDC_WAITBUS BIT(4) +#define DDC_ARBILOSE BIT(3) +#define DDC_ERROR (DDC_NOACK | DDC_WAITBUS | DDC_ARBILOSE) + +#define HDMI_DDC_FIFO_BYTES 32 +#define HDMI_REG_DDC_READFIFO 0x17 +#define HDMI_REG_LVDS_PORT 0x1d /* LVDS input control I2C addr */ +#define HDMI_REG_LVDS_PORT_EN 0x1e +#define LVDS_INPUT_CTRL_I2C_ADDR 0x33 + +/* ----------------------------------------------------------------------------- + * 2) HDMI register bank0: 0x30 ~ 0xff + */ + +/* HDMI AFE registers */ +#define HDMI_REG_AFE_DRV_CTRL 0x61 +#define AFE_DRV_PWD BIT(5) +#define AFE_DRV_RST BIT(4) + +#define HDMI_REG_AFE_XP_CTRL 0x62 +#define AFE_XP_GAINBIT BIT(7) +#define AFE_XP_ER0 BIT(4) +#define AFE_XP_RESETB BIT(3) + +#define HDMI_REG_AFE_ISW_CTRL 0x63 + +#define HDMI_REG_AFE_IP_CTRL 0x64 +#define AFE_IP_GAINBIT BIT(7) +#define AFE_IP_ER0 BIT(3) +#define AFE_IP_RESETB BIT(2) + +/* HDMI input data format registers */ +#define HDMI_REG_INPUT_MODE 0x70 +#define IN_RGB 0x00 + +/* HDMI general control registers */ +#define HDMI_REG_HDMI_MODE 0xc0 +#define TX_HDMI_MODE BIT(0) + +#define HDMI_REG_GCP 0xc1 +#define AVMUTE BIT(0) +#define HDMI_COLOR_DEPTH GENMASK(6, 4) +#define HDMI_COLOR_DEPTH_24 FIELD_PREP(HDMI_COLOR_DEPTH, 4) + +#define HDMI_REG_PKT_GENERAL_CTRL 0xc6 +#define HDMI_REG_AVI_INFOFRM_CTRL 0xcd +#define ENABLE_PKT BIT(0) +#define REPEAT_PKT BIT(1) + +/* ----------------------------------------------------------------------------- + * 3) HDMI register bank1: 0x130 ~ 0x1ff (HDMI packet registers) + */ + +/* AVI packet registers */ +#define HDMI_REG_AVI_DB1 0x158 +#define HDMI_REG_AVI_DB2 0x159 +#define HDMI_REG_AVI_DB3 0x15a +#define HDMI_REG_AVI_DB4 0x15b +#define HDMI_REG_AVI_DB5 0x15c +#define HDMI_REG_AVI_CSUM 0x15d +#define HDMI_REG_AVI_DB6 0x15e +#define HDMI_REG_AVI_DB7 0x15f +#define HDMI_REG_AVI_DB8 0x160 +#define HDMI_REG_AVI_DB9 0x161 +#define HDMI_REG_AVI_DB10 0x162 +#define HDMI_REG_AVI_DB11 0x163 +#define HDMI_REG_AVI_DB12 0x164 +#define HDMI_REG_AVI_DB13 0x165 + +#define HDMI_AVI_DB_CHUNK1_SIZE (HDMI_REG_AVI_DB5 - HDMI_REG_AVI_DB1 + 1) +#define HDMI_AVI_DB_CHUNK2_SIZE (HDMI_REG_AVI_DB13 - HDMI_REG_AVI_DB6 + 1) + +#define MAX_PIXEL_CLOCK_KHZ 150000 +#define HIGH_PIXEL_CLOCK_KHZ 80000 +#define MAX_HDMI_TMDS_CHAR_RATE_HZ 225000000 + +struct it6263 { + struct device *dev; + struct i2c_client *hdmi_i2c; + struct i2c_client *lvds_i2c; + struct regmap *hdmi_regmap; + struct regmap *lvds_regmap; + struct drm_bridge bridge; + struct drm_bridge *next_bridge; + struct gpio_desc *reset_gpio; + int lvds_data_mapping; + bool lvds_dual_link; + bool lvds_link12_swap; +}; + +static inline struct it6263 *bridge_to_it6263(struct drm_bridge *bridge) +{ + return container_of(bridge, struct it6263, bridge); +} + +static bool it6263_hdmi_writeable_reg(struct device *dev, unsigned int reg) +{ + switch (reg) { + case HDMI_REG_SW_RST: + case HDMI_REG_BANK_CTRL: + case HDMI_REG_DDC_MASTER_CTRL: + case HDMI_REG_DDC_HEADER: + case HDMI_REG_DDC_REQOFF: + case HDMI_REG_DDC_REQCOUNT: + case HDMI_REG_DDC_EDIDSEG: + case HDMI_REG_DDC_CMD: + case HDMI_REG_LVDS_PORT: + case HDMI_REG_LVDS_PORT_EN: + case HDMI_REG_AFE_DRV_CTRL: + case HDMI_REG_AFE_XP_CTRL: + case HDMI_REG_AFE_ISW_CTRL: + case HDMI_REG_AFE_IP_CTRL: + case HDMI_REG_INPUT_MODE: + case HDMI_REG_HDMI_MODE: + case HDMI_REG_GCP: + case HDMI_REG_PKT_GENERAL_CTRL: + case HDMI_REG_AVI_INFOFRM_CTRL: + case HDMI_REG_AVI_DB1: + case HDMI_REG_AVI_DB2: + case HDMI_REG_AVI_DB3: + case HDMI_REG_AVI_DB4: + case HDMI_REG_AVI_DB5: + case HDMI_REG_AVI_CSUM: + case HDMI_REG_AVI_DB6: + case HDMI_REG_AVI_DB7: + case HDMI_REG_AVI_DB8: + case HDMI_REG_AVI_DB9: + case HDMI_REG_AVI_DB10: + case HDMI_REG_AVI_DB11: + case HDMI_REG_AVI_DB12: + case HDMI_REG_AVI_DB13: + return true; + default: + return false; + } +} + +static bool it6263_hdmi_readable_reg(struct device *dev, unsigned int reg) +{ + if (it6263_hdmi_writeable_reg(dev, reg)) + return true; + + switch (reg) { + case HDMI_REG_SYS_STATUS: + case HDMI_REG_DDC_STATUS: + case HDMI_REG_DDC_READFIFO: + return true; + default: + return false; + } +} + +static bool it6263_hdmi_volatile_reg(struct device *dev, unsigned int reg) +{ + switch (reg) { + case HDMI_REG_SW_RST: + case HDMI_REG_SYS_STATUS: + case HDMI_REG_DDC_STATUS: + case HDMI_REG_DDC_READFIFO: + return true; + default: + return false; + } +} + +static const struct regmap_range_cfg it6263_hdmi_range_cfg = { + .range_min = 0x00, + .range_max = HDMI_REG_AVI_DB13, + .selector_reg = HDMI_REG_BANK_CTRL, + .selector_mask = REG_BANK_SEL, + .selector_shift = 0, + .window_start = 0x00, + .window_len = 0x100, +}; + +static const struct regmap_config it6263_hdmi_regmap_config = { + .name = "it6263-hdmi", + .reg_bits = 8, + .val_bits = 8, + .writeable_reg = it6263_hdmi_writeable_reg, + .readable_reg = it6263_hdmi_readable_reg, + .volatile_reg = it6263_hdmi_volatile_reg, + .max_register = HDMI_REG_AVI_DB13, + .ranges = &it6263_hdmi_range_cfg, + .num_ranges = 1, + .cache_type = REGCACHE_MAPLE, +}; + +static bool it6263_lvds_writeable_reg(struct device *dev, unsigned int reg) +{ + switch (reg) { + case LVDS_REG_05: + case LVDS_REG_0B: + case LVDS_REG_2C: + case LVDS_REG_3C: + case LVDS_REG_3F: + case LVDS_REG_47: + case LVDS_REG_48: + case LVDS_REG_4F: + case LVDS_REG_52: + return true; + default: + return false; + } +} + +static bool it6263_lvds_readable_reg(struct device *dev, unsigned int reg) +{ + return it6263_lvds_writeable_reg(dev, reg); +} + +static bool it6263_lvds_volatile_reg(struct device *dev, unsigned int reg) +{ + return reg == LVDS_REG_05; +} + +static const struct regmap_config it6263_lvds_regmap_config = { + .name = "it6263-lvds", + .reg_bits = 8, + .val_bits = 8, + .writeable_reg = it6263_lvds_writeable_reg, + .readable_reg = it6263_lvds_readable_reg, + .volatile_reg = it6263_lvds_volatile_reg, + .max_register = LVDS_REG_52, + .cache_type = REGCACHE_MAPLE, +}; + +static const char * const it6263_supplies[] = { + "ivdd", "ovdd", "txavcc18", "txavcc33", "pvcc1", "pvcc2", + "avcc", "anvdd", "apvdd" +}; + +static int it6263_parse_dt(struct it6263 *it) +{ + struct device *dev = it->dev; + struct device_node *port0, *port1; + int ret = 0; + + it->lvds_data_mapping = drm_of_lvds_get_data_mapping(dev->of_node); + if (it->lvds_data_mapping < 0) { + dev_err(dev, "%pOF: invalid or missing %s DT property: %d\n", + dev->of_node, "data-mapping", it->lvds_data_mapping); + return it->lvds_data_mapping; + } + + /* LVDS bit order is reversed only for 30-bit data mappings. */ + if (of_property_read_bool(dev->of_node, "data-mirror") && + it->lvds_data_mapping != MEDIA_BUS_FMT_RGB101010_1X7X5_SPWG && + it->lvds_data_mapping != MEDIA_BUS_FMT_RGB101010_1X7X5_JEIDA) { + dev_err(dev, "%pOF: invalid data-mirror DT property\n", + dev->of_node); + return -EINVAL; + } + + it->next_bridge = devm_drm_of_get_bridge(dev, dev->of_node, 2, 0); + if (IS_ERR(it->next_bridge)) + return dev_err_probe(dev, PTR_ERR(it->next_bridge), + "failed to get next bridge\n"); + + port0 = of_graph_get_port_by_id(dev->of_node, 0); + port1 = of_graph_get_port_by_id(dev->of_node, 1); + if (port0 && port1) { + int order; + + it->lvds_dual_link = true; + order = drm_of_lvds_get_dual_link_pixel_order_sink(port0, port1); + if (order < 0) { + dev_err(dev, + "failed to get dual link pixel order: %d\n", + order); + ret = order; + } else if (order == DRM_LVDS_DUAL_LINK_EVEN_ODD_PIXELS) { + it->lvds_link12_swap = true; + } + } else if (port1) { + ret = -EINVAL; + dev_err(dev, "single input LVDS port1 is not supported\n"); + } else if (!port0) { + ret = -EINVAL; + dev_err(dev, "no input LVDS port\n"); + } + + of_node_put(port0); + of_node_put(port1); + + return ret; +} + +static inline void it6263_hw_reset(struct it6263 *it) +{ + if (!it->reset_gpio) + return; + + gpiod_set_value_cansleep(it->reset_gpio, 0); + fsleep(1000); + gpiod_set_value_cansleep(it->reset_gpio, 1); + /* The chip maker says the low pulse should be at least 40ms. */ + fsleep(40000); + gpiod_set_value_cansleep(it->reset_gpio, 0); + /* addtional time to wait the high voltage to be stable */ + fsleep(5000); +} + +static inline int it6263_lvds_set_i2c_addr(struct it6263 *it) +{ + int ret; + + ret = regmap_write(it->hdmi_regmap, HDMI_REG_LVDS_PORT, + LVDS_INPUT_CTRL_I2C_ADDR << 1); + if (ret) + return ret; + + return regmap_write(it->hdmi_regmap, HDMI_REG_LVDS_PORT_EN, BIT(0)); +} + +static inline void it6263_lvds_reset(struct it6263 *it) +{ + /* AFE PLL reset */ + regmap_write_bits(it->lvds_regmap, LVDS_REG_3C, BIT(0), 0x0); + fsleep(1000); + regmap_write_bits(it->lvds_regmap, LVDS_REG_3C, BIT(0), BIT(0)); + + /* software pixel clock domain reset */ + regmap_write_bits(it->lvds_regmap, LVDS_REG_05, REG_SOFT_P_RST, + REG_SOFT_P_RST); + fsleep(1000); + regmap_write_bits(it->lvds_regmap, LVDS_REG_05, REG_SOFT_P_RST, 0x0); + fsleep(10000); +} + +static inline void it6263_lvds_set_interface(struct it6263 *it) +{ + /* color depth */ + regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, REG_COL_DEP, BIT8); + /* output mapping */ + regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, OUT_MAP, JEIDA); + + if (it->lvds_dual_link) { + regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, DMODE, DISO); + regmap_write_bits(it->lvds_regmap, LVDS_REG_52, BIT(1), BIT(1)); + } else { + regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, DMODE, SISO); + regmap_write_bits(it->lvds_regmap, LVDS_REG_52, BIT(1), 0); + } +} + +static inline void it6263_lvds_set_afe(struct it6263 *it) +{ + regmap_write(it->lvds_regmap, LVDS_REG_3C, 0xaa); + regmap_write(it->lvds_regmap, LVDS_REG_3F, 0x02); + regmap_write(it->lvds_regmap, LVDS_REG_47, 0xaa); + regmap_write(it->lvds_regmap, LVDS_REG_48, 0x02); + regmap_write(it->lvds_regmap, LVDS_REG_4F, 0x11); + + regmap_write_bits(it->lvds_regmap, LVDS_REG_0B, REG_SSC_PCLK_RF, + REG_SSC_PCLK_RF); + regmap_write_bits(it->lvds_regmap, LVDS_REG_3C, 0x07, 0); + regmap_write_bits(it->lvds_regmap, LVDS_REG_2C, REG_DESSC_ENB, + REG_DESSC_ENB); +} + +static inline void it6263_lvds_sys_cfg(struct it6263 *it) +{ + regmap_write_bits(it->lvds_regmap, LVDS_REG_0B, REG_LVDS_IN_SWAP, + it->lvds_link12_swap ? REG_LVDS_IN_SWAP : 0); +} + +static inline void it6263_lvds_config(struct it6263 *it) +{ + it6263_lvds_reset(it); + it6263_lvds_set_interface(it); + it6263_lvds_set_afe(it); + it6263_lvds_sys_cfg(it); +} + +static inline void it6263_hdmi_config(struct it6263 *it) +{ + regmap_write(it->hdmi_regmap, HDMI_REG_SW_RST, HDMI_RST_ALL); + regmap_write(it->hdmi_regmap, HDMI_REG_INPUT_MODE, IN_RGB); + regmap_write_bits(it->hdmi_regmap, HDMI_REG_GCP, HDMI_COLOR_DEPTH, + HDMI_COLOR_DEPTH_24); +} + +static enum drm_connector_status it6263_detect(struct it6263 *it) +{ + unsigned int val; + + regmap_read(it->hdmi_regmap, HDMI_REG_SYS_STATUS, &val); + if (val & HPDETECT) + return connector_status_connected; + else + return connector_status_disconnected; +} + +static int it6263_read_edid(void *data, u8 *buf, unsigned int block, size_t len) +{ + struct it6263 *it = data; + struct regmap *regmap = it->hdmi_regmap; + unsigned int start = (block % 2) * EDID_LENGTH; + unsigned int segment = block >> 1; + unsigned int count, val; + int ret; + + regmap_write(regmap, HDMI_REG_DDC_MASTER_CTRL, MASTER_SEL_HOST); + regmap_write(regmap, HDMI_REG_DDC_HEADER, DDC_ADDR << 1); + regmap_write(regmap, HDMI_REG_DDC_EDIDSEG, segment); + + while (len) { + /* clear DDC FIFO */ + regmap_write(regmap, HDMI_REG_DDC_CMD, DDC_CMD_FIFO_CLR); + + ret = regmap_read_poll_timeout(regmap, HDMI_REG_DDC_STATUS, + val, val & DDC_DONE, + 2000, 10000); + if (ret) { + dev_err(it->dev, "failed to clear DDC FIFO:%d\n", ret); + return ret; + } + + count = len > HDMI_DDC_FIFO_BYTES ? HDMI_DDC_FIFO_BYTES : len; + + /* fire the read command */ + regmap_write(regmap, HDMI_REG_DDC_REQOFF, start); + regmap_write(regmap, HDMI_REG_DDC_REQCOUNT, count); + regmap_write(regmap, HDMI_REG_DDC_CMD, DDC_CMD_EDID_READ); + + start += count; + len -= count; + + ret = regmap_read_poll_timeout(regmap, HDMI_REG_DDC_STATUS, val, + val & (DDC_DONE | DDC_ERROR), + 20000, 250000); + if (ret && !(val & DDC_ERROR)) { + dev_err(it->dev, "failed to read EDID:%d\n", ret); + return ret; + } + + if (val & DDC_ERROR) { + dev_err(it->dev, "DDC error\n"); + return -EIO; + } + + /* cache to buffer */ + for (; count > 0; count--) { + regmap_read(regmap, HDMI_REG_DDC_READFIFO, &val); + *(buf++) = val; + } + } + + return 0; +} + +static int it6263_bridge_atomic_check(struct drm_bridge *bridge, + struct drm_bridge_state *bridge_state, + struct drm_crtc_state *crtc_state, + struct drm_connector_state *conn_state) +{ + struct drm_display_mode *mode = &crtc_state->adjusted_mode; + int ret; + + ret = drm_atomic_helper_connector_hdmi_check(conn_state->connector, + conn_state->state); + if (ret) + return ret; + + return mode->clock > MAX_PIXEL_CLOCK_KHZ ? -EINVAL : 0; +} + +static void +it6263_bridge_atomic_disable(struct drm_bridge *bridge, + struct drm_bridge_state *old_bridge_state) +{ + struct it6263 *it = bridge_to_it6263(bridge); + + regmap_write_bits(it->hdmi_regmap, HDMI_REG_GCP, AVMUTE, AVMUTE); + regmap_write(it->hdmi_regmap, HDMI_REG_PKT_GENERAL_CTRL, 0); + regmap_write(it->hdmi_regmap, HDMI_REG_AFE_DRV_CTRL, + AFE_DRV_RST | AFE_DRV_PWD); +} + +static void +it6263_bridge_atomic_enable(struct drm_bridge *bridge, + struct drm_bridge_state *old_bridge_state) +{ + struct drm_atomic_state *state = old_bridge_state->base.state; + struct it6263 *it = bridge_to_it6263(bridge); + const struct drm_crtc_state *crtc_state; + struct regmap *regmap = it->hdmi_regmap; + const struct drm_display_mode *mode; + struct drm_connector *connector; + bool is_stable = false; + struct drm_crtc *crtc; + unsigned int val; + bool pclk_high; + int i, ret; + + connector = drm_atomic_get_new_connector_for_encoder(state, + bridge->encoder); + crtc = drm_atomic_get_new_connector_state(state, connector)->crtc; + crtc_state = drm_atomic_get_new_crtc_state(state, crtc); + mode = &crtc_state->adjusted_mode; + + regmap_write(regmap, HDMI_REG_HDMI_MODE, TX_HDMI_MODE); + + drm_atomic_helper_connector_hdmi_update_infoframes(connector, state); + + /* HDMI AFE setup */ + pclk_high = mode->clock > HIGH_PIXEL_CLOCK_KHZ; + regmap_write(regmap, HDMI_REG_AFE_DRV_CTRL, AFE_DRV_RST); + if (pclk_high) + regmap_write(regmap, HDMI_REG_AFE_XP_CTRL, + AFE_XP_GAINBIT | AFE_XP_RESETB); + else + regmap_write(regmap, HDMI_REG_AFE_XP_CTRL, + AFE_XP_ER0 | AFE_XP_RESETB); + regmap_write(regmap, HDMI_REG_AFE_ISW_CTRL, 0x10); + if (pclk_high) + regmap_write(regmap, HDMI_REG_AFE_IP_CTRL, + AFE_IP_GAINBIT | AFE_IP_RESETB); + else + regmap_write(regmap, HDMI_REG_AFE_IP_CTRL, + AFE_IP_ER0 | AFE_IP_RESETB); + + /* HDMI software video reset */ + regmap_write_bits(regmap, HDMI_REG_SW_RST, SOFTV_RST, SOFTV_RST); + fsleep(1000); + regmap_write_bits(regmap, HDMI_REG_SW_RST, SOFTV_RST, 0); + + /* reconfigure LVDS and retry several times in case video is instable */ + for (i = 0; i < 3; i++) { + ret = regmap_read_poll_timeout(regmap, HDMI_REG_SYS_STATUS, val, + val & TXVIDSTABLE, + 20000, 500000); + if (!ret) { + is_stable = true; + break; + } + + it6263_lvds_config(it); + } + + if (!is_stable) + dev_warn(it->dev, "failed to wait for video stable\n"); + + /* HDMI AFE reset release and power up */ + regmap_write(regmap, HDMI_REG_AFE_DRV_CTRL, 0); + + regmap_write_bits(regmap, HDMI_REG_GCP, AVMUTE, 0); + + regmap_write(regmap, HDMI_REG_PKT_GENERAL_CTRL, ENABLE_PKT | REPEAT_PKT); +} + +static enum drm_mode_status +it6263_bridge_mode_valid(struct drm_bridge *bridge, + const struct drm_display_info *info, + const struct drm_display_mode *mode) +{ + unsigned long long rate; + + if (mode->clock > MAX_PIXEL_CLOCK_KHZ) + return MODE_CLOCK_HIGH; + + rate = drm_hdmi_compute_mode_clock(mode, 8, HDMI_COLORSPACE_RGB); + if (rate == 0) + return MODE_NOCLOCK; + + return bridge->funcs->hdmi_tmds_char_rate_valid(bridge, mode, rate); +} + +static int it6263_bridge_attach(struct drm_bridge *bridge, + enum drm_bridge_attach_flags flags) +{ + struct it6263 *it = bridge_to_it6263(bridge); + struct drm_connector *connector; + int ret; + + ret = drm_bridge_attach(bridge->encoder, it->next_bridge, bridge, + flags | DRM_BRIDGE_ATTACH_NO_CONNECTOR); + if (ret < 0) + return ret; + + if (flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR) + return 0; + + connector = drm_bridge_connector_init(bridge->dev, bridge->encoder); + if (IS_ERR(connector)) { + ret = PTR_ERR(connector); + dev_err(it->dev, "failed to initialize bridge connector: %d\n", + ret); + return ret; + } + + drm_connector_attach_encoder(connector, bridge->encoder); + + return 0; +} + +static enum drm_connector_status it6263_bridge_detect(struct drm_bridge *bridge) +{ + struct it6263 *it = bridge_to_it6263(bridge); + + return it6263_detect(it); +} + +static const struct drm_edid * +it6263_bridge_edid_read(struct drm_bridge *bridge, + struct drm_connector *connector) +{ + struct it6263 *it = bridge_to_it6263(bridge); + + return drm_edid_read_custom(connector, it6263_read_edid, it); +} + +static u32 * +it6263_bridge_atomic_get_input_bus_fmts(struct drm_bridge *bridge, + struct drm_bridge_state *bridge_state, + struct drm_crtc_state *crtc_state, + struct drm_connector_state *conn_state, + u32 output_fmt, + unsigned int *num_input_fmts) +{ + struct it6263 *it = bridge_to_it6263(bridge); + u32 *input_fmts; + + *num_input_fmts = 0; + + if (it->lvds_data_mapping != MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA) + return NULL; + + input_fmts = kmalloc(sizeof(*input_fmts), GFP_KERNEL); + if (!input_fmts) + return NULL; + + input_fmts[0] = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA; + *num_input_fmts = 1; + + return input_fmts; +} + +static enum drm_mode_status +it6263_hdmi_tmds_char_rate_valid(const struct drm_bridge *bridge, + const struct drm_display_mode *mode, + unsigned long long tmds_rate) +{ + if (tmds_rate > MAX_HDMI_TMDS_CHAR_RATE_HZ) + return MODE_CLOCK_HIGH; + + return MODE_OK; +} + +static int it6263_hdmi_clear_infoframe(struct drm_bridge *bridge, + enum hdmi_infoframe_type type) +{ + struct it6263 *it = bridge_to_it6263(bridge); + + if (type == HDMI_INFOFRAME_TYPE_AVI) + regmap_write(it->hdmi_regmap, HDMI_REG_AVI_INFOFRM_CTRL, 0); + else + dev_dbg(it->dev, "unsupported HDMI infoframe 0x%x\n", type); + + return 0; +} + +static int it6263_hdmi_write_infoframe(struct drm_bridge *bridge, + enum hdmi_infoframe_type type, + const u8 *buffer, size_t len) +{ + struct it6263 *it = bridge_to_it6263(bridge); + struct regmap *regmap = it->hdmi_regmap; + + if (type != HDMI_INFOFRAME_TYPE_AVI) { + dev_dbg(it->dev, "unsupported HDMI infoframe 0x%x\n", type); + return 0; + } + + /* write the first AVI infoframe data byte chunk(DB1-DB5) */ + regmap_bulk_write(regmap, HDMI_REG_AVI_DB1, + &buffer[HDMI_INFOFRAME_HEADER_SIZE], + HDMI_AVI_DB_CHUNK1_SIZE); + + /* write the second AVI infoframe data byte chunk(DB6-DB13) */ + regmap_bulk_write(regmap, HDMI_REG_AVI_DB6, + &buffer[HDMI_INFOFRAME_HEADER_SIZE + + HDMI_AVI_DB_CHUNK1_SIZE], + HDMI_AVI_DB_CHUNK2_SIZE); + + /* write checksum */ + regmap_write(regmap, HDMI_REG_AVI_CSUM, buffer[3]); + + regmap_write(regmap, HDMI_REG_AVI_INFOFRM_CTRL, ENABLE_PKT | REPEAT_PKT); + + return 0; +} + +static const struct drm_bridge_funcs it6263_bridge_funcs = { + .atomic_duplicate_state = drm_atomic_helper_bridge_duplicate_state, + .atomic_destroy_state = drm_atomic_helper_bridge_destroy_state, + .atomic_reset = drm_atomic_helper_bridge_reset, + .attach = it6263_bridge_attach, + .mode_valid = it6263_bridge_mode_valid, + .atomic_disable = it6263_bridge_atomic_disable, + .atomic_enable = it6263_bridge_atomic_enable, + .atomic_check = it6263_bridge_atomic_check, + .detect = it6263_bridge_detect, + .edid_read = it6263_bridge_edid_read, + .atomic_get_input_bus_fmts = it6263_bridge_atomic_get_input_bus_fmts, + .hdmi_tmds_char_rate_valid = it6263_hdmi_tmds_char_rate_valid, + .hdmi_clear_infoframe = it6263_hdmi_clear_infoframe, + .hdmi_write_infoframe = it6263_hdmi_write_infoframe, +}; + +static int it6263_probe(struct i2c_client *client) +{ + struct device *dev = &client->dev; + struct it6263 *it; + int ret; + + it = devm_kzalloc(dev, sizeof(*it), GFP_KERNEL); + if (!it) + return -ENOMEM; + + it->dev = dev; + it->hdmi_i2c = client; + + it->hdmi_regmap = devm_regmap_init_i2c(client, + &it6263_hdmi_regmap_config); + if (IS_ERR(it->hdmi_regmap)) + return dev_err_probe(dev, PTR_ERR(it->hdmi_regmap), + "failed to init I2C regmap for HDMI\n"); + + it->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW); + if (IS_ERR(it->reset_gpio)) + return dev_err_probe(dev, PTR_ERR(it->reset_gpio), + "failed to get reset gpio\n"); + + ret = devm_regulator_bulk_get_enable(dev, ARRAY_SIZE(it6263_supplies), + it6263_supplies); + if (ret) + return dev_err_probe(dev, ret, "failed to get power supplies\n"); + + ret = it6263_parse_dt(it); + if (ret) + return ret; + + it6263_hw_reset(it); + + ret = it6263_lvds_set_i2c_addr(it); + if (ret) + return dev_err_probe(dev, ret, "failed to set I2C addr\n"); + + it->lvds_i2c = devm_i2c_new_dummy_device(dev, client->adapter, + LVDS_INPUT_CTRL_I2C_ADDR); + if (IS_ERR(it->lvds_i2c)) + dev_err_probe(it->dev, PTR_ERR(it->lvds_i2c), + "failed to allocate I2C device for LVDS\n"); + + it->lvds_regmap = devm_regmap_init_i2c(it->lvds_i2c, + &it6263_lvds_regmap_config); + if (IS_ERR(it->lvds_regmap)) + return dev_err_probe(dev, PTR_ERR(it->lvds_regmap), + "failed to init I2C regmap for LVDS\n"); + + it6263_lvds_config(it); + it6263_hdmi_config(it); + + i2c_set_clientdata(client, it); + + it->bridge.funcs = &it6263_bridge_funcs; + it->bridge.of_node = dev->of_node; + /* IT6263 chip doesn't support HPD interrupt. */ + it->bridge.ops = DRM_BRIDGE_OP_DETECT | DRM_BRIDGE_OP_EDID | + DRM_BRIDGE_OP_HDMI; + it->bridge.type = DRM_MODE_CONNECTOR_HDMIA; + it->bridge.vendor = "ITE"; + it->bridge.product = "IT6263"; + + return devm_drm_bridge_add(dev, &it->bridge); +} + +static const struct of_device_id it6263_of_match[] = { + { .compatible = "ite,it6263", }, + { } +}; +MODULE_DEVICE_TABLE(of, it6263_of_match); + +static const struct i2c_device_id it6263_i2c_ids[] = { + { "it6263", 0 }, + { } +}; +MODULE_DEVICE_TABLE(i2c, it6263_i2c_ids); + +static struct i2c_driver it6263_driver = { + .probe = it6263_probe, + .driver = { + .name = "it6263", + .of_match_table = it6263_of_match, + }, + .id_table = it6263_i2c_ids, +}; +module_i2c_driver(it6263_driver); + +MODULE_DESCRIPTION("ITE Tech. Inc. IT6263 LVDS/HDMI bridge"); +MODULE_AUTHOR("Liu Ying "); +MODULE_LICENSE("GPL"); From patchwork Mon Oct 21 06:44:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13843681 Return-Path: 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 5A62FD3C937 for ; Mon, 21 Oct 2024 07:00:59 +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=BIIIq3WaqTPlRAkCDorVhCsrdfeZZ79oo7pSGQXQ3FU=; b=0d2fAO9G9POdDZmf2+vYH++H1z f0SI7FXn2E1GOyvC36Jl3JsHTkaJVzYV5LCFv8i3rWpdkyB3R5fb1mAtZM1Bdl8AO0JjIXBm/AyVs 9kEBxHxP+QHImHrCVKzvJmQI57+9zTwlQUG41smHSgGATn4JIqDOEwNtYiHoBM9OELWX/7FYLldNU tYvl++utsAb5GQckMkaf2rsu2X8wE36m6/7IwBbMVfCmnyTmw9KEmxYwCawrNLgX1xZIMUsM+iV4V iilyLoA6DDZuRfFtSjTAAPEi3768qmfCdqI0ZWMgOFbb1xXXk4Z97em/5qYq0CzuJjZB8dxbFLT6a wTGu/GFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2mPE-00000006IDp-1oqq; Mon, 21 Oct 2024 07:00:44 +0000 Received: from mail-db5eur02on2060a.outbound.protection.outlook.com ([2a01:111:f403:2608::60a] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2mCd-00000006G3u-22XT for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 06:47:45 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Sw31jPdXJ+ZmGlio2OzjdiTlQAbay6xIzqspReLwsciy2Hz7goxapbrPuLKmWonzCvAiManyHC0zTzPexIMkn3ckH1unlVgQpiQKNiERAVH2HMiL00HYdKLW9Qr86sGrnhgzgaiimecOHWNAcoJMLfd0BBl5Di1598c7ThL6q97DNIDPRg/EUdWc0psjYjIlB3P/U2nMlUD+ReixOM+mKwlL2X43DcdfUtesKY3LX3Vi0GkCZtDRBwgZ3Lg0yZite+UNsMIyPaZVRz6AU3QPFzTmU4EG/P0q0grt/YAMH1ZcDc/3iShIbiQQw6xzHjiD3oa7dKMQHcVglPaEeZxjUg== 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=BIIIq3WaqTPlRAkCDorVhCsrdfeZZ79oo7pSGQXQ3FU=; b=yx9Dj4xJO9F9/sxlIU4HIc/5qk4v8JStoYHXVWCV/zNa9Rc8q8gMAqBy+oapVK2DMhXAck02mB6SEEYDJ7SF11cpDiYGV0HwwH473e41yoX3cPgrRsSYKIIbkeQKAf41CGOspWx4GJ82r1L6OzocrqWvYXWV6OP3VZBTCg8Xvs4thXN2jydW8FoPeMez+g90tsa1SH0KeWh1srFemKMfOwUdBGJ/GQY+cGYTyVICt61YAULis2n6PvJYF90xT+tODUBY3+YY4LT8REJxfu2jpHJXJO/dsSrbn/EPYzZI7FgGZIrN44Lth+uNiP+0SxCFW9Fth+UjhEtpQjG88tS9Qg== 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=BIIIq3WaqTPlRAkCDorVhCsrdfeZZ79oo7pSGQXQ3FU=; b=RGpz2I8iDc8vmiYY7zv+nRKQ/KPSu5gYuyZEsuGF3fJW57v3KO3TFH+VCsz2ss6MaQY/HrG34G6wxS1L2MqlgUrD6adotrWDVNqt7Zc7xMRcSE0KYWzEsaNApdDL8zPQ7kltCdoAE2gSbVIgX01J6Tn9sgppHOmieftQUKkVMuwSSjrRkjoiW2b36TnKWqUbZ1ysQ4VVbcUYWwf/3MCw+r6l3iLAyPwVjBwuePyaoid8WBX8b7es+VEcmMzLGPQ9HZ5/HNpIfiryEx1NdfUQhoFt4Cr0d2YDzRvWH2bgJTXdSl69i+R+OD/a6rk6tU1Tu9ylzgRcV9GXtNcGrN2V4Q== 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:47:39 +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:47:39 +0000 From: Liu Ying 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 13/15] arm64: dts: imx8mp-evk: Add NXP LVDS to HDMI adapter cards Date: Mon, 21 Oct 2024 14:44:44 +0800 Message-Id: <20241021064446.263619-14-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> 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: fbf15aff-3a74-4bd8-36e1-08dcf19c4123 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: 4Vt4HKkC4hQZxxwr6b2eY1fI9w8u2qCQkjHf6cvnCqDdlrvmfGotvbBSXimimhKN/2dHDrBNMMx6pdgNReOqkSrDBossVZJOo2vdgQddJoMkzHLk9iSxEcOU3xz2Asa31eIeu2j8hgvwxuvGWWLFmkbHB/a1ES5npFh4hALZjKOoOHBXZuHZV/HVjP4nfurfVhhzz0jrTf63RtaHL4fwtDA7kl/cZcwEEqbnf0NWYJ3h5h6dcs8DITTO5mWoRRXFSkrraU2WpovJ9SLP4GqEp2ZtL2ESNxLtqtDFy6qKYE+nyPuPR7OLVQS8NiiwB7T0ySVER6w9AhIvC5CGfQK2qNfZYp6+NRqPSHVIbWTXLbGZTqLAiiu/K5p4KgjBOyKWW+Fn9B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: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: +iwuP7C6olibC+5ScIOhPmtkh7CeB4TkAdBTELy05A0g2Un3xCMib3/EkKJTxPhIhjTOHyOUpPwlK9EQORauy/JASCSZ3YQT5ceVlJWiBfmUxP8y1lhukdw1Pgdxs2s/76gGw4k15xtMO3zhCOu2UUCwAHBH7oZzVLLfsUp57/F+W/NZwTXtYAcVretIPCUnv1kv5whpp1IhKdECrXzRI6rS4VntC1Qq6t44ji/gX7L4pKEKJnlsHepRLWfS52HfhIVJI/wshciifWRx9soEqUZWkTuMvdU5vwKSxZp+w0yrsDJGFsZR0x6TKFjeaW6b9JVIgYOsjiLq0oMsu77l5zTWErQQXN8rfL0R16DRC2hJ42TJ1qjKr6E7pkK9YYVKfKBf6SVbaK2h7ME0sltgbpvm/R5NoKemkeh98wapqli9Pa6FPTbESG2vsUbe7Fa1Px2Ys3Eu+2ohdO0eDHZ1f8w3Us2bilekyaKhxUyIQtPtDbGkQ0Qb8mWrgvXNTJbX/Zp9903r7kOK4oTzbkNnIYaqnjCpblA3xBuGZgw16wTC5hpbqFoZtNYLFi8wHT6DORPs2ZJEmK+2m8CSYBDW6o1+DoElta87si0sx42kbHJIeibArrJr4YtZf/jFFHlqZatz3C5rypgqbmB5R47dpxIhO4E+aHBpifGYOUjmnd6boAOuCaeqjGvOLqf0c5nffbIaTbLyl32HFM8WznoqboCJoHUBlDEJ635G2nuMowIEEZr7PHtlM0VrKb0W17ZZRK2z/UIJwBT52nREm5OIOx7PVfeNyaDQyCsss5oHzzIh7ZY6KZBgmPVeyHuhRTlx7PoM3Yr6wELB6hChJr7y6w1rIfU2lsy6+TvCJ4wt//CZdVdIbY89/Hx9HwjrLh/446ngfUS+Hw0rAEAwK2YOXDXeEDEdSdJtCtKni8X0jt06e08+1x+0UXofCV3211Yc8cQFjHS7PHJ/+MW2BjnAblkR33Q/KYULg9ofDvX+zq9um8XnCGz4WxJbEmszVs3Dyb1noRMbwbacKvWqDjZ2EMd7Ur2BQAMm/XBVDov5Z17ni87pdx2F3zm9n3JZoOdIPS3iiuZ0jSGQ4TD5qrEO1lHQYTDwfbIGweda3tZjq/K3qzx9jucKXXAUPaKsQi3kE4yMg4xCnZku9rB/Ua9m/8FKsYBQiCcrqwC8v2ExhD1N4XuOtV4GeXuhpcDiPQKjjHiJ5puoSMCriJSP9/m06y3bEtJWZWQX1Bl6X5dQPuQ9totsM8s80SeeTMzdAxhAvSY3DBFUfRYA4dRcv0K9ZCckRiHIAyKmEPUjYQWl0P0ZEqxcWOLjpzpdfNI9s74cfj050qKBqXE7R0WaE04BpLtnsDt3g2GlBgUeQWDQOhgNYcSELqr4Vyz3+41kwwe1KK7gyFre96DFU0T1Fk3c/x/i0SXGaGHRs6BsCEbk9eH9/9Umcb49n4lcpem3O/QymFt4DQe6WYCDFv6Bl2ZwBw9gvswh7o12EHp6WNzKB2r/ZSwFpphjv9adkdnx8KKgyudP4UPcTkYXCeKbLQIskc0i5iF4xYNeeQH2mIitnZFY+OWbZ3bHWfuC7mWuXjxb X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: fbf15aff-3a74-4bd8-36e1-08dcf19c4123 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:47:39.2474 (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: rUDwxqoI+RPzjqhxmzsZhE4jFWQVjFGHVK61KN9JbFDBWqp/oStJTmYGWACUCdxluNxriGElQDCkdMk9wByL8Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8440 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_234744_079739_189C2220 X-CRM114-Status: GOOD ( 14.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org One ITE IT6263 LVDS to HDMI converter is populated on NXP IMX-LVDS-HDMI and IMX-DLVDS-HDMI adapter cards. Card IMX-LVDS-HDMI supports single LVDS link(IT6263 link1). Card IMX-DLVDS-HDMI supports dual LVDS links(IT6263 link1 and link2). Only one card can be enabled with one i.MX8MP EVK. Add dedicated overlays to support the below four connections: 1) imx8mp-evk-lvds0-imx-lvds-hdmi.dtso: i.MX8MP EVK LVDS0 connector <=> LVDS adapter card J6(IT6263 link1) 2) imx8mp-evk-lvds1-imx-lvds-hdmi.dtso: i.MX8MP EVK LVDS1 connector <=> LVDS adapter card J6(IT6263 link1) 3) imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtso: i.MX8MP EVK LVDS0 connector <=> DLVDS adapter card channel0(IT6263 link1) i.MX8MP EVK LVDS1 connector <=> DLVDS adapter card channel1(IT6263 link2) 4) imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtso: i.MX8MP EVK LVDS1 connector <=> DLVDS adapter card channel0(IT6263 link1) i.MX8MP EVK LVDS0 connector <=> DLVDS adapter card channel1(IT6263 link2) Part links: https://www.nxp.com/part/IMX-LVDS-HDMI https://www.nxp.com/part/IMX-DLVDS-HDMI Signed-off-by: Liu Ying --- v3: * Use data-mapping DT property instead of ite,lvds-link-num-data-lanes. (Dmitry, Biju) v2: * Add ite,lvds-link-num-data-lanes properties. arch/arm64/boot/dts/freescale/Makefile | 8 ++++ .../imx8mp-evk-imx-lvds-hdmi-common.dtsi | 29 ++++++++++++ ...8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtso | 44 +++++++++++++++++++ ...imx8mp-evk-lvds0-imx-lvds-hdmi-common.dtsi | 43 ++++++++++++++++++ .../imx8mp-evk-lvds0-imx-lvds-hdmi.dtso | 28 ++++++++++++ ...8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtso | 44 +++++++++++++++++++ ...imx8mp-evk-lvds1-imx-lvds-hdmi-common.dtsi | 43 ++++++++++++++++++ .../imx8mp-evk-lvds1-imx-lvds-hdmi.dtso | 28 ++++++++++++ arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 6 +++ 9 files changed, 273 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-imx-lvds-hdmi-common.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtso create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-lvds-hdmi-common.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-lvds-hdmi.dtso create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtso create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-lvds-hdmi-common.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-lvds-hdmi.dtso diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 91b72a1d5bb8..efef313b2dcf 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -207,7 +207,15 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-wifi-ivy.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-wifi-mallow.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-verdin-wifi-yavia.dtb +imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0-dtbs += imx8mp-evk.dtb imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtbo +imx8mp-evk-lvds0-imx-lvds-hdmi-dtbs += imx8mp-evk.dtb imx8mp-evk-lvds0-imx-lvds-hdmi.dtbo +imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0-dtbs += imx8mp-evk.dtb imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtbo +imx8mp-evk-lvds1-imx-lvds-hdmi-dtbs += imx8mp-evk.dtb imx8mp-evk-lvds1-imx-lvds-hdmi.dtbo imx8mp-evk-mx8-dlvds-lcd1-dtbs += imx8mp-evk.dtb imx8mp-evk-mx8-dlvds-lcd1.dtbo +dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds0-imx-lvds-hdmi.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-lvds1-imx-lvds-hdmi.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-evk-mx8-dlvds-lcd1.dtb imx8mp-tqma8mpql-mba8mpxl-lvds-dtbs += imx8mp-tqma8mpql-mba8mpxl.dtb imx8mp-tqma8mpql-mba8mpxl-lvds.dtbo diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-imx-lvds-hdmi-common.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-evk-imx-lvds-hdmi-common.dtsi new file mode 100644 index 000000000000..44b30e9b3fde --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-imx-lvds-hdmi-common.dtsi @@ -0,0 +1,29 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 NXP + */ + +/dts-v1/; +/plugin/; + +&{/} { + lvds-hdmi-connector { + compatible = "hdmi-connector"; + label = "J2"; + type = "a"; + + port { + lvds2hdmi_connector_in: endpoint { + remote-endpoint = <&it6263_out>; + }; + }; + }; +}; + +&lcdif2 { + status = "okay"; +}; + +&lvds_bridge { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtso b/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtso new file mode 100644 index 000000000000..4008d2fd36d6 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-dlvds-hdmi-channel0.dtso @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 NXP + */ + +#include "imx8mp-evk-lvds0-imx-lvds-hdmi-common.dtsi" + +&it6263 { + ports { + port@0 { + reg = <0>; + dual-lvds-odd-pixels; + + it6263_lvds_link1: endpoint { + remote-endpoint = <&ldb_lvds_ch0>; + }; + }; + + port@1 { + reg = <1>; + dual-lvds-even-pixels; + + it6263_lvds_link2: endpoint { + remote-endpoint = <&ldb_lvds_ch1>; + }; + }; + }; +}; + +&lvds_bridge { + ports { + port@1 { + ldb_lvds_ch0: endpoint { + remote-endpoint = <&it6263_lvds_link1>; + }; + }; + + port@2 { + ldb_lvds_ch1: endpoint { + remote-endpoint = <&it6263_lvds_link2>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-lvds-hdmi-common.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-lvds-hdmi-common.dtsi new file mode 100644 index 000000000000..6eae7477abf8 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-lvds-hdmi-common.dtsi @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 NXP + */ + +#include +#include "imx8mp-evk-imx-lvds-hdmi-common.dtsi" + +&i2c2 { + #address-cells = <1>; + #size-cells = <0>; + + it6263: hdmi@4c { + compatible = "ite,it6263"; + reg = <0x4c>; + data-mapping = "jeida-24"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lvds_en>; + reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + ivdd-supply = <®_buck5>; + ovdd-supply = <®_vext_3v3>; + txavcc18-supply = <®_buck5>; + txavcc33-supply = <®_vext_3v3>; + pvcc1-supply = <®_buck5>; + pvcc2-supply = <®_buck5>; + avcc-supply = <®_vext_3v3>; + anvdd-supply = <®_buck5>; + apvdd-supply = <®_buck5>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@2 { + reg = <2>; + + it6263_out: endpoint { + remote-endpoint = <&lvds2hdmi_connector_in>; + }; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-lvds-hdmi.dtso b/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-lvds-hdmi.dtso new file mode 100644 index 000000000000..9e11f261ad13 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds0-imx-lvds-hdmi.dtso @@ -0,0 +1,28 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 NXP + */ + +#include "imx8mp-evk-lvds0-imx-lvds-hdmi-common.dtsi" + +&it6263 { + ports { + port@0 { + reg = <0>; + + it6263_lvds_link1: endpoint { + remote-endpoint = <&ldb_lvds_ch0>; + }; + }; + }; +}; + +&lvds_bridge { + ports { + port@1 { + ldb_lvds_ch0: endpoint { + remote-endpoint = <&it6263_lvds_link1>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtso b/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtso new file mode 100644 index 000000000000..af2e73e36a1b --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-dlvds-hdmi-channel0.dtso @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 NXP + */ + +#include "imx8mp-evk-lvds1-imx-lvds-hdmi-common.dtsi" + +&it6263 { + ports { + port@0 { + reg = <0>; + dual-lvds-even-pixels; + + it6263_lvds_link1: endpoint { + remote-endpoint = <&ldb_lvds_ch1>; + }; + }; + + port@1 { + reg = <1>; + dual-lvds-odd-pixels; + + it6263_lvds_link2: endpoint { + remote-endpoint = <&ldb_lvds_ch0>; + }; + }; + }; +}; + +&lvds_bridge { + ports { + port@1 { + ldb_lvds_ch0: endpoint { + remote-endpoint = <&it6263_lvds_link2>; + }; + }; + + port@2 { + ldb_lvds_ch1: endpoint { + remote-endpoint = <&it6263_lvds_link1>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-lvds-hdmi-common.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-lvds-hdmi-common.dtsi new file mode 100644 index 000000000000..8cc9d361c2a4 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-lvds-hdmi-common.dtsi @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 NXP + */ + +#include +#include "imx8mp-evk-imx-lvds-hdmi-common.dtsi" + +&i2c3 { + #address-cells = <1>; + #size-cells = <0>; + + it6263: hdmi@4c { + compatible = "ite,it6263"; + reg = <0x4c>; + data-mapping = "jeida-24"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lvds_en>; + reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; + ivdd-supply = <®_buck5>; + ovdd-supply = <®_vext_3v3>; + txavcc18-supply = <®_buck5>; + txavcc33-supply = <®_vext_3v3>; + pvcc1-supply = <®_buck5>; + pvcc2-supply = <®_buck5>; + avcc-supply = <®_vext_3v3>; + anvdd-supply = <®_buck5>; + apvdd-supply = <®_buck5>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@2 { + reg = <2>; + + it6263_out: endpoint { + remote-endpoint = <&lvds2hdmi_connector_in>; + }; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-lvds-hdmi.dtso b/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-lvds-hdmi.dtso new file mode 100644 index 000000000000..527a893a71b2 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk-lvds1-imx-lvds-hdmi.dtso @@ -0,0 +1,28 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 NXP + */ + +#include "imx8mp-evk-lvds1-imx-lvds-hdmi-common.dtsi" + +&it6263 { + ports { + port@0 { + reg = <0>; + + it6263_lvds_link1: endpoint { + remote-endpoint = <&ldb_lvds_ch1>; + }; + }; + }; +}; + +&lvds_bridge { + ports { + port@2 { + ldb_lvds_ch1: endpoint { + remote-endpoint = <&it6263_lvds_link1>; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts index d26930f1a9e9..68e12a752edd 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts @@ -938,6 +938,12 @@ MX8MP_IOMUXC_SPDIF_TX__I2C5_SCL 0x400001c2 >; }; + pinctrl_lvds_en: lvdsengrp { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO10__GPIO1_IO10 0x1c0 + >; + }; + pinctrl_pcie0: pcie0grp { fsl,pins = < MX8MP_IOMUXC_I2C4_SCL__PCIE_CLKREQ_B 0x60 /* open drain, pull up */ From patchwork Mon Oct 21 06:44:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13843682 Return-Path: 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 B0717D3C937 for ; Mon, 21 Oct 2024 07:02:26 +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=O/YWO8KAng8wET1DAqIOHkQDWpD06Wb47nIdw7i8W9A=; b=j0HxpXWZRLkrhOPE2OqydnNtc5 EYnAFSi1mrnARBLDJxkerNRXQUDYbahMNUzqNRYUGDfJxTZss4xkwT+X9smn/uPJFJ/hrQWoApElj nwTCG2fdHE5JHZA/OX8QLxyOIx0vDzfCEudYw7kO1h6gsAyRP75svxLqp0M3EL5RihffQ4slZCzJk 07YCTKdJf6UnyGTMYSJ9HMg/3aYsll0ATAPSw97qCANZJpYwHNHvbGb8koz+soyo4z/dD4isBLNQX uJNkjfkutjWpYOVWFw1UaR/ZAvlIXLBfT6rmIWiaUIYMKRiPntiMTecaE3f7GMejcrkBOWmMalRXh IO+pKfAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2mQg-00000006IP6-1pYG; Mon, 21 Oct 2024 07:02:14 +0000 Received: from mail-am0eur02on20611.outbound.protection.outlook.com ([2a01:111:f403:2606::611] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2mCn-00000006G75-42lP for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 06:47:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Jm2WN3LimxlYUHtEKVL0QEz+B0GsS5tBGxIWZDYZ8IuM1k3Rnb2buXy8lrIrc79Fju0sZ8FL4zLLWZZXPZjGDdBeLHEdw5FHQAdaXR2vUicFplBnRtaB/eRewnxKgbz0xj6TSTumYcf8Z2oF6iF6/LAptc7qI12nsaBH0UyyzzeqQqxE7mTYP9/vxKNCoO3+oylzKVfwN3AsV+j7+baxKlEChyrepSkeJOczSpKCjHYlNfD4f79TCZjSKzMX3dYNG/13g0GY3XJFJYo2F1X/t+Rbuc3FqTR81WIPOz+JkYtf0oBVi0WozmzAf9aoeAC/rjjmg9qpQ4FvkE0EkynOsw== 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=O/YWO8KAng8wET1DAqIOHkQDWpD06Wb47nIdw7i8W9A=; b=acQK5OkKrk54/7r4VBREmRTPxagzz/x1fK2TE+BfKKq8+F6Flwb3zY8dA9nlRNJIjqOtdQ14r/sbpX0jmc2ITIOxvnvOFSesRbg9jQumQLjI5ULREpLF2mxAbs3ydvqheVEf6FRtU+2CcTkuibopFXL6oLJhT1gIPamJw2i2Wrezysq/noEZcNQorNLDOa0Ql3//tcZRG1NdoDKXfo+fVdYX7X+2CtlOupKC3PYeASjN18K1A612EMPSrk576j4S083YF4tLlU5LYq6kfIFtfNtDEGjWfaP6sC4jVWSEZCs/7G6WG4ilTFhwBoA5R+76AudJfw81u7TO92mqcTxfgA== 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=O/YWO8KAng8wET1DAqIOHkQDWpD06Wb47nIdw7i8W9A=; b=Gq3+lbWSb8LvassGiiodbO0cHn1WWg62wfnHP2tJhKcmEwa0L6nCpVAWai6pIxItU+d2lD6YNNYynBpcj/idElthhskJtC1/Cm6jKkRPOv06QhurkdTekOsaQyOY5Y7USduiFLcZFhGlxO+obR0lnHRP7qHWdSrKnjmtQCeH3YeKYq3LmKw8NMIx+8q8BRZcVDxKm0MLECYLF6SOw3nrwgmxT9j2WtvRpxkZORmybOwJbWytjjPt5Aw1dFjkfZNP6aX/eD8Y+3B6q/ztoWmz1pydOg6BOMUP9DBBscH5MMzpY4uoDZW9GOnPrH8mDfL93fknVdbsuX36MDrffYtK5w== 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:47:50 +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:47:50 +0000 From: Liu Ying 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 14/15] arm64: defconfig: Enable ITE IT6263 driver Date: Mon, 21 Oct 2024 14:44:45 +0800 Message-Id: <20241021064446.263619-15-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> 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: 5ab2ff5d-821e-4a08-d4bb-08dcf19c47b8 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-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eKnBzv/2ZTarS4976pf0dZzIwOV7L+jJlB1R/S+VuSZclbxE5q6G27SiLQvj290GdBkCLbSnHZw1gQyyOpVcBdfeP/yscZyA7WC+YRCkRsdhFm+M5ZHl1QQO0BlSKFdItYpQa3T8CTr7wHKHpAmddm8cjwzQ81B69d4d1nXNdR48zjX5xnU6Xs14+3Eoe95XWCHVBl5oAp7rP5bfsh9Z/qCpPrUb5PkxM55Af/WaMIwfW7EJfyUIHBsc0lc/so2ApUuCbSTMl5EktG7KVjCSjW31M2ZBEfYKzc7INmBHtaIdiezw6fPHNU4a2xz609oOT4= 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: RN+eyPUqPKwwo1eXquHe6WGjVbEhnLymJTOufpwe48FQPTJbAyo/ZXqEzGuDkL2F54W36Mg0gJKEZRaejuRrReHDTZUdwg3u647UOqcfrEVTSxgU+SkAr2fexGVHj4Ece1nP1FJmwQNic5nwfGlN21VuiRto9n1vC2Je4yVjAuZt5mcZH7YVn+Pf+HikNF032Wr0kOB84Wf0AVhhSy4GGteETnI/ZzQOmU7d8iIINRGhM75PQXalo8V2WyYh6XaBa50wp9dlgcznVoeXcce09xRH/t3XOzMWssU2bVyfNCgZwAOYOM1xIKA00tb71ON+4QUW5B6sTJunXiLB7exWILCeacdI6XJGI/16Tc7UtNugoZVcQ546XETGLSVrxSBEeKeY6yZ9c4yShrZxVDJ9IN3ig9BdaMAT7P3VxbwXk7gzzU5nf7IChKrqTcAt2nnsHNtqTLrpN3falX7ju91sSpl4krWLOAn/F4l9LK7YUTr1HPaLtPynASdTJKf7Weqr3LCH7k4Td229PnixEzzcqyMJdEm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exchange-CrossTenant-Network-Message-Id: 5ab2ff5d-821e-4a08-d4bb-08dcf19c47b8 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:47:50.2773 (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: kO3sTqULEO4128OtGZK0oqIdTMQ9ju0XOwiAdodAUq1JaE5vR3MJlvGIvCQsGkl2q7HVgN2nlVjRuJYaIhdCwQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8440 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_234754_037644_AC52C80E X-CRM114-Status: UNSURE ( 9.02 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org ITE IT6263 LVDS to HDMI converter is populated on NXP IMX-LVDS-HDMI and IMX-DLVDS-HDMI adapter cards. The adapter cards can connect to i.MX8MP EVK base board to support video output through HDMI connectors. Build the ITE IT6263 driver as a module. Signed-off-by: Liu Ying --- v3: * No change. v2: * No change. arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 36b33b9f1704..d249df72e2bd 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -899,6 +899,7 @@ CONFIG_DRM_PANEL_SITRONIX_ST7703=m CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA=m CONFIG_DRM_PANEL_VISIONOX_VTDR6130=m CONFIG_DRM_FSL_LDB=m +CONFIG_DRM_ITE_IT6263=m CONFIG_DRM_LONTIUM_LT8912B=m CONFIG_DRM_LONTIUM_LT9611=m CONFIG_DRM_LONTIUM_LT9611UXC=m From patchwork Mon Oct 21 06:44:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13843683 Return-Path: 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 50C9AD3DEA1 for ; Mon, 21 Oct 2024 07:03:56 +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=0DM6oCeQgNkjVgjNjV0uebscUNG8h/jY71tmJ2Utz6A=; b=oq4ZwXKvcVNOAvEIJqtDoMWgt5 4IWdbKe80r5vb8D9Cd/vrR7zeRkHKRdWHexezwFOYPNWNX6WK89E7IAKSFP2aF/nZUeouQz02Hf3Y sYF7OFeqPN8CZuuTpojo5bNOeqFB7BWtv2o9tHSf+09NuaVnpfmMtRnBQDpu/xF1Oo+hqOyN479X0 bQnaV2VdoCAH3BFc+n4hkLt6GX/GC75LfjTYwUNMZYvI8oPg215WEYjr1RBCaZu3AyV8+cxvdOyhW 8dTFhSH5iOtK0+/xwG6uB+pHR8Yyi9JKxRwgQOsl/sBR2Hir+cNVgY1cTnNE4H2qysZY4s2h9uOsh /fqvjTMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t2mS7-00000006IXn-1GvQ; Mon, 21 Oct 2024 07:03:43 +0000 Received: from mail-am0eur02on20606.outbound.protection.outlook.com ([2a01:111:f403:2606::606] helo=EUR02-AM0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t2mCx-00000006GAu-3nJB for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2024 06:48:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IrWeaTrY/PO2DiBkAPMOOEiruOWhTmLlfKaElixNjd3sCB3bFejuETqlOCKGlpo1zbT33AmMRKBj5l+YqvT3vc6kZXNFtoTtR+9kn7AL9wWBVLEBOZZtjwUCheUInXC46WBrufiBhiK4ECpny0wE6ESYbAAUk0kbw9Su8ath2AVHz/hqPxg7sdu06Oop6TgOy8Ddw+u+VGgMe6eDYASfdS+m7Jo9o74KKq2wmo7FZ1yQk1vEIMlPf3M0bv6G1TVuyUQ6nJZqdJNrW4idrfm3svpBbniYU5bm1+S2jlP2e0K2B4XkbJBlhaOvv37AiUMOyALcxhOvc1DmxPKsIRp1AA== 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=0DM6oCeQgNkjVgjNjV0uebscUNG8h/jY71tmJ2Utz6A=; b=K1l7vKoYNmalc/tCr9sPD1PcGw5W0ZeMB3IgfBdMCNOW9S4yfoPIN16uSwYHCn3tN+X1mOk4VP9YdziQgp6pCbQozhEFL657J8mBEhqri2DZnA4MFBgzmnSCedBRRui7hxc6Aywo0U2rtBe/S/VpJhZ/LRI/VaP0BAyykdSlgGORgFLU76tf78y5mdMxUS0Ip8t9RGHhEltwcLhYkh88xf01pHcMiReaOJBrwIbRPK212v/+TbhMXZHS2a+DjOGj5G+B/1VhDk7UtJmc+8aoa08jbap92khTb2Dn9V63I2IvdYC2s0rQlT2jW0CJy1J/Zp+eMTQJg7JxT3AKODG1/A== 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=0DM6oCeQgNkjVgjNjV0uebscUNG8h/jY71tmJ2Utz6A=; b=A7molt7PA9BlAE4D0zEr7BfX9+aKoS9+p8oUGu0lot1r5C9uvaTrBTzfvZQzMx3n8tcP3NQhrOrsbtkbZ3Pxpp+FGIRDUaInTY/2fg8tJWxyS3gDw9ugfvCpPd+iGwk+/iRhFFUIFJkRppGTbeCKxYB1+VkaRCtMEOnAPog97F/q7zAGrNbUDVHRLdkdz2sc/NNNBBqsuCOOJMuCii0h0RpojCVCJLV+m4B3PegcBaOiGtOtb94bTa7mrEOxXqlHBHeyV4t7NqRTIC1/er73lCj67WvTGVHdnqKjGZl/gM131Gmm+aDaTLro56vjipDYXyfKz9iq+wVeN/v4HzR2Qw== 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:48:01 +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:48:01 +0000 From: Liu Ying 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 15/15] MAINTAINERS: Add maintainer for ITE IT6263 driver Date: Mon, 21 Oct 2024 14:44:46 +0800 Message-Id: <20241021064446.263619-16-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> 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: 2d05aea2-5233-4215-538c-08dcf19c4e10 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: J8Z7767AtUQ7Ca5MlwnurpMoyACX0RscxUNbYrUyC8soHiv/K0qgyObGh7Bb8iqpbwHT8GxnpUFiTpBMTWYiqZc00qffkOn0+PW4j6nznITGhO8uZfCXFEvgaIA9iuUVumxKjktmyAaG3d63MyZ/tlV3j3AAXkYUMNdd4T27hyPGpFYUpmGHdwOfWmSElymmWs/UJ0m6/OQAvmdU+fFrScV1dR/5WvUL38sO+5BpndXBuCfsCyq3JKi2O05H1O1G2KO3gaoR5htxxIq+YSm0T0c1rT7lE+xKNv4765/kdLndK4FnnBMp6lSMRG/fF0dolc2P8EnKRXy0NzgpVYUMhpJg2JMmEhsFU3pYf1My7sODaZYgh+/2ko0fmEhLElMN/4XMlD5NnRNkIV7yZmmsYIWxcElBKTtaSAGCGrrOoxZgQ3sKqMUWskAn3CXSXsbe9j/Iqx+YyiYNvyqF+1p026DLdsysTqNFvKVEJ0FLvh0lgjEAd2E4dSjYZ96ELKLEbs/S1Cv5YWdKbHtD2dIMGPU1cVHSeeTP7iKIjUNsgvdWNfz5tODI3IAXod4PPpx7H/zUTQnye6/QwwJ6GTxLNgKrlG4ODtYbyxDS0CRHaZv6J4rba5F7m2obaPOsY6lUPjvI3wq/mTgQWmlCCgL5QqWHHADyxchkZdanPETDAY2VPtJCfOMKDeCnLK4fPJb3ZcwZpZFncDf/c55qoKIes9rlicSWekIg67f+YHyJrMLUc8mhXwFmW1P00ybLPUhJPoYA+/LbtD5+mAG2R2XqIRyM3mze0yAPt2ozBZO6m8vi25Fhwy7swGZX35ruH7ErSCAqTg89GqIVserWatAz8wrq+N0grz8YrMRBlnjWAuFTs1Z/DgiAUm2j5Hfbuw/e5S4+S3TK/mMGrA7JeJRgDX/YqajDF5scTiXvDZEh3os/PXRHBe3eD3XvvDmvQbqioMK0X/tkp6LbtjFiItrmO5iSH3sr8uuvafjrKI4cnHHHiPkVGBfPX93+9Z5C6RhC5aqy3J+IQiABBiV2wEIj4a3ceqhRGcnJHA4lOE65j2jrEEo0tEyJUm9BYz75YA3npFU6BLI4lP2ZUvDuKGu34TUSeUu2IpPRYcPeK2ZAL0QCfiYga+32fdnN7PywavRTGrCJiiz4ZV76RkSZ6yV1cZK6PWhYl9916rqIfZ3+e5cKiqaH50sdPBuHo0u8QQgg9EBo+L2/oBCx2LNR6eKPuYce02OgOLTZySPaUdDADCwz/tivtqBN86MViwtNaCQuHV2HMqbXF7fTgORx7RVO7826nxPSall59HSoN/7kevhGXujr62rG02d2Fgzp8fCn 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: P5SBi5Lukd8ne2i6bOn8Gbs3+BnN75wieshO51T6K9ZP1aOEWBytQfZayLar/4LIDAvrcdkmsFmS7WCm9vrKxYTia8FeIzrfQUWINUERxRsQxBCLoOsMiy6zKVxb8/A5oJr8USotCz2hbTXyHX1IOwNcCLQcpnTU8QcaDIJxdicfJuOU6DqP99CQkU714DIrcIhEZwktKEAPx9cYrLJUN54k6Dk6dFQ5SNqy58aqJQO53Pmkr2txeJBYbnYTLOXw+XY3ZpQcnMP7Y+PR8wI39hTqF8OJmjJQP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M9WFszgAmXZGsaoGUz+4Tahy5b3rrcu61NKIi9SU4UcowQTthQbBiK5txxdvuy+Yu4m4igbIcnmnRzPTJ/uCu31dCBDZBJekgLFN/q12515/dItNK2NfxzkNjOK8DHwlbMLfZPTJAqF0fNE8vI+tk1rssOIh/CNiu9QQ9nClGVNVwMpKLGQQkSJJgIP6Y/O2YDYJQNgml1w2vyVEoLgY75xzpEoBPtzr6/t53Z8jTQ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2d05aea2-5233-4215-538c-08dcf19c4e10 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:48:00.9521 (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: 47K9q6cjrb14AmNBx5Fr0BrvcElKOwNlvRB/pkqNndRio2CT8IN5R9xYjcE6lDB04IS8dXP0dz2/89HgEJu4aw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8440 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241020_234803_967047_5F2E2805 X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add myself as the maintainer of ITE IT6263 LVDS TO HDMI BRIDGE DRIVER. Signed-off-by: Liu Ying --- v3: * No change. v2: * New patch. (Maxime) MAINTAINERS | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index a858224b59d5..615ba0e905af 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12234,6 +12234,14 @@ W: https://linuxtv.org Q: http://patchwork.linuxtv.org/project/linux-media/list/ F: drivers/media/tuners/it913x* +ITE IT6263 LVDS TO HDMI BRIDGE DRIVER +M: Liu Ying +L: dri-devel@lists.freedesktop.org +S: Maintained +T: git https://gitlab.freedesktop.org/drm/misc/kernel.git +F: Documentation/devicetree/bindings/display/bridge/ite,it6263.yaml +F: drivers/gpu/drm/bridge/ite-it6263.c + ITE IT66121 HDMI BRIDGE DRIVER M: Phong LE M: Neil Armstrong