Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp766790pxb; Fri, 8 Jan 2021 18:51:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAE6dRuLpCeVJyx/O+tOxgZVYFRciSzoBIEzy3PqSUOkU/4dgMX+qo1njJ/5fJ9/ahi1ZA X-Received: by 2002:a50:8a90:: with SMTP id j16mr6955080edj.334.1610160700410; Fri, 08 Jan 2021 18:51:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610160700; cv=none; d=google.com; s=arc-20160816; b=0fj3HZWsDlGlFpfxWOkVOYM3n60T39WFou1HgaLJHayFYqFbrwUkEL8r9Oh+GsKXo9 9vkNQQDaOij/GA8/pdDyQFQR4XG03IHXAOVMzMImfD0+MbE89xYJ49HE9y0UuzR1tIIz pHm6ubWe8sEd+Oaa1i+6HUtRv3ElcH96ZBPgBkG3QcGTVdwnUzugPvOp/yL4TB2sePCe BjEbGrsTQKz0qJp22oAXMCtAy4NEnJ1VXmlpz9O8ciITqlox6jUO+N4p7/kBWTKrtiyl i8Wb3xYh3igrCZX7hUnugjhUNPKylClvjG2Zi5XGc0j6/IKzfluxzDbTJ8Tp/SpSLI6N x9sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4QxjVHH/k2EEheDURmsY7RVs3TpbxjnXeiCn/55GgY8=; b=aSDZjcn5lntjsXtlGbR6wMAHuGKQd29x6Y1TA1y0Vn3QYV9SdyYB8/vg9FLtHaWBtn 1JQPwDWfBxwtXU+4nD7HPu+cE2kjhv++wNMKZUHit8XQzTxnMqPkbqi+RpWFUtDCgDgj RvuZU+kGZPmr23zL3P6Rn8kiUrfTmbfXQGgMKJGGFr8OXYwB21M4zKGskoPvzsNzfrYJ 98n/6MhIvpcYRnDom1FE93RCrGEO4st1ViqxKz5cB3x45yvFjNh4N36X/7vq7PrWGl7J TI6FxEZOG734eilDrzrQ7D9TKd22BGQ6ZYhzzT0IQ6dJy84IPSo6J7ST+FyPe4wnTaVR QwHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="jv3Exx/Z"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t23si2415953ejs.350.2021.01.08.18.51.06; Fri, 08 Jan 2021 18:51:40 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="jv3Exx/Z"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726364AbhAICtg (ORCPT + 99 others); Fri, 8 Jan 2021 21:49:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbhAICtg (ORCPT ); Fri, 8 Jan 2021 21:49:36 -0500 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4B05C061573; Fri, 8 Jan 2021 18:48:55 -0800 (PST) Received: by mail-il1-x133.google.com with SMTP id h3so4642483ils.4; Fri, 08 Jan 2021 18:48:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4QxjVHH/k2EEheDURmsY7RVs3TpbxjnXeiCn/55GgY8=; b=jv3Exx/ZPs37gY4yPcfBCzxcInUqxq76J3hRtGGDgHlB5Gjkcl+9go8ek7xlMjTR24 btCZGxszuFYXAevC0wWj/wXyyNTz1HiQcZoj6VIXamk62ayhc+A30jsGKGvlba5pdtzS d/E4ALC0YWHS0MqHIB0MBeFfORXafXUYt+vGd32LGGZhCTNaGJFwb7Cnvra2R+JA86A4 tjWqX8YNe2f/E3D7A6oN1flOeLbWdWgi/nf744o/PkVh9yWe2ItHibMjjZTi4Tka41pq zF0I+xAlj+Up5NIlq2USP/qxqgwpVP3wmLA6ekNP4EL1zOGQ4ZMCn3vd9EKeVmwzwyVx v75A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4QxjVHH/k2EEheDURmsY7RVs3TpbxjnXeiCn/55GgY8=; b=JahkpEjxTT36rvo7KKkBKL5/N2CSt/tBizqXR8JFqZWwiElcEIlHkncpPW37+MsKqy sC7ATFweTFPBme4Nri5ecpQRF2Q/bMGqRhk3V3wmfyaKMNUaWOeOdPl7/ZuCAMPlKTbR IpT65rgmMuJxB/z11c7Bqc0r8LA/D3jNgv2DMzbcqCSXBG0IAgViLop7rw/FN9YGify+ +7qiCRSkKA530tn9pu8xWUR1OL8lCcc0/begrJ4Wdi1/TO6mrVngFJdEaldrdRYZZ2QH voIP52u1k9z2/bAkCPoaEqSJK1D5/tk1Yp3clCjcExJ0BxukQe9/yKfdU860GXbhri+Y XSwA== X-Gm-Message-State: AOAM531G/7aaQWlP/OWPoFQ92jHYeQnU2DDKV74dzrFRt4OaSxpfZrL0 RiKL2khXWKvbOzCyWDPiw9wPPrq9Tn0oiZjjhaI= X-Received: by 2002:a92:c081:: with SMTP id h1mr6487153ile.46.1610160534190; Fri, 08 Jan 2021 18:48:54 -0800 (PST) MIME-Version: 1.0 References: <20210106173900.388758-1-aford173@gmail.com> <833e228f-6fb5-ae98-a367-9566cf5fcf69@lucaceresoli.net> In-Reply-To: <833e228f-6fb5-ae98-a367-9566cf5fcf69@lucaceresoli.net> From: Adam Ford Date: Fri, 8 Jan 2021 20:48:42 -0600 Message-ID: Subject: Re: [RFC 1/2] dt-bindings: clk: versaclock5: Add load capacitance properties To: Luca Ceresoli Cc: linux-clk , Adam Ford-BE , Michael Turquette , Stephen Boyd , Rob Herring , devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 8, 2021 at 4:49 PM Luca Ceresoli wrote: > > Hi Adam, > > On 06/01/21 18:38, 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: > > I wonder whether we should have a common, vendor independent property. That would be nice. > In mainline we have xtal-load-pf (ti,cdce925.txt bindings) which has no > vendor prefix. However I don't know how much common it is to need rtc-pcf85063.c uses quartz-load-femtofarads, so there is already some discrepancy. Since the unit of measure here is femtofarads, using pF in the name seems wrong. We need to read the data as a u32, so femtofarads works better than pF, which would require a decimal point. > different loads for x1 and x2. Any hardware engineer around? I talked to a hardware engineer where I work, and he said it makes sense to keep them the same. I only separated them because there are two registers, and I assumed there might be a reason to have X1 and X2 be different, but I'm ok with reading one value and writing it to two different registers. adam > > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + minimum: 9000 > > + maximum: 25000 > > + description: Optional loading capacitor for XTAL1 > > Nit: I think the common wording is "load capacitor", not "loading > capacitor". > > -- > Luca