From patchwork Tue Jan 14 18:19:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3804 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id C57C53F332 for ; Tue, 14 Jan 2025 19:20:31 +0100 (CET) Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-43582d49dacsf39637545e9.2 for ; Tue, 14 Jan 2025 10:20:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1736878831; cv=pass; d=google.com; s=arc-20240605; b=dgVWYzj1qOA9HNgtUrBfM1nPGznPyXqZ7aglYqqQe+cuuthAN51sZvee2xNAkL1A2c eCG30N0Fm6/84oalYerEueaYvtBKxIiU+IUoRt2REbrpICKTQMzlVLLU9hmEX+xgovdx wX0rqvxANdbXR9cucfFb5Ly2bBjaRQ+ngLCMtqYZa3q3OrBastA+UOcRgW4Q6e+mpD47 oCs8eIK7wVdNgHgYIKTu9rjLg+Qc0MqcFmautM8TjEOHekx539QctStFn23WdewUjddW CCWt4gjW3FzCWQ0k8YWpQjDZZZROm1pD0cFbGu8Go/ZLuouce/fVI1BLYZ6sr32vOz3k d2Yg== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=okHm8FpseOZxCls+lTXwFSJhc7Zg5l2DPW17MGFLHXo=; fh=N+vpRtRxis16GJ89s3/34XbieAym33gyZ9O61OpZnBA=; b=Bawdi0kobKXKHpbgMM934qwFhDz0MAO8MVpZB3D8PrIkvQxUmmbPr5YR59I2/brp+W nfWthil7Zn5LW/x6Jw0rxoCcrelM4UmEtNmM7zKykWBNSXhrEYSGdv6HqX0bk9KyMknA EqpCfJ7CokO5qbQ9b73SOWjr58odoDOrpdXIH6O3ycgc/p6lyYMh7ADR5WLokW/QIBix nfRB4KxffL+kzie3GkAyqwPoARvxJGJPgbXO+dcc1oRzfRg8FFzI3R25du9uTeZAtBth bpCALFE03XkvC+x29R9uq2T8ykrJLg3YCj7Sx3A1JAAHef31gXPUPfvS2ONrPc+4mZqU 5IcA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mUfxtxPK; 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=1736878831; x=1737483631; 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:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=okHm8FpseOZxCls+lTXwFSJhc7Zg5l2DPW17MGFLHXo=; b=guC2fIdaaejDjyQaWYvF3TSBQ+ADxRYVPZBbb7xGp0ybtUvzoTrrKIf3GcL3bRiz1R 5R5bMOisO+9zV+BS58LkZcOI0lwa3Wswk6GVO3qhFZ4WTDUt+Gt3YYpJE8Oe25dxOCGW ODOXZB1GYhgWI2mlfcrk7bKrv+mxVCJeN+3D8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736878831; x=1737483631; 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 :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=okHm8FpseOZxCls+lTXwFSJhc7Zg5l2DPW17MGFLHXo=; b=hzepsltiyTezx3c6YuZG5cnqHF3av/HB9vDYsgToFBLjBJwbXZHcM6v8FgqjLnZ+ED 7A1TNV1fcJodXAPKRB3kEVPRKS2SejL/KZ/bWZbd5fH5AXvlmNqcvcV0ct+9lh1EKNAR y5/2pOTqlaHM1Dgz0iCLVoKEh413BtOl+WaixMEWxEKIrKxBGqWA0uQALBxffhjcWxIS Rd/DuE8i9vLFJy5rtxDc9s9n0uKYBKmP+RfFV5qWVZEG/fdvtkX4wm52I7+KPBCCIG7s fQUT3ZN3RNdnCcfs9cL6S9H0jiNzfmQ82F4tBcpeT42yVs9Kop5t12T9zLbyxOEiBNO3 Xc5Q== X-Forwarded-Encrypted: i=2; AJvYcCVv0luO6QHis/3IQu91FaAfZLJ0QqABtfQ0bF29yMF9IAhGPecieVG/SQq20W5EpI6FS5+dkIkL3JCqc4s9@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yw25SAIxxCSHuCztrOIYfQyEZUf0so/HCOEa5khDE0Tw4nCRRsd SKYVn0571PE2kZXC+Nl+6J/x+dx+Z+ETHe0fhB4qlxxdFiJQZ1dpyLRO4hAFLF+Yeg== X-Google-Smtp-Source: AGHT+IE2+b/7aJ9UL2dw5hBIc0uyNlqI7bRy2L2KwUqMpQR9/n+9D9/IDQ+CrVsbwWSdPxKTie3aRQ== X-Received: by 2002:a05:600c:4e0b:b0:434:a7e3:db5c with SMTP id 5b1f17b1804b1-436e26aeeeemr265405905e9.11.1736878831229; Tue, 14 Jan 2025 10:20:31 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:6c49:b0:436:8a89:bfe6 with SMTP id 5b1f17b1804b1-436e8843d8els30389965e9.1.-pod-prod-09-eu; Tue, 14 Jan 2025 10:20:29 -0800 (PST) X-Received: by 2002:a05:600c:1f86:b0:434:fd15:3adc with SMTP id 5b1f17b1804b1-436e2707303mr206600825e9.25.1736878829394; Tue, 14 Jan 2025 10:20:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736878829; cv=none; d=google.com; s=arc-20240605; b=WUFHb/V2uxr3nrlBmG4mj6gYrmu+XvmvZfYLcL2tDuKB5Dswd25XvQpgX1+2nmE81Z CmsS3bMs9Zrw+aeFBj5lJnf8Gy/mwJdSkOa8TFuYMmleKHuVjBjbLsl4jNgo0ZF5PUjN O1xoIgCfPaMTLpafuD3GrzLAvBWOInSMDZli5P5grZpsBKIAMrSr/+4LsV93PZNZ8ggc tZHxwAT2nxAX/v4Te0iufr7ibRpjIMv4Xa5Kb9vUwIdjTA9mbyPntIE8xftBGkmJJXsd EHHcMdjiguuS8Q8st2lkR5NV6R6rBjcJf0oamw6iuwdAflvNpBjSVNcl/TfArxs63VtE 0G6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=zpzT+aUzJ1Q97S7iT1IDWutNkzHMdDAlflIDJCmxtro=; fh=aLWgEPM+DVTqoB30lVkyyzFDp2H0k8cJSxUm9Og2ZbE=; b=dZ8mKJh29NsIg+PJIJbglpmWosJTQg9a0n9ccUFk9rGllWJQb+2uqt/qCqwG2iA8/4 sBSqL86G9BIcxqcIDI7i0i/gTS6qV+cZP586lqR6EWBih0+DmQ2rRJsI1xWGssdhjiv8 OcypciZBM9GYqju0Bg/wXwZux1OJLWcItyAVFEaDvPB/ojHJkOyyCnzta3yzcPun9F9n PzBkJYA1VTEfwC2eiwLwnswq3eCZhymzo8D2vrAAHz5cZUL3s7LWeOY780SW3LyK2nEV SWJdgEndwYo/eqIoybPM+ynMKHG/go0Q50XiggQm9nzOkORiLixTQjxTf9rpmjxEtlh0 HwYQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=mUfxtxPK; 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 5b1f17b1804b1-436eeffa831sor37671385e9.9.2025.01.14.10.20.29 for (Google Transport Security); Tue, 14 Jan 2025 10:20:29 -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-Gm-Gg: ASbGnctc2BFgNt0t56TUMRFW69LnJQKmI68ELYtAs9aujM/FcIqIuT1p3NOLC9EOuhP szO6W0tH/3EtBBm8/+8VpDEkCMq4CwnJ8ZZXnaUjKqIE4+/eACPJ61lutXO83DjJImPfznP8uzO g/HH2uxcrVTWe4OGJ+dE4ynrxod0XOs9tdJp7htotFSy2m8BhpMa4gv0z7v/Ra1G72LqTa7Y2kP bEvAE4MoSWVCmJTc0Xaq0RycSdpWrXj5PeErgRkn9DG23/c0lOtDamiihGIi6Tmes0ITVlnHOCS tEZJqXsotvQMiCO116fZJg== X-Received: by 2002:a5d:6da2:0:b0:385:fc70:7f6 with SMTP id ffacd0b85a97d-38a872fadf3mr22273830f8f.7.1736878828905; Tue, 14 Jan 2025 10:20:28 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.42.147]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38be66b01c7sm278970f8f.22.2025.01.14.10.20.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2025 10:20:28 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Krzysztof Kozlowski , Alexandre Torgue , Conor Dooley , Krzysztof Kozlowski , Maxime Coquelin , Michael Turquette , Rob Herring , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v4 2/4] dt-bindings: clock: st,stm32-rcc: support spread spectrum clocking Date: Tue, 14 Jan 2025 19:19:47 +0100 Message-ID: <20250114182021.670435-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250114182021.670435-1-dario.binacchi@amarulasolutions.com> References: <20250114182021.670435-1-dario.binacchi@amarulasolutions.com> 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=mUfxtxPK; 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 addition of DT bindings for enabling and tuning spread spectrum clocking generation is available only for the main PLL of stm32f{4,7} platforms. Signed-off-by: Dario Binacchi Reviewed-by: Krzysztof Kozlowski --- (no changes since v3) Changes in v3: - Add 'Reviewed-by' tag of Krzysztof Kozlowski Changes in v2: - Update the commit message - Change st,ssc-modmethod type from non-unique-string-array to string .../bindings/clock/st,stm32-rcc.yaml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/st,stm32-rcc.yaml b/Documentation/devicetree/bindings/clock/st,stm32-rcc.yaml index 8f2494a0b28e..f83a6120d65a 100644 --- a/Documentation/devicetree/bindings/clock/st,stm32-rcc.yaml +++ b/Documentation/devicetree/bindings/clock/st,stm32-rcc.yaml @@ -53,6 +53,26 @@ properties: Phandle to system configuration controller. It can be used to control the power domain circuitry. + st,ssc-modfreq-hz: + description: + The modulation frequency for main PLL (in Hz) + + st,ssc-moddepth-permyriad: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + The modulation rate for main PLL (in permyriad, i.e. 0.01%) + minimum: 25 + maximum: 200 + + st,ssc-modmethod: + $ref: /schemas/types.yaml#/definitions/string + description: + The modulation techniques for main PLL. + items: + enum: + - center-spread + - down-spread + required: - compatible - reg @@ -78,6 +98,10 @@ allOf: - description: high speed external (HSE) clock input - description: low speed external (LSE) clock input - description: Inter-IC sound (I2S) clock input + st,ssc-modfreq-hz: false + st,ssc-moddepth-permyriad: false + st,ssc-modmethod: false + else: properties: '#clock-cells': @@ -95,6 +119,18 @@ additionalProperties: false examples: # Reset and Clock Control Module node: + - | + clock-controller@40023800 { + compatible = "st,stm32f42xx-rcc", "st,stm32-rcc"; + reg = <0x40023800 0x400>; + #clock-cells = <2>; + #reset-cells = <1>; + clocks = <&clk_hse>, <&clk_i2s_ckin>; + st,syscfg = <&pwrcfg>; + st,ssc-modfreq-hz = <10000>; + st,ssc-moddepth-permyriad = <200>; + st,ssc-modmethod = "center-spread"; + }; - | clock-controller@58024400 { compatible = "st,stm32h743-rcc", "st,stm32-rcc";