Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2768534pxj; Sun, 6 Jun 2021 13:24:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzy5LpX0GlXDwwWSVpNSFogaAynQ8sppsmEmS1+3Bp32cRNXj5XMTh3BbNMbB19cnFRjK+x X-Received: by 2002:a05:6402:40c:: with SMTP id q12mr16416154edv.0.1623011078269; Sun, 06 Jun 2021 13:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623011078; cv=none; d=google.com; s=arc-20160816; b=oX2bzeXoxZK1jf/pDGTbbT8WCyhQeDIxe/3bfxbW/AarRTQt2R48hV20iX3+BKxpgR OBomuKF38QvOJo3Pg4Kmnwbi+47bVUwE3mKwkoX97uVImpBoFNAcyR4Y60Rywrby4HaN qTbdN4Fv7M/uWbMIUG4OJK4Yd8Yvr81abUq5tv7YKI8dg6P44+McIBmpmPIcSso/Sq8O YIatDNSDSDhsk155bU27AkBKJIAJTSQEIwAdljB5nspicdzsMc6pS95eQ0kXKjgqfdRk mYrzowhLBzofCCxcCHlF8VvdWAVBWL6Pby0D9+/QIZmTBGLY5Qp//4ltMkrgYmZXusqd oiHQ== 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=GKqzetWt/dv1cWgZZ2u8XQZHK90wz4LVNGLm9kxGPI0=; b=oT3g7ffkzQYmEilz7BHoGwYDqKhozbLfrzvLDC/6tcXsPVNUfL+XWrfYJW3tCqllR6 QtDqCjqaCZuiWu3rIGaLT5ZLI+lRU4qPKUnBM5qT8a8hLjdI2d73tAvo5rN6SV6bMQ2z TvtjAJIARRhZai6h9dWWGQbuIyrX3gxIiNvEcESyAUjZpp+MmFWi+cR2ROvDWyu8GEct OzbP48gQNH6srvAfwJmq6tmU5d+dog3vOqpDq9m+dDnw925EbwdwOzrj19DFc3L4nWXg lWGagRo6V62cBJdJH6gJt7Xhej/odigYjh4oL2gHU+Vv/b1oaRt5lkkJGUDkyYXskFCn uk5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@libero.it header.s=s2021 header.b=nuc9Nxlc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=libero.it Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s2si10200929edt.551.2021.06.06.13.24.15; Sun, 06 Jun 2021 13:24:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@libero.it header.s=s2021 header.b=nuc9Nxlc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=libero.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229944AbhFFUZH (ORCPT + 99 others); Sun, 6 Jun 2021 16:25:07 -0400 Received: from smtp-35-i2.italiaonline.it ([213.209.12.35]:41567 "EHLO libero.it" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229894AbhFFUZG (ORCPT ); Sun, 6 Jun 2021 16:25:06 -0400 Received: from passgat-Modern-14-A10M.homenet.telecomitalia.it ([79.17.119.101]) by smtp-35.iol.local with ESMTPA id pzIbl3WgQsptipzIflrvS7; Sun, 06 Jun 2021 22:23:15 +0200 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1623010995; bh=GKqzetWt/dv1cWgZZ2u8XQZHK90wz4LVNGLm9kxGPI0=; h=From; b=nuc9NxlcA2SDwhLoD0OKb+e8jyK159P0Zi9CVsY2UIjuvzw4LKwBTNnTGuXJ9gt8P TTp30CdwibI6JLbHnDtzQk7nSo/BxnExDfKjPGPdJ/da2uNqfFO76XBcnun1qoVatc 2fL4pah/jU07dTeXjLRGfgORufdeO2cx+ykRwNteV+E/G83VVDozfxYfF2kiNMu3B3 NaJPT7ufcIfpDI7lLTP8icYz5Riboct5IFmipbI+AZwo1496qVrB7nDUFQM/hgnR+u xlowurPq/IDv/KQ9fq+YPj5Xw6UNh5UG6XWYhCZMILVgBB4VWvKXsQJkfio1qg7fu/ ypFq/DauE4FAQ== X-CNFS-Analysis: v=2.4 cv=Bo1Yfab5 c=1 sm=1 tr=0 ts=60bd2eb3 cx=a_exe a=do1bHx4A/kh2kuTIUQHSxQ==:117 a=do1bHx4A/kh2kuTIUQHSxQ==:17 a=IkcTkHD0fZMA:10 a=7lJUY2J14ryrXklOE8AA:9 a=QEXdDO2ut3YA:10 From: Dario Binacchi To: linux-clk@vger.kernel.org Cc: Rob Herring , Tony Lindgren , Michael Turquette , Dario Binacchi , linux-omap@vger.kernel.org, Lee Jones , Stephen Boyd , =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tero Kristo , linux-kernel@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org Subject: [RESEND PATCH v7 0/5] clk: ti: add am33xx spread spectrum clock support Date: Sun, 6 Jun 2021 22:22:48 +0200 Message-Id: <20210606202253.31649-1-dariobin@libero.it> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfI5nRvbbCZ0v19Bu7kLVeQHrArqdPErUgcd8LsmC4639LarUVB95QxaVsA+rN0o9Ten43Cf5fO/jOoc7x+hcvpTtlqmao8mOS1AtV7TYGlivK72Rz37x BuhRgFbQXlkD6hhfH372yu9dpXVpigy1teVlHOJjkDL0czL354Qh23b1WetGol1AsetVdNZxsyQg9DZYSuraTBbMTfjibMAqHkAPGhYJcmbk5sKBVe5Bgggg vAYWd9NAmbgMhDpIHr4PRfBoidzzBHI2n+IzubLrJWu+EZB/XpX29PJzorDggQpVb3NRIpVpDr1uWeOsvTepMePC8+HMqfzGsIgo1PNM8tCalxDyDooTsVzp pM5UyRJZT/d7ot7NzduYudeH7x24rEzoatf9k7/TMCz0vzJCXU6S6V5SYrv1EKLWwgDZINWZEAiaU4TeiEa14g1T1H6PgsYXKr/A+9qNYgiPqS7jF4ENZCgs j+s7Y8JYDsEjrKo81x/NEZWM6uN1+5ScEglmVcBzbtHdZMLIwPlU4mKCv66M/TksG+ch3IM+OTEowyWYa1tQS/9uN7+B1kbFW0qT5Or0rL4nD5M39IqKlS51 Mlg+mJMn/MgEHerj9yti5ubO7YErYv4okrel4VGWNu/LSg== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As reported by the TI spruh73x/spruhl7x RM, MPU and LCD modules support spread spectrum clocking (SSC) on their output clocks. SSC is used to spread the spectral peaking of the clock to reduce any electromagnetic interference (EMI) that may be caused due to the clock’s fundamental or any of its harmonics. The series allows you to enable and adjust the spread spectrum clocking for all am33xx/am43xx PLLs for which it is supported. As suggested by Tony Lindgren I resend the whole series to the clk tree. For Tony the series is ok. Changes in v7: - Add Tony Lindgren acked tag. Changes in v6: - Add Tero Kristo review tag. Changes in v5: - Remove ssc_ack_mask field from dpll_data structure. It was not used. - Change ssc_downspread type from u8 to bool in dpll_data structure. Changes in v4: - Add Stephen Boyd review tag. - Add Rob Herring review tag. - Add SSC registers for CORE, DDR and PER PLLs. - Update commit message. - Update commit message. Changes in v3: - Add '-hz' suffix to "ti,ssc-modfreq" binding. - Add Tony Lindgren acked tag. - Use "ti,ssc-modfreq-hz" binding instead of "ti,ssc-modfreq". Changes in v2: - Remove SSC registers from dpll_core_ck@490 node (SSC is not supported) - Add SSC registers to dpll_mpu_ck@488 node. - Move the DT changes to the previous patch in the series. Dario Binacchi (5): clk: ti: fix typo in routine description dt-bindings: ti: dpll: add spread spectrum support ARM: dts: am33xx-clocks: add spread spectrum support ARM: dts: am43xx-clocks: add spread spectrum support clk: ti: add am33xx/am43xx spread spectrum clock support .../devicetree/bindings/clock/ti/dpll.txt | 20 +++++ arch/arm/boot/dts/am33xx-clocks.dtsi | 10 +-- arch/arm/boot/dts/am43xx-clocks.dtsi | 12 +-- drivers/clk/ti/dpll.c | 39 +++++++++ drivers/clk/ti/dpll3xxx.c | 87 ++++++++++++++++++- include/linux/clk/ti.h | 22 +++++ 6 files changed, 178 insertions(+), 12 deletions(-) -- 2.17.1