Message ID | 20231124-alvin-clk-si5351-no-pll-reset-v6-0-69b82311cb90@bang-olufsen.dk |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp1191579vqx; Fri, 24 Nov 2023 05:29:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IF26ua6/7SXg3gNmLxZ/kr087a49ihzI20DNFmuv/Yer57A8q7KnnH97ljgRCXT8UiBnkHx X-Received: by 2002:a05:6a20:7352:b0:18c:2d7:b84c with SMTP id v18-20020a056a20735200b0018c02d7b84cmr1426511pzc.61.1700832566952; Fri, 24 Nov 2023 05:29:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700832566; cv=none; d=google.com; s=arc-20160816; b=ZqaV7PRSMexOUE4BKdkBUbUXDzA7rrSOXUJFIh2RuMK6jPiSY2SNVkvjboj3DNR3zd dqI1dzVOI8MhefdPX4fryEWdYNKNPdt4DzLkOqKuLuVsKemAT1bW1wIZpACuSN4pR1ll k5MjsgIBQx4XdBhkRRXb/WXLXVbFsrVxRFHkjiR2aJ1nYpfEPKKSpLzB9P4V4vly/19i ucv30MmXLMT6+fZySiY+8pRze6rqRbWOO01LZfgQha0RQYy/JikiV9tzQTULfD4ex4qU txH/DVKGTyknmkqL+VYQ0xoAyccY+30UkXzAU++AAx3dREKEGkrwFx7EEFXPL6IQGunt sjjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=ZABsrju+3feVMwii1H8J45xoKumLKlmUGlla0b8ba5E=; fh=OPo9tIoaaobU4MdtZ448XwQxL2Vfqtn3OPuouN0QHNg=; b=pONEIaDAEmheq5szyyeA4PVTh1q82GpC/79E/bHIPD1JwMcD+JBGPVf03a4h+C9MzB SpHmP3C6sc2xlgCoTxXucRsQu/YR1kVFloGML/ljpoHafIfWKowgbZ6w2UqaCSh1LZeM vxmSNO2XKrkjjPA5OYIzCVe/IErSbGqEyD+FEnOd30s+9dF+Emf23j78ls+GrgcIq/h1 JJEbz93dkwC/0Ex/7O/VCVnUJfKar5HymQqvUtU+JLK23yQOb3irU9PwbU2xTVw7R3Lq AL8yrJVx9KtLYOU5vyFu0MQFgfcS42B56dCiHV/SRy/l6bQFuiIYZFzrKRglP0cXDyoI sjFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pqrs.dk header.s=key1 header.b=jXzO0DrL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id 1-20020a631541000000b005bd3ca6c398si3696183pgv.736.2023.11.24.05.29.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 05:29:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@pqrs.dk header.s=key1 header.b=jXzO0DrL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 9223781825EF; Fri, 24 Nov 2023 05:29:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235168AbjKXN2r (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Fri, 24 Nov 2023 08:28:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231567AbjKXN2U (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 24 Nov 2023 08:28:20 -0500 X-Greylist: delayed 567 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 24 Nov 2023 05:27:33 PST Received: from out-171.mta0.migadu.com (out-171.mta0.migadu.com [91.218.175.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 562A91998 for <linux-kernel@vger.kernel.org>; Fri, 24 Nov 2023 05:27:32 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqrs.dk; s=key1; t=1700831882; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ZABsrju+3feVMwii1H8J45xoKumLKlmUGlla0b8ba5E=; b=jXzO0DrLUL7ua5QX/TEPywrG29VAR2py2fqQDxTQGtaD20peAMnLCYPNFuAObVRJ9HJ2c0 AWN6s9cSudgJtfBr/T8uOXmKVwnSDZvw76ufPgrlcrC9U6RnTd3agHRxehNBWezIsCsmTR PRNVRd+SUmOPj08liTSTt5qyiY2KL1zPIcaBZDaqo2QnsPjUkVoWx39t18K0xx5sgIxhAC 31bGgwBxjtNSMBWmCcgOSlVgVNgZpJ1itm3nlQEisRWPk7VzTGuVkugmYBJSe3jsmM1an8 r8M6HNmJe5LfSXytw4PhrH4W5vAAWqArUIJTkxmSVCcaxX5HqMzk1aXSFW+FpA== From: =?utf-8?q?Alvin_=C5=A0ipraga?= <alvin@pqrs.dk> Subject: [PATCH v6 0/3] clk: si5351: add option to adjust PLL without glitches Date: Fri, 24 Nov 2023 14:17:41 +0100 Message-Id: <20231124-alvin-clk-si5351-no-pll-reset-v6-0-69b82311cb90@bang-olufsen.dk> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAHWiYGUC/4XPwW7CMAwG4FdBOWNkJ3FbOPEeaIeQJiMiSkvCo k2o777ApglpB46/JX+/fRPF5eCK2K1uIrsaSphSC916JezJpHcHYWxZSJSKkDSYWEMCG89QAis mSBPMMUJ2xV3BWW8smo4ZrWjGnJ0Pnw//8NbyKZTrlL8edZXu018ZByJSUm94kLxloJ+i/XzJZ TOexX256qeFl6dUDQhGcdej1Ij9uD+2f2CKH7649GfykynxlcnN9GjpaFj1fhj+m8uyfAP54jg xVQEAAA== To: Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, =?utf-8?q?Alvin_=C5=A0ipraga?= <alsi@bang-olufsen.dk> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>, Rabeeh Khoury <rabeeh@solid-run.com>, Jacob Siverskog <jacob@teenage.engineering>, Sergej Sawazki <sergej@taudac.com>, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring <robh@kernel.org> X-Migadu-Flow: FLOW_OUT 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,T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> 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]); Fri, 24 Nov 2023 05:29:17 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783452209612883479 X-GMAIL-MSGID: 1783452209612883479 |
Series |
clk: si5351: add option to adjust PLL without glitches
|
|
Message
Alvin Šipraga
Nov. 24, 2023, 1:17 p.m. UTC
This series intends to address a problem I had when using the Si5351A as a runtime adjustable audio bit clock. The basic issue is that the driver in its current form unconditionally resets the PLL whenever adjusting its rate. But this reset causes an unwanted ~1.4 ms LOW signal glitch in the clock output. As a remedy, a new property is added to control the reset behaviour of the PLLs more precisely. In the process I also converted the bindings to YAML. Changes: v5 -> v6: - collect Rob's Reviewed-bys - no further changes, resend only v4 -> v5: - address Rob's comments: - min/maxItems on top-level clocks: - remove unnecessary else: - remove spurious | v3 -> v4: - remove spurious | per Rob's suggestion - simplify conditional clocks/clock-names per Rob's suggestion - remove mention of clkout[0-7] still being admissible in the commit body of patch 1 - while the Linux driver still tolerates this, the new dt-bindings do not v2 -> v3: - address further comments from Rob: - drop unnecessary refs and minItems - simplify if conditions for chip variants - ignore his comment about dropping '|', as line would be >80 columns - move additionalProperties: false close to type: object - define clocks/clock-names at top-level - drop patch to dove-cubox dts per Krzysztof's comment - will send separately - collect Sebastian's Acked-by v1 -> v2: - address Rob's comments on the two dt-bindings patches - new patch to correct the clock node names in the only upstream device tree using si5351 --- Alvin Šipraga (3): dt-bindings: clock: si5351: convert to yaml dt-bindings: clock: si5351: add PLL reset mode property clk: si5351: allow PLLs to be adjusted without reset .../devicetree/bindings/clock/silabs,si5351.txt | 126 ---------- .../devicetree/bindings/clock/silabs,si5351.yaml | 265 +++++++++++++++++++++ drivers/clk/clk-si5351.c | 47 +++- include/linux/platform_data/si5351.h | 2 + 4 files changed, 311 insertions(+), 129 deletions(-) --- base-commit: f6abdcb2444f6ebe06e19cd9eee767c7c46612ae change-id: 20231014-alvin-clk-si5351-no-pll-reset-ecfac0a6550c