From patchwork Mon Dec 16 15:39:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Gasnier X-Patchwork-Id: 13909920 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 8905AE77180 for ; Mon, 16 Dec 2024 15:46:44 +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:References:In-Reply-To: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:List-Owner; bh=D3j5CJpUfFk44bu0NIpTsj1poKDcdrjF8B4oIGcYhK8=; b=D2gxkotoYg9Va3yHIvee2e32B5 Z/oIgJ4Z333ksOuVlT4RcIABdEEegEsZp1fnu0yl4PcCInvWcq/ZETQn9DNPOzD2RoPCtMSRECZfu BIjnFQhN7PTUkJq/49B2CYQy9F6DI7ZsxlY9Vlw9bQTYiVukImh5AIhaQcdm/JLV1d0eEHyYHG9au XjcBFdm8QbmdU3sS0ge575Oa117/Nilji/Zmd/T0YChlq80SCvuH9xmTDJdSMQtMRmFSd266uJ8WL Ocfk4ws170NVU/m6kDyWamwOdCb076uCj57J8zylAScMnFNgJeC8hgzSuGlbsXtDjDtc3BcutAHoY 5WAXZZKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tNDIk-0000000ASrx-34rd; Mon, 16 Dec 2024 15:46:30 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tNDDG-0000000ARho-3UKR for linux-arm-kernel@lists.infradead.org; Mon, 16 Dec 2024 15:40:52 +0000 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4BGEYOkk030050; Mon, 16 Dec 2024 16:40:45 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= D3j5CJpUfFk44bu0NIpTsj1poKDcdrjF8B4oIGcYhK8=; b=QBjCY4aNw08iVj/2 Ff55vd4QhNyoFO2XRJea4CYS/xym4oyfmGqHk9gP5+la5mR6cHlzcs9pBiRGdwMf 3BYc3ohkrFoJtk8WyBXHH6h3JSwDhO0AYLI3dNQ9jXP56L9wgVSZvsEp+xO+FqYJ YhZEz8hFbqhRAXuw5Xnnqyl3je8ji4/v+SvT2djRYhFkfLOBlrykUCKnmyvC3H8m AH3nbPkwutasGJx6Vuvzc4s1QPXvQ419zdZwKmoPbXcUnNCPe9D+lUj6zOcQMWfI D35BRbqPLj3at5KmsF1aY1dmHnSQI7ta7gpdOE/8qc7OHE980z+KbI/q+LT3OKpF 98p8vw== 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 43jp3987c7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 16 Dec 2024 16:40:45 +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 65F3D4004C; Mon, 16 Dec 2024 16:39:52 +0100 (CET) Received: from Webmail-eu.st.com (eqndag1node4.st.com [10.75.129.133]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B822F2843D3; Mon, 16 Dec 2024 16:39:22 +0100 (CET) Received: from SAFDAG1NODE1.st.com (10.75.90.17) by EQNDAG1NODE4.st.com (10.75.129.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.37; Mon, 16 Dec 2024 16:39:22 +0100 Received: from localhost (10.252.30.129) 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; Mon, 16 Dec 2024 16:39:22 +0100 From: Fabrice Gasnier To: CC: , , , , , , , , Subject: [PATCH 4/5] ARM: dts: stm32: add counter subnodes on stm32mp157c-ev1 Date: Mon, 16 Dec 2024 16:39:07 +0100 Message-ID: <20241216153908.3069548-5-fabrice.gasnier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241216153908.3069548-1-fabrice.gasnier@foss.st.com> References: <20241216153908.3069548-1-fabrice.gasnier@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.252.30.129] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) 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-20241216_074051_164082_300695A3 X-CRM114-Status: GOOD ( 10.00 ) 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 Enable the counter nodes without dedicated pins. With such configuration, the counter interface can be used on internal clock to generate events. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/st/stm32mp157c-ev1.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32mp157c-ev1.dts b/arch/arm/boot/dts/st/stm32mp157c-ev1.dts index 9eb9a1bf4f2c..8f99c30f1af1 100644 --- a/arch/arm/boot/dts/st/stm32mp157c-ev1.dts +++ b/arch/arm/boot/dts/st/stm32mp157c-ev1.dts @@ -306,6 +306,9 @@ &timers2 { /delete-property/dmas; /delete-property/dma-names; status = "disabled"; + counter { + status = "okay"; + }; pwm { pinctrl-0 = <&pwm2_pins_a>; pinctrl-1 = <&pwm2_sleep_pins_a>; @@ -321,6 +324,9 @@ &timers8 { /delete-property/dmas; /delete-property/dma-names; status = "disabled"; + counter { + status = "okay"; + }; pwm { pinctrl-0 = <&pwm8_pins_a>; pinctrl-1 = <&pwm8_sleep_pins_a>; @@ -336,6 +342,9 @@ &timers12 { /delete-property/dmas; /delete-property/dma-names; status = "disabled"; + counter { + status = "okay"; + }; pwm { pinctrl-0 = <&pwm12_pins_a>; pinctrl-1 = <&pwm12_sleep_pins_a>;