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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B85EC6FD1D for ; Tue, 14 Mar 2023 11:59:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231668AbjCNL7c (ORCPT ); Tue, 14 Mar 2023 07:59:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231626AbjCNL70 (ORCPT ); Tue, 14 Mar 2023 07:59:26 -0400 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2056.outbound.protection.outlook.com [40.107.247.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCDC392711; Tue, 14 Mar 2023 04:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jW2eNmf3u+BZnghwMIkumkKgmlFpqLlNexSh5uxFtN8w8I4mIIiZvdyugBvrLtV9EkC41jJlGvvzWGFoWEMxDMRF0WoyhDyU6xE9iDCYd4riIkmYtyurIhkW+VWoRiEY2qY7S5c26FlDevwT5UJKkUZNFJK4t+8eD065WkBcu7ZVWQYU+k2USIMHtwjY2UgFOgILvospsv9jCuQnOUmoUslhLTWc7p09CgoAUyFqcesnNbCSmWUkP2VIR2NX1pFDJABMVmMPON/O9sE05slKt7J5DbBpmS6bF9OD/Iwd6kdbZQFWxjUJWQdSJvpf1aaEFrjuoWGEVpkzVQRmJ8xzkA== 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=q71o+vJoLo1CytcOkWcOHMXqoNQU4IlUCWcDpPNW+WI=; b=ZfclcPhXfl1MA1/OZQreh+xRVveKMxefdU6T5+IJWVv5D/x+v+pvWbii8bDwEhqjNt2Qo+sdGjXSF4gpWnkwB9CGahaW2Vj1z0ukScQbNiItzinSzm1BfQGluf76tEPQHPimLxqAcTvBk0jb2aY1NZVLGhlCj5xinGGOAcB+GN4GQS5uP+yjSUwwsuBPwRKiQITt0njVhj617yq5bpdUuCAUl70oXvacdoQF8gkikmA3NW/CiZFrYj5EKUMPRcUOWg4E0oELxZ8L58bV6RX4xN+B8Mc7JnW2LXcaB5XXGi5S9PZ7xQLMca7UkS2yDwagPjBnfzWeiAhYZs6vGudKiQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q71o+vJoLo1CytcOkWcOHMXqoNQU4IlUCWcDpPNW+WI=; b=AiCGbHQ8zMI9sRKXO+0hXLbRuyHaxrv+UzJseP1z92W9of1pI1NShWRX7VPLJkPA5oORlwq8zrsEJLb7Fvc+3VBzA5h31ZHynP4m5wU9g5fK084aI/QKvxzo3v7FzD+NjH/JNUjHEcDQrtKcOETYXYS9AUi95HckhbIUg7F6R9k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VI1PR08MB4544.eurprd08.prod.outlook.com (2603:10a6:803:100::13) by AS8PR08MB9313.eurprd08.prod.outlook.com (2603:10a6:20b:5a4::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.26; Tue, 14 Mar 2023 11:57:08 +0000 Received: from VI1PR08MB4544.eurprd08.prod.outlook.com ([fe80::b094:4fd2:abe3:9f08]) by VI1PR08MB4544.eurprd08.prod.outlook.com ([fe80::b094:4fd2:abe3:9f08%4]) with mapi id 15.20.6178.024; Tue, 14 Mar 2023 11:57:08 +0000 From: Gerald Loacker To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Maxime Ripard , Michael Riesch , Gerald Loacker Subject: [PATCH 5/7] drm/panel: sitronix-st7789v: parse device tree to override timing mode Date: Tue, 14 Mar 2023 12:56:42 +0100 Message-Id: <20230314115644.3775169-6-gerald.loacker@wolfvision.net> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230314115644.3775169-1-gerald.loacker@wolfvision.net> References: <20230314115644.3775169-1-gerald.loacker@wolfvision.net> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: VI1PR0802CA0032.eurprd08.prod.outlook.com (2603:10a6:800:a9::18) To VI1PR08MB4544.eurprd08.prod.outlook.com (2603:10a6:803:100::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR08MB4544:EE_|AS8PR08MB9313:EE_ X-MS-Office365-Filtering-Correlation-Id: 8ef4ea0f-2ee5-4fe7-467d-08db24833ccc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XBtTcsrYgkLu4PtbwlWpLmI83/JgI975SE9HvA6nD0N1FOxtcwa05Obq9WE05JSDdHx77HkV5JveQuEiWLKWyLD2ucO186RA8x9rhmrjjpdQJwNBCm2HSq7mS8X/Dd5moLeBR0nigZignkkzYa81c6DP8LJJOZIuDDPsESe4W6nOGYARSMaVb8Dk6IK50UfaMDWkB6w1LgtRb+qa7X6KUPRCtPyTzW1dp+WKEVYLwUXQeHZZP1ypyGfFXgkxD0mIe5NRBjvHKGqXzqydcD3CN3Zh0xxMeh/BH7QQ3dEgovtilJ0BuUncJ7xddiB+uaiu4tD6P88CFRsydJc1wxwXla8ZQivY/wZ3GTMMkLXIROIVEx9PLA4mehRGuBZ2ZfPDezOSIKwQYwz4tErix4Q3IS6p2zb6LIMWR683ujzgDyF68+AD0QU0uXzu/cfp07LzYv41YTcbjIxCWMYQXl+cFRc5HiJKmBbydVSw3HI2PmEuct0yX8o5qyKxS2ZZJeuUZLXoCt0eS4C1w0qo7W/nVBc22YxR+CcdCTNzJpEJxGlIO6pxKbnUAx2vyStrY5+6IjcB5pOsKElVytJFCwkVhkIVMoVCOXF8YU0P0aXPOPssyvG8yb730idDfvSA8MFLgaCMQuj9eebGn0snteS0mBf2LIRo3hQ3PzIg8VKwXZVtFhKMtL/slU9q8W32UHwW5LeepRIrE473DFg03VzHgQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR08MB4544.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(366004)(346002)(376002)(396003)(39850400004)(136003)(451199018)(478600001)(52116002)(186003)(26005)(83380400001)(107886003)(6666004)(6486002)(66556008)(54906003)(66476007)(316002)(6506007)(2616005)(66946007)(6512007)(8676002)(41300700001)(4326008)(1076003)(8936002)(44832011)(5660300002)(7416002)(38100700002)(38350700002)(2906002)(36756003)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?oqvvJ3+IL3mVZaKi8inZKseCiVVRTChCK7Jjn4RUX62NJz+GOlqSfbWx1qiR?= =?us-ascii?Q?dVQfh2O8gvnPHD11w6tsEgTR+Gk/UuRRf0RMLx9NAz9dip+l4soj+F3OEx8Q?= =?us-ascii?Q?Z+sECrMGl0kDVhLeOrwQspkPF2UzH9kouiP8Nj1IVQC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FB0npbQP1sfgVzAKQPx3pLpJ9GvparwImCKXNzcF3KkLRd?= =?us-ascii?Q?nEETSptYxg43G9nDfTk8JMz5j6egA6zCyywidJDcO4JcfHUsZbPy4wyGzPnF?= =?us-ascii?Q?/7EGIsJhFCW5bLYicKALyc9ZyL3IRAJCG+qPzi8r/vabV3dMhP0k3Viy4cAy?= =?us-ascii?Q?fEAyClgdkkS4YlGcm69JVZZkFxIyiBPbn3xo7IEbftow5FNO8Htkoq+xPpTu?= =?us-ascii?Q?WICRSq93jguC6o846AyvBd80T1PxfVpmX3H+2jIFDbsoboameBrP1F47uy9+?= =?us-ascii?Q?1kdtsnZB+19c+UsznRkDUBqot7Nm9kE97Px+TsK8dNfWVcBWS3H1n2gnlSzN?= =?us-ascii?Q?1INXFULMZvoK+d6lWMA6zugs1cKWExB71a5QvNFDHDMCV/YnHgv6N5YXZ86X?= =?us-ascii?Q?cppnF3ofTt5+ratJXTTAD8bQx+wkjSl3TzE79uqdOAZ/+E/n+i2MbfrfS1jk?= =?us-ascii?Q?uutCC23ctR6I7h5OrQogK19C7RSioK8Git1CExsxNZzTPhiIEmMY09uyFe/s?= =?us-ascii?Q?Zgh/0Loga8VUY/2VtWCz23om/ikZLhU0t9oCm3FvgOu/ekUwAV8nZT/aULsp?= =?us-ascii?Q?IBd+SOHrJou7kqlfoKCgHX0=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 8ef4ea0f-2ee5-4fe7-467d-08db24833ccc X-MS-Exchange-CrossTenant-AuthSource: VI1PR08MB4544.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2023 11:57:08.3799 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: iEl8Cq/zq2j3/jjft67M+7XvhjLfqQfigisg6Q7qmGTvZkFRIdsZdpsTW0o31WLwkBJ6lIluMRFqN0FPrrICtMwzX7u9BLyJ0mnZeLWh588= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB9313 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Parse device tree for panel-timing and allow to override the typical timing. This requires the timing to be defined as display_timing instead of drm_display_mode. Signed-off-by: Gerald Loacker --- .../gpu/drm/panel/panel-sitronix-st7789v.c | 174 +++++++++++++++--- 1 file changed, 144 insertions(+), 30 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c index 1ca04585aff2..ebde8a70deee 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c @@ -10,6 +10,9 @@ #include #include +#include