From patchwork Tue Jan 14 09:11:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3798 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 5A14E3F174 for ; Tue, 14 Jan 2025 10:11:38 +0100 (CET) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-5d09962822bsf5025743a12.1 for ; Tue, 14 Jan 2025 01:11:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1736845898; cv=pass; d=google.com; s=arc-20240605; b=FFuNpZ4vRimS8nH1dI2ptRw3RmhmWX183aTtk83u7WvlQxvXbsaE+m/uIcUDHR+NoC /run8BFwJi6DGRKvOZqlHL632h2EirPIijT41n74T6SS6663c+vLQRwW8K0V1fhFvAFG +gnGW8nVZ+B9/YJi9g2FYeDLrkjDjy+j7aRMS4UIiNG4vyDJuoimvZGTE+jp5MJRHwtU jvwpcwB8LpTghWDjta34eahJWSVZZSCmtHhwKfZBjDsfL4ft0Bept+UwXYh2o+UZi0pn HEKIb4ikazhSOPNo7uDOt5/2nP5OV48ir2czKkU8rxg7tVqH++fsMyBONfAH16FXTi5K bZHw== 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=tfPTQ5RrgKlBw0K3eyTkq2nXKdfcH3v4iarOeTHRdRk=; fh=vXuyk5lMgCiK2W8AMKaGBbmiASZHD4w0hrWcPlOmqV8=; b=OuDBB9uyvCKbRrl3/IHgsnso85ggYzxSZe/LlKjV7GJX+k7EZts8Gml3Dq6mURjkdM yEQyhc7ejPm1l8rNC/ZQxZ8793s0PKupkE2Y0rEWuIQEnt5Eg81XnbsObGhFm3KoSdha +b5QZ6Wcerm22yVF0/rof/2qbDTy7WM91AVLU8DxBlI12goYGBtm14VdSYkZmf/77xFL JxRVuZ7l70M1mKr/OoMc9SZ/95YKQ6ZvqTiY5DZK/71YRb3tBCiH7VJQI9hX0ghe2zYf 7fLQ0dUPg2x3aX61bdq2utUOQF6KEKBh0QtlP28OFG1G1fVAL1AzYlq6qdrCv+HbLHE0 J+Dw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nyYf7OLF; 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=1736845898; x=1737450698; 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=tfPTQ5RrgKlBw0K3eyTkq2nXKdfcH3v4iarOeTHRdRk=; b=N1IohvtrozREIwTbhGcmcw/Sq2WZhQ8c543vpHRQ3kWhm4B47hELx5V/BD7oXMeU8r /zW6rT5M9HZHtbrOoAMCDRn2LurUcQpeFhjCATcfJ3hD7X1SrUq8lkqvZ5uWm6p5/C6/ PC+beMZcI2fY1y/aNglUpX5gnIlluTfNHTpww= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736845898; x=1737450698; 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=tfPTQ5RrgKlBw0K3eyTkq2nXKdfcH3v4iarOeTHRdRk=; b=aYG+goDNGv2zFX+xXamg0zY5y5urfKG652zQZGV/8ofeqSTTm5pCQFGuyY1dkJTB5z b1K1F6uGECE7vZjlZ+D260JK3a+0LORm6ZGrJlukDxx3cc19F4htVKIG0OaG8Hgofg0L ImtNXvdXmUQI0YsH/5vQo4H9FrT2mvxhjh5U5pUf0UgF5H90c2YUPkCIJIvFSu/ADhJL cDLeYz6pcfvvaVSxD5TxuAfh5/bnEa/U8EsY6tBdxtaL0N/fDujXXgJU0zFXpVTclzka qVfXzroAiJQUZTVsRL0iHLkKKQs1O+SJEI6n7rJoJeU46bBpucAeTg1diw/Mm0oHBJ6Q 6yIg== X-Forwarded-Encrypted: i=2; AJvYcCVE+/vHPYqxly1xJ4fvRpMwdsy2pZlExxOFEfGf8L1fJAceW+iuJDqHn/ANU9vZF4V5LQKAxlBK4G38SvOy@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yx2Ju43SbXaO/ITATdDOFhQflN7nw1AT4ey18rT1x/Vkw94n0sR Q/vdktCBxC3POl41y+87gcscCRVLB6osGucRINCmvWhxXksVtOC2PSl6IuKRQalaIQ== X-Google-Smtp-Source: AGHT+IEvbgCKlsuuVmV1gpD5cNOOYWeuvMAoo4Tgkc9ZceKqtjVAhXL0cWQTUZQz+2laDDZAxRLAYA== X-Received: by 2002:a05:6402:5241:b0:5d0:eb2d:db97 with SMTP id 4fb4d7f45d1cf-5d972e64807mr22454414a12.25.1736845897907; Tue, 14 Jan 2025 01:11:37 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a50:a41b:0:b0:5d3:e99c:a4c9 with SMTP id 4fb4d7f45d1cf-5d9f17b4043ls88600a12.1.-pod-prod-06-eu; Tue, 14 Jan 2025 01:11:36 -0800 (PST) X-Received: by 2002:a17:906:f59a:b0:aa6:9503:aa73 with SMTP id a640c23a62f3a-ab2abcb1135mr2374130766b.51.1736845896156; Tue, 14 Jan 2025 01:11:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736845896; cv=none; d=google.com; s=arc-20240605; b=KQZeMEMqVj7M3Sahy3l423ypXQ3wrI2estqe3WezaZxxy+76jCIk1pj+heQZuL/iGj mIcDy+XrhqRaRnRoY3chbvjrp5TubZSO5JeYYTf611aFAUT4dGdIF3TNFXMrhPM6Ty25 YKDb7DSQyXIa1GJCaM/i8GJ1svQ8EMeO4zMTH7h/qqNZXs4RRnJQfyg5psf+Hth7edAU EjFQkqTp/55KU3aKYlzT1say01CRLpBqVRBbAvpFiajwg5JlzR7ABc80S00v5aiBBNt6 P6AGE+3oE8UXH7Ma//iRdLMCNNstx2QPkejvldFirHoRWkPTlrBzc6Z2iXCKL+6ap1wN VIhQ== 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=siX7FCTD0wixOLRdc1jnWvPAPiYOmQR7y0biY9ez4Ss=; fh=aLWgEPM+DVTqoB30lVkyyzFDp2H0k8cJSxUm9Og2ZbE=; b=Bo+XzSPkxKYkzEX29RWLz7gy/Tsm+wkUIqv4m8QZMVc4VS5kzaM8Mco0HMfr68Dd4v 56HkQpAc4c/kY/nsUS7kzS2G8IeVPkxIH2WzBY9+eHHVpX98qFpIKQRgIfz6dxvVEW4h a+Hmaa8FVEQGy0TD6FWwGwe6vn96gCmiH5kjdDbeK8wNwWmeI8XKMtEB22BgLeqMvvnu xLIKrTiN87ZmmSdaIDSUKN7kKZwuFhRfToJXPFbMHycmeSZCrfrOhG0rScvIRazObY9k eYweeTpAAs+v3qAEG4Ejp7IAQ8V5SZCP7LZQvfC1frbU6dTF0goH6Jgw3DltQ+VMhltV s5Xg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nyYf7OLF; 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-ab2c8f5c49csor549932266b.2.2025.01.14.01.11.36 for (Google Transport Security); Tue, 14 Jan 2025 01:11:36 -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: ASbGncunHKhH260ScVCtQ08vYN2xybLazdYh8Tah2YTQMmTkvfoMksZs9sUUFh3DY9D 9FLPe5v3/WX0bxnCTvkdEXUZSpgE6YwjSDYUSgFtNl/UlqgcvHg4PhMeSVsAFmgTijqAexUFflJ r4z6ozychJbsC14asjcipjcSyS8xYhCOnsHb3b0zb0QB6qLjcMFtN15vqW1fSEWjb+OauWMCwA1 8Z4LMUo+kcug33yWTVdGe7WF61VwxwZyZW1BdNOWpCdEhXStLtSNpeoEAI6PfoAsPSTTB2e+vRn h57Aqa+g1hUR/elKkH2GHw== X-Received: by 2002:a17:907:704:b0:aa6:a87e:f2e1 with SMTP id a640c23a62f3a-ab2abcb198emr2288992866b.56.1736845895670; Tue, 14 Jan 2025 01:11:35 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.42.147]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ab2c95b7317sm599640766b.154.2025.01.14.01.11.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2025 01:11:35 -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 v3 2/4] dt-bindings: clock: st,stm32-rcc: support spread spectrum clocking Date: Tue, 14 Jan 2025 10:11:14 +0100 Message-ID: <20250114091128.528757-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250114091128.528757-1-dario.binacchi@amarulasolutions.com> References: <20250114091128.528757-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=nyYf7OLF; 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 --- 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 779e547700be..628bbbcf2875 100644 --- a/Documentation/devicetree/bindings/clock/st,stm32-rcc.yaml +++ b/Documentation/devicetree/bindings/clock/st,stm32-rcc.yaml @@ -56,6 +56,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 @@ -81,6 +101,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': @@ -98,6 +122,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";