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+1IpjFBZ74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C1zVnFYFq0q78bhAQNUpvrX6+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