From patchwork Thu Jan 5 13:06:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier MOYSAN X-Patchwork-Id: 39527 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp291690wrt; Thu, 5 Jan 2023 05:08:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXvtFW002Fcvw/CHNy38dkGS481zQ9hZq928zU/hFMpmi5z1nSBs2o4li5i//Y7FNeAUzIv3 X-Received: by 2002:a17:902:b60e:b0:189:89a4:3954 with SMTP id b14-20020a170902b60e00b0018989a43954mr55689705pls.41.1672924114193; Thu, 05 Jan 2023 05:08:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672924114; cv=none; d=google.com; s=arc-20160816; b=di0vAHwndPa8hlzVbCDu7ZnV9Pu6WseCSaDfz6LAfdEPATbvUhpR5gI5DLymYrJlv8 r6E5+2XsLFLuACG0sdBQ9Sp0BG0GySsFWUvtdyNdWfTZkolgZxNy3eBHEMfLmWN/v9C9 MHLO6sM7NS+sVXucsYsH6YLff//JC71lQgkZnt22HtjZW2aeEr1vJ90k/or/bSgyx9bP j9ZUO1TqPv5R5UsbDKIEZu3GzZJL9fmjktnlRuW0rTmuWhU22Pabo8VySF1FQNrfpFVL oQVa41mpeAx6Uao0I9QYsHvZp4R1ummOoL7tGssxcwuDgO9bcyLdP6ZyTC1av6h6Y/BF zVrw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7DNtAn5FSvBFs58HAuiuLotVK7ADNTWKpKT1zToNgew=; b=S6JVJhq/1SPCX85xAHiShMQbSTijXqFNbTP69DN0T6wTSf6rY59sIlTzkJ3RiQwbZ6 n1UFYjigHO5c4zOVWm1DHa7V14UNcmIfcygb33EbxcF9VOgQrg1EGDewpbEzfDgHsahi lUHxuDBrffDUR0SJz3ltKtAXQEfEzvhh8Zty6Ix/OUnlhsLsHZ8dVoZ5WTiLtFaevMAS nvR2DS8pA+hxEjxZ1jdnezoFcmuC6R3ifJ899h6C0/xvz6IT7RVdk8AGcIioeOJkZ9RP K0atE0BiJ7XztWbkyoVraJHf8b43/Ily+SzgXUHe+y1XQx6FINZOXgC52EOJZCEhBEYS JJLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=ZJpbS+ia; 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=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p5-20020a170902ebc500b001927e835ffasi27641225plg.119.2023.01.05.05.08.20; Thu, 05 Jan 2023 05:08:34 -0800 (PST) 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=@foss.st.com header.s=selector1 header.b=ZJpbS+ia; 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=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234188AbjAENHr (ORCPT + 99 others); Thu, 5 Jan 2023 08:07:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234199AbjAENHJ (ORCPT ); Thu, 5 Jan 2023 08:07:09 -0500 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 515E84D4A3; Thu, 5 Jan 2023 05:07:06 -0800 (PST) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3059sZMn024285; Thu, 5 Jan 2023 14:06:56 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=7DNtAn5FSvBFs58HAuiuLotVK7ADNTWKpKT1zToNgew=; b=ZJpbS+iahkEvgrcpHDig50rDuYhsS1Y+spb3eO5PF2K2favjTaARGhzIdp4CeNjUQ2Kc I8GD4MhOXfPDFsEtXCF7aeATs6cvmltBrZfP+H9QcaH6vDUX2rRqR+pmRJqC77xoFGzV Hy6Kxm7O7ItUXFGd4aDteYeci5r+f+s7mj1SRK07PC4H+y8cPwsPhlgmWBsJdFsymOnX FcQgtctb5P6IAuQ+gsQfwLWj0H0Tih7+ZVTJCScOd2NyDHXw/O/TxNnL3mPw09MU+iw5 YQG25eWJyk8JI29MlpTE2DWBBDMwN/7JNx35cHKHu7+k90Kzu1+LU0fKxPVu9QP8J5s9 ww== 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 3mwuw299ar-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Jan 2023 14:06:56 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B007010002A; Thu, 5 Jan 2023 14:06:55 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A9ABB23BDEB; Thu, 5 Jan 2023 14:06:55 +0100 (CET) Received: from localhost (10.201.20.178) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.13; Thu, 5 Jan 2023 14:06:55 +0100 From: Olivier Moysan To: Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue CC: Olivier Moysan , , , , Subject: [PATCH 3/3] ARM: dts: stm32: add timers support on stm32mp135f-dk Date: Thu, 5 Jan 2023 14:06:11 +0100 Message-ID: <20230105130612.330155-4-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230105130612.330155-1-olivier.moysan@foss.st.com> References: <20230105130612.330155-1-olivier.moysan@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.20.178] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-05_04,2023-01-04_02,2022-06-22_01 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS 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?1754188076049201732?= X-GMAIL-MSGID: =?utf-8?q?1754188076049201732?= Configure timers support on stm32mp135f-dk. The timers TIM3, TIM4, TIM8 & TIM14 which can be used on expansion GPIO connector are disabled by default. Signed-off-by: Olivier Moysan --- arch/arm/boot/dts/stm32mp135f-dk.dts | 58 ++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp135f-dk.dts b/arch/arm/boot/dts/stm32mp135f-dk.dts index 9ff5a3eaf55b..338b4f633ee3 100644 --- a/arch/arm/boot/dts/stm32mp135f-dk.dts +++ b/arch/arm/boot/dts/stm32mp135f-dk.dts @@ -208,6 +208,64 @@ &spi5 { status = "disabled"; }; +&timers3 { + /delete-property/dmas; + /delete-property/dma-names; + status = "disabled"; + pwm { + pinctrl-0 = <&pwm3_pins_a>; + pinctrl-1 = <&pwm3_sleep_pins_a>; + pinctrl-names = "default", "sleep"; + status = "okay"; + }; + timer@2 { + status = "okay"; + }; +}; + +&timers4 { + /delete-property/dmas; + /delete-property/dma-names; + status = "disabled"; + pwm { + pinctrl-0 = <&pwm4_pins_a>; + pinctrl-1 = <&pwm4_sleep_pins_a>; + pinctrl-names = "default", "sleep"; + status = "okay"; + }; + timer@3 { + status = "okay"; + }; +}; + +&timers8 { + /delete-property/dmas; + /delete-property/dma-names; + status = "disabled"; + pwm { + pinctrl-0 = <&pwm8_pins_a>; + pinctrl-1 = <&pwm8_sleep_pins_a>; + pinctrl-names = "default", "sleep"; + status = "okay"; + }; + timer@7 { + status = "okay"; + }; +}; + +&timers14 { + status = "disabled"; + pwm { + pinctrl-0 = <&pwm14_pins_a>; + pinctrl-1 = <&pwm14_sleep_pins_a>; + pinctrl-names = "default", "sleep"; + status = "okay"; + }; + timer@13 { + status = "okay"; + }; +}; + &uart4 { pinctrl-names = "default"; pinctrl-0 = <&uart4_pins_a>;