From patchwork Sun Feb 12 04:08:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 55876 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1768682wrn; Sat, 11 Feb 2023 20:37:17 -0800 (PST) X-Google-Smtp-Source: AK7set/AW6TZHOwBlwGhChvahSMt3utanOy77v8pyWGUvKc2Pm8Vx/HCp+2ORk87fBzqE3/epxju X-Received: by 2002:a17:90b:3146:b0:231:153b:d108 with SMTP id ip6-20020a17090b314600b00231153bd108mr16115326pjb.20.1676176637109; Sat, 11 Feb 2023 20:37:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1676176637; cv=pass; d=google.com; s=arc-20160816; b=E3+5v2D06uwhtHG+nDY32J278dKylplhig/l9S3GpgWfEs4GnlM44GwlIYnDIm+uRr mTPePeYD3gaBAmpy9ZC4qd89H3xD1J4HGES2TQBHMnPAEMjk4YCZo9ZYPFjA8Us7GHmP 8isj4RAxUBgCN8sm0cGVtZDU58aOGMNKD73UmsA/zPjd+ENlvuRbzJaisSedOpIQfqU7 yDBjVHejpIUtfHGj5W8flMoNq8tA/PcQuBQFYyXwWij+jpKAtbl757pPgM6MOjcT/5z1 47kGORjDrgjHlCGQRFR8ZuBaM67LdCokLfoNFt1Ea2RtYZJYy7d4Ps6R+ZkcrsPAgCqh MsNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vGO1zSxZ9NgzNArzpe1C73I3mD6yNaz/wIg2gW9T/hs=; b=ir/52Nxeoe/jW84Kkt1naDkkcSvsdZIJx3aafHtNrKNOw+eJrGKBz1gNRA4/raFjeu a7LLwoMSEXVckQucOcCJrIllOfPWY+pSF5yiJHkUTZvbvTde0l3Gobq0DMjrrIm9il42 rhvpnY9feS52f9k/NUcjSHsI3zerJbECn4CH2NeZOGytIG17D7Oe9It40/YXDQPM8Vsn VV2KXg5c3tdbZL/oLT1vpqRNvFCv64VaLn82I8Qb+AfUF26AyPa0DRqy4HrGyuxz7+dY s9SXSZQ7q6X3pL4dKP7PdDbMXmPiorwNBEOw7+dPd6K13JMLxuNQXRGD6ckmefVAkLA5 SnCg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=DzfAXoNG; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh8-20020a17090b4ac800b00226e01736f8si9501530pjb.109.2023.02.11.20.37.04; Sat, 11 Feb 2023 20:37:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=DzfAXoNG; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbjBLEH4 (ORCPT + 99 others); Sat, 11 Feb 2023 23:07:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229663AbjBLEHu (ORCPT ); Sat, 11 Feb 2023 23:07:50 -0500 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2080.outbound.protection.outlook.com [40.107.15.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6417B166D7; Sat, 11 Feb 2023 20:07:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b2BGQmkzCs0Q2bSybKTDkR5a9JaPAIalIDx4/70pfwgblu7B1hc4UydnNjXxQo9SdlUaee8zRc95dS8MEdZJUdz83gI9gLyIy/pBI5ZFhHsvvihHSjJGuQspZQb9u/BRLLZ6EG7mAgE23B/8MXrCNCWtyWao3/ODB3OyubOES4jXWe72U/oEjJFsNaiSY92f0kHSvC8WqcU592pZ0er2+cjH8vBB/64nYCfihj6uGuWGMpsHcdnuP0vvFaiBE9MpZpjcXo4hi0q/2cKPl/B78yw51LZcCSHqJooBoy3PbK9UUt5RSRuBwFd3gjP29TbwcZNp2Z3+7uM5/onH3tgmog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vGO1zSxZ9NgzNArzpe1C73I3mD6yNaz/wIg2gW9T/hs=; b=n3hvlWQO043UE95t5CxwD2teHq32nSjHEKBKUHnNC1t3E+RvQUm69wyl1V+bvZdCHfn/zC2Nl4lJyzmuUXsgebGWpSfIffFEC6GJSsTpgE1egaaKIsqQRKDKxZfSSzIGXRYwV1vvQEa2iGeVBCTEQXtT1cFTn57xUe75BWMs+t54YXnneiUj/a6Kdr34aVbx3aAWFznUwZItUTwpx/yMuxYfiElBwgJbCbJkDjfUJ3lMV91kFhcSVSUJ+v5srpJ2DiCzgDg4B29oOgOq3Mr/RaMnu5R4ryDB9hHRZcH0Ooa2AmpSjm7pIR+P3mRxjizBRneucPcPS2nYZmSafzMIAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vGO1zSxZ9NgzNArzpe1C73I3mD6yNaz/wIg2gW9T/hs=; b=DzfAXoNGZEgcCodgbdVvdikEMkgNYIUg+lfcH1FzmuZv0fDcWWRwqeTtTeFR6NeqT/2OnitjxOqe9o97kGLqgMeAKZ4Juxh/eyhrOOScK2KqHdgWAbIprHZE14L014kEuOV1ns7Uj/V8XdVyKYPLEFHOMBYAW4VZLZiyumnPe5I= 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 AM0PR04MB7105.eurprd04.prod.outlook.com (2603:10a6:208:19b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6086.23; Sun, 12 Feb 2023 04:07:43 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::5725:92ec:f43e:f5fc]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::5725:92ec:f43e:f5fc%9]) with mapi id 15.20.6086.022; Sun, 12 Feb 2023 04:07:43 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: thierry.reding@gmail.com, sam@ravnborg.org, airlied@gmail.com, daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-imx@nxp.com Subject: [PATCH 2/2] drm/panel: panel-simple: Add BOE EV121WXM-N10-1850 panel support Date: Sun, 12 Feb 2023 12:08:43 +0800 Message-Id: <20230212040843.231934-3-victor.liu@nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230212040843.231934-1-victor.liu@nxp.com> References: <20230212040843.231934-1-victor.liu@nxp.com> X-ClientProxiedBy: SGBP274CA0024.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::36) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|AM0PR04MB7105:EE_ X-MS-Office365-Filtering-Correlation-Id: 533c8b57-d869-4c9e-4bf3-08db0caeb0b5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2VQh9VdAMbf4HKJrE+gme4Oq0sEOliDBHjQew8d8uu5+bjv12bbfQS/t+QQ0+wIn3W5k4V850W8LIk9e3eR2q+PPWOkcM4C0HaCCgBD1ErWx3PEIaZBntHJNvQDIppNUOsF6COb8+7sbUnOaOPK5ZaVR1ZUSTE8o/2QGcgSvXQyFSoJpKsoLVHs7kwZSBMgEEScnyZWvHZgvsOvfQHxogOWKzHD9DG9Kg8p1Ofon452DVa5KSVm1wQBrLwY+kTxdmjaxusIAAoRmopLOq1dWOluMkjtODSyIprUNpkSPW5JCKVFxTpfgWdN/MIML0aQi52Zm+0QM3YFb7NT+NE8l/lNSxLbdtbmOLB/H0l+8k8m8e1AFslTNLhWa3tGEgqde2ddT3mM84BbZXMMF1vRlcQSG6Ojx5aDnnX0ofDqzktHHnXoWudKHTYFZshmMZikTH3lbPp5whyf8N5ADREYfQaVzmC5jD2ugWRMoUU4LsM5z60LzbppQzJ8CNkXJpvKOTHyp9GgrqlFgFyxjw0QCp7RdOhkJDIkZFiZ7ZqyC24lUgoN1UVckH0pLhFJ03rN8tmJwNoFu7zfXio4k+GnT/lBXT7wYM8lKJLB9negG1TCyqxJ1OBDrWr2aVaOrOeRYo21z46HpE0jSSFMNlOcaUJIHRr2vm3hU3dypdn1BtnSA1w4+bf+0hoe1FuFiGNrKL5Gp2d+UAxJdY+CUNykF2p9G8UbQDvrt5H2WazSTtAQ= 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:(13230025)(4636009)(366004)(346002)(136003)(39860400002)(376002)(396003)(451199018)(86362001)(316002)(2616005)(6506007)(6512007)(26005)(186003)(1076003)(478600001)(83380400001)(966005)(52116002)(6486002)(2906002)(8936002)(38350700002)(38100700002)(36756003)(41300700001)(5660300002)(66476007)(66556008)(8676002)(4326008)(66946007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HISK8nZSCSKviNo0brDxl/MI3igu2t0inSOneaAa7XPt6LnlKpxbvmrfSrHIk46JiiI0yZu2KGLjfbJfXExUslkKINOaJuvmMDMEnT8/IEGdSNbjwFiYUlCEnseCMKU/Tu/j9AFm9q00LHiVduN6rR1MensRwHfw5pkuOr8ExqttBAHViThjtjY9emw2nP3y9FWd87/k/8JSIzxCDA+Rf2ZcJpFjqYDYVFaCTiyQx/jlTkj9ZdxZIzddFoX0wXpF5eBkFmyD16ovfo1+rIsvFtYsxXiTLJWCItRWP/lfC+v2goGIV4vAvBpiosoKbNb43ybFwnnl04BZrZmEogeDtkE1eYIHqK9/CphCChAu0qwTSRBBUuzVxWzVS3NFGcXiP+XSPcEKzqDxTNsMvSZxyEhcolsRJDGYlQxHx1no+60n/INPbs8SPgPPWcj74a/+n46WhTfn9Z9FaII0ZCwsJ7jJVcOgMxDy5H6x8XTBsNGNjQC0S3cXuEDHJHJRYPCcOkIbN1uJTG13oFiE9cmMIXTx1/mfT/oa1T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enant-Network-Message-Id: 533c8b57-d869-4c9e-4bf3-08db0caeb0b5 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Feb 2023 04:07:43.4539 (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: gA1aNz7wggt/nRdyp4i0mNR8PRND8N4qGba91e3l1uxTRg9dE+1KUNWJPwIlVWprqBqA6lZ1QbddROEgbeW2yg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7105 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757598593702758301?= X-GMAIL-MSGID: =?utf-8?q?1757598593702758301?= Add BOE EV121WXM-N10-1850 12.1" WXGA (1280x800) TFT LCD panel support. The panel has a LVDS display interface. The panel's product specification can be found at: http://www.onetech.com.tw/files/EV121WXM-N10-1850ProductSpecification_20180801.pdf Signed-off-by: Liu Ying --- drivers/gpu/drm/panel/panel-simple.c | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 8a3b685c2fcc..ac7aea7c186d 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1211,6 +1211,36 @@ static const struct panel_desc bananapi_s070wv20_ct16 = { }, }; +static const struct drm_display_mode boe_ev121wxm_n10_1850_mode = { + .clock = 71000, + .hdisplay = 1280, + .hsync_start = 1280 + 48, + .hsync_end = 1280 + 48 + 32, + .htotal = 1280 + 48 + 32 + 80, + .vdisplay = 800, + .vsync_start = 800 + 3, + .vsync_end = 800 + 3 + 6, + .vtotal = 800 + 3 + 6 + 14, +}; + +static const struct panel_desc boe_ev121wxm_n10_1850 = { + .modes = &boe_ev121wxm_n10_1850_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 261, + .height = 163, + }, + .delay = { + .prepare = 9, + .enable = 300, + .unprepare = 300, + .disable = 560, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, + .connector_type = DRM_MODE_CONNECTOR_LVDS, +}; + static const struct drm_display_mode boe_hv070wsa_mode = { .clock = 42105, .hdisplay = 1024, @@ -3984,6 +4014,9 @@ static const struct of_device_id platform_of_match[] = { }, { .compatible = "bananapi,s070wv20-ct16", .data = &bananapi_s070wv20_ct16, + }, { + .compatible = "boe,ev121wxm-n10-1850", + .data = &boe_ev121wxm_n10_1850, }, { .compatible = "boe,hv070wsa-100", .data = &boe_hv070wsa