Message ID | 20231014-alvin-clk-si5351-no-pll-reset-v4-0-a3567024007d@bang-olufsen.dk |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp2609839vqb; Sat, 14 Oct 2023 11:20:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE80KbpASMl0yLEMD6NsIhLF6vPNwAJ507tSh94IWCsqzkm4S1lUPBkFXI2B0czhj8lGz+G X-Received: by 2002:a17:902:a40e:b0:1c9:bd60:72a6 with SMTP id p14-20020a170902a40e00b001c9bd6072a6mr14075933plq.4.1697307618429; Sat, 14 Oct 2023 11:20:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697307618; cv=none; d=google.com; s=arc-20160816; b=TH9ydJAEs8lLZX6yRNAOoTtoA9vLGePj9P1WB7SVH+1CIMh9hJvA4PZqfPFrH3kAeY OF0Y8XW/rol+HsNRF66tTwWf/lMQcPKbNGDF5K7X3RDC3Tju0C6rDetgN0BryzqzgoSt uTrrY1fcCf7dDu5wty/S6K2JdyPrhDeUzLOgiBDF/Uc0i2I5neZlM8cZRhvFeUk7Iq8p f/SCSzeZHitWJgG93HmWpkA99yi27/9PKPqwd9JLXGPayVff24UnNs00cR4tlVxVVLM/ i3/d71TqGEDerd7bxu6G+gDu+tVK8uY3JqjtY0lynui1wm+I9bHmG4elGVs7EZ7Revi6 rEeQ== 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=6fOl+bxIlDqRdabWV4eMcPga/r08+UAl61pbyIP1Fbo=; fh=cmShaaKDM89fu74c5NvQ6BtZelLx90jo5mGjUZMX0tM=; b=mHjUiBlOEYV20ZTC1ty73z/cA550qoSHnuS9f5D11VH6ZfEqax7/JeD7p7lvr0HBHQ fDrVJmbG+N82STtPUGcXoKNKlPXiGPPR1Vn/mOxfG5OYTxlZUZQMZJbBSkd+pMhRA7qS cNNJ3FC6e0bP8X/gd7IFbWkqw2Dx1LxKKLpCLh/3GiPECUSMrDWciAIIybXkn5d1R5Ht MW3dnArcx5huUo03fPX1v0y+eeWJwBos30MGVb0QsC+7yF3eOEBv6D5fDAq87/i/RZqA yyxswQHsdR0lymrt/CmoZx2/i8d/NCX+NQ3L+H76PQ5F5wTz65FHUxZxgv8Fw7Sfn2yE RVmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pqrs.dk header.s=google header.b="CI/R2blf"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h24-20020a170902ac9800b001c7615a8de5si6902924plr.20.2023.10.14.11.20.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 11:20:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@pqrs.dk header.s=google header.b="CI/R2blf"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id B998080ACB4D; Sat, 14 Oct 2023 11:20:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233303AbjJNSUM (ORCPT <rfc822;hjfbswb@gmail.com> + 19 others); Sat, 14 Oct 2023 14:20:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231330AbjJNSUK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 14 Oct 2023 14:20:10 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C71EED6 for <linux-kernel@vger.kernel.org>; Sat, 14 Oct 2023 11:20:07 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-53e855d7dacso628394a12.0 for <linux-kernel@vger.kernel.org>; Sat, 14 Oct 2023 11:20:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqrs.dk; s=google; t=1697307606; x=1697912406; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=6fOl+bxIlDqRdabWV4eMcPga/r08+UAl61pbyIP1Fbo=; b=CI/R2blfT4aj3bZA7FuBTBeCrJ5D1W2lHpUTuttuu2icJ7h6uiub6248pm+8c6M8NM m4fTxS5O9ojlGfEH93efaSgq3rTL5da5LiMNZQ9hT5+pw4kpUh1onmnSTYXxF7fk9MxP ThSlg1PWRHIKfB1jpIjpZHj28T/6vhLCDNLMiU6OPcD6dI4Pfsvee4yf1RDiapfdjs9q CAcuvii6W0pfYj11QwCEoNmtkPN2WBeGshP5tbkHqa7ZhomYk86kzPx98Z/DJJkx4HGH afxqRWLjuDPK0DbK1nbItP9BVuxmWK9TJaBHX+48xzzaLXjty4SHHz1Reoc6SEnnRn6O kMRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697307606; x=1697912406; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6fOl+bxIlDqRdabWV4eMcPga/r08+UAl61pbyIP1Fbo=; b=GUUZ5OD3FYs6KOIg+Pozaip6UdxQYr04FHt8kzS7j0LBAexqeZnv5Babk6m8zfSDhv IZCslJGYk3zuuqrydHUYcCCsbovAGNmbknboTJ/hsS+cMo6/3l9PuLE3FM8m0lCgpmcJ oBv3irF+twiQwm8hC9twRgXZeJPZpJiYzXiTaI2BuGVCjc5K2uC/C1kDZagwzXE+exUa 7X+ZFmOrTRJ9Dkjdgu0AaPoM4S4F9MVF00OKbXsiHdKBQCEobG7voLu+blzHLxpooxXV SqiFYnjdpTr1sOhs49lVQ1uiMYA+/7IhQSQSVhjweAOCtpsB9/zZIV35RLSu729WlR5j nojw== X-Gm-Message-State: AOJu0Yx1uqvTjmaCoUbY9gatUITUrLPi7mjY/tcxzbBNxYeQfqwqCPDr DDee8I3KMfLNqcNVU9iJRU2dJQ== X-Received: by 2002:a05:6402:241a:b0:53d:bdd2:3d62 with SMTP id t26-20020a056402241a00b0053dbdd23d62mr11762343eda.30.1697307606118; Sat, 14 Oct 2023 11:20:06 -0700 (PDT) Received: from capella.localdomain (80.71.142.18.ipv4.parknet.dk. [80.71.142.18]) by smtp.gmail.com with ESMTPSA id i13-20020a056402054d00b005231e3d89efsm13032574edx.31.2023.10.14.11.20.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 11:20:05 -0700 (PDT) From: =?utf-8?q?Alvin_=C5=A0ipraga?= <alvin@pqrs.dk> Subject: [PATCH v4 0/3] clk: si5351: add option to adjust PLL without glitches Date: Sat, 14 Oct 2023 20:19:40 +0200 Message-Id: <20231014-alvin-clk-si5351-no-pll-reset-v4-0-a3567024007d@bang-olufsen.dk> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIALzbKmUC/y2NQQ6CMBAAv0L27JJuoQY9+Q/DoSmLbGgKtoRoC H+3oseZw8wGiaNwgmuxQeRVkkwhQ30qwA02PBilywxa6YoU1Wj9KgGdHzGJqQxhmHD2HiMnXpB db52yZ2OUg9yYI/fyOvr3NvMgaZni+9it9LX/smqIqNJ1aRptLgbpN7rNz5jKboR23/cPER/K6 a0AAAA= 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 X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Sat, 14 Oct 2023 11:20:17 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779756033572521300 X-GMAIL-MSGID: 1779756033572521300 |
Series |
clk: si5351: add option to adjust PLL without glitches
|
|
Message
Alvin Šipraga
Oct. 14, 2023, 6:19 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: 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 | 269 +++++++++++++++++++++ drivers/clk/clk-si5351.c | 47 +++- include/linux/platform_data/si5351.h | 2 + 4 files changed, 315 insertions(+), 129 deletions(-) --- base-commit: b7c08e5d3824bc57182b308c1e158ddfdbe4cd00 change-id: 20231014-alvin-clk-si5351-no-pll-reset-ecfac0a6550c