From patchwork Fri Dec 20 09:59:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 13916457 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 60C85E77188 for ; Fri, 20 Dec 2024 10:08:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=dOw4YdXj9waL07VKIhuDITdlMciXDPom5te6D/MGRbo=; b=LmgTmnDl/4zdH5I7RCmzjHiXPh Anr2rPNOs+iXJxPXGb0QDOKFiFQ/PMSPakvRgcIlla5Zh82x7rxwMOo7YHV7L/pHl3tpNGIPcLMtb HsBwon93Yl5f3crYsuUi5eOmBTmSGlnykaSRz4nodfSGdvbErG4wBkFZybJySuspLyPG764oWO/by S0ZgnijXAp/c5q49GHpfLXH5LqOcA6gY59iigfY6KOkIID0GFO16+kzv4nBKQQqWvR2OUtMp/82v8 Nbl9Mc6yURB/BIakkKWWeZ3t41wdqEmlw+K/YjGhKpreo1v+HPErV7Sk8GWVw1du73XNedO2dkAsB SzAW0PLQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tOZva-00000004Wva-3aHw; Fri, 20 Dec 2024 10:08:14 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tOZpr-00000004VdW-2b6r for linux-arm-kernel@lists.infradead.org; Fri, 20 Dec 2024 10:02:22 +0000 Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BK8DsG0025632; Fri, 20 Dec 2024 11:02:04 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=selector1; bh=dOw4YdXj9waL07VKIhuDIT dlMciXDPom5te6D/MGRbo=; b=rKCbiFb92P1LU4qyekPkq6kjghozmWwcaSzrX0 0jcrWsF5wYH/UocONfYpPcfHghdAWJzhrfWIttUbvvfVzMf8NefIY8BWM0+lkQoK 8/xrsP3kKcWqxNEpbTe4etcgxr7zitx3ZIuIEtdaNNmp6wOmivim3S7MfMOylqxE k/FnPGlt5HW0EwthYLr5MpPNFIgTop0sCyhYowQ5j+Wdga/vNJoMeWE8zlqNwCa4 UViIuXKqBqngCV4va/ZCF0C5EumzaLSBadgk2/jyYiKyWMD1v+TErfW6CQHVsdTU PQxvykibfpb9vIXMBIE0W+lPbD+qWMjNbeUrXwt+DicbgYWw== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 43n4vu0jcy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 20 Dec 2024 11:02:04 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id C130940060; Fri, 20 Dec 2024 11:01:10 +0100 (CET) Received: from Webmail-eu.st.com (eqndag1node6.st.com [10.75.129.135]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 1E89925F1EC; Fri, 20 Dec 2024 11:00:07 +0100 (CET) Received: from SAFDAG1NODE1.st.com (10.75.90.17) by EQNDAG1NODE6.st.com (10.75.129.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.37; Fri, 20 Dec 2024 11:00:06 +0100 Received: from localhost (10.48.86.222) by SAFDAG1NODE1.st.com (10.75.90.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.37; Fri, 20 Dec 2024 11:00:06 +0100 From: Fabrice Gasnier To: , , , , , , , CC: , , , , , , , , Subject: [PATCH v2 0/9] Add STM32MP25 timers support: MFD, PWM, IIO and counter drivers Date: Fri, 20 Dec 2024 10:59:18 +0100 Message-ID: <20241220095927.1122782-1-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.48.86.222] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SAFDAG1NODE1.st.com (10.75.90.17) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241220_020220_008218_CB630C97 X-CRM114-Status: GOOD ( 11.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series adds STM32MP25 support on MFD PWM, IIO, counter timer drivers. This new timer variant is managed by using a new DT compatible string. It comes with a slightly updated register set, some new features and new interconnect signals inside the SoC. There is also a new instance (TIM20). Same feature list as on STM32MP1x is supported currently, except for PWM capture (not enabled, by DT). The device tree files add all instances in stm32mp251 dtsi. PWM, counter and trigger examples are provided for stm32mp257f-ev1 board. Changes in V2 --- - PMW driver updated to address Uwe's review comments - Collected Acked-by Fabrice Gasnier (9): dt-bindings: mfd: stm32-timers: add support for stm32mp25 mfd: stm32-timers: add support for stm32mp25 iio: trigger: stm32-timer: add support for stm32mp25 counter: stm32-timer-cnt: add support for stm32mp25 pwm: stm32: add support for stm32mp25 arm64: defconfig: enable STM32 timers drivers arm64: dts: st: add timer nodes on stm32mp251 arm64: dts: st: add timer pins for stm32mp257f-ev1 arm64: dts: st: add timer nodes on stm32mp257f-ev1 .../bindings/mfd/st,stm32-timers.yaml | 18 +- arch/arm64/boot/dts/st/stm32mp25-pinctrl.dtsi | 61 ++ arch/arm64/boot/dts/st/stm32mp251.dtsi | 524 ++++++++++++++++++ arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 58 ++ arch/arm64/configs/defconfig | 4 + drivers/counter/stm32-timer-cnt.c | 7 +- drivers/iio/trigger/stm32-timer-trigger.c | 21 +- drivers/mfd/stm32-timers.c | 32 +- drivers/pwm/pwm-stm32.c | 42 +- include/linux/iio/timer/stm32-timer-trigger.h | 6 + include/linux/mfd/stm32-timers.h | 9 + 11 files changed, 766 insertions(+), 16 deletions(-)