Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3759082pxk; Tue, 22 Sep 2020 01:34:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwod8LfFoOcIQ6/geBMvj9K1VZ8BRk6UD7uUL9HIrY1d9HcIM9+iarNxAmBZcQdcIeSBuDf X-Received: by 2002:aa7:c61a:: with SMTP id h26mr2738177edq.254.1600763649650; Tue, 22 Sep 2020 01:34:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600763649; cv=none; d=google.com; s=arc-20160816; b=QYDehiMy3oc3FAaYrnDQzZ9GOxeWYxWh8EWyIKxz5pKYZ84YuSewzNK3t5nCCYK++8 THiykR2+xRVLHqgdOQeQ/b5I2tn+y5jguwYOAZGULB7nICtDJaqZefDhBVzkQu5s/jOS FBbDf69k1EL4aMoMYEcLTS8Nwgcju3gy8wyS51druIaUA77GxYR+BhEU8nVGwcChyn/I k25evpf02sPTyDuoMtxNIuYswGBd6CkZPQROnMe0ZfZSsDacOG+UCbA/wH3CdPprtgjv EuneRoQK4csmZCUzJrb1HMRdMjIYLnNVm5JEZrL2qmLFtUfWv6rhn6qoT6usYGzwGfDO NH4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:to:from :dkim-signature; bh=xSlMzHlQugpdZFck23OK9HNUyveeCKKUCM08ZtAZ/yg=; b=X3sSiA46LduJ/fP2b00IElCFwODGQudh742bLAWBqBFncekoyUV1CmpdRjvTn7olD5 qneO8r4OleTY/cAK3Es6mHcMzbw+2uQmtYhN+R2qikbAymIYjNRkT5pSYwE/70WAvbsk g7Zf3JL5c6R+Va7u2Ki9bZJD1YP9IsRj20hLwN/Q5jAR5X/AX5g61Y/ynLKlcPXGBLdW dE9H+3yWcR9igod2WHGv0xNfVEBIZ7WSK9VQHEImNv0HrWIVzU7CT5DAznZoI23pvbID 8tSjwyCAFgOJ9q9Kb0DSWsBhCLmtgKnDZgxliJxCUiZqSL9jbsSQD19N0CCeYXo3KeuS Truw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=ZKTgEE0c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n23si10048940edw.337.2020.09.22.01.33.46; Tue, 22 Sep 2020 01:34:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=ZKTgEE0c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729972AbgIVHnX (ORCPT + 99 others); Tue, 22 Sep 2020 03:43:23 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:56626 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729751AbgIVHnW (ORCPT ); Tue, 22 Sep 2020 03:43:22 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 08M7bgtp028642; Tue, 22 Sep 2020 09:43:07 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=xSlMzHlQugpdZFck23OK9HNUyveeCKKUCM08ZtAZ/yg=; b=ZKTgEE0cjt+sSG02tfaGuf9/2nnnnTMLamcxEQoElPfT7ZN+JlJppCupStPwYax3sU5i OAYA4Xe44rnhc7GI9dXiy6HwGSV715g6Xy71PawIFTN19NOudI/yCQ6ff3pOUdwxEyI+ yCEbHdCo0+TaCWkcutdL9RZzrRh62OEi1FxClv8CPtsC7VIuVRs/8lgZP+Lg2u+y/NYv 74KhzmhI/h13fbbHmcfCuKgImzxlUbzsCwfLg9DuFpcDnm1LN/NJGhLmLOoqEYE+O4ji x7wVU0U7yftTQEOmvX8lUC9LhgwoZw0jBjNN1M6CMfJVbOOkXsycox//PeRCaLQ/WlV+ vg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 33n8vepctk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 22 Sep 2020 09:43:07 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B6F85100039; Tue, 22 Sep 2020 09:43:05 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag6node1.st.com [10.75.127.16]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 9AC7E212FAA; Tue, 22 Sep 2020 09:43:05 +0200 (CEST) Received: from localhost (10.75.127.47) by SFHDAG6NODE1.st.com (10.75.127.16) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 22 Sep 2020 09:42:59 +0200 From: Yannick Fertre To: Yannick Fertre , Philippe Cornu , Antonio Borneo , "Vincent Abriou" , David Airlie , "Daniel Vetter" , Maxime Coquelin , Alexandre Torgue , , , , Subject: [PATCH v2] drm/panel: otm8009a: allow using non-continuous dsi clock Date: Tue, 22 Sep 2020 09:42:53 +0200 Message-ID: <20200922074253.28810-1-yannick.fertre@st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG4NODE2.st.com (10.75.127.11) To SFHDAG6NODE1.st.com (10.75.127.16) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.687 definitions=2020-09-22_06:2020-09-21,2020-09-22 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Antonio Borneo The panel is able to work when dsi clock is non-continuous, thus the system power consumption can be reduced using such feature. Add MIPI_DSI_CLOCK_NON_CONTINUOUS to panel's mode_flags. Changes in v2: - Added my signed-off Signed-off-by: Antonio Borneo Signed-off-by: Yannick Fertre --- drivers/gpu/drm/panel/panel-orisetech-otm8009a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c index b6e377aa1131..6ac1accade80 100644 --- a/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +++ b/drivers/gpu/drm/panel/panel-orisetech-otm8009a.c @@ -452,7 +452,7 @@ static int otm8009a_probe(struct mipi_dsi_device *dsi) dsi->lanes = 2; dsi->format = MIPI_DSI_FMT_RGB888; dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | - MIPI_DSI_MODE_LPM; + MIPI_DSI_MODE_LPM | MIPI_DSI_CLOCK_NON_CONTINUOUS; drm_panel_init(&ctx->panel, dev, &otm8009a_drm_funcs, DRM_MODE_CONNECTOR_DSI); -- 2.17.1