Received: by 10.192.165.156 with SMTP id m28csp939972imm; Wed, 18 Apr 2018 00:45:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx48eJIOxs59KrWv8B0GBdMT6Z2ya4Q7xTul4nGdSqhGRk2JeVnSXIAkE+AwBJLNe0V3ijKfR X-Received: by 10.99.109.132 with SMTP id i126mr900344pgc.414.1524037548453; Wed, 18 Apr 2018 00:45:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524037548; cv=none; d=google.com; s=arc-20160816; b=M7Vt2/YRTZwWDj4t0m5vnHbOZq1lb80kx7CWDis6Jor5XKIurbdVVcXbqJIsuWDt1V RijU9fbqrjgdY/jHYOJTk9KNUNmo8Y0A12kx45DmNQ8BmF96J6k791wDXjDA941V3GrN dejopXwm+/9mLXpHF38uzqbUSCgfcvnitoTBO+kkkwxJUWLG054R5VCpRz1MpuNK6zcG 37YkZO/lPvHlQeKNG/WXCKuO4kMAZPk8mp+VyX5dOZVHNkiaDglvFepUVQG9duPRviHw +qZrNfRoKxmO5sEASKbP6yYU8zoMyDZL3GrnjQPERXTeoGdZvgCqhLTiHkqZbjzcWhI5 c5Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=lb+Rda86gmu2q6KrfCilcz3RER19S/gHi4KadoL5fU4=; b=DBGdjqrB1sg18g+amBEkDcyEnp1WGwgmoo7fFJF2NY1Sww3VYqQOoTaCiOeuxZYa6M Hd/ecKdPf3e/ZSEO4jlIPvEyH3sj56Y+zWZtlgRJED8PJ9mA1sbDzULiuVIrl66xJDP+ pAXWg77wD++dnIQg38ueK//8BrlFI6fCMwOeadeWpxdsYgRAleWI1KzyfSpcMWVEsyuN 8T7E0tOOcXTu9Bo+Nb2w4Xi4DEolWSCpgh5YLMJHIPITtjloEKIgGH2a/2ruvaXM9Dqj iKZ6sEPfNECJ2MJMHFyAfMuBF3SWhrGRIXvGNhwGU65/adnhCPdxU33UH3pJSSHJuiWr CI3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6si631814pgn.631.2018.04.18.00.45.34; Wed, 18 Apr 2018 00:45:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752648AbeDRHoc (ORCPT + 99 others); Wed, 18 Apr 2018 03:44:32 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:43533 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751232AbeDRHob (ORCPT ); Wed, 18 Apr 2018 03:44:31 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w3I7dKZa022406; Wed, 18 Apr 2018 09:44:07 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2hdrym29ug-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 18 Apr 2018 09:44:07 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6B4DD5D; Wed, 18 Apr 2018 07:44:04 +0000 (GMT) Received: from Webmail-eu.st.com (gpxdag5node6.st.com [10.75.127.79]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 112CF15E1; Wed, 18 Apr 2018 07:44:04 +0000 (GMT) Received: from localhost (10.75.127.118) by GPXDAG5NODE6.st.com (10.75.127.79) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 18 Apr 2018 09:44:03 +0200 From: Fabrice Gasnier To: , CC: , , , , , Subject: [PATCH] ARM: dts: stm32: Add LPtimer support to stm32mp157c Date: Wed, 18 Apr 2018 09:43:53 +0200 Message-ID: <1524037433-25915-1-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.118] X-ClientProxiedBy: GPXDAG7NODE6.st.com (10.75.127.85) To GPXDAG5NODE6.st.com (10.75.127.79) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-18_02:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add LPtimer definitions, depending on features they provide: - lptimer1 & 2 can act as PWM, trigger and encoder/counter - lptimer3 can act as PWM and trigger - lptimer4 & 5 can act as PWM Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp157c.dtsi | 108 +++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index bc3eddc..7e6301c 100644 --- a/arch/arm/boot/dts/stm32mp157c.dtsi +++ b/arch/arm/boot/dts/stm32mp157c.dtsi @@ -104,6 +104,33 @@ interrupt-parent = <&intc>; ranges; + lptimer1: timer@40009000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "st,stm32-lptimer"; + reg = <0x40009000 0x400>; + clocks = <&rcc LPTIM1_K>; + clock-names = "mux"; + status = "disabled"; + + pwm { + compatible = "st,stm32-pwm-lp"; + #pwm-cells = <3>; + status = "disabled"; + }; + + trigger@0 { + compatible = "st,stm32-lptimer-trigger"; + reg = <0>; + status = "disabled"; + }; + + counter { + compatible = "st,stm32-lptimer-counter"; + status = "disabled"; + }; + }; + usart2: serial@4000e000 { compatible = "st,stm32h7-uart"; reg = <0x4000e000 0x400>; @@ -167,6 +194,87 @@ #reset-cells = <1>; }; + lptimer2: timer@50021000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "st,stm32-lptimer"; + reg = <0x50021000 0x400>; + clocks = <&rcc LPTIM2_K>; + clock-names = "mux"; + status = "disabled"; + + pwm { + compatible = "st,stm32-pwm-lp"; + #pwm-cells = <3>; + status = "disabled"; + }; + + trigger@1 { + compatible = "st,stm32-lptimer-trigger"; + reg = <1>; + status = "disabled"; + }; + + counter { + compatible = "st,stm32-lptimer-counter"; + status = "disabled"; + }; + }; + + lptimer3: timer@50022000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "st,stm32-lptimer"; + reg = <0x50022000 0x400>; + clocks = <&rcc LPTIM3_K>; + clock-names = "mux"; + status = "disabled"; + + pwm { + compatible = "st,stm32-pwm-lp"; + #pwm-cells = <3>; + status = "disabled"; + }; + + trigger@2 { + compatible = "st,stm32-lptimer-trigger"; + reg = <2>; + status = "disabled"; + }; + }; + + lptimer4: timer@50023000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "st,stm32-lptimer"; + reg = <0x50023000 0x400>; + clocks = <&rcc LPTIM4_K>; + clock-names = "mux"; + status = "disabled"; + + pwm { + compatible = "st,stm32-pwm-lp"; + #pwm-cells = <3>; + status = "disabled"; + }; + }; + + lptimer5: timer@50024000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "st,stm32-lptimer"; + reg = <0x50024000 0x400>; + clocks = <&rcc LPTIM5_K>; + clock-names = "mux"; + status = "disabled"; + + pwm { + compatible = "st,stm32-pwm-lp"; + #pwm-cells = <3>; + status = "disabled"; + }; + }; + usart1: serial@5c000000 { compatible = "st,stm32h7-uart"; reg = <0x5c000000 0x400>; -- 1.9.1