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: 3536 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 57E193F03C for ; Sun, 29 Sep 2024 19:27:49 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-5c88e8d0a69sf993245a12.0 for ; Sun, 29 Sep 2024 10:27:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727630869; cv=pass; d=google.com; s=arc-20240605; b=jqyA6N66ge1BIuaDO9o7vY2c1t/I5Z3szrz/4FHJCcdsj8Dvy1Cl9Wxer4+YRxZpDd gQ5fseUGXMNy1ip0lRfrpqlkgoaEwzZfL9FlTb2M/4dEtvqNMqeVsMh2efvtYsbrOe/O gDyphsNRP94Ad+py6EjfRzXNVaDMTaFYGJkVwzmHfRqE76bhyOPGc6pfVrEjM1UCcAuU zn39aLsxxDbsT6hrRPYRhoYE+HIaDjKeqzogtCeS9+uK/5/3wR5K4fwa4c2VzORrThWH /tjcV6aUcvD0ixhN/Eteak7oRvtAs3GrP9tT8XDBlIwve5JHmiqgnKEoNWi/A5E8/+xt 8EUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=bdUABymRg2s60/MLxu8l6wqnrrMw8jHMgIo6Rr6va5g=; fh=6I2JA+vu2LtYPGHt/R77ddMV6BtKEP3+gbOCzt3JOkY=; b=PwHaHGIRkG4XBxK9Ll4mM0tI2upWTXFyDaHfLNaGHu6fheBRbVDB9rlgTUh84va4S2 350L7dfiJFD905kDTjGgCzpaBArE8XBcVhyiWDedLkg4XEvsXsSBlEAUfZNA60LzPTpo W6C7rloOEs2Ur7mPRHuySysfYxnkVkTdznmJt3u1pbE6d41EcxQz2MttvGm0X2tEiVmz ELvjwNaDy9agiKEDkDwP3NkU4/oQnajmpu73FWJIbrxNm256uj5g8zIUWfC6Ef1SqPg1 a9es6Zl+Z9KNFb4lf0EPScb1BDRVdn8aVkeiai8iC/exfDGoae5eRISs/8TefjKLoLKS iZPQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=N50awcqg; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1727630869; x=1728235669; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=bdUABymRg2s60/MLxu8l6wqnrrMw8jHMgIo6Rr6va5g=; b=Q+PcQSiE0yOeIyNDkAi8lMMe4xjGMAVRvEhnwqxg/r75kM/KWCM1x6w+sD4YuJ81gu qmRJhge311ljiOUM4lki7xPc8DfeRgZKBCkpp1fxVj54B7yjihC0GV3cgWdL9yZUZGhs 9msWJCbwPVelNliPZ6sjd4E1MIBAYZ2DIKzNQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727630869; x=1728235669; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bdUABymRg2s60/MLxu8l6wqnrrMw8jHMgIo6Rr6va5g=; b=qfBP7bKF5q5/kdz8pXxfcjBN6m2fmsdeWWoNlNczLZnDSicPfRAS5LVnTHqu4ilNWh gykHleg88ZlDCjSvb7f3H6xhxSvFypnxwjEMHcrLKWQvIN0gIrvDPYynoZcxYRVuksUN sZ0JrTl2XbmN9DcLSwM/6TT+zT+04iMKRdNtn/lyddV5NmMQJrwsAgRDuBgvtpiSexXg die+PhEcEOx5D58cFWTfi9Yhn/NL1HkB29AAVhnqrntD0vWWuENaAQmuOsij2MVjjNi/ TatjlyCZU/hQHsy7IoXTMOytnIyGKhIEZuVNzI4jqXeLgzz9Mvx8/t2q+2661bC6S6nj KCoA== X-Forwarded-Encrypted: i=2; AJvYcCXNgSONSLmeZNR2HjPlxA6/taoawQwzo6iAuerodZmEziqydkv8BFiUk1OzCFkL7gg5iDgDDxTudfP23NQH@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yz19DeBgKWTIv+6TFkx7Me2opKzjplNfGucfWA5bsnqfQpMbcUN KEstfQk/gqXb1GF7FTq6nGB/HwQBLjIgXbX/ZUd6gnjbvTZmhsaI13sA2kDA7AvDQQ== X-Google-Smtp-Source: AGHT+IHGBaNxu0TCvG1hdxCofV4s4fZFV/YLWevfG32pk/ycjpTJ31Gxu/IPFmc7lbU4+ULmJTEYqw== X-Received: by 2002:a05:6402:3485:b0:5be:e9f8:9ba4 with SMTP id 4fb4d7f45d1cf-5c882443952mr9673992a12.4.1727630868509; Sun, 29 Sep 2024 10:27:48 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:4408:b0:5c2:1813:8ca8 with SMTP id 4fb4d7f45d1cf-5c877824cb2ls1288258a12.2.-pod-prod-00-eu; Sun, 29 Sep 2024 10:27:47 -0700 (PDT) X-Received: by 2002:a17:907:7282:b0:a8d:4c83:d85d with SMTP id a640c23a62f3a-a93b15d4055mr1572813966b.12.1727630866810; Sun, 29 Sep 2024 10:27:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727630866; cv=none; d=google.com; s=arc-20160816; b=sO/HeJi9A9jD2hCNpXtnQ9dhvR37qPvleQoDNmfv0uqDmSryRx89ZT4nbAWG5bw/9k vcNCgay9JxHaqJyrDu/XkUGUNFspB1+dZlWN66sYDFpy7zBmHB7Fucne8CksSxtK9V3d 9yv+rwZnMhdVac4alxarM6ucHnvYb/FJlUU1JaqjkiqL+lUfJR/NdsyjCsTu7JSJ7G5b wfSBcLTStEUmj8Cy4wweqb9fVKvz0Oaea1eXkK3Q0f2opm9PQjBOwcy8lAZuisTNQKfy dY7Nily4Ry/0aQuGpbIyTouCD/JCX+2miy0XVHUnFMMrJzzlOqAhIOYDvLEi082GOUz4 g4Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=N1af6m0P26utxo00AsF/VQkLQHLRIxDCh3EYFZpR7sY=; fh=2TL5gdVAJyX/yhk5/AxHrADrCeVz/BiuKBD/sWsuHYo=; b=v/So8vRHOG9Vt3QAnvFNbQULDs+hXsEeVnsi7fJSl3CUETSSp4X35lUieRYSKo+EfI gt3Ew991fC6e5bxNeC+2n7fC7mEd/0EsA2K6lIr5qpkpexndSOybbRtnZSoYuOrEd8DH IpHUWA9SJQzK+JHuSh1ZELwPuKTOBUb6Hr9Lsuf9V0NTdXr2o0gsJvkNOxemrCVSNSE7 ZGnWnkkbNhZyczD9CyOUPu6GXnoQhVssKLm1r3mZi9MBk2m/V/ZJS2o9aCqcqF+BtWEc OxTX45YPEfZQ4aUFMTacpzepIot1Qh4UEZB+O+4daOSL61uAh0d71w9+31fnMFQV8NMK XoAA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=N50awcqg; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a93a4cca139sor384791666b.1.2024.09.29.10.27.46 for (Google Transport Security); Sun, 29 Sep 2024 10:27:46 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; 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-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=N50awcqg; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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(-)