Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1137900imm; Wed, 20 Jun 2018 12:15:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKOhTWAt0IabHcmh/Qlk8BgII4X4o0YfnipHwqsdNOxe1zaRU1MKO7l8ENb5P9+/BWfuDTF X-Received: by 2002:a62:dc98:: with SMTP id c24-v6mr24251261pfl.183.1529522109482; Wed, 20 Jun 2018 12:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529522109; cv=none; d=google.com; s=arc-20160816; b=tmWqpJaEwPeFpgpa6b5i9m/cO4rvVYk07bgcpwrxtByVCUIksCgc+cctl5VGprs1rh BosSdx8p474HRn/8eKw2ZKIEgWD0BD4GU+MAyZq1foCeJ5m5QlFEjca4HcUjEV/6H3Lp V6S8Oz0jKNC3DFErJskiuM7ij4yeKVH4KkDn0Bscl6Kp2SbxIHizkYXtpHYZp5vC2uWQ anaAHCzmiqkn7hMymAyjKi7flWxjuHc8XpBOSlTbyW2aeqmxyj5Qmt9ZWvwPmP+2Gx5q WcvTwanUyAHfij/O1w4rmm/8SP8dv0ztu76Vu5t7gyyxkC/UvwX6+w43J/eyC+zA9N1m GVzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=TI551naM5Y4uDzo/GrGp2yfCeEEPUjm4pMtD9JZgHOU=; b=erJGbMXMEZhs6yxEoJ8VPisSeZxDUTpnz41Rj93MAVribydPmxabgPQnrWTgOvGGhk R9R9QVOEaoK54EIQ4WqQwyAaLUZMYGNBtEjwlk43b+zy6DvpB3uPzvYifJb9bEgKsTqS +yib9d8uzF8qO4DoT/GeWeRRLl3iBVHGpVZpDkaWYt5NhE8ArLTldF/5ZbsRCOYelNX6 3Tzodz8WujWczkBLFMF6XZS/atgaAIY/IOldVA8ezmQRPWj48CmXeYACZWM389bBOXJ3 lgkRPvet+91wRmhNZ5eEUB+rp0nNBDwPbg83q704W/egXjEpHcxuL4o5tOHCIlH/LBl8 K5/g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2-v6si2359221pgr.167.2018.06.20.12.14.54; Wed, 20 Jun 2018 12:15:09 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754633AbeFTTON (ORCPT + 99 others); Wed, 20 Jun 2018 15:14:13 -0400 Received: from mail-yw0-f196.google.com ([209.85.161.196]:35589 "EHLO mail-yw0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754463AbeFTTOL (ORCPT ); Wed, 20 Jun 2018 15:14:11 -0400 Received: by mail-yw0-f196.google.com with SMTP id v131-v6so247441ywg.2; Wed, 20 Jun 2018 12:14:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=TI551naM5Y4uDzo/GrGp2yfCeEEPUjm4pMtD9JZgHOU=; b=AHNMLrPZdSo95Qft3wKi/Dowtnwv5ELG9lPrd/MdVT/OWIwRaT8gz6bOAqPwJSAC0H tbYe5NM1tLwwLtPFh/99vtQtifRbgdZIy1aQKYLTgW6gBGueVx5HoU2uxwcHKgzZgvhd Xgxkhev3FaCN30/p5DUQNEbtNHKEr5fiD4CnGDkPsore6Z177IHbUGmyA6VXbmgWxqkZ UT7GWBEmpEMADF01LF2Wuny19VK90GOMxUCxVXbIOQjuzU4K1Al/pDVxhpF16oSXgp+p 6lt70lwYvM6mjflEGLbKx5NptdpOn/t2R2bcjj617bm/y09d2kj0QlFXq5y0HMgun3yg rRnQ== X-Gm-Message-State: APt69E2xA2H970gH2TDvaGB5rVmJBnZSTZZCSMhfY7qMjgJxyxRCtC+V uwLm6SXgRiwfktnKlGNwqw== X-Received: by 2002:a0d:c9c6:: with SMTP id l189-v6mr10911571ywd.164.1529522051093; Wed, 20 Jun 2018 12:14:11 -0700 (PDT) Received: from localhost (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.gmail.com with ESMTPSA id p82-v6sm1126223ywe.1.2018.06.20.12.14.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Jun 2018 12:14:10 -0700 (PDT) Date: Wed, 20 Jun 2018 13:14:09 -0600 From: Rob Herring To: Ludovic Barre Cc: Wim Van Sebroeck , Guenter Roeck , Maxime Coquelin , Alexandre Torgue , linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH V3 1/3] watchdog: stm32: add pclk feature for stm32mp1 Message-ID: <20180620191409.GA29934@rob-hp-laptop> References: <1529502698-13263-1-git-send-email-ludovic.Barre@st.com> <1529502698-13263-2-git-send-email-ludovic.Barre@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1529502698-13263-2-git-send-email-ludovic.Barre@st.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 20, 2018 at 03:51:36PM +0200, Ludovic Barre wrote: > From: Ludovic Barre > > This patch adds config data to manage specific properties by > compatible. Adds stm32mp1 config which requires pclk clock. > > Signed-off-by: Ludovic Barre > --- > .../devicetree/bindings/watchdog/st,stm32-iwdg.txt | 21 +++- Please split bindings to separate patch. > drivers/watchdog/stm32_iwdg.c | 116 +++++++++++++-------- > 2 files changed, 91 insertions(+), 46 deletions(-) > > diff --git a/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt b/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt > index cc13b10a..f07f6d89 100644 > --- a/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt > +++ b/Documentation/devicetree/bindings/watchdog/st,stm32-iwdg.txt > @@ -2,18 +2,31 @@ STM32 Independent WatchDoG (IWDG) > --------------------------------- > > Required properties: > -- compatible: "st,stm32-iwdg" > -- reg: physical base address and length of the registers set for the device > -- clocks: must contain a single entry describing the clock input > +- compatible: Should be either "st,stm32-iwdg" or "st,stm32mp1-iwdg" Please format one per line. > +- reg: Physical base address and length of the registers set for the device > +- clocks: Reference to the clock entry lsi. Additional pclk clock entry > + is required only for st,stm32mp1-iwdg. > +- clock-names: Name of the clocks used. > + "lsi" for st,stm32-iwdg > + "pclk", "lsi" for st,stm32mp1-iwdg Put lsi 1st so it is always index 0. > > Optional Properties: > - timeout-sec: Watchdog timeout value in seconds. > > -Example: > +Examples: > > iwdg: watchdog@40003000 { > compatible = "st,stm32-iwdg"; > reg = <0x40003000 0x400>; > clocks = <&clk_lsi>; > + clock-names = "lsi"; > + timeout-sec = <32>; > +}; > + > +iwdg: iwdg@5a002000 { watchdog@... Do we really need 2 example just to show 2 clocks? > + compatible = "st,stm32mp1-iwdg"; > + reg = <0x5a002000 0x400>; > + clocks = <&rcc IWDG2>, <&clk_lsi>; > + clock-names = "pclk", "lsi"; > timeout-sec = <32>; > };