Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2604054rdb; Mon, 4 Dec 2023 02:12:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpRf1xUAxOi0PLe3txCvXMIkt8bhbt+wfwBUKWaHnOWeIvIYEo5EkFCNFGKHy0GTlZrukn X-Received: by 2002:a05:6a00:a0c:b0:6bd:f224:c79e with SMTP id p12-20020a056a000a0c00b006bdf224c79emr1232506pfh.11.1701684773542; Mon, 04 Dec 2023 02:12:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701684773; cv=none; d=google.com; s=arc-20160816; b=d0KXtYZDD4ybK2YtjltvzSrlML4yux1pWpTP0+KsSElzh7uysp0RgvznUMT/+in7Y7 CmWD4OkOUkvGypwwz/NwOATrEiAowHgkZM97NvaPmZUNKezYpLVm9Xmm7u/lYQdTEmj9 A2b/uEOMlp1IiMi80YeD4kJaeiLhGMIsDZfzU2dO2mquwTQeW41Cufnc25IF4Sit2R3d MLmfkj6LhAS/Bp8dY75glydyPD3D3PHGSS3bTbHoVfM9tDiDsbxa+j/jDka60A3ZdNhh 6VS/O3irO4UJ3MCw+ZTiykZJyYqsRa632bQ8EHCTlrSFb7UG53MGsr3ejC4F01X+VMRK OIXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=nQnyC3lsx0aVrbg7MvvuUyjEbRMAbRgqkdEPvR+/ZvI=; fh=ljYCK+dOpF1YWW7z2A7qe7wO4UQbVAbOY9nPAWw9qJA=; b=0vvlailR2oq+nxuFLgxXCH41nDxUFW7YXDkhYDi85M8IbmC4lAQ1stDVDlDRGBJhP7 gWgvmJV1yRF8fq5o29BtHlkjp7cLMwRmtopI97+WcV9QF3HM0Fk2IgbFTesyvUYY0t0g yc8QssOB3U4pcbdujm6b6Zs4zMNTSpdkTm4Nt0hRjZUAP8me+3zssE3/82aP0y2S+8sn D+pSwdd1InTiZVsKjBEwDO88U7CdjX7wrWb8cRtrrlA09w65sQ5ZwvO9VFHuPHHlFHNf rzf5gb+BbB2rYODKy8/3ibex1j9HRfQdsnM7G2KAJXzIicF80s5XPC5daOr8IW/LgiBo hKdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=f0QirGig; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id dh8-20020a056a00478800b006ce3df4cc76si2789998pfb.347.2023.12.04.02.12.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 02:12:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=f0QirGig; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 42B14805E128; Mon, 4 Dec 2023 02:12:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230372AbjLDKMf (ORCPT + 99 others); Mon, 4 Dec 2023 05:12:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232957AbjLDKMb (ORCPT ); Mon, 4 Dec 2023 05:12:31 -0500 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFE80CC; Mon, 4 Dec 2023 02:12:37 -0800 (PST) Received: from pps.filterd (m0369458.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3B4815Qm008037; Mon, 4 Dec 2023 11:11:49 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=selector1; bh=nQnyC3l sx0aVrbg7MvvuUyjEbRMAbRgqkdEPvR+/ZvI=; b=f0QirGigY05O6nytCchuzif gv9t66Hmttc9XqtGRwziHBpd9qf2yGK0Q3YzfNVCv15FSue1Sg9GNS0JhhhLucHj OXugUCQfATGuDG0qj9UdpJBZ3bkMeZ/TdytGxb8eFgUl/bdSv1fOgcJiB5ldbUZq V1U/VcsCX4zFucniCqgpRZKfv57IXBKb8hXctAIbW7ec1dRLm/MoFy72F7PZh/b4 R0i2gNERrzYu5F64IF/KRuGFRwV94RHNh1OVr8slDQ9xckwNlhSYTkZl74IVRo25 LWFwLBmpUd/i2NwfBnUN2BGKy2PSz/digzsRfSTYvD16b88MJ8OBlx8Vxqx7Ocw= = Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3urf14vm5u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Dec 2023 11:11:49 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7FB95100089; Mon, 4 Dec 2023 11:11:46 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 6FFFA21ADAD; Mon, 4 Dec 2023 11:11:46 +0100 (CET) Received: from localhost (10.252.13.105) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 4 Dec 2023 11:11:45 +0100 From: Raphael Gallais-Pou To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Yannick Fertre , Philippe Cornu , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Richard Cochran CC: , , , , , Subject: [PATCH v2 0/4] Update STM DSI PHY driver Date: Mon, 4 Dec 2023 11:11:09 +0100 Message-ID: <20231204101113.276368-1-raphael.gallais-pou@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.252.13.105] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-04_06,2023-11-30_01,2023-05-22_02 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 04 Dec 2023 02:12:51 -0800 (PST) This patch series aims to add several features of the dw-mipi-dsi phy driver that are missing or need to be updated. First patch update a PM macro. Second patch adds runtime PM functionality to the driver. Third patch adds a clock provider generated by the PHY itself. As explained in the commit log of the second patch, a clock declaration is missing. Since this clock is parent of 'dsi_k', it leads to an orphan clock. Most importantly this patch is an anticipation for future versions of the DSI PHY, and its inclusion within the display subsystem and the DRM framework. Last patch fixes a corner effect introduced previously. Since 'dsi' and 'dsi_k' are gated by the same bit on the same register, both reference work as peripheral clock in the device-tree. --- Changes in v2: - Added patch 1/4 to use SYSTEM_SLEEP_PM_OPS instead of old macro and removed __maybe_used for accordingly - Changed SET_RUNTIME_PM_OPS to RUNTIME_PM_OPS Raphael Gallais-Pou (3): drm/stm: dsi: use new SYSTEM_SLEEP_PM_OPS() macro drm/stm: dsi: expose DSI PHY internal clock arm: dts: st: fix DSI peripheral clock on stm32mp15 boards Yannick Fertre (1): drm/stm: dsi: add pm runtime ops arch/arm/boot/dts/st/stm32mp157.dtsi | 2 +- arch/arm/boot/dts/st/stm32mp157a-dk1-scmi.dts | 2 +- arch/arm/boot/dts/st/stm32mp157c-dk2-scmi.dts | 2 +- arch/arm/boot/dts/st/stm32mp157c-ed1-scmi.dts | 2 +- arch/arm/boot/dts/st/stm32mp157c-ev1-scmi.dts | 2 +- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 278 +++++++++++++++--- 6 files changed, 242 insertions(+), 46 deletions(-) -- 2.25.1