From patchwork Sat Sep 28 08:37:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3528 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4E8A63FADA for ; Sat, 28 Sep 2024 10:38:18 +0200 (CEST) Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-a8ff95023b6sf208931166b.3 for ; Sat, 28 Sep 2024 01:38:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727512698; cv=pass; d=google.com; s=arc-20240605; b=HBA3A2qkJZv+VPbGugOROlI7CV3/Uiqxu7dT1RgoMK4WLwu7NaERErzf8TeQy7iPVA 1pP1vpKxDCJxfUXT2qivvVa7kny6kmcxj3dIMOGnN1T1ce+g3AC1zZzfGIlKqLW/t4xL bQuHVrqrKQU93g7gZnjvNqhLHfJ00BncBtPIWDMiqMpd7ezD/MFWtKfYaQ7qr3bpbb/h 47/RcD1aTmhRaf+MTXlXgG3Nauvj0PU1GCqC5KhXFBQZtbdZ0vHGsYrTlqdgTAr9VoC8 NacTkcZ0s1l8Kfe+kgwEIQvUnbyWyxwPSvF4ZrTiS4rbgCcc86hT+eei42XRKXxSNQ1i Ikmg== 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=KKjCxc9wOoF4nBE1KmU1wYzNDV/fuglG12YjXQqIsWs=; fh=osq6qoEIL6RwQ1VOxV58UafEjxvDDAg4v1oNeeWrfkw=; b=fiMYa7DkBU9IHkKYEn+QISjXJe6cu6ONGQAAgDpHFk/98S9ptdKz2bYsn+haD78t0X s9gjAZHth8hJnksH6n/rmvMMm8GvNcJM6V5f/oU0+rsgZBL0vDCSh1S2k2Lr/7NK77wq HIbxSxnfHVZqgdnwVxvRzp6I4hTtrjHc/QP4zAmfgXpJjMTyK3Tq5prcwqqBNIXiRc8q 4IKMESRiOSdGiKBmQw7mlkHvGAtKOinMwoLlk+ZN/tFb4yOsTsEVXb2d0xK8GHRCyxB0 SU7XN1UJnmu+aB6WTfIjWeUQqoReBFONRRnJ0S9RBNW/IZA9mXUtQejMnG6UEhAQ2ikk rFIg==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XqGSERyG; 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=1727512698; x=1728117498; 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=KKjCxc9wOoF4nBE1KmU1wYzNDV/fuglG12YjXQqIsWs=; b=du94KgSuaUhsnxnQ/oxS28yJA7IBly0M0XHezV6fnP5Eb0/TgnSdesYQ+muTE8MGqz ByjAC/pPmt/Lzf0evP9Q1X93NYNfplSNvpdnYZvzv3IUvnp5NwURb++dzw2o3jPLb/7K fZ3WnlfSlGslnGOFwMctjNOpfNqulRiXmbqog= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727512698; x=1728117498; 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=KKjCxc9wOoF4nBE1KmU1wYzNDV/fuglG12YjXQqIsWs=; b=ZOsPzWob6CCD6RfBBvN1Z6uW4KINad6ViujTEX+/F87GSrYqNT0sEMIQwZaSxaU5T9 zMCGlHiX1xdxzbZFAf23ECuTqKX6ieUOALO8Vtgx0D9wcVn/GTBpfY7LN/z1hnCUmEH1 SgcmqLXAB7TNojeN07cRdaAxgblM489UKxFN6yU6RKT5GeRse6c2Ynwmd3ghu9deiFJQ +3kjBd6B6suR+KkMb+LRnlf7X5QFxxyuNwU/nyUYQ/M81psrT5EiiKqeI1DGFAmg8Pbl g7DnrpFYQdYcTZQTYHloeWZp2fPtoZcWPyD0JIV0IJS0ufROG1W8S2y1DxUGvnvhIBnp X02w== X-Forwarded-Encrypted: i=2; AJvYcCWpnPq6GZyJsVZCmJkWzSNR2O1PJ08ZM+fdeGhmgXZXnwuZYtvYpoy0wCdYEGzrSm0fnlyt0kO+JkV1tVa/@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxgvJYWJcFyZqvzPz1hOdIqU6rjXiu+3FS77svBUH4p/e68e8h8 BIN+RczYqG91trFk4chwF/DlKPjt4nQYLdmy4l/A+0DzJexQtHDHdaNOCduNxc6XEw== X-Google-Smtp-Source: AGHT+IF1EV3CE03ZNa1m2G51tS3W3zmGtF06/yv0w6Kj3zc6iN+ZOIKeb0jB413poJfGDk4euFWGow== X-Received: by 2002:a17:907:9341:b0:a8d:4e26:c9b9 with SMTP id a640c23a62f3a-a93c49218abmr576717466b.17.1727512697870; Sat, 28 Sep 2024 01:38:17 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:26c9:b0:5c4:6c19:f742 with SMTP id 4fb4d7f45d1cf-5c877819335ls702396a12.2.-pod-prod-02-eu; Sat, 28 Sep 2024 01:38:16 -0700 (PDT) X-Received: by 2002:a17:906:dac2:b0:a8d:fa3:bb24 with SMTP id a640c23a62f3a-a93c4921a34mr635901666b.23.1727512696243; Sat, 28 Sep 2024 01:38:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727512696; cv=none; d=google.com; s=arc-20240605; b=IpS7UFIsqJSuxxObUN5H0jFo2WhTNNP5DTWz8fdmfeb0LNHDnSrNchnuCYEvQgogak lJ0TP/6HUFFLIqsAMqVWpRRyEr7/JhTo7udUeqkINkMiYMKh5Bq5AozXtAxlCrw8jmdq W+0qrt7pIoyhDdMTLkOOi5XqAFqF81L65jrxgqfc+3n7CfaOqlUSfbezFtXTUBck+ojJ axllxQ04asJ+43DiqOshOMwz4GWb/ScTN/Cc7BcYkXVGmQNWZy+XX5kpJj0z0WGqIyCm 7eeLuWrowYzOEMX3N2EEAPyrxFRsEabN/GFxB1GoMxwxaMEIdHEYGDsZaT3HG6j8fnEo tjaw== 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=hgBA2YgBzcVdnVEoc6s2KOvaf1NpbuG7MmZKT5HNBsQ=; fh=TcT5mq+DOC99WOQKF/pyM5BqA4EvWwQBAkqh1EN56Eg=; b=N2YPtxFJK0o62H7MspscquRwNjZrtdaVY4dFmeo2O7Q/Z5mnUOgaEbgvCXgZrfNHMB XKI6vBhfHxupKTfjVztbHo6ubfWkRjDo6BL5YH28Rc3tlueyYNJrylXnuUkVSqg893ag 2hFVTWHUvRQ3USNxGu9EH9158J5Tufura6CCml+ZptxjOp8cJymLEoq+5jBsh6dlrDAx MxfA1920GC2iBZ5t2dpKTbB8RfZk7Ui+0oqTLZxQvN0Km0KMREZEdt+8D1xlxSOfUDk3 c0W9t6WFN65s0iC659RFPal0YU7o6fdx3I4ZU1mvy3ZGXAtYXviddEfm3o8cUO2y9b3F sh1A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XqGSERyG; 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-a93c29b38d2sor120223666b.14.2024.09.28.01.38.16 for (Google Transport Security); Sat, 28 Sep 2024 01:38:16 -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:1c19:b0:a80:bf95:7743 with SMTP id a640c23a62f3a-a93c48f8a9emr546855266b.13.1727512695646; Sat, 28 Sep 2024 01:38:15 -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-a93c2947a48sm223679466b.118.2024.09.28.01.38.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Sep 2024 01:38:15 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , 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 1/6] dt-bindings: clock: imx8m-anatop: support spread spectrum clocking Date: Sat, 28 Sep 2024 10:37:49 +0200 Message-ID: <20240928083804.1073942-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240928083804.1073942-1-dario.binacchi@amarulasolutions.com> References: <20240928083804.1073942-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=XqGSERyG; 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 patch adds the DT bindings for enabling and tuning spread spectrum clocking generation. Signed-off-by: Dario Binacchi --- .../bindings/clock/fsl,imx8m-anatop.yaml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/fsl,imx8m-anatop.yaml b/Documentation/devicetree/bindings/clock/fsl,imx8m-anatop.yaml index bbd22e95b319..c91eb4229ed3 100644 --- a/Documentation/devicetree/bindings/clock/fsl,imx8m-anatop.yaml +++ b/Documentation/devicetree/bindings/clock/fsl,imx8m-anatop.yaml @@ -32,6 +32,47 @@ properties: '#clock-cells': const: 1 +if: + properties: + compatible: + contains: + enum: + - fsl,imx8mm-anatop + +then: + properties: + fsl,ssc-clocks: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + The phandles to the PLLs with spread spectrum clock generation + hardware capability. + maxItems: 4 + + fsl,ssc-modfreq-hz: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + The values of modulation frequency (Hz unit) of spread spectrum + clocking for each PLL. + maxItems: 4 + + fsl,ssc-modrate-percent: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: + The percentage values of modulation rate of spread spectrum + clocking for each PLL. + maxItems: 4 + + fsl,ssc-modmethod: + $ref: /schemas/types.yaml#/definitions/string-array + description: + The modulation techniques of spread spectrum clocking for + each PLL. + oneOf: + - enum: + - down-spread + - up-spread + - center-spread + maxItems: 4 required: - compatible