From patchwork Tue Mar 14 11:56:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Loacker X-Patchwork-Id: 69541 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1719704wrd; Tue, 14 Mar 2023 05:13:58 -0700 (PDT) X-Google-Smtp-Source: AK7set8yTzr7KGuKdS5CEcnQMoSN6Ua1GCVazR/vu4x5/PCcsQA+pY+hGcB9Yz1Ig4Isdc+/scik X-Received: by 2002:a62:524b:0:b0:623:cf8f:3902 with SMTP id g72-20020a62524b000000b00623cf8f3902mr6265672pfb.7.1678796038506; Tue, 14 Mar 2023 05:13:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1678796038; cv=pass; d=google.com; s=arc-20160816; b=sZzalNPr0zsAIM83Y7WtIrak5f0N1um14j+VMfrFW0Fk4bWthuQQwCp9vWF9ojJz4R 5SWI7jHed9lo8b7hEW1HpT76BKWkF3ZWjzXaHp0cp8aTgKEc+8RnRxJNH1T0oIUMLLR0 t0FO/yEjEWHkUK+9fulOsc1DllVyoHWfLsr9DcNDkgnaAIIgHYJz2wl7NU2XLDv+Vpuw /R4MYgqbruh63YUpvBG5oYodeXlRAf6EOFZtfxnj7kwPrQ6ZRbxlddmnBYuwtq0099t9 Pqo9b+Jsb/0gJXKvUWOy3SpG8ZgX2xzHYuEfbqmztJqYyM2+nVjH73bTODRygBLCtIKM UQ2w== 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=DvFJxDx2BTNMkCHs+byRKm/koycBe3mrq1Ljg5MsZPs=; b=LcS439np9ftcgh/7zegXz1/yekBIIa/9fJpWJiYvdlCQeKNB0D49IOIOda6dVvhTIO 6haIDAHfoHnLcl4lsFR5iWyfkgiigwr8Ar71BeMBae1AdciQ3bA4lEGZWWEK2SA6UHZw Aea+QcveYdVcYQbKXwIHqWxJEgb0AokVKdPS457kdNgboNIif2iw0kjIzz+xh3MoXJgO qxg054OIHsLUMz2HvX+AMNkZ3RiRNYmD13M23SrAF6iZkI919e7eJH3rN0+FEKjGcOJ8 HOdek3zJGCs72eUdYMmMDQ0iWp2Ipr9gRvw784jJTUxGn4HQNVbhW/+DDa0KTTUs5syz Y6eg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=QkNLGNLf; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 20-20020a630114000000b00502f4bf3401si2119670pgb.618.2023.03.14.05.13.43; Tue, 14 Mar 2023 05:13:58 -0700 (PDT) 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=@wolfvision.net header.s=selector2 header.b=QkNLGNLf; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231602AbjCNL7R (ORCPT + 99 others); Tue, 14 Mar 2023 07:59:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231520AbjCNL7P (ORCPT ); Tue, 14 Mar 2023 07:59:15 -0400 Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on20613.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1b::613]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24FB25F23A; Tue, 14 Mar 2023 04:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ISsqbUO1W1C6apUrGZ0MqZdEdVk4VxD9x3tXAskZzkP5z5ZPbYA6MR66haRrjre6TUequZJPE15OAhhNg26o3aQ3zeGi3PuHFMIQkgiYli57bYyV4GCQUfoSmdDT/ylPXoDsvxiTb2lMGds78SZloQk3DRfwqp0NgDI/5wrQm1YHpF9SrxOAbIhakIEngK8wY3RTJ/yFtZFTFeoxscEnvMukJh4iQSD5sLyvEYoP6su2URRt4X4D4vtBh0IbyOjjiV65UodiY6QXiULr7Uydps+3ax4EAwSJAwgfr9vX3GsTUcVeEzert8jMCp/09bYoV0D7nJXdxvgZuj3biqTIaQ== 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=DvFJxDx2BTNMkCHs+byRKm/koycBe3mrq1Ljg5MsZPs=; b=UaXC9FXRjOOHNgtYLP+PxkMfaDuu1lJc/lrjj6uPOizCIK548nKqtqymkrTccRosoh8Bn1WsqF7wxp1jC0NTChZToSe0c2HI6GpYzpKZWCH03pi/lSPczVj9KDtutTApDZ+U3s1+iOdSXd7SnU2QCx8qais/XZfIFu6mTnFdQ9OyKewClnJW2WKSKqOtVDO+ZFEufkmPVH6bMQGD8bhB0IWkRB85N4wzTaQgTElKnvnee1TT36af+ioIYMdqwOOCrAno1VD0KhRLJ0NVEpd9TdK8dVk0ZTZTyETlkT0htbIk14qKcijTb3EIpJ0+t/ECERblEn7h3kWbGhNVMomWqg== 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=DvFJxDx2BTNMkCHs+byRKm/koycBe3mrq1Ljg5MsZPs=; b=QkNLGNLfcXEtUnMSYOad7LLifAfeE8mi4ZsfoNSH7wJwiAd0maITI+GqEG4yz8j6WSgxorZs85/1AjhD6pqk0w71jX7SsBj7HgqgGW5qdlI1Q4vhaO0fl5OOm7CnGv4EwLL16heLTCPHZ5Cnm+8LV7aEfjIforVRwGpxAhIcsSE= 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 AS8PR08MB6694.eurprd08.prod.outlook.com (2603:10a6:20b:39e::23) 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:05 +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:05 +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 1/7] drm/panel: sitronix-st7789v: propagate RGB666 format Date: Tue, 14 Mar 2023 12:56:38 +0100 Message-Id: <20230314115644.3775169-2-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> 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_|AS8PR08MB6694:EE_ X-MS-Office365-Filtering-Correlation-Id: 31685555-c8a7-4f3f-67e9-08db24833abd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AX5N7+QccJDVhbNcehViku/0jzcOIGGrgizZjZm9TxaXuaRrym2W6hZJH2GIwQo9FqFkAzTHipNxWNLqWn/uY/w1JxEC8Sn454GXvO3N3cNxsXVWaCppx3jexpLQ/lSAJkCEXReoJ3tOh1rlE8T1FevsLHRLW65ZR9Ot8UjsQxV017A3yNPx3v/lI5aokM7TFbV51/3etK8IxrxOauRpZ7TOKbu8kF+HAykEmUAKrH5WAwrQCLZXjYvswIbiWjkMuLM6GFRjNUVqN9uJ3Vo5luAkXRETKUYKS1q5xuhspDEaWu1xj3aM7SGY2zy2iTUU0clpuF+5ak/vAhLgKTqfjTpDcIuQ/jgRLfRhWWvSb0zXQbCiv/m2MtfOAlg9GZE0+A0QmgWSZKy6ZDggeEtMgITNTU5FlOPciulrMXKxDnikOZfQm3gK4YNRA/caLqHu4IqMzkWsl8I6ksCd2K89fvH5+tw1IxXM2Is1IL1OYWCTadqEtrKkjNSHMRG+wCuWjtdnP4ANnqFOfaO5RFC83AZ4JTfNnledsj67pdQZc1RpOVU7XFyNIN3zZ3lNrWY864cblAI4Mv4Db22jSJ9e59eUTAeZR+q99PMJ4I/RIGrLJ6iL1YGc1ibpj9y8cpVVtIkAOxtjeEDTBHWx/L6vxUhliirKGKth/N3G9NP9mv8m0Ze3N5J4zqkNxTUMoOL7Vdp6zZPqSdt9jBfDlncILA== 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)(39850400004)(366004)(346002)(376002)(136003)(396003)(451199018)(7416002)(86362001)(478600001)(5660300002)(8676002)(2616005)(6666004)(36756003)(6486002)(186003)(2906002)(52116002)(1076003)(26005)(6512007)(6506007)(107886003)(44832011)(41300700001)(38350700002)(4326008)(66556008)(66946007)(66476007)(38100700002)(8936002)(54906003)(316002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SzawIuzz7bNI/tW4E6JfLXnoOVssoCrMTtAl01LV6Vshu4+g/0Qlmu8lFqU95EFXmpBu3YVztRcVnCCPZDDx0QlcB7P4yoyyfDo39UBmPJmjSOAr2YTDTj4+m4Io/Yg6NJKTcLp+doSHbDbQpVLAQQ3REvBtvjkr1XQx14sa7EZptLxCDeBLxzvs5y63TvACsG9zSawPxqmpM6v+ZfStl/aY1IzSKSQDLTi3Q2zkONi/FJ64QRh6HwPWheAZCojlIoY3gLg1kYTycOTFKJr6s0OJhpnAzT/3v1EGO1PY+DgXhsDNGWCVDPXGDdH+s9jdrG7tnsr5GCto6GAyD805cH8VWOLnIl0cLsh9+LdZWcSjTbW4ocB8F+FsBVlRAzbAaq1C1STsnfqF69q/jr0iZn//dWHsuAW4frvVAfgrJdxiQEd6XiaMKTd80S7YrDykqXk2S90GW/Gr2n/zpywUmiKq3KzsSSElAFUA0CUbgz9WVvfJ5T0H6tiEmgcU4xB6t08EymkvUD/fD+YF/twZc8vmSPJ1hMiUkxdLLGQoYCs+HU3pabqe0dd0tsIj1bwSaoyw8yVa/wp6FD2owKJpdLKUjbIAp4xyWngm4+ukfYB8eNumBf8hLQSztqL3WKX/0lUMsc485eJajXfR+QYLzsPJeFnoUvUvYFFgSEIyP/plbLxQtfMKkTzphMX6cvoRE0jEuaqGRPpWFKek+V17W5uJWdIrMGZW5ofu4Dpr/DdfX2gllfpX3V5YG3fjRVYgjuLHA9IL/6TrSFaiNX1sqmEVI3+uP4oUkckoCrmyfxuxVbl/j16t+Vbb4Nm/P1ftwJC88PZRRIQq5EIgFVUZqE6zJomfxKSo12WyKI88lY8hGusESebeJOkyVGIV/+oskRMj9ee44vFIHoxzvsZkMT/FEJ+P9rvtkIimoIn2s6X3kBfadCUCr2ryrfiiiu+Mcr9lrOj252vM3kA823q+FH/InY5hB/w9uaCYyF1wTv5bGXv+om/9X/OfU7pNej9eRyK/GnD3RUolzP9pg+6cAoK+u0DH5nwPrziIQoj6Y+acxPOmttrDnF/KuHw7R6LZWG4rRHMqceL3uy45I4bBFtl4An6Syj6q2xcJSxzlaSEtDqWc7UpHaOp2YGeXirZxVys8U3u9d2vqake2bcKM31REyNgrOuaoB4ixqfoSAnfWo65WNx+Xu3aVMAvNIn/Jdfad427M+Ltj4UWPdN7fl6XwEoA8XAunNGDbJNcPCIX3Uzm/qr7OpCJl2InAWlxVmLB9RNMR1yLrtciaAIK12qBvfjOzojduskjrHhWL12SyuHnSAQE1QxPv7a+8Fcv3xu/zr5kDSh6VczY1s5SnCd1drWk3GjiVFX8WWs+IPVc2pN04tn+IipX5BBf8xjl/svevBW7LhoN/NXvYC5m5wPnVQWC9ZQoyr+6mipcBHPh64A7lap+rRAoklhPIB2boz9GBvKhkTDW9yEL/PLdVsO6gzfiGUPIyGhqeCtkBxhReOep8NxeHx+wCUeCFYHDzgW4jKxPMDMFKjF61oh3YDnvEeAVrdhraoQ+/DfyOGxMCSWJN+SX5w4LVDujyRECmoY5q3MslmIiB4Llaip8zHmwYUYJTxKYKjOM8uTISIzY= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 31685555-c8a7-4f3f-67e9-08db24833abd 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:04.9426 (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: 73Q/fCiOW47iRgidFqKbaECPkAIDw5ybf9sJ1nRRWKfAp08FGqHjlVBWLEcidHFebEb6h7MjCkN+J69Q1gm7XgdRxP95MweEsKnRn93dWXM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6694 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED 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?1760345234660154493?= X-GMAIL-MSGID: =?utf-8?q?1760345234660154493?= From: Michael Riesch The ST7789V display is operated in RGB666 (18-bit) mode. Propagate this format via the display info. Signed-off-by: Michael Riesch Signed-off-by: Gerald Loacker --- drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c index bbc4569cbcdc..9535437271d3 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -171,6 +172,7 @@ static int st7789v_get_modes(struct drm_panel *panel, struct drm_connector *connector) { struct drm_display_mode *mode; + u32 bus_format = MEDIA_BUS_FMT_RGB666_1X18; mode = drm_mode_duplicate(connector->dev, &default_mode); if (!mode) { @@ -188,6 +190,9 @@ static int st7789v_get_modes(struct drm_panel *panel, connector->display_info.width_mm = 61; connector->display_info.height_mm = 103; + drm_display_info_set_bus_formats(&connector->display_info, &bus_format, + 1); + return 1; } From patchwork Tue Mar 14 11:56:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Loacker X-Patchwork-Id: 69545 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1720137wrd; Tue, 14 Mar 2023 05:14:44 -0700 (PDT) X-Google-Smtp-Source: AK7set9m9lgorbBc9m4Y9jSPE7F/MianFWhMuAteCdsRJRo80yGiDi0t1+gQqUvCOk6jBBm7pTNu X-Received: by 2002:a05:6a20:1e4e:b0:d3:bce6:2224 with SMTP id cy14-20020a056a201e4e00b000d3bce62224mr9416299pzb.6.1678796084619; Tue, 14 Mar 2023 05:14:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1678796084; cv=pass; d=google.com; s=arc-20160816; b=cC8XyOLGyb+zbrg3xdUFzZHTfVAjdc/0j4A5MUHzoS9rmtaKDQxrNv6wcnLjdFlu51 C7jE9TP4EfEXXhYU+2thUo4lJNbXOjG4KAcaG+NmHhZtv+A7bCBzlvsnzqo6bm24+TCe DOSJ5CcnX34tqi2f38uRxaOufcZJBioVuhbwRTmLf9pM/j+jEdnlVfIWXMD6KwPP61kt 3RAFqU8YEaUSzfgT8n78U5f06IqNBQsLEIpnr/4V+bIYyd+QdI7OTz2XSaO2Dmp7hAda U1YVD6Mda4jxEyjowalvepVCE/zrz/GnBNP38ddHv9RL0vrB7vfkn7nPcmzKZpfMkapC SPsg== 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=nSOgie7mzSW/z5IubJU1uAwPU0cFhDNi+ptEortSkMw=; b=Zwjq2ea4UUar7b37wupVWT2Zjt5AOZoAaKP+HhjaIvyiGPA08+djyveX/rOQchuc/s NbtuVMQiGrGsqjGJxmYbtqbpkFmhPgOTEhPrlJh9UJ0FkkW7cYiQbj7jQLEOjYnTjI/r eeX9WOYqCFOZNZxSSsztp3FVZk3p42VTJBo29E5l4U3HeA1VX3Ods80H29byVJFdRgmc q4cmahS+ZBhXnuolF0axfUIz5kmbuVRczW82CZ/OX2ypKKdOunKVtmXUj2mAkHzArBjC jZrcTzkaRx69Rks0GleZPjSBtzebV5DB3vsJ2wS20EEqpU0uN7bDP+Fr/3Nxu4FBArvG k9qA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=221ekHXN; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w18-20020aa79552000000b0062578d18ba1si648601pfq.54.2023.03.14.05.14.29; Tue, 14 Mar 2023 05:14:44 -0700 (PDT) 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=@wolfvision.net header.s=selector2 header.b=221ekHXN; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231527AbjCNL6Z (ORCPT + 99 others); Tue, 14 Mar 2023 07:58:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231500AbjCNL6X (ORCPT ); Tue, 14 Mar 2023 07:58:23 -0400 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on20629.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe13::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73FB99FE69; Tue, 14 Mar 2023 04:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H2dZ2FYim6z0S3kRVHl/VkB2jDg4STIDniHPr/XC+/+73xTNP2sbuLUicl2lP4OVw3+sKuiwRe2FM01iYSXvLmMCelvNszJBPvV1ifHlA6ZecvgweqjR9+fdI/kFSyLF47A/SPJdrZR35KIY7ulu8M8lu+5ryANaHA2vGDz2u1XYAPtUKGfkkRv8467L6vAgECNiCjLPkOen+H7ipFXkPES7XtI/f7ttNM7mAQ/RQuKylVA6qcHYPSHoEkVAewMSQ/l7REjg9bscj7HTem+OQ+tW8mBUSi0tAao6mNLkbRmeW5Dj1Xi5bVoeHTWUi4FVQ+XN7r34EtKRoyxF0+2/zg== 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=nSOgie7mzSW/z5IubJU1uAwPU0cFhDNi+ptEortSkMw=; b=Ci8lt+pVLyhO+jXYM1zOZzYzbPU/pjm5DYwfKYQgQZgAmnIo6akJUChDt031Ft7PRcxHteMJIqTYOZgTv5Sq9NUgAbIcJutC/FB8yTLyptmoYSEDhLizCkENxnZrAq1Si2raXNLJA1G6PAe24htgj5qwnUx+gDrXW8DV5tMhVogteK7p4E4T+WlbsuqeMLAPtlgatKXnDHs/1+zLz7JmRQSVETes9Mu/Fm5eq59jXx2Re8kjSi/SbAapjxu/kPoNPkODHYOu9/zaZlRvWDzL3nDUVuoHSMJiuz0tQ6dFwaQw8/EqQbK7/AoBq+mugvWpPyDy6fu+MuLfSCBy3aMBcQ== 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=nSOgie7mzSW/z5IubJU1uAwPU0cFhDNi+ptEortSkMw=; b=221ekHXNqHXXjtD9hDfK9m+AkjsFHhrDWdEwcMmywQZGuCeWrwcSZDT0j3LX9IRkujJAfLJtLrVlvjkoQBKVQFvcwpukKBUqMaE6y+E+JcIuFVXfA8kqPPyd2HPFjWTiFOeHXPvNm/rfgcUsEX4ATSMWLB5QeA2k+V+Be4OxvGE= 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 DU0PR08MB8811.eurprd08.prod.outlook.com (2603:10a6:10:478::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Tue, 14 Mar 2023 11:57:06 +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:05 +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 2/7] drm/panel: sitronix-st7789v: add panel orientation support Date: Tue, 14 Mar 2023 12:56:39 +0100 Message-Id: <20230314115644.3775169-3-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> 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_|DU0PR08MB8811:EE_ X-MS-Office365-Filtering-Correlation-Id: 9a78a561-16e0-4845-d4d7-08db24833b4e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Y4OWF8LX2ETo/szfLzibUaNi3Oom6jFHn+ET1frFKgnOSuW92M9xwjRa3Btx1f0AZcbfYrOMDMCg53AWEnFPZ3BTowsoyAyTJquGj1CYu8YdUB6Cg4cCIJAR227krQgR36iVF3WvAFwJGgza2Kh05HbtEn3B9uUvAcS18VFASz6LoiOGQ9uSe9zyW6ylMmd64/4Xkkav9LPR3WZSX6HyN5UYqCa+KLcMSHlYYvh2nE9FYOUmuWXV1uJ7SXjU7K7WYTo6y227DbH8tsXgWzaUm+RSf+qzaJhoYnzuWS4EtdpwMg3gMMZCJJxIJzFKPm7cgqXzh7vL/tvXCLHFzIgHzfN+tKuhtK1ZffOPGSvhrTXLOz200+55tuITS92kc/MQq7/w6uhCAMbRqncUbZkwThAieKKejcGH5JSWphRKPOEvNJRhsuQtd3CoXMKStaGPWJpi8UxMVlrh2OQCV9UcJ//dAIfXUHUaEuXAVtQD8sV3f0HwsFEpI8QGXNJZyafhsraNdrxEQK+KifSFTQxPADOa85v2vfhKUnq6Ah3hbu4XnxBP0qbDxp8bbT4ifkO7W1T8NL0LyrS1LMEt3qjXcssAtg6BheAkVtzyQkKQQQOGZ7+8z7/JlQkqwKvv60SwlTrgoZ8RxhUi7yA8ZHV9pqiIHxh7rJvyBrYHvXj3b3VzPKrxYgd/ux4xttDPhKOXEkwnWXncQ14B4dMIULMMhw== 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)(346002)(376002)(136003)(39850400004)(396003)(366004)(451199018)(4326008)(5660300002)(8936002)(186003)(2616005)(6512007)(26005)(41300700001)(7416002)(1076003)(6506007)(36756003)(86362001)(44832011)(2906002)(83380400001)(107886003)(66476007)(66556008)(8676002)(6486002)(38350700002)(66946007)(52116002)(316002)(54906003)(478600001)(38100700002)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QYa908kkTbzTbguBwc4FKaa6X4cegQhxRPCYoTBhnTuLcdEyu1fdC1gThmvIwlouA8lpuYS8h+k3cPI8AGEeoUt8t+KXrgWz+QVrPCHEnju2tc9dRjiVRCDFZ04AwpCybLbBr4yzVah9dHQ5oDzXogb93LOrckrJ5xoP9EHcxhl67mtt60EfCa26f1OGQ6TztQanhls+PGcgCLXpM71pjb6JY+oHHIeqzq8DZBhKSzfaBw4qxpEoyAT6qNKfmcxodY1KPO+QphDiTxEjCYYu/u6E+F1FJGFzFB/VyhPScJ1slfGEQfRq7h9k2oPoBlgQOUCWoLiIX9jbBmg+x731cgauJ1lFFwOgbk1onqCNgExBvhXHOlvH1dnNuOcP61JaNR+9h6Di8K6dAYHmjlZocE2IMJTbrGyz1HfPro+fnK3Ekru65XSmXiv6u2xxDpMeb138bbh9UVuw0/Cot+JvdPYlYi0ns/ys2sOFEHLFZ3fZaQ0K37OVriAhWV6WsNwjgLJffz2JZJiVTBPeVx8CO/9QyvGBH9tXngsBorr+H81NQRIYzPQnafRIGlZiyV6MYp17MMWE1jEhWXDK0qMHqLZ3hQs6WceFflrSRVEOgtwOpcqKTTtK0PicN4pzfP/NLJTPMHiue7mGL3DoQvqw2WolAamfCCbXlLBSO9LCGG22tc9mVDzo3coHWlkiyMUsW6hmX/qR9KvslNVjC/ja98Zyf7B4aSiqm5JSHElrhkX4m/fzCM1gTg2DwFj73pehm/RNcuhdD+IKCU7IUMm2D0x2olphV8+qK8ZjrR3RnpCIlMj0EF540YAFgA2mpsDzc3vUnl7UFAVDcjpAyL7AM3cKd0zlBYKZ1UDsggLuUzUJKtxJqLAKcdtFffaP8BOmd9brSv+cfed8cfE0RdvoIivSTBRSAN3dopUz5nbdNg5NGwGvrYO+zBsWV9pu0HOoA8TIOUcAGnuH1gsWCJ6v+PH/DO93guWNDLsCOB/+vU6bo+gXdIoAv07cbAZ2evbqvdSLEqnljAHVlz4iDa6IUMh67zKyHBqGnyy5XvV7S/zBAi3vx76fAZ8Q+ruJELj7WBhHyhVAwDL0uYdPHQFaEP95NtdSDFMgTl+SCL9sFkkK1D4BSO8+pz9G561Fn5n/6Qyn6qg2Vr5h5LmyEAeGrkuRJ25Y8s0aLvmb0Yb9nAuZJdDVScHjyJGr/XaAtk2vJxFKQZzGqTmOY2c2qgA46SRLMl0C9ecQCdwHjYcruY9Kmn4DvEGIEk8bbr55ZFIUqMtc5cqCRz58vNjXWTrAcKeGBieFaTqd02JNJ/SmHLJgycVZhGIaBVUQFGJ1i4fbKGvXepI7tulqsDCdyctRgYIWXyQGP18a2EIBcXSKWBU97UmFFK+BeGfhUw7QLh5nCOfNdmJjeC013fqOdJB+skBmDwFS/dUUgN1hNHVgO2NNt2BjDgolphde+HEHDZusvu8kIazXi5pt5ueQeT33HPgTZc68eLaQlF4QYdeOOM6cnOkCxyuFRO4V4RoKx6Z5LP9W/uVpcQ/korOgyxZVIzngJVJmbFk4q+RAU5gaGnAlx6PeTLbeAkkBLoguCWqkX4Xfzxl0Z2XhUptL/S91flPQO+NfOcE5PibfIciPCN8= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 9a78a561-16e0-4845-d4d7-08db24833b4e 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:05.8488 (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: 7ChySRemAmWA5388k3lGjCa2whxpBFXZGDbIZtDDNm2HmUxvjEjgzbmUwqxDeTWTwC97PHhr2Rd6GavdDsEl5BxazHVbcOGoTm/zGSZmqKU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8811 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED 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?1760345283308417263?= X-GMAIL-MSGID: =?utf-8?q?1760345283308417263?= From: Michael Riesch Determine the orientation of the display based on the device tree and propagate it. Signed-off-by: Michael Riesch Signed-off-by: Gerald Loacker --- .../gpu/drm/panel/panel-sitronix-st7789v.c | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c index 9535437271d3..5d4542c12f44 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c @@ -117,6 +117,7 @@ struct st7789v { struct spi_device *spi; struct gpio_desc *reset; struct regulator *power; + enum drm_panel_orientation orientation; }; enum st7789v_prefix { @@ -171,6 +172,7 @@ static const struct drm_display_mode default_mode = { static int st7789v_get_modes(struct drm_panel *panel, struct drm_connector *connector) { + struct st7789v *ctx = panel_to_st7789v(panel); struct drm_display_mode *mode; u32 bus_format = MEDIA_BUS_FMT_RGB666_1X18; @@ -193,9 +195,22 @@ static int st7789v_get_modes(struct drm_panel *panel, drm_display_info_set_bus_formats(&connector->display_info, &bus_format, 1); + /* + * TODO: Remove once all drm drivers call + * drm_connector_set_orientation_from_panel() + */ + drm_connector_set_panel_orientation(connector, ctx->orientation); + return 1; } +static enum drm_panel_orientation st7789v_get_orientation(struct drm_panel *p) +{ + struct st7789v *ctx = panel_to_st7789v(p); + + return ctx->orientation; +} + static int st7789v_prepare(struct drm_panel *panel) { struct st7789v *ctx = panel_to_st7789v(panel); @@ -351,11 +366,12 @@ static int st7789v_unprepare(struct drm_panel *panel) } static const struct drm_panel_funcs st7789v_drm_funcs = { - .disable = st7789v_disable, - .enable = st7789v_enable, - .get_modes = st7789v_get_modes, - .prepare = st7789v_prepare, - .unprepare = st7789v_unprepare, + .disable = st7789v_disable, + .enable = st7789v_enable, + .get_modes = st7789v_get_modes, + .get_orientation = st7789v_get_orientation, + .prepare = st7789v_prepare, + .unprepare = st7789v_unprepare, }; static int st7789v_probe(struct spi_device *spi) @@ -387,6 +403,8 @@ static int st7789v_probe(struct spi_device *spi) if (ret) return ret; + of_drm_get_panel_orientation(spi->dev.of_node, &ctx->orientation); + drm_panel_add(&ctx->panel); return 0; From patchwork Tue Mar 14 11:56:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Loacker X-Patchwork-Id: 69524 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1714999wrd; Tue, 14 Mar 2023 05:05:29 -0700 (PDT) X-Google-Smtp-Source: AK7set8fwHNNJJra1OHO+zvkmYnZnyOaRIpQ9Q1e+taYFP3a4G0q1tj0yClH316YgwP/u79cUEX9 X-Received: by 2002:a05:6a20:a11f:b0:cb:c276:588d with SMTP id q31-20020a056a20a11f00b000cbc276588dmr13838096pzk.22.1678795529135; Tue, 14 Mar 2023 05:05:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1678795529; cv=pass; d=google.com; s=arc-20160816; b=trHVH37/dV8OtmjYf3Ehvq1FjcwKoV+nXazUTwDYcD31gXJ/1hjSmUYB5jIGOfqy+z NTd145Ymb81Ag47tt2YBG05aRcSs9WS5WAYBDAADYuaRCwHKfzVW6xybr1EUFg9X5kSY b9GAHirP9B/emp0xpNg3uUi+fWtC9J2hgjMJ/9VGmU9hVvqLu2bXa+C8ixmHkyMTaoL2 iwqxsY4n/P1dVZj/fQx2BpGeUeW6Vid0fpgPNbJIzmCEAuBuC0gVFZ5CzOuS0b+Q08SC Wc5T5xjjaxIk38Ytlky4ARw+mP6GfUf1FCJCXBEXHUlFagkxIA86WVT7Hwa2Be496O0v un4g== 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=yr4BXicJSWiebUXqj5ZxifrIDR20c5HmPusCE+BmqrM=; b=zRZcLVfVyMfo1aSSWRlaSj+YTql64ETL4ahwQMUTWERA56+9BVrDV0UPWth/Qbjz/x +DSc5BfxSKWhBUA+K+BA0hBTG6PFfj5rtV46zH1MUuEzQlt3ziDDWqlu23MKA5myMi4m D2NQTm18qM4ypPT5HzUXNFcAvlOhMxWVnVH6jfS85pES1AeU2xNxZlqSkBGFACBVP9yK 2f3xuxCTELORbV/GnGr1L5pF6gMY22i6a2Qo1A9VwRHmZBAITxp9hV/R8FKmjWYcSGE4 2Un4pqD3+YVZPVMDCskex662LSQSP4EiFi16F+xJMD/sqgAxMj9RS+4Ia/ezUGomb4QY dTtQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=SFRdQh3s; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 9-20020a630009000000b004fbd3213f0fsi2029123pga.357.2023.03.14.05.05.15; Tue, 14 Mar 2023 05:05:29 -0700 (PDT) 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=@wolfvision.net header.s=selector2 header.b=SFRdQh3s; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231611AbjCNL71 (ORCPT + 99 others); Tue, 14 Mar 2023 07:59:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231571AbjCNL7V (ORCPT ); Tue, 14 Mar 2023 07:59:21 -0400 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on20618.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe13::618]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6171F65C6B; Tue, 14 Mar 2023 04:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jkpCyyTV13dfaNr/hE3vOLRXzQvF3BHlGa+ec4+0d6wKMIZ4cuUQBQdV8NWevTdmBUvneTpKvrVh5vuU+t0+t8VNHt+8bRCLMja2eZFbuS+h8nD+wFAG2fJdrdFut2TVaxQtUy9JpZ7nSQFb5rv6O9dD7+PEk6VSjDuzBSpfRgJzL2unozi6GQIqci4ldA7cL8WcjlbxQoFwLKdp2uvo4wa1ehzbjKCkCyH5dsEGmnpRjagXzKXYN0MzdaK65KacnADRTSjngipne4tIvqYl7HZ4Ls/bOOYUGXg7pyj2xZAxGvNaET17TP8cppMG3DZtyKBNNqCRfdMZ/+PfROHITw== 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=yr4BXicJSWiebUXqj5ZxifrIDR20c5HmPusCE+BmqrM=; b=L6i7FDPqh++YF0eN5U7eRanDEuVhk6RipR/Ke5ytoeMWREBymK+wlrGQ73ohDs/UyAACfRGIOHua4Z/Idxu92sXgS7ecNM72Nv1wgVvVgfDvSYdf8uspaxyOMM6nrRJ8hqGyFBwXh4tB6Bm3AYpJA/q/E3ZJZnRAxFXOjh8555MYuYS7iajPUceRNBYw41mS8LWwGUmXKUhQCirYE+gpn1fHuSLvjDvFpbJm/UFXD9roMVvA62A0fgfyDWV2UkGXyv0abDYKBlF4MlCh37/rcm28efuP9pBCHQGyxxikJOwhTBQ5OpY3fDH3v3VI8ItKgvTlQqk+AGvBaiQ34u5Gyg== 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=yr4BXicJSWiebUXqj5ZxifrIDR20c5HmPusCE+BmqrM=; b=SFRdQh3s17zw4PHlLJvDvqBwVlZ8CuRfLV7Vi/egkRtMm0jS83yNza4RdTJJSw5kyiS6qMUX1wADcKep82ybrUvNVYMIExSl26NX4g+PMKtPUHO5lmuenxL/wAmf9LFv92hWBDuwhiAScWLeqdcXcMUNY7PoAhxLjCwUyMS4P/A= 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 DU0PR08MB8811.eurprd08.prod.outlook.com (2603:10a6:10:478::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Tue, 14 Mar 2023 11:57:07 +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:06 +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 3/7] drm/panel: sitronix-st7789v: propagate h/v-sync polarity Date: Tue, 14 Mar 2023 12:56:40 +0100 Message-Id: <20230314115644.3775169-4-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> 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_|DU0PR08MB8811:EE_ X-MS-Office365-Filtering-Correlation-Id: 2bbdc6cc-a07a-46db-2f4d-08db24833bcd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EdzHXeR24xe2gHMBWPKOBTcy5/WeGPliBkgo+1DZlFYnx2/oqBKLYJ1jTf3WrRgd/ztlhbzr+EVBVqIDStXPcDw3nBsFuhNZBB/ZoM+25T0kUVlQzmWaTVWZPekZI9PlRroFDpE1zbjKvMm63YsqjmqeDd8cnOyKdqmI0et/KEj5tMaYNthELrNipVbCQA0TqTTjyF9/cdpj4KCwsYmR4SUiU8Lehn/mxnlCRVN3ViRCHJmIWkUYB1x9sZaHixAiW4G+jW6+eEMiJMe4sGeDm2kHFGqx/8+x5jvS41oewMRtDqWXfrIVNP7hnZq9pRQehYE6z6hcdSeeawT+6OMBRH+V9rJDCDdyp9/H05mNiBip2DJf3422BuE7ULGCLYtPEeNc9q5SZV0UCDVwKaOJPfQeioN4B8w+4RJNDkzbwwSqUsd5VTzXxVgE1vR3uuvpDUd9GP5oYWtveOlvzBhQVee172hpE1ScwoKLZJXIFjb6BXsg/1zKL8yi1D/FVO6+KTnwxMUJR8AMgk2ZyFW5iIBPLj3ik90m3G3MAEKhFvzpCGFNhwlRjUHCF3v3KcdemvV6RPRRJFYzLLh+rlgbpkudG7gyQo3/1WpxpSzZURcJKL+3Tu/LtRwnInonY127n3weKv0KEhp2M0Zp9aBgvO+aJukALq5t9PqYQKM6Rm74oMSV0xrDvEli4g2TjBT6SuqRB6RusSmx2kT0rS+9bw== 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)(346002)(376002)(136003)(39850400004)(396003)(366004)(451199018)(4326008)(5660300002)(8936002)(186003)(2616005)(6512007)(26005)(41300700001)(7416002)(1076003)(6506007)(36756003)(86362001)(4744005)(44832011)(2906002)(107886003)(66476007)(66556008)(8676002)(6486002)(38350700002)(66946007)(52116002)(316002)(54906003)(478600001)(38100700002)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: a1q70DZWTi76/uG5KgxZahyw8hdEGhdeKCsHj2NBZsnwSf1MlFS6o1j2pzJZTnjBh69T50wXOXjELYHdOzYVkNb9u8D/jHWav1tJM5nWZ+53i6IslaWRA0cwqJ1Q49uSIH+0AFLmW7Ocvduo6ccJPDy2e5JNZTk772PQ2V0Pl9JbOQppoeuyn6HMHviWCpxZ2/M115bHn/PWFsDfiMQgNga+OT1fL7Ubb8850yqVGydi1sQN4c9Xt1QCGUxExIPsxvQwXb87HAbMK8UFuKCZTbbtGhic/ait9n/GaWRJ6PYiFJKduVeiBnbECSePssk2XhgHFHelw6zCmS9v4M0lY5m9r3msLvfrM7dmLQIBb6+aITVyrW6wn18j82HF6WlhU4KfixmdwfWKxQRy5ad7IbMDLMXht6mW4nF03dd4fcUox1cEzmfkhOwqJ9zRPZsQsKypDEXc+HlEyL18mqnJP3yGEMTH+IZDOD9a3DmUI5FeqYKbS7w8pubYg7fRQZ1B5m+XMSWO31G00rqHbr6FF911WxjqHhdWXDc986i42MkW58n8XzBrPCalyPibTkZ2r80licvVfu5YUBIscgNLMHQ4pnHgAxvJ5PAI5IfNBWs2IgSZUV89OjGMAn6F7VRVOXun4vuRNmiixrGn8RPKpFzuxyT3lzIv402mgoxgf6vcBPmOFC0YWn9p1z5JD/X9qgznfcmK5KjGrdaJCyVzW2LSGOACAkAScaDPb/urYrwpaIZfllqprHFDRqbLcrVQZfCpsPlYY6UZJNuoV4tLqD5R2pOZNPscWRAs1gyVApetvlw4PF1t/dr1oxFkiutIdVzCrCFqs8JZgkW6M32elQqcwD2GZW3UxIlkocKt7mDilvUoW4u0leoxIYjdVqwYbxxEy1XeSk683z/JKjGMNWqruyYiDRmI0YV5hU3dN1ujbrOhYxjUshhTR9RaOo0EvhEPf/HLNfyKqi/UEiBIaIkvWpTa0Ah+pSK0euigO8KTT/ZH7LB2TsT/1vEBiZ7V/yNy712O+cz9mDevoTfov6URGKxxDCHc3Qy6hAmEQ6qxdV86tiJmJPgYbhFL4fg+rqvFzFS8l4gyjO2bvxbhfKzA7knb2cg6sWcFyl925eFD/B5TKQDEq9+Kw2hWhKTt9FGfbbSuU2JfOUtPt2C34aMzOQly9CxFULPgp8mnz5XpGmAAYYmWgsbKsFnYwkaldjhy2AlUzB3Fr7aexZVPM+gb0zAGsM8FMl1s1Ol5SDmktbQaQjthfEJtDhLWxr4F5OxeOJzq3HRwjNVgjShpVFtSj637VmFl7D188t47HqrYtVegH3pmPxQulhnt4E3FWIvpHk1z6dgRziz3DsjTPlhxkKQTl5qkA59JEcwreOhn4dZr90E1pUggBye+W/kRtTlOp2W1Jhjqrs4RF19ctk/TP2V2kIeFO0aWtyf/v3+HXTLTXsQWx3djapyhCQWln8X+ze3+XwZfc5rFf729jWcJphYKsMRdpFvFHlAufOXSmAL/sHm7I19m994N+fy/+dqEUfjPTMT+tDamfBGbUTem+18W+FfrDoaIT7TZvQwFTF21g45hkMJs35o1Q9vw7rqotCyP4JRMvu/M3eTKJLd7pgfRdtvNDyEjGUY4snM= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 2bbdc6cc-a07a-46db-2f4d-08db24833bcd 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:06.7081 (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: A2lzKRgrZXb/fJFQaT6NyfAvr5QThJJ5g+7xcfLYUW1SVTogl4zDgvrVayZ8FSCvSnZG95siLHCJcZ0T3U8HEC54z8qXqOhh1hfSV4+rEXI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8811 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED 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?1760344700539675175?= X-GMAIL-MSGID: =?utf-8?q?1760344700539675175?= Adds h/v sync polarity, which is hardcoded in display prepare, to drm_display_mode. Signed-off-by: Gerald Loacker --- drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c index 5d4542c12f44..24636722c2ff 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c @@ -167,6 +167,7 @@ static const struct drm_display_mode default_mode = { .vsync_start = 320 + 8, .vsync_end = 320 + 8 + 4, .vtotal = 320 + 8 + 4 + 4, + .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }; static int st7789v_get_modes(struct drm_panel *panel, From patchwork Tue Mar 14 11:56:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Loacker X-Patchwork-Id: 69528 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1715535wrd; Tue, 14 Mar 2023 05:06:23 -0700 (PDT) X-Google-Smtp-Source: AK7set+Ukhw5GHyGHfU2lQeMdf0N5NO24DhtyoSkLBcJ8ISdfSyQyHdvWDkLPqtYBkh8pL4qWWBW X-Received: by 2002:a05:6a20:8404:b0:d4:f98c:8678 with SMTP id c4-20020a056a20840400b000d4f98c8678mr5147646pzd.19.1678795583503; Tue, 14 Mar 2023 05:06:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1678795583; cv=pass; d=google.com; s=arc-20160816; b=CKLxSEqxVXNDo74KJR0Hsu5iw+psi6cUzpM9GcWi/gV/JYaKfHu5DGvGGgYdmw+6Rd fdMlC7o1O8JNncQEnL7l7K9DbAASDDZ2COVaEL76X8+Pnwnr0bzIxQTRkQwmL7imvhvn XQOd0L/iooJp/97kDaKhRiQBrAeBBd2CrxQuWJyLFvsy167h0gJRH3xlq/NWzGZGuTcF rYMUJfp7Xa08TTi+jU9B4+Rj2HB15F3rLepr8wt06T/dxj3RjKsvqbYPsUoDNBGQxbC1 J9+SNG6210LufVXjaQ6mKWoJUcTNx9uqR914W8o4h/SUP0c1r1vmqmX0ozPZ6XbvE9bE 5ePg== 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=qAxoRUtaF2y+IcWMgc2RDDpmncVhRoDNlRith8a2w2s=; b=fD7TpKMWgaJj5EGMK+bYMNPwLs0yvCQVhNZgfODBD+wSpOvHnFgUAdamf3MmcyLpHE 3F54GCxofjAZHlbT+hN561bRL5OpD/jVsNL66r2SFd/VfhKtw4wnxyoWiEPZYRfVh+I0 dDczIzvQ/HwGW16SG4Jb9jPUk8s2IRdMBNvSBrc9HXQzJ1ETxkqaA6IuAYtmWXIs+OGV dXlHG/hQsGTXI6RZjDKmyV3gSPGpyzntTAPKmOT4JbE9yv02G7JcwrTYSxWceFwrCEEA Z/k5Bqg01BJsorsfHEHDXxddxr/K+xmEhz+Cm3RQTVuCUmSecU+ut6spRZZhWjwi6ldt mVmg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=YPbQeFVf; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q201-20020a632ad2000000b00503a0293868si2115868pgq.315.2023.03.14.05.06.10; Tue, 14 Mar 2023 05:06:23 -0700 (PDT) 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=@wolfvision.net header.s=selector2 header.b=YPbQeFVf; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231733AbjCNL7p (ORCPT + 99 others); Tue, 14 Mar 2023 07:59:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231671AbjCNL7h (ORCPT ); Tue, 14 Mar 2023 07:59:37 -0400 Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2060e.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe13::60e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3BB9233DA; Tue, 14 Mar 2023 04:58:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MQdSyTGvxwN8i5PK9lRXMEw8Bz8Bfy+WEEhri2D4tWhOgrSRi5/9vXgEUcJdaEoEKuKYugJeCQRpxA+MUOraHaUN2N0KUeyAY4EVNzFaHfgUHAEwfHCiTacKd9RVipD9tU3yCWXxvzdAO7MnogTGDXN+OzvjxhPHPdElmyhHB2fjUD2LzCOqfZ0hepwCn7RIUU+bl5+30pVMTxD39KEFC/EntE7i8H8cguo8l6AsrTO0fpRiOsijjOcB0AusIxowJamavKMhm69TOcft4xKYc/jWuqVt7kyqs8jFCrrZIVH+s2OMHm2fK9ziSpF2VbubZyXBu7RlR/aW56PZqneJ0A== 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=qAxoRUtaF2y+IcWMgc2RDDpmncVhRoDNlRith8a2w2s=; b=no3f/eUmC55h+pKb4lQKAGhbtj8T2s++eHN8NiAakbHpwIAH41a7qaE9UOEM/DFyRA6CHcocFuaqPArHuUWOFYEJtrJlFFfmGKB/eFKATA8EAZMQ/hB34t2k68+NvHTCcxkQoFvvJbpHOfHQ2LQLYJs2P6ZeYIS9AJan/YaXXdSymWLDrgvyry2j74RaKTiOkqKag/Xb4RlydXfV1nXcmplh1qgBBsqRuOa544L2xcSuDH94IImXVAUtB2kJ9QRM8sML8fahCAQJ0texHTU+kTcCq+pTOBlFo0DWP5fl/DGSdaLhCxF6LVbp1aRiXVLiGTm4GIOoLtsr9geobdL2rA== 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=qAxoRUtaF2y+IcWMgc2RDDpmncVhRoDNlRith8a2w2s=; b=YPbQeFVf/tJs+VezAlEFFNdik09gUPNsposbonyfsxkY+inH7it50K/PWTh/YNY6FCdDtvTFz6LL9arRNMALF0XXGbKzDUP8xCCGSQaX614T+OtYB1dzcXnkX35A63L4WRFGtbDSNop+JWpmqeZM+W0yUdaI5phS1tiv3GCIWMo= 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 DU0PR08MB8811.eurprd08.prod.outlook.com (2603:10a6:10:478::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Tue, 14 Mar 2023 11:57:07 +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:07 +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 4/7] drm/panel: sitronix-st7789v: add bus_flags to connector Date: Tue, 14 Mar 2023 12:56:41 +0100 Message-Id: <20230314115644.3775169-5-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> 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_|DU0PR08MB8811:EE_ X-MS-Office365-Filtering-Correlation-Id: 169e6965-f19e-4696-89c1-08db24833c4b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 61gdgQGdWZo/rCTEz51X9gIOFwliM/KI/RhsKG7NjKXf6WaPrxNGtRcywBCYIH7rFN2Hm85S3bU6/3aqXkf6iE9/wN6XcZndyUvu/LdteYFy+BYz/UGPb83ulahFdw+KLB4Zcnm6qhLvxcP6wWfP8s0awi6p8zDaybQEW9EzFHghV8wWRS5661gmT7aCTAeAZPPgSPi1rJtWydmQalkH2Y7SfqJWl5o9K8dbYxjyTyxO4n3IVxUERlof8aT81X9xMLtdXd72ud7iB1c0GK1gPje3enF9c8ZsNplEwjCFA07hxqDuVS6QKbWaMIzwFsYAul0L69fCNnKSu1lSWTzP0ua8vhBvNZGVkyNptfNm7uEklchJAbmKDUIF4ecJoFaKYHldhCeWUkgCK529Yfu0NTSpl9QUMtlfypW1Vh8S3TgduYQ1YEx8+V9DvHeirkRGLueZwfqvq1DfRDm8tlQ/4nu8KQqKnh3VHU9EOTFgGPGK0Yp9MsqTOoiyTpPOjLy+4ktbJEA6qOiAQaY1ltC7gPU0BTeuHLSpIdkg8lzAHxghg3BYuP0JtXyqvY9GrdhsCER+6LGPPWPsrJo1o5P/lmbvVpIGWdGv3JR1EHBw/ONquKVWodAPSxEzZOxzaN7uKBXgymLIKd2exRsLCCJQogf0Fb3ZqzG9Se6A7k2m5oCYFMoc/Ld9iU99/xYL94Mcb9XcIebS1ve0msOAAisxjA== 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)(346002)(376002)(136003)(39850400004)(396003)(366004)(451199018)(4326008)(5660300002)(8936002)(186003)(2616005)(6512007)(26005)(41300700001)(7416002)(1076003)(6506007)(36756003)(86362001)(4744005)(44832011)(2906002)(83380400001)(107886003)(66476007)(66556008)(8676002)(6486002)(38350700002)(66946007)(52116002)(316002)(54906003)(478600001)(38100700002)(6666004);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ldB39xdW7eKAix6EEuqc0Khose21pZjggrrYv6/c6zLX5WqjtkIyHNfbrEFafQyPu5+wPl8IeGWeZzeoIgNe2X74UFMXJdCGvLSGfNqtCJopPQRiYHBkdO6kIZLf+40/N/4mzF5s39jLbOUG7DDA/WD1o68QxaeUwtFhxav/i3kAeEV9ARhpB/XhRBNvGxy5L8o8/he1xOUyei8lm0dLZsv9rMso+3353AZ+e4VbsScEkeD/E//Dkmu/bANKBP+tJchYTmd17i2XfKQIVXf81at5qIwZXHIOb8GhIS3lrOIwWxwzUdQj/YpCdvbPaG1owKbJKLMERuyAtnS9gojyLBuG7ab65x+AJLdLXyQdNJHQD5jBIfPoFyZvuSQ20Dwg2c1gfj0uxDiVCvBREUkUjME08NVEADG6oEGqyskizOgjKuFxEX6ZQekuueIgo7TTSh7J+BTCxrrmHiOqAOl1JO+IKK2TvQ5a/f+1IpjFBZ74HZQ3LVWs1i4K27gVbkuAuV5+M1oGgDMZZis+cELVuY2ZU+6yZ1TSLvHqXbkHpq0knMRPJlWo9gIp9f7IiXV9pSSu5qg0AKtQ8mhiesKjfSQoeXtHpnR1dPp5AGxgr1h8OmF6rnieamZIwY2nEoWcC9FzFFcLO+oDu4hHydc4ONtm9dO5J3uFLoGxF/miM9vLt4wQXvdGrLsHCECTgj039TULbWtjL1YqR4chZub8KcpwlFjKn7BWmhDk65qnNSqCY5amN/rS+uvqNJGLr6G+0FgCYazCQOaOd+ujqh9cixY1wONTvwBaZz8Jk++8cC9bYR8HfCb8Pig9yq/BxukDvB2hsON6YolLL7WpoCte9p24IQDiPxvcuFt6JxjV8B15eaaeoAtLTwtRJV190kaxnB7rfmmMMsf2eB+oP6vT4dbArsYyDM7f4LV1p0wT15oBllj3EpcMGyMPSve006CZ8M2Ziz9O7LFBVGyKuDPZ7i00eVBhqmv10maGGE6Wbq4Z0oUoM2DKaiTRD8mfctgA+R+JVfyy8iZ8sT4MLmI2+t1i/fAcAf0VIXCFjG/dV6k1v01EICsxNXLLonkXIYH3eeqIfCHHRFCCRlhjr5MDA2V5NZ00PETEFflQNTtoHMhG1q9IwXuomOdDspA0gwuR3kpujnV/MFNOM+SeHjUuw0KJqfZLggaeEYnCu0NgWlLsJENMSoAohWfg8Mp08nq2nHmc1I+W9iDT3NOjpZGz4bQ/awg+1/+OaYLvW4DbWYCotJxmB8+bQzkhmDtoEmbWrsWx5so9kPVJYKzGc4aymeeEejoX/ECQ3GgBwm0Q0db4zxXD6ENrqAJ9RmN9ZYHyUN7Oex0flYm+qfWSVAXQww4cdoKFhPTegfuggDNUVBpg0O9e4jMp2ht5pLymkNgvMaYH9IYKQTUcp7mIHHD9ndmQM744q9eGfLZAeg9kKEC2KipyweU1tEW5/kac+72C50BTfSHPGzHXFVzVgD01WEnDO9mDC6sJJ6i+RdSix8Y+tWNu2Plsy8afsksNVjg/IZPNPRqd6FlAxXprkUJQZMcuidPmQo0X2wgyC1zVnFYFq0q78bhAQNUpvrX6+jyFkCm5xHD/Tqb6INTdc3ZQiaUcSVp82oWUiUxY9n8JC6A= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 169e6965-f19e-4696-89c1-08db24833c4b 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:07.5206 (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: mV2K/7c7zaExjltB6TBf7HZQ2DQ3TZGu0LqAh+3ttB3g0nmQ9yRahyp+KsQK58C0wqkq+f9hVwehr6NqR7eDV+TDO+zpH46LOgs7g/OB1Pw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8811 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED 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?1760344757605114295?= X-GMAIL-MSGID: =?utf-8?q?1760344757605114295?= Propagate pixel clock sampling edge and data enable polarity. Both are hardcoded. Signed-off-by: Gerald Loacker --- drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c index 24636722c2ff..1ca04585aff2 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c @@ -195,6 +195,8 @@ static int st7789v_get_modes(struct drm_panel *panel, drm_display_info_set_bus_formats(&connector->display_info, &bus_format, 1); + connector->display_info.bus_flags = DRM_BUS_FLAG_DE_HIGH | + DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE; /* * TODO: Remove once all drm drivers call From patchwork Tue Mar 14 11:56:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Loacker X-Patchwork-Id: 69544 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1720089wrd; Tue, 14 Mar 2023 05:14:39 -0700 (PDT) X-Google-Smtp-Source: AK7set/Rs63yDIzhPb+RnU7yNV9jfPcGy3ZGiQOC4NLIDmOKILY8DNBjDbHoacjpPvuoQmDKpQux X-Received: by 2002:a62:6541:0:b0:5a8:5424:d138 with SMTP id z62-20020a626541000000b005a85424d138mr28935914pfb.16.1678796078627; Tue, 14 Mar 2023 05:14:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1678796078; cv=pass; d=google.com; s=arc-20160816; b=d6ALlHjaSDtR6IzFMM1WPdmvMVoTLSxAqsB+IUYJ9DJgYSdxj1aH+lmi8lOVZriVsJ rfmRaZqunfxvm7xDcKjGCqR/Ge3Auj/+O6d2WI9foo5Flm7zCmnPbCaSK6wSuEdt6iRX UdGV1SMLEiXCO9qj2vpla5nD3avQFjNwHL34ipjOM5Zf2SCs+OG3SEvbRQh1LA1k+851 6+SQ1nnOCjwfXmnAL4OUdkzvw+1pJCBbSploDPZm36/WukUU4zY3N+OgJywn7lXvlIRg c4z2TQJOQSOmPNAkWg5kZAbD76DLtl7q+pgoYF8WEih1LgPSEVNGrgpdAt6nrgpCtmjo 093Q== 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=q71o+vJoLo1CytcOkWcOHMXqoNQU4IlUCWcDpPNW+WI=; b=ppnL4lTd1TNnLglJQT6WS88YnvJ4YFoUp9tyvL8x5ixcxjTd9c2sn+8jkWTu/xdzH5 BHeAnKj4nK3b4FnAgowT9U1RU2fh+gDwV1aEggtP4kNEIrFi3XJQoKAulDSUqOdI/5zk +O9HQHpyf1nuz1gErtPw2B7QJovQyz1otvoovg7uIhjKBYtXuQ7/NChfp9oGDAQ+vCuf rC+iv1KpKsCF/BTitWNxQjmmdkaSzx8kneMvtnbCz4/43Kyxgu5gEiqAwgB08KX6Onz5 5eZbAKZ3WlauQb8ZbVt3uCKq2moZqE6KgXqF4v7VdtT8WiBNmKJYB6k8AxQglHupPfml 5LAA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=AiCGbHQ8; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k189-20020a6284c6000000b0062275c53889si2299317pfd.267.2023.03.14.05.14.26; Tue, 14 Mar 2023 05:14:38 -0700 (PDT) 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=@wolfvision.net header.s=selector2 header.b=AiCGbHQ8; arc=pass (i=1 spf=pass spfdomain=wolfvision.net dkim=pass dkdomain=wolfvision.net dmarc=pass fromdomain=wolfvision.net); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231639AbjCNL7b (ORCPT + 99 others); Tue, 14 Mar 2023 07:59:31 -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> 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: oqvvJ3+IL3mVZaKi8inZKseCiVVRTChCK7Jjn4RUX62NJz+GOlqSfbWx1qiRdVQfh2O8gvnPHD11w6tsEgTR+Gk/UuRRf0RMLx9NAz9dip+l4soj+F3OEx8QZ+sECrMGl0kDVhLeOrwQspkPF2UzH9kouiP8Nj1IVQCdH8aEyY3q+GaXj/OWoLPejt3jz+jfog5OEtFGfOpPR4+bzmdlNUzqQCWaszeS1iivhgEJHet98nvXxS8U6wFKt7g7E9pvNHEDDggPka+nqA9fX/dzPK/BRondzBG/9XWdA+1/enfVM+wZ153+g+X0scNifs87tD8CEQJN+xthUdv225PcQOMRP/ZEBi/pfvfsp4DPErVkGsT+p/zBzws9NyfeDDD6CZEOlCwC+wPkI1VxO5K3R9PwAry9wXW1zLzfPE0xOhzVYp/Rl4TgSR/2o051qQL6yIgQzPbJJaIPnoeVYkMIJMmErQF4/FfXqPOQRQm0FY9UHAQ86l4Y5ZnHR+fVc1bjlQ+lrYkiHbX/GxFcY/fBVhFAtlOftVH7vKtz20TbnlsSxPUAEoxlyufnRwawjduBQ9XcojiEyCp70/PG4Ny+OdzT29rsrkilcMNyH9BTOlm0DdZrUTuGHIvmqKuBGdtJENLd6s7RZkEetXFn7pqOAT4BUofVJ0QwaeTjYVzhysEqcezQMkY+pMcTvft4CTpS3k3KxPAEordaLWsJb2ICM/h/wE7ZES/s2HF+Amsi3fh2tQyEqYY1ydEEhQMUiXoRwGxNE5ssfv6FvZk84XGjhrbpMEDo50FF4mxCL7JAWh/m9b7qRrzdi5uDXftpYTD2TaqCDzZ4dMDqOawaft7iTMmzJupZVWgZacGzwz42diC5Ex6kGZgDrCteo8P68UL+UZnRXUP09iGmRv+FlyOlSbq3P8LLozrqIbmNfpXIOzBdc0hZTGdfoxnX8ZLIxikundhaQZNHEgbdEh4TPfK8qcynr5Nr/noFGAj0HHbf3WwuXmpMgfvvp0wUmCBmu3FEwT/hj/AnAcFB0npbQP1sfgVzAKQPx3pLpJ9GvparwImCKXNzcF3KkLRdnEETSptYxg43G9nDfTk8JMz5j6egA6zCyywidJDcO4JcfHUsZbPy4wyGzPnF/7EGIsJhFCW5bLYicKALyc9ZyL3IRAJCG+qPzi8r/vabV3dMhP0k3Viy4cAyfEAyClgdkkS4YlGcm69JVZZkFxIyiBPbn3xo7IEbftow5FNO8Htkoq+xPpTuWICRSq93jguC6o846AyvBd80T1PxfVpmX3H+2jIFDbsoboameBrP1F47uy9+1kdtsnZB+19c+UsznRkDUBqot7Nm9kE97Px+TsK8dNfWVcBWS3H1n2gnlSzN1INXFULMZvoK+d6lWMA6zugs1cKWExB71a5QvNFDHDMCV/YnHgv6N5YXZ86XcppnF3ofTt5+ratJXTTAD8bQx+wkjSl3TzE79uqdOAZ/+E/n+i2MbfrfS1jkuutCC23ctR6I7h5OrQogK19C7RSioK8Git1CExsxNZzTPhiIEmMY09uyFe/sZgh/0Loga8VUY/2VtWCz23om/ikZLhU0t9oCm3FvgOu/ekUwAV8nZT/aULspIBd+SOHrJou7kqlfoKCgHX0= 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 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,URIBL_BLOCKED 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?1760345277187566067?= X-GMAIL-MSGID: =?utf-8?q?1760345277187566067?= 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