From patchwork Wed Nov 6 08:57:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3621 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A5A223F14C for ; Wed, 6 Nov 2024 10:06:11 +0100 (CET) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-5c95b050667sf6441221a12.2 for ; Wed, 06 Nov 2024 01:06:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1730883971; cv=pass; d=google.com; s=arc-20240605; b=h961gw7jxMPZt24F28rK7AN051fKIC3M8/37wZO1NroCLmpU6O73ecBO1OsR1Gro1f Q3UH88/mUYPpUg5MuHQf59wftKcFKm45JmptZNn3dKM3DlySqhoPW0b7aUhcsQZG8kwr jFcNQAFh5lemLtgglauB+aVsGlkVbcMNLHgi2wiplxn2XNZKfhIhpZIktO9eSjZ5CB39 HYXiEJ5dzReBZ0A4XrFvRRNHaSlx5qwZZytCKYP27Hw03579k4I+aPsI4Nk+EKp8Lia4 wsFbT0MbLw7Xe9qY6JTfI6+58Gp5EaeVEaKnoxXhn/gTB4J7XZV1encGocNSixzug8s7 8jzw== 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=ywUfcEPUgUixOWAS7+e7eDUbvsG5ifNJljGIhA4R0yM=; fh=RZwhpuHtn7gi0y95WmrgJ+0Dlaji3BJkGh9zWsTodtE=; b=OzrkKm0G9GBp/vN6NfhOdQreMMdKpLmoJfGgtc2AA3115T6NNiLe/683L5k67yHNw/ E+UM32TsohVE85Ei/1Bfqa2UVWttZHOCvleCDRhGbz1eMGPo2Dr9YOQnyfIrpMx1yiGd 8Y35XmewwkA2m5PkgpR0BkSs6s91pgru4z/EgSYDtwv1ObwF1yDh/zvcO1HhJpx5LBIx LzddVeH28D6UrVRcq3T+KeIOFXX1UYr9NudRqgSiyrzSymNDqWBJvAlQFSzjTO/SCy0o eRhcTwupMIb1tbphBu5ht6DZMGuMOnwx52YHJ0ZlBpxqWxFlSUR/L+T42CfCqliIC8kx ZFNw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n4+77kX4; 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=1730883971; x=1731488771; 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=ywUfcEPUgUixOWAS7+e7eDUbvsG5ifNJljGIhA4R0yM=; b=MnRAWLRjAJnz0gTdfX60onSWpKulyI2idcqU0J5IAV+9zcL6V5AZ8MA8T1DJlVmHbH qtPQw7LFdx1pkTRbrEzj9gk/t65OYwdZOUSuTs0vCajzAugM3VvaNUFFVvuPZMo9oL0+ 2ltriJe3yUYtI5E3p9eW4AHqUJ3S6S/1xZndc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730883971; x=1731488771; 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=ywUfcEPUgUixOWAS7+e7eDUbvsG5ifNJljGIhA4R0yM=; b=KXMtheRw3MvXVNr0vTnClVfEExw2y+a++0kIK5p/sLfwmb3Ku2ViIVJUK1WMvrK6VZ wfxhcWOA07/wQgAD3A8EuPfTAWWCHtVUW5OKRvBEskIVTVZc9n4a/X/q6Bmd1omNRYj2 sJdLAvDYmJuTQiIDfmdGYYSOvUFORPcnV4bavhvuh7LykaLP2lztplI0d3DG9bIaIVgJ /A4i2g+oFIGRzHbsGwsh4gv5j3+P6X/pOuTo/yJbcmEFKSTEZ3B4PRa/nDJxLIp4zh22 wrVHSXE08tcWQ4d9a/yLZ5fNJwJJxina8kiSu7sNx9nen/XFUvGraBwzPsL25aytSBmN dRmw== X-Forwarded-Encrypted: i=2; AJvYcCWlhykQvjGql/k2RXIfqR6vBxhCgLvemlrOapwS44Eg040J4LeFRKyA76ITCIm8/YBiU78XfHfd7Nw+EUMi@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YzqfDsPpj2o4HURgus1lwufpx0RkJPFg6NNe4lJVQPP+f7RuP8H 4Yludy4CaNF61dFIF4YWms5RmMsDttYGptUyjnvBEgS9OR31YWHJaWKFBM0eWX0jfg== X-Google-Smtp-Source: AGHT+IGpEzTFC6UiBZAay841W35TaLOHc4cCzvsyr4AOdbAceO3Bp8wRI7sZCskbALHdtl7BJwEMdw== X-Received: by 2002:a05:6402:34d1:b0:5c9:6ae4:332e with SMTP id 4fb4d7f45d1cf-5cea967a284mr18464454a12.8.1730883970910; Wed, 06 Nov 2024 01:06:10 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:180d:b0:5ce:de2d:8fee with SMTP id 4fb4d7f45d1cf-5cede2d909cls48297a12.0.-pod-prod-03-eu; Wed, 06 Nov 2024 01:06:09 -0800 (PST) X-Received: by 2002:a17:907:7e84:b0:a9a:123d:3f1a with SMTP id a640c23a62f3a-a9e508d4af3mr2078966866b.17.1730883968968; Wed, 06 Nov 2024 01:06:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1730883968; cv=none; d=google.com; s=arc-20240605; b=BU5z9E3K5QBvQNENCYCrHSkczkS1anz8he7Cn167ZpN2UoPDw4CuFArIkImn73s3ip OjMmoZ2wsQuSU5ytgAIQw008rQonWEwexpiYexQrG8CTJWRXNmOW9jCgYmJmnY8Jxro0 r0x8cmtuQnlRSAu2PBVW3Ccpzet75twOUNmYvC27tIeBhKgVrEGZKDKyVuOOAZDMibfn SduBcX+FSPM2B35DqNTsGTplUTf/UtV7xsj5joSP7mkyF8kgLaNUJm3ScxI4aHsCuGOq N9SuuEqnKoeg/dGPY3Ykw++n4Lp0ELJvQQsFXKCwt72AjBLMSbq71SUt8DC7aQkiuLCN Ozrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=EQGfCgtGxny3+etN5uPGt5VE9z/U2oT3XLy2KTaMLtM=; fh=2TL5gdVAJyX/yhk5/AxHrADrCeVz/BiuKBD/sWsuHYo=; b=Pn9e50FdaMk9FKBwpHwH+mRqQSL8JzEkCXbjwGlukYa/M8PyC+GrdFwPb0ulCdWyPs 5tMMXSYjgpPICQQp4BmVmC6NKFe2XeqfFdWI1+LRWHNk78EtE90WwdNMiLsbGPj3EUsb 8CJqTlCmicnkqNlAJNy0nQVrqBeFS0semYdmcneS4WnVHLs39VsJ67oWi4JbmG3Eyj7b YKMUkUEVDGtYALaphshH6sv8lU+APUPdPC9u+b6K249s6fBh7kLcOSNroXnsrcYKxuTg /MFzqod6L2ZetUutbGZamfzgU9b345wzjN8RrNoK4UNiYROr5baCqWdhQ5yrZtKVqKrY Sz/A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=n4+77kX4; 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-a9e56485533sor625008766b.1.2024.11.06.01.06.08 for (Google Transport Security); Wed, 06 Nov 2024 01:06:08 -0800 (PST) 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:724d:b0:a9a:bbcc:5092 with SMTP id a640c23a62f3a-a9e50978806mr1335979766b.39.1730883968287; Wed, 06 Nov 2024 01:06:08 -0800 (PST) Received: from localhost.localdomain ([2001:b07:6474:ebbf:afb5:f524:6416:8e3]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9eb17f9422sm247781366b.139.2024.11.06.01.06.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Nov 2024 01:06:07 -0800 (PST) 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 v3 0/8] Support spread spectrum clocking for i.MX8{M,N,P} PLLs Date: Wed, 6 Nov 2024 09:57:56 +0100 Message-ID: <20241106090549.3684963-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=n4+77kX4; 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 boards using i.MX8MN and i.MX8MP. Changes in v3: - Patches 1/8 has been added in version 3. The dt-bindings have been moved from fsl,imx8m-anatop.yaml to imx8m-clock.yaml. The anatop device (fsl,imx8m-anatop.yaml) is indeed more or less a syscon, so it represents a memory area accessible by ccm (imx8m-clock.yaml) to setup the PLLs. - Patches {3,5}/8 have been added in version 3. - Patches {4,6,8}/8 use ccm device node instead of the anatop one. 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 (8): dt-bindings: clock: imx8m-clock: support spread spectrum clocking clk: imx: pll14xx: support spread spectrum clock generation clk: imx: imx8mm: distinguish between ccm and anatop references clk: imx8mm: support spread spectrum clock generation clk: imx: imx8mn: distinguish between ccm and anatop references 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/imx8m-clock.yaml | 46 ++++++++ drivers/clk/imx/clk-imx8mm.c | 99 +++++++++-------- drivers/clk/imx/clk-imx8mn.c | 102 +++++++++--------- 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, 289 insertions(+), 107 deletions(-)