Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2267223rdb; Thu, 21 Sep 2023 13:27:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFiUbUeOp0yYBNJ5Cf9l2hcBSKbEwOXItDHGCIs+cxQ9lB7ZQum1zm8Kq56xHfhZ83MOxvM X-Received: by 2002:a05:6a20:5649:b0:14c:4e31:97f3 with SMTP id is9-20020a056a20564900b0014c4e3197f3mr6225167pzc.59.1695328020757; Thu, 21 Sep 2023 13:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695328020; cv=none; d=google.com; s=arc-20160816; b=roR8DRoWGh3LzKivKshW6x+Prl4FhCmcHrkXeEl0b6Tyd1Nc5lxQDmA4QeASJwPMvc /muPTTq/ttzj5bMPxa5hhFz7s7NWybP5T+9VP/k+TZ+sZhFYQ8J9gdE6Y54Y3hgyrO7U CFzJVtL5ZX1liUh4M2xTIxg2PGGaThyTu37XSmfRAmuQCGjhe1/m5T4MpInlsu0lRdtB bSGSPD+B8oV1DN8THgiZiXquG9zLHjPiiGdHq5dM6rWC2Tm8AHhZIGlwUgaK9U9lw/Hq O7kxToeh5UxSzN9b9cc67ikIms4XnzuohlRFw3y7pOBeWIAGAuGJ5ccsre0eVVjXxwzy /Mcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yGVuDcxtzykiIt7f8lMJCmQ9YAfMLpK1HR9O0QjC/X0=; fh=GyrVBtW4qinhyVrQk1dWClbntV0OAi8oXg/QyzL/s08=; b=G88k4bcYYUZ7AzonYZHJUJMCdiwijrg6o7UZQDnCth97NIXcIjee4IIt5nfXmO/hXZ YAsakFrDZzO3Ua2ayjOfUwzP3EvmTAHOiqiUUJTtcYhDvaY8Hy2dECA+9YAdtqDC0beJ W/8FC0K2PZO7GteVN1Imm5LFd8jeDhR2zf6Kq3A5jMvHuCJ7v5BKEsNyXBVE2H/nc68L g6V9f3brBz/1O7+DtJP6kU0KXf3tWV2POuW6LRZ9k1x2NiIG2w49AxIifxhsWlZ3Bsio Fm4mSK0p55+LEmCF2tgAF6YhxfPl25qodDJceDiPQOknTSaaWk4hGu/HQaAlJ6l/UB4D F8Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gcrZlu1O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id n3-20020a632703000000b00573f703a239si2277460pgn.414.2023.09.21.13.27.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 13:27:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gcrZlu1O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 31B8F8373086; Thu, 21 Sep 2023 13:14:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231223AbjIUUOa (ORCPT + 99 others); Thu, 21 Sep 2023 16:14:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230479AbjIUUOM (ORCPT ); Thu, 21 Sep 2023 16:14:12 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DAC4CDBFD; Thu, 21 Sep 2023 11:20:10 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4A5E5C433C7; Thu, 21 Sep 2023 18:20:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695320410; bh=F7FOmZJGIZea3PDFeMXSNL3wD06ectqhotbY/CYvQks=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gcrZlu1OoqwfasuSssDAxLOCRvqJmyVmQChzusvlYR8QPU7Zzl9UKSTMk3D9DZ7it MwoxrJ+pSxuduTRLsqGaciU8U/7IwTkj/okC+SktMnxUm6pBDNdXoBpRN9UbS2LYwx GUaJF0XjITZrbG8fDh0+gxRYAqerHh9UYlA6BIVoL0iteOZXgotzm9WR2oWUNanZqT JW2mryDuv01/LdooWc4APsPKALCXkNxADgfc7Hx/I2LnNXy18SJymxQCnsUeelAyx9 32s3745804OphWhgnApJhk3blLfh4/BwkShCyTU1poJzkvUDWpnFBmYWMMhzvBiyDs FcoEr4BDF895A== Received: (nullmailer pid 762555 invoked by uid 1000); Thu, 21 Sep 2023 18:20:07 -0000 Date: Thu, 21 Sep 2023 13:20:07 -0500 From: Rob Herring To: Alvin =?utf-8?Q?=C5=A0ipraga?= Cc: Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , Conor Dooley , =?utf-8?B?77+9aXByYWdh?= , Sebastian Hesselbarth , Rabeeh Khoury , Jacob Siverskog , Sergej Sawazki , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] dt-bindings: clock: si5351: add PLL reset mode property Message-ID: <20230921182007.GA761604-robh@kernel.org> References: <20230920140343.2329225-1-alvin@pqrs.dk> <20230920140343.2329225-3-alvin@pqrs.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230920140343.2329225-3-alvin@pqrs.dk> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 21 Sep 2023 13:14:47 -0700 (PDT) On Wed, Sep 20, 2023 at 03:09:54PM +0200, Alvin Šipraga wrote: > From: Alvin Šipraga > > For applications where the PLL must be adjusted without glitches in the > clock output(s), a new silabs,pll-reset-mode property is added. It > can be used to specify whether or not the PLL should be reset after > adjustment. Resetting is known to cause glitches. > > For compatibility with older device trees, it must be assumed that the > default PLL reset mode is to unconditionally reset after adjustment. > > Cc: Sebastian Hesselbarth > Cc: Rabeeh Khoury > Cc: Jacob Siverskog > Cc: Sergej Sawazki > Signed-off-by: Alvin Šipraga > --- > .../bindings/clock/silabs,si5351.yaml | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/Documentation/devicetree/bindings/clock/silabs,si5351.yaml b/Documentation/devicetree/bindings/clock/silabs,si5351.yaml > index 3ca8d998c48c..b6692b323a66 100644 > --- a/Documentation/devicetree/bindings/clock/silabs,si5351.yaml > +++ b/Documentation/devicetree/bindings/clock/silabs,si5351.yaml > @@ -50,6 +50,22 @@ properties: > Pair of for each PLL. Allows to overwrite clock source of > PLL A (number=0) or PLL B (number=1). > > + silabs,pll-reset-mode: > + $ref: /schemas/types.yaml#/definitions/uint32-matrix > + minItems: 1 > + maxItems: 2 > + description: | > + Pair of for each PLL. Configures the reset mode for PLL A > + (number=0) and/or PLL B (number=1). Mode can be one of: > + > + 0 - reset whenever PLL rate is adjusted (default mode) > + 1 - do not reset when PLL rate is adjusted > + > + In mode 1, the PLL is only reset if the silabs,pll-reset is specified in > + one of the clock output child nodes that also sources the PLL. This mode > + may be preferable if output clocks are expected to be adjusted without > + glitches. Same comments as the other matrix property. > + > patternProperties: > "^clkout@?[0-8]$": > type: object > @@ -205,6 +221,9 @@ examples: > /* Use XTAL input as source of PLL0 and PLL1 */ > silabs,pll-source = <0 0>, <1 0>; > > + /* Don't reset PLL1 on rate adjustment */ > + silabs,pll-reset-mode = <1 1>; > + > /* > * Overwrite CLK0 configuration with: > * - 8 mA output drive strength > -- > 2.41.0 >