Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2834075imm; Thu, 24 May 2018 17:10:43 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqaHQMAoVokEKcpM88ZcV9qX/iFWnZSHg70iqW9/lJ/EqPfSDsaDVGIl8hNwYiBJneI3Raw X-Received: by 2002:a17:902:3181:: with SMTP id x1-v6mr178245plb.198.1527207043890; Thu, 24 May 2018 17:10:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527207043; cv=none; d=google.com; s=arc-20160816; b=0LgTfft0SxVUbujTE5D5OJBy5Y32JfveAouoZjPkEvm7OCOUpsD+kYVtan4z5yy4rJ WV0ADG69WOs4eORltckqQKOpqasCTjQich5e1PAZC5g3+hKmHahmkDhBwDj0cN70MPqj ONCBBK+sAUiXrP9+lYsvyMaYJRBFOuWDymRStAVeu9SiqUdGiaSBXnrfpx5q5MVIl8UN r+ujMew8eWn5sKWDkf0iWNP8IhXfMz6/jbktAq9c8uyW2CAXeNxdiQ5dyxS+Pp1vYd0/ diOpd94pPOYZsVm0iM8J1lnJRmXo3ErAWowqTkMByBIlq6vN4Vn8LzH2J1L9GQ7ymECr DIGg== 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=Jub3lgWV8wA6CJzcackORsVjBCtkvMcEn0gMLnwcL4w=; b=YJ7nrILsi8GSuWLaDXvO/RmHPBLQNg5qiECMWRo7HxdizQuqfaPjw0CSKbde026z5h 4aVMrQQXrPB/ggEkLNiHIwAiOBmmUqB+lu4g7+Cd+0X1/rSbuxN6NCIhHVU907OD1V5E JuX75yfeYVMKtfOZPAXp6icTGvEuAFgmLZ2D9IQ/bW1DaC76u23Y8RW+hF0DtVPceSPb 9XbHpLaBBa3QpWz/dmAPT/591KJIvnCrDc/h2w0FvTpmYU8PcYiA13B7wUHrDCz1sJ9I cRypdIO92nheqN/yJSdM3kAxOcRB0Qxs71GXqROCqx++INZq7pQ7LstkOdXFSnZIgoBA 818w== 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 98-v6si24353261pls.180.2018.05.24.17.10.12; Thu, 24 May 2018 17:10:43 -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 S969970AbeEXNwc (ORCPT + 99 others); Thu, 24 May 2018 09:52:32 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:45170 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966066AbeEXNw0 (ORCPT ); Thu, 24 May 2018 09:52:26 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 76BE115AD; Thu, 24 May 2018 06:52:25 -0700 (PDT) Received: from [10.1.210.88] (e110467-lin.cambridge.arm.com [10.1.210.88]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 35ED03F24A; Thu, 24 May 2018 06:52:23 -0700 (PDT) Subject: Re: [PATCH 1/5] Documentation: DT: Add optional 'timeout-sec' property for sp805 To: Ray Jui , Rob Herring Cc: Wim Van Sebroeck , Guenter Roeck , Mark Rutland , Frank Rowand , Catalin Marinas , Will Deacon , devicetree@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org References: <1527014840-21236-1-git-send-email-ray.jui@broadcom.com> <1527014840-21236-2-git-send-email-ray.jui@broadcom.com> <20180523185944.GA9989@rob-hp-laptop> <4b0ec4ab-2d9e-1e4b-e294-c175805f4013@broadcom.com> From: Robin Murphy Message-ID: <16e0b756-d455-77f3-0560-75cacf7e3afa@arm.com> Date: Thu, 24 May 2018 14:52:21 +0100 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: <4b0ec4ab-2d9e-1e4b-e294-c175805f4013@broadcom.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/05/18 20:29, Ray Jui wrote: > > > On 5/23/2018 11:59 AM, Rob Herring wrote: >> On Wed, May 23, 2018 at 09:25:49AM -0700, Ray Jui wrote: >>> >>> >>> On 5/23/2018 3:57 AM, Robin Murphy wrote: >>>> On 22/05/18 19:47, Ray Jui wrote: >>>>> Update the SP805 binding document to add optional 'timeout-sec' >>>>> devicetree property >>>>> >>>>> Signed-off-by: Ray Jui >>>>> Reviewed-by: Scott Branden >>>>> --- >>>>>    Documentation/devicetree/bindings/watchdog/sp805-wdt.txt | 2 ++ >>>>>    1 file changed, 2 insertions(+) >>>>> >>>>> diff --git >>>>> a/Documentation/devicetree/bindings/watchdog/sp805-wdt.txt >>>>> b/Documentation/devicetree/bindings/watchdog/sp805-wdt.txt >>>>> index edc4f0e..f898a86 100644 >>>>> --- a/Documentation/devicetree/bindings/watchdog/sp805-wdt.txt >>>>> +++ b/Documentation/devicetree/bindings/watchdog/sp805-wdt.txt >>>>> @@ -19,6 +19,8 @@ Required properties: >>>>>    Optional properties: >>>>>    - interrupts : Should specify WDT interrupt number. >>>>> +- timeout-sec : Should specify default WDT timeout in seconds. If >>>>> unset, the >>>>> +                default timeout is 30 seconds >>>> >>>> According to the SP805 TRM, the default interval is dependent on the >>>> rate of WDOGCLK, but would typically be a lot longer than that :/ >>>> >>>> On a related note, anyone have any idea why we seem to have two subtly >>>> different SP805 bindings defined? >> >> Sigh. >> >>> Interesting, I did not even know that until you pointed this out (and >>> it's >>> funny that I found that I actually reviewed arm,sp805.txt internally in >>> Broadcom code review). >>> >>> It looks like one was done by Bhupesh Sharma (sp805-wdt.txt) and the >>> other >>> was done by Anup Patel (arm,sp805.txt). Both were merged at the same >>> time >>> around March 20, 2016: 915c56bc01d6. I'd assume both were sent out at >>> around >>> the same time. >>> >>> It sounds like we should definitely remove one of them. Given that >>> sp805-wdt.txt appears to have more detailed descriptions on the use >>> of the >>> clocks, should we remove arm,sp805.txt? >> >> Take whichever text you like, but I prefer filenames using the >> compatible string and the correct string is 'arm,sp805' because '-wdt' >> is redundant. You can probably safely just update all the dts files with >> 'arm,sp805' and just remove 'arm,sp805-wdt' because it is not actually >> used (as the ID registers are). > > Okay. I'll consolidate everything into arm,sp805.txt. Will also fix all > DTS files to use "arm,sp805". The fix for actual DTS files will be in a > different patch series. Looking at the current in-tree DTs, for extra fun try to figure out which binding each instance was following for the clocks. The most common answer seems to be "neither"... :( Robin.