From patchwork Sun Sep 29 17:27:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13815167 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2BAC3CF6497 for ; Sun, 29 Sep 2024 17:29:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=N1af6m0P26utxo00AsF/VQkLQHLRIxDCh3EYFZpR7sY=; b=OuxkJpHelj8U5ik6sgupVbX6L5 Vd8K271iEEEWVLcIFShhyqbgrGmJhELdc61Rq9SEOxCno0VX7kAjwvp09G8uPaMTiT9UxU9Ml1sYX GNK0/7cddttHrnerpQrITgmd5lv2VH2u6Cn0Er9bqPDLMkqJf/zaP5zAxrnm/2QnFUNkp8fkcocUl l/SEK9VXxjBQTRNVUIOFXhX8j1x56mMW8tkz9mc/OZlq1X9IJkmVGA+wemn5cOi8C8U0C/Vp9GNda oJgI+gNf+88egb+pl+k2fDg8zdB0ZeKXyGj0xHfbm+5wOmklDm4EGpi5VP5gJmtWkJIirRSuMxRuR fWsUSLvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1suxjE-0000000F6M0-2J4u; Sun, 29 Sep 2024 17:29:04 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1suxi0-0000000F64P-34fc for linux-arm-kernel@lists.infradead.org; Sun, 29 Sep 2024 17:27:50 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a8d2b24b7a8so856432866b.1 for ; Sun, 29 Sep 2024 10:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1727630866; x=1728235666; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=N1af6m0P26utxo00AsF/VQkLQHLRIxDCh3EYFZpR7sY=; b=rIMx79TdH9xuIdmEw/FMausAuqqSLOvrYvOzXC5ndz79+oo95e6aoGzX5lUM84MdFD fDYej4ehiztUKJY2AZVOgRS0aht/BBIbF/0qmOqh3TRLCQBguNtsWhKtC3BqxHECrT+N rN/29RoOtffAGoZKJl2guIildhOg7IZykKE18= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727630866; x=1728235666; 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=N1af6m0P26utxo00AsF/VQkLQHLRIxDCh3EYFZpR7sY=; b=t+PCPSH6vPtul0IMsburFus9g/J68Ev9wg+cV7blP8OowHADNm7bNi2nNfV3CZwqCU /+GauExrc88IfC43wcLXkpIo2dvs57+bQqvdJDkuENDtJ/PlWQPeRbZ0KhakCm9YILMt FpyUYK5b9pA3h2+Sf8Izmj0LbB83WxfudxVTiiEkIHICUukMbnRt8YvaKEq5JOvQSybo M8jW/hGvtZVn5SE97a54Fy/uAFDD6Z/4NCQ7NJoulCVyg0c3EiqYpd+GvN3CUCAU30qx w4NzT3pHxH5u9W5j1izjfMpcgZxi/hI3BM/KPeIO3YCyg8m86XQ636AX3K/MajfvzWHV JL5w== X-Forwarded-Encrypted: i=1; AJvYcCUZzow1wKtGLzseei6gN6x5g/V7aix85YSqr2Q/1R7BiS8QR/ORC0TZs8t/IiCq7JPZiJ2AvqdJ9HX7AdZBEMME@lists.infradead.org X-Gm-Message-State: AOJu0YwOzikhwAnF887qZa9q4dV+OHDitPEbABT7GguRLEUoX8sFvTLb sRJkVniQi15ADfr7bCOVvOi7KmjYealXG/5MvHSgELx4Gn5FepB+MM5WQH0cSGs= X-Google-Smtp-Source: AGHT+IHeQSLDDGaGM06C3DmT6DPfJ9OxZZEG7iZ3wShlX9PB2tTp0g7klku7UD5UU2zkoa72aIzLJg== X-Received: by 2002:a17:907:7f26:b0:a75:7a8:d70c with SMTP id a640c23a62f3a-a93c3098a87mr1230197566b.4.1727630866257; Sun, 29 Sep 2024 10:27:46 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-54-102-102.retail.telecomitalia.it. [79.54.102.102]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a93c27776a1sm403176866b.8.2024.09.29.10.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Sep 2024 10:27:45 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Abel Vesa , Conor Dooley , Fabio Estevam , Krzysztof Kozlowski , Michael Turquette , Peng Fan , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , Stephen Boyd , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH v2 0/6] Support spread spectrum clocking for i.MX8{M,N,P} PLLs Date: Sun, 29 Sep 2024 19:27:10 +0200 Message-ID: <20240929172743.1758292-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240929_102748_804724_CAA8CF2A X-CRM114-Status: GOOD ( 10.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The series adds support for spread spectrum clocking for i.MX8M{N,M,P} PLLs (audio, video and DRAM). It has been tested for the video PLL on a board using the i.MX8MP. Changes in v2: - Add "allOf:" and place it after "required:" block, like in the example schema. - Move the properties definition to the top-level. - Drop unit types as requested by the "make dt_binding_check" command. Dario Binacchi (6): dt-bindings: clock: imx8m-anatop: support spread spectrum clocking clk: imx: pll14xx: support spread spectrum clock generation clk: imx8mm: support spread spectrum clock generation clk: imx8mn: support spread spectrum clock generation clk: imx8mp: don't lose the anatop device node clk: imx8mp: support spread spectrum clock generation .../bindings/clock/fsl,imx8m-anatop.yaml | 45 ++++++++ drivers/clk/imx/clk-imx8mm.c | 13 ++- drivers/clk/imx/clk-imx8mn.c | 13 ++- drivers/clk/imx/clk-imx8mp-audiomix.c | 2 +- drivers/clk/imx/clk-imx8mp.c | 21 ++-- drivers/clk/imx/clk-pll14xx.c | 102 +++++++++++++++++- drivers/clk/imx/clk.h | 24 ++++- 7 files changed, 200 insertions(+), 20 deletions(-)