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/FfXqPOQRQm0FY9UHAQ86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t9oCm3FvgOu/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