Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1456445rdb; Wed, 20 Sep 2023 09:32:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/esxoOU00gGiKGIPeL3wsfOirIDIQbA32coy+oPpl6R9uuJ5WGViO+27RnCVO0rGzsHu6 X-Received: by 2002:a05:6358:924:b0:142:dc9c:11f4 with SMTP id r36-20020a056358092400b00142dc9c11f4mr4004110rwi.8.1695227575178; Wed, 20 Sep 2023 09:32:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695227575; cv=none; d=google.com; s=arc-20160816; b=jCCSJH7/8l2LX905+FWdMoBwH4CEy3QM3Y0bcNmvKX19/gfD2KlTgAHBNjkIXTeGmU 3CL61CLbWjDf5uf0z/Xdki4tmp6ka8F/UGsb/jZNTlyKSNuFB0ieQ7sTAZrxutmLsEqc Uvfa3tHh33E9bZKsQuo3ZCOEpgkyL7YmFaf6L0iOMqQMowVH/FQSd9mXt9BQG7G2jKWH Vfamo1WVePQdm6RQPyV7qO2kwiXsVNCosOjc8lfVOJgBbitFcO7VdAbvxvphfpikNvcb YOA/U55kvJoYHianeeRTWDEDElwLI1zG0OnUakcfkHw4YTeQwgn47egOHuv8VtJfvLKZ jHRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=b+1FYQtXao8Yw3xmiSSXbsCd2slRgXlF0cJKkQ9uwuw=; fh=KyFBUXcuM6fUgur5yAGjxy8UwwGrnAi0qyRlE0N5PJo=; b=Rn1RMFxpDcrjKBzMdO9qiPES/gt1CV9TrQAw5zLDjEaW9GpErZqQ8vpSkSPokDUxh+ fRTIwPxVDbwi0GALtRHlIn8q3kS+9U7PDouuCcc3yvhF6LormZhSX4iLJmsfZ+DgGyQY 10ho82XV84K34dXqcIcdZrzu/yUXzLmNI44ldzM700y+6dJGBL2dHN3LhipeY0liA5Tc a4DXmp8hK8DbjaKKpV7lHCfWH6JSZV2O9px5rqLaOMz4EJtvr/rxodRecpwD+hPMPeeZ xaMeEOnd2wMqGwGzM1eEq7SdJflo6583piQD86Xeafb+N1MPZOreddZ6iXFjO72FI6Cz g/CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pqrs.dk header.s=google header.b=fvWGL1FD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bt8-20020a632908000000b00565f0e91894si11615099pgb.394.2023.09.20.09.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 09:32:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@pqrs.dk header.s=google header.b=fvWGL1FD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 7CEA8809841D; Wed, 20 Sep 2023 07:05:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236439AbjITOEh (ORCPT + 99 others); Wed, 20 Sep 2023 10:04:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236455AbjITOEc (ORCPT ); Wed, 20 Sep 2023 10:04:32 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B737EB for ; Wed, 20 Sep 2023 07:04:21 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b962535808so110821071fa.0 for ; Wed, 20 Sep 2023 07:04:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqrs.dk; s=google; t=1695218659; x=1695823459; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=b+1FYQtXao8Yw3xmiSSXbsCd2slRgXlF0cJKkQ9uwuw=; b=fvWGL1FDWlDDIQdjhq4RBtPk/M4I83C260VqT4/XWdMpCpI8IGTNSZAiJ2aDcWPNYj GhS35BVCDT8Oq/O8VTpTq4eDtOpSF+K3TfMva8TlusPkGjr7K3h0PKhqc7ZaYlr8HE93 ERMo4bWqNhFmFNK+sCPJLMIIhtm2vUE/9iFqsFRQoRQswnV1IXVGoZvm1zxLstHCcqGx 0vo+PrKACrQQfZckVTINoc9pfkLoQCuUXkSbcEdy/+jxjb0TNPq7giQlWfw+XpxIewAV zt1HAUv+Sx+rNWpDdOYutVUfVUu9HPI0falAz2cD5ufSPeXLBtqbl7EJ2xh9FWiRyhmr 8crA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695218659; x=1695823459; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=b+1FYQtXao8Yw3xmiSSXbsCd2slRgXlF0cJKkQ9uwuw=; b=t7HoqyYWIx9eji+uNbUbYWJa4seMW9k0FxIu6BHzsj2nzjuprb49n/7/cBAa8ePzkt s9m0/bYnVN3APHOyAWR7u1nHd8MI5PnCOSRh7dMzvQMsMRmYgfnG+zDvZeD1T8oiVw5g 95bdCv6VNRtOeKI9o/U8QiJP7xuQutCl//BUdUHaNyCLvW2XfYLSrjgYDxFywewdUUPy Zt4v+k3RcPloMdifiaFRbAxZsZ8/UPLfw/2nI4G/J9skkAad9hV74RSrZ1cVdzBOLr+d cj2Di7DDhbIbwnLOA1Sws4QjH3rBs0jPd+m7C0k4qXieOQlJA1PZbLBNmCHo33NDjDXP tV8Q== X-Gm-Message-State: AOJu0YywIHfXenq7Whgx1vf8DjgR0MlSPyk9bjUZadS2zgEVr899pulO BA45FLLKzZF+70THytb/luTNGQ== X-Received: by 2002:a2e:8905:0:b0:2b1:a89a:5f2b with SMTP id d5-20020a2e8905000000b002b1a89a5f2bmr2445060lji.2.1695218659209; Wed, 20 Sep 2023 07:04:19 -0700 (PDT) Received: from capella.localdomain ([193.89.194.60]) by smtp.gmail.com with ESMTPSA id c26-20020a170906341a00b00993470682e5sm9397761ejb.32.2023.09.20.07.04.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 07:04:18 -0700 (PDT) From: =?UTF-8?q?Alvin=20=C5=A0ipraga?= To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?q?=A0ipraga?= Cc: Sebastian Hesselbarth , Rabeeh Khoury , Jacob Siverskog , Sergej Sawazki , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] dt-bindings: clock: si5351: add PLL reset mode property Date: Wed, 20 Sep 2023 15:09:54 +0200 Message-ID: <20230920140343.2329225-3-alvin@pqrs.dk> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230920140343.2329225-1-alvin@pqrs.dk> References: <20230920140343.2329225-1-alvin@pqrs.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 20 Sep 2023 07:05:13 -0700 (PDT) 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. + 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