Message ID | 20231008111324.582595-1-alvin@pqrs.dk |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp1317738vqo; Sun, 8 Oct 2023 04:14:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFq2tiN++IwRp8yjYmKF66pLyr3MFABZGrhtM6ZynoZzwGK+1+2ixf4n6/cYDizrzQy8HTd X-Received: by 2002:a05:6358:7e07:b0:134:e301:2c21 with SMTP id o7-20020a0563587e0700b00134e3012c21mr12441947rwm.15.1696763661882; Sun, 08 Oct 2023 04:14:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696763661; cv=none; d=google.com; s=arc-20160816; b=SGnFDHcqmOrxmdQHxI5NQTIE3iPn/4xyMJzLc60IEUDOLABqKV4boxfb5RNLuHOu06 rvoBEjkulcl6IRb3wkXcygrMyPAaLE2sTSV90p+RmFPwDPsCO/903uKDkJ8rGOGoLcTI LERbXTmisVlr5+vFiImajmdFvs1bqUs72su5bXPI/VQ3aSF2eUpq4k1CGRdgmoE9nz3c pEGGcTCqeQdRdOARfHQ+AlqQtnJRG+LKVYKmVBcAUKh85ataC3OFoqjWIEPrQmVmILz+ B9MUgR6EJeTdJnGpv7Q06opsHw9Ms3bz+ADc8xSrTv/qqhb3h2yv5GHPOJ+6tS4KziXX PAdg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=vDluQS60ilpfpuw8LSy/Bxf7lkTMWAw31oo0Cn9rzKA=; fh=Cm5fySmRiMXtURj3mp+PZ3Z4HTOwC2V95Ub6ZhegXLQ=; b=gqd2NWEZttcY/KQyWFV6B37qSn4rOhpKyASSwjjIiOVR8stnj+PVhW0neBxMssLFR5 1eb3hVbX9LH87G2Y8d4QcgrnYZklu4vQNIkRrWVuu7/IDy+h+1rd/B1FBRROR5SoFIPq 7QMQB5M2LGlYvzhwb4Wa3G3uY0aBBSCEOShhoca/ilvVx1lXwYtMqVXLqSfZFwNmJuzu o3rJlvBgMvFT1Y6XhZejCaHluNryN8/ht3cUzaLnKmRNFZg997/N6vM/3fxtWE6sjka1 xYQDMU4+NpRJTO12Z9I3ZcCFchPOjbQAB7VUFR4WUwWqGkWJAjRZpM9N+yCOE6FZEFW/ q4HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pqrs.dk header.s=google header.b="fcnU4So/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id hk8-20020a17090b224800b00274c6997c25si8171698pjb.110.2023.10.08.04.14.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 04:14:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@pqrs.dk header.s=google header.b="fcnU4So/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 9587280412F2; Sun, 8 Oct 2023 04:14:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344672AbjJHLNu (ORCPT <rfc822;ezelljr.billy@gmail.com> + 18 others); Sun, 8 Oct 2023 07:13:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234321AbjJHLNt (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 8 Oct 2023 07:13:49 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24F4DC5 for <linux-kernel@vger.kernel.org>; Sun, 8 Oct 2023 04:13:46 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-991c786369cso598800366b.1 for <linux-kernel@vger.kernel.org>; Sun, 08 Oct 2023 04:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqrs.dk; s=google; t=1696763624; x=1697368424; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vDluQS60ilpfpuw8LSy/Bxf7lkTMWAw31oo0Cn9rzKA=; b=fcnU4So/heUjSRTgel4mX2tBQ9cJSFX62yr+LffeZ8B90zH25YqnRbmq22R2m6SFeU 4MA2JEYVzwAdM3ouaYfDMxdveVkEzftvylzGaksJKffX016qjBd7znGIyNy4Ky5Zzh4Q nrXcMYIj+Yl4La3NPzt6p17H4Nwwy86POsYrkl4B2MCDHkr/mzV9kNM5Aig17DDvddOT mlW9mB2v+aYnDgt4otIXkzeiSUCO+M43kGpNH68AGeRHLM4KigWmxoTUNRb18mY2ikBg 0aLx1Q6gZZyfAI2WkUl8ickJBOJhvbzaFb2xQpiWYc5cGh6m4xrYFJag5WO5Ruz1uKv1 06Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696763624; x=1697368424; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vDluQS60ilpfpuw8LSy/Bxf7lkTMWAw31oo0Cn9rzKA=; b=OO+2kLR2nnFm7ftNGrXFTL5QYBo3rDYIusG8UQkg5v1BvmYf+hPVTxdOuQ9G/D4qut 3UsPEFST3EPiyK4hqifsQOIB59PM9sUlDrWIeAFjgfluQD13xoBKhhwkXdbeVTGEvkHL TAkTb2yO4p6r1CA7col6q9J57ud8ktPzh2y206m6xNnAd7EdoE5vNLPZVynFofO5GBN6 bSUsIeSTLf3F3+UoI2JCRXDSEiyUfCWw7kitw2rmvODADI5Vk1yh+Rp/CRZ5DVpD+egk pzylnW8D85dlis7YQXPnjSQj4Jt2VqSWkPGtmx24OOSgibmG6YIW8/7JnHE7V30HCbiC 4GrQ== X-Gm-Message-State: AOJu0Yzd1yLsuLkxiFLp60QBhDH92tYlCnPZVQuv2fV8+q8VLkOOj0/E mry9bbRCDjSY7EpkBCb8T4E7OQ== X-Received: by 2002:a17:907:1dd7:b0:9ae:48df:2235 with SMTP id og23-20020a1709071dd700b009ae48df2235mr10994965ejc.55.1696763624505; Sun, 08 Oct 2023 04:13:44 -0700 (PDT) Received: from capella.localdomain (80.71.142.18.ipv4.parknet.dk. [80.71.142.18]) by smtp.gmail.com with ESMTPSA id t3-20020a1709064f0300b009b928eb8dd3sm5383396eju.163.2023.10.08.04.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 04:13:44 -0700 (PDT) From: =?utf-8?q?Alvin_=C5=A0ipraga?= <alvin@pqrs.dk> To: =?unknown-8bit?q?Michael_Turquette_=3Cmturquette=40baylibre=2Ecom=3E=2C_?= =?unknown-8bit?q?Stephen_Boyd_=3Csboyd=40kernel=2Eorg=3E=2C_Rob_Herring_=3C?= =?unknown-8bit?q?robh+dt=40kernel=2Eorg=3E=2C_Krzysztof_Kozlowski_=3Ckrzysz?= =?unknown-8bit?q?tof=2Ekozlowski+dt=40linaro=2Eorg=3E=2C_Conor_Dooley_=3Cco?= =?unknown-8bit?q?nor+dt=40kernel=2Eorg=3E=2C_=A0ipraga__=3Calsi=40bang-oluf?= =?unknown-8bit?q?sen=2Edk=3E?= Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/3] clk: si5351: add option to adjust PLL without glitches Date: Sun, 8 Oct 2023 13:09:36 +0200 Message-ID: <20231008111324.582595-1-alvin@pqrs.dk> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Sun, 08 Oct 2023 04:14:14 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779185653822598000 X-GMAIL-MSGID: 1779185653822598000 |
Series |
clk: si5351: add option to adjust PLL without glitches
|
|
Message
Alvin Šipraga
Oct. 8, 2023, 11:09 a.m. UTC
From: Alvin Šipraga <alsi@bang-olufsen.dk>
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:
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
.../bindings/clock/silabs,si5351.txt | 126 --------
.../bindings/clock/silabs,si5351.yaml | 268 ++++++++++++++++++
drivers/clk/clk-si5351.c | 47 ++-
include/linux/platform_data/si5351.h | 2 +
4 files changed, 314 insertions(+), 129 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/clock/silabs,si5351.txt
create mode 100644 Documentation/devicetree/bindings/clock/silabs,si5351.yaml
Comments
On Sun, Oct 08, 2023 at 01:09:36PM +0200, Alvin Šipraga wrote: > From: Alvin Šipraga <alsi@bang-olufsen.dk> > > 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: > > 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 I've commented on v2 again. > - 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 > > .../bindings/clock/silabs,si5351.txt | 126 -------- > .../bindings/clock/silabs,si5351.yaml | 268 ++++++++++++++++++ > drivers/clk/clk-si5351.c | 47 ++- > include/linux/platform_data/si5351.h | 2 + > 4 files changed, 314 insertions(+), 129 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/clock/silabs,si5351.txt > create mode 100644 Documentation/devicetree/bindings/clock/silabs,si5351.yaml > > -- > 2.42.0 >