Received: by 10.192.165.148 with SMTP id m20csp556117imm; Wed, 2 May 2018 05:11:22 -0700 (PDT) X-Google-Smtp-Source: AB8JxZok3C2Wle/qCzDzhgvWPHQxsVO+hT03NzseL2yQny47su9zEe3bkTTSNTY30UN1dDLGBgv+ X-Received: by 2002:a63:4004:: with SMTP id n4-v6mr5562358pga.104.1525263082747; Wed, 02 May 2018 05:11:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525263082; cv=none; d=google.com; s=arc-20160816; b=KK67qwjDOflUAPaVdq3hxpJEpyOpL/sDU4y1ReDYlzm5SjFQhNq6YVQh0ij6Mna8Fk +z+0xy6AGYhZhE666f/pP6LyhuNwZoIa0Cd/6id1nAitOOLoLyWk/kD9zwqeMomIF05G IQG1Kw78trjTnfm78X0P4LXd93DxeG+73uMbaWXASH1126Xg9dWpOffX3yP58Tyf9D2d 7l7LxfrN8ZOjIDVzWHNmEMBCFM1fIA/Fh+0agLVw6rdSh58s3XD9pn5R8NhcQOw23wuL QSh7Qs5NaJ2hcoyD45cYXFRejTPSToZHsegbVqHDs3BRNXTs45l9OOgXXe3rzunf2sTB QV1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=7vr5C/+9UBISEoFjOPo1c0QgsPOP2RJXfTky9Lglh80=; b=0k6byhIzzCqDj7xPN+y3/yzXBY24Rz9pKTbprvCEWnLNvfU2qxc7TJ5vmT+qH4t8hA CfQ3ARLbvi3Tzx7ll1JsmbcB4d/njiDV8SmB76aSzyRIvMe9YFKDbOsk//5njIKaYzzb 5jWPbv2crJSqQIsLRSmivoIeexh3Z5MX3RCToYjiKoq6qtCurLt8gjPnu8sL3nYiU+v5 3SZRcHs7bE52JNqXN9Y9CO7OcboUyU3PVt+ITrlCgKqjukTGW66K7FAhLcHr6aTpNqVd F/e2ZoNlAlTc1qSYDP7/t1GgqgZMmWmBhOm3qDfUmYl49UORPxh+/PSxgBBtd/Fg5gMr rz1A== 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 u75-v6si9113621pgb.468.2018.05.02.05.10.44; Wed, 02 May 2018 05:11:22 -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 S1751331AbeEBMKa (ORCPT + 99 others); Wed, 2 May 2018 08:10:30 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:60669 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750939AbeEBMK2 (ORCPT ); Wed, 2 May 2018 08:10:28 -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 w42C9VPO002017; Wed, 2 May 2018 14:10:08 +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 2hqd1jr0md-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 02 May 2018 14:10:08 +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 9DA5D3D; Wed, 2 May 2018 12:10:07 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node2.st.com [10.75.127.8]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6ADA5292F; Wed, 2 May 2018 12:10:07 +0000 (GMT) Received: from [10.201.21.58] (10.75.127.44) by SFHDAG3NODE2.st.com (10.75.127.8) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 2 May 2018 14:10:06 +0200 Subject: Re: [PATCH] ARM: dts: stm32: Add LPtimer support to stm32mp157c To: Fabrice Gasnier , CC: , , , , References: <1524037433-25915-1-git-send-email-fabrice.gasnier@st.com> From: Alexandre Torgue Message-ID: <654c83fa-1aed-def1-63f0-1b432b27c10f@st.com> Date: Wed, 2 May 2018 14:09:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1524037433-25915-1-git-send-email-fabrice.gasnier@st.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG3NODE3.st.com (10.75.127.9) To SFHDAG3NODE2.st.com (10.75.127.8) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-02_04:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fabrice On 04/18/2018 09:43 AM, Fabrice Gasnier wrote: > 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 > --- Applied on stm32-next. I fixed out DTC warning: /soc/timer@50023000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property /soc/timer@50024000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property Thanks. Alex > 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>; >