Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp404605pxb; Wed, 13 Jan 2021 06:40:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJx58UvVgipnDTTMuOpEv4FmZwY/3ledZcWZojL3+zVRCI/jjoZV8b912D2UdR29BG0RNC/I X-Received: by 2002:a05:6402:524a:: with SMTP id t10mr2045904edd.270.1610548811689; Wed, 13 Jan 2021 06:40:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610548811; cv=none; d=google.com; s=arc-20160816; b=pbAwsrRSp1bImcTp7EKKRtftHp41bSssYxrzZk2SAQbtrL79zNeiNcg9m1+doZgkYT UztSccWusqC8w3/hMo8tq2s28wh2mkumQ6/HIIU4cbXwatNbfxd99o4Bsqs9cJyRMPbi nVXu9S2lQBT0dTblgI6dQskxLKg5EQt6uZRDOHYanLEHoyDOn+SiZc36kYoADsQtczC5 eP11ZSjLM9ykavBIoiJR3Y4Xn5bzwK2BFlvRaPHBJWGISEbSJZPOAFPuK4pGmOTcgf1V ghxbizHdJPTwkf1BzSk88OQXWGjlVc+USZXIBMQc0pGyn+Cl5BUAPt1QhM+qX9/NE1IK kttA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=2QpBDBxt62Fo9V0jceWWVOGuoX/vGpn7GgDjwjzhE3U=; b=Mhrp4tDwfzcTBcfeiUzY/JZbGJjNLw4KHFVYwatQ8TUja6Ij76MdH/gj2Fx2z5fgBP g6K/6PB99rk5Ayv5DqsvnxV+psNYjzhsWxitd36EH56cJTiSQaT9/A8C8rHX+ggH40Tk Vz2qYC4oz0aRgpg6vhi86whgxq1m6aLHBaeEqhSB920M3jFrQBVihsRb8kAoXOkSmWP0 PN/vwSC5Oha1liLNvV90GmldiNWTUmfld+93625w5YDugARjqg/HIHCfqkxD8qzxKqD3 nNVxHdPC9gBkH/srU4URUwjllp3ECpGEZVAvJK/gUPHorBDoSuXIceQSpInP6A6Aiarg X+HQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g10si1060589ejf.698.2021.01.13.06.39.48; Wed, 13 Jan 2021 06:40:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727239AbhAMOhd (ORCPT + 99 others); Wed, 13 Jan 2021 09:37:33 -0500 Received: from hostingweb31-40.netsons.net ([89.40.174.40]:58913 "EHLO hostingweb31-40.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726433AbhAMOhc (ORCPT ); Wed, 13 Jan 2021 09:37:32 -0500 Received: from [185.56.157.72] (port=39770 helo=[192.168.101.73]) by hostingweb31.netsons.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1kzhGT-00E4X8-5N; Wed, 13 Jan 2021 15:36:49 +0100 Subject: Re: [RFC 1/2] dt-bindings: clk: versaclock5: Add load capacitance properties To: Adam Ford , Rob Herring Cc: linux-clk , Adam Ford-BE , Michael Turquette , Stephen Boyd , devicetree , Linux Kernel Mailing List References: <20210106173900.388758-1-aford173@gmail.com> <20210113031602.GA1443816@robh.at.kernel.org> From: Luca Ceresoli Message-ID: <8f896ca0-d270-787c-74c9-2bca91ccf7f2@lucaceresoli.net> Date: Wed, 13 Jan 2021 15:36:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca+lucaceresoli.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Adam, On 13/01/21 13:31, Adam Ford wrote: > On Tue, Jan 12, 2021 at 9:16 PM Rob Herring wrote: >> >> On Wed, Jan 06, 2021 at 11:38:59AM -0600, Adam Ford wrote: >>> There are two registers which can set the load capacitance for >>> XTAL1 and XTAL2. These are optional registers when using an >>> external crystal. Update the bindings to support them. >>> >>> Signed-off-by: Adam Ford >>> --- >>> .../devicetree/bindings/clock/idt,versaclock5.yaml | 12 ++++++++++++ >>> 1 file changed, 12 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml b/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml >>> index 2ac1131fd922..e5e55ffb266e 100644 >>> --- a/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml >>> +++ b/Documentation/devicetree/bindings/clock/idt,versaclock5.yaml >>> @@ -59,6 +59,18 @@ properties: >>> minItems: 1 >>> maxItems: 2 >>> >>> + idt,xtal1-load-femtofarads: >>> + $ref: /schemas/types.yaml#/definitions/uint32 >> >> Already has a type, so you can drop the $ref. >> >>> + minimum: 9000 >>> + maximum: 25000 > > Luca, > > Do you want the range to the 9000 - 25000 per the datasheet, or should > I use the max value based on the programmer guide? Currently, my > intent was to cap the value to 11111b, so anyone who writes 23000, > 24000, or 25000 will all be the same value based on the feedback I got > from Renesas. DT should describe the HW, so I'd use the same range that can be set in hardware, regardless of driver support. Thus it should be: 9000 - [9000 + 430 * 32] = 9000 - 22760 -- Luca