Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3369995rdg; Tue, 17 Oct 2023 12:29:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFS9NDgLlKKlyzxlgOolqOvKXM6ZY6D2m55a4/+C3ZuVVeACcpfBiCPEc3hyx34pIhQCNrx X-Received: by 2002:a05:6a21:3e0d:b0:169:3eee:624b with SMTP id bk13-20020a056a213e0d00b001693eee624bmr2767878pzc.27.1697570956921; Tue, 17 Oct 2023 12:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697570956; cv=none; d=google.com; s=arc-20160816; b=Zv4cQESn7Tz66qyXqEYHL3BMSokFEpCxw57hlitTR5PceK9iJj4Ezek411Tc5pL7Z/ dqM0kVLuqn7rPz0AU4fKNS9Xlep/r0QCmRpDLcCrpzo3pXahMHFpt7niSDUGWqaxfKSE 00hzxYuwPAdXIxz0MYz73ZsqMU27/yLm/zmYjsTWtDFXZkD+tYGURDro11Mr3yoGGiUZ Xm+OnKFu9KzH/1mNe4loj7DD1h1txGIsKxxy9S48F7oApU9OrFeSOkm5+9LUWw6EJBj3 +yTDWKW8lJm1FZvdbhdUj/dSuoLguIQsOSb5urAQRI3F8Yuj+XPdUkiCYTPKIVbTBzPt ZziA== 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; bh=cClk5aKpdEmHCYWR3pE5BYIwnM1+GggDeTeYY2IMW1s=; fh=o2BJ7s6Qb9encGyIoICl4O1uQcoGk4by27CvQOmu9Rs=; b=lebPlB9szYcj1hAj7Y2zMsNXYdfiIghOP/n66amv/5HUAe6OvGDFmEp0Q2qVsSi+xa twlA6JMcLc28hUnL0vroYHKkPy04wuXdV6wekR+0oLmmWShtuOIMbjCMSOgyKV2n7iyn qAJX+nTe4/nN32xNaoGKrYV4C3JnhB7FFqtUIlcXDY7FAdaVL9PIszPfdKPqMe+P+J0x iAebPIzz/Lo0uDVrQ3pJirGYltnFq6k346fFvvOx1He/3rrWsJOvMrZgq/BDZxeUwcfI MZhysQojwQBtx2vU6YcV8KPdmhQ+b7Uxv/XXTqRSBHjiX0AIStvszFRzJRz1yKfdpdV5 DPSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id 4-20020a630204000000b0056357813fc2si439570pgc.183.2023.10.17.12.29.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 12:29:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 39456801BF53; Tue, 17 Oct 2023 12:29:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344188AbjJQT3G (ORCPT + 99 others); Tue, 17 Oct 2023 15:29:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235043AbjJQT3F (ORCPT ); Tue, 17 Oct 2023 15:29:05 -0400 Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A37ECED; Tue, 17 Oct 2023 12:29:03 -0700 (PDT) Received: by mail-oi1-f179.google.com with SMTP id 5614622812f47-3af6bd48093so3972056b6e.3; Tue, 17 Oct 2023 12:29:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697570943; x=1698175743; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cClk5aKpdEmHCYWR3pE5BYIwnM1+GggDeTeYY2IMW1s=; b=RX6aGeU4XK9StblL0epVPIrN3qpMxDlBzSKCyHjVzSIQwk8bKacW+zeFs7lmO20vjS Tey0+WVUcDYe/Kn4zu5iYT3ACaEY7jbqnCw5XbG4iEToa9ky0MgAeemFHL+wh0VkMzB1 k/EyZw2uRg/po/TeKGPKjU96WNulofx+1riw5WtWG7PFvb2eAfZUEE4xxToLL+r0r94r XLFmgQiVsH846G/M/OMGbo0iHlF2R9gVVkg6Fz1Ac3AobTWXTlTopcBaaHHusNa1WSs1 x+IXb2XIO7emgll28JvbvTgdyKYpPwvawLhFdDcLSDFWJVkfV+gVol9CmoBIYtfbTY3X Nfgg== X-Gm-Message-State: AOJu0Yy99bPXz3mTb0iLWphPmybZM+CxZRtVv1Px0VgVxjgeUfQ57fwx eNSjTwZkgCO5ZlYs++KpEPlsQkjTIw== X-Received: by 2002:a05:6808:181a:b0:3ae:2877:9b31 with SMTP id bh26-20020a056808181a00b003ae28779b31mr4035483oib.20.1697570942873; Tue, 17 Oct 2023 12:29:02 -0700 (PDT) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id n6-20020a05687104c600b001d6e9bb67d2sm388822oai.7.2023.10.17.12.28.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 12:29:02 -0700 (PDT) Received: (nullmailer pid 2548219 invoked by uid 1000); Tue, 17 Oct 2023 19:28:59 -0000 Date: Tue, 17 Oct 2023 14:28:59 -0500 From: Rob Herring To: Alvin =?utf-8?Q?=C5=A0ipraga?= Cc: Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , Conor Dooley , Alvin =?utf-8?Q?=C5=A0ipraga?= , 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 v4 2/3] dt-bindings: clock: si5351: add PLL reset mode property Message-ID: <20231017192859.GA2544830-robh@kernel.org> References: <20231014-alvin-clk-si5351-no-pll-reset-v4-0-a3567024007d@bang-olufsen.dk> <20231014-alvin-clk-si5351-no-pll-reset-v4-2-a3567024007d@bang-olufsen.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231014-alvin-clk-si5351-no-pll-reset-v4-2-a3567024007d@bang-olufsen.dk> X-Spam-Status: No, score=-1.0 required=5.0 tests=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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 17 Oct 2023 12:29:14 -0700 (PDT) On Sat, Oct 14, 2023 at 08:19:42PM +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 > --- > .../devicetree/bindings/clock/silabs,si5351.yaml | 24 ++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/Documentation/devicetree/bindings/clock/silabs,si5351.yaml b/Documentation/devicetree/bindings/clock/silabs,si5351.yaml > index 16d1142c4a2f..9621b534f30e 100644 > --- a/Documentation/devicetree/bindings/clock/silabs,si5351.yaml > +++ b/Documentation/devicetree/bindings/clock/silabs,si5351.yaml > @@ -60,6 +60,27 @@ properties: > - description: PLL source, XTAL (0) or CLKIN (1, Si5351C only). > enum: [ 0, 1 ] > > + silabs,pll-reset-mode: > + $ref: /schemas/types.yaml#/definitions/uint32-matrix > + minItems: 1 If there's only 2 PLLs, then the maximum is 2 entries, right? So 'maxItems: 2' in addition. > + description: | Don't need '|' > + A list of cell pairs containing a PLL index and its reset mode. > + items: > + items: > + - description: PLL A (0) or PLL B (1) > + enum: [ 0, 1 ] > + - description: | > + Reset mode for the PLL. 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. > + enum: [ 0, 1 ] > + > patternProperties: > "^clkout@[0-7]$": > type: object > @@ -199,6 +220,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.42.0 >