From patchwork Sun Sep 29 17:27:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3537 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 766813FA1A for ; Sun, 29 Sep 2024 19:27:50 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-5c89527fdcbsf670301a12.2 for ; Sun, 29 Sep 2024 10:27:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727630870; cv=pass; d=google.com; s=arc-20240605; b=YWTaDobdMMKhVB1ulf5HDFEDTtFdDPmeeFmojx17WYIPkpT2PqLLEAgeCPb0MylTSe v2T0Ikxo2UwLunxIzLVz/4c3tgEkLJ60BzZE+gkhQvaqEJB8Fpu4Ho3KrT/3nfD552ai k6atobm/3xOwsUQQHMUawR2TYzCyrpduQH57KdwBnMqL90afkLnTMs3ZWkVhcdn6qgp6 i0o4SHxAnQjzwNb1NQOeQj9zpx/R4HXD2bs/Pt06CpFRfdEO/H3kMuyrreIS6T4zZwKk d7HSEDmwXzFpk8gtmPuZOPf2IDzfuU6OX6kd2LlpsVi4HXumTQZFZ3AQoONioyQCvTo+ 1GxQ== 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=mI3hsLs5iPz2/XDIX1kVeUXc6EOOJgNiDUTsfJYWSsA=; fh=HIHme7QYPJoW5yz9OU9fPQXU+ln+aq0N/zBmyQuv43Q=; b=WSkwVUraIw1xxqIGUtmq4shjIYoKm5NgtExzxG2W7lNL7uVqH7DftSFC/LTV7cNc9R NqlNQ/1qxm0dDNM2DyVa97CPfzMnfGfy8xnMfiYwnbjuwT2ijTFjIuUO/xKBcbwL2+H/ URXfw8qB5UcjzUPfla5SMqNby7YXM7eiy9XkHFGGEx8kcXnLOsXjILlKAdepyA8dQYKK UfdlMmcePNtt8AD7cMto2D9w2jXGqMUAlJpDj7F7H9bq65X60EOx6UhZ32wGPxKT71zR attWFH4nQlLQVGGMs6sSqKToc7ZKt7gqfaizFyE6/njsAeT4D0aR2xTtXFmydOoYwVwj g73Q==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BaKw40n5; 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=1727630870; x=1728235670; 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=mI3hsLs5iPz2/XDIX1kVeUXc6EOOJgNiDUTsfJYWSsA=; b=MtCptXp22Qwa7hz9DH9Pm7KlHbtOvWm5Vo7Q4MP8ExAnrtzoKWT9STZjeZB9HGoy9X 5VnZdOZ/+LGT7jhUzv7FFX0xzrcMaW1hlgAQ8Oe6kF2xBY3RovVnMBO8tx5BC1mMajRf I/ej02DkBF0Lhi0bYNPQhsl0MT2+gQPU9bDwY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727630870; x=1728235670; 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=mI3hsLs5iPz2/XDIX1kVeUXc6EOOJgNiDUTsfJYWSsA=; b=Iy8NPAdjHEqye7xEfbZ9stu369FFTP+qR6hSgKaZB7S2LNfqJ/YVEEMd2NRnCspBhW 7yCafPpEG7DiTVRF5cGRWUp8ZXJLcqlpUGikhnUt06m5RhfmPij+GC0qJ8FyubGTYI5+ HahCri1gjtol9NZU8ej0GuXAsAsVONGg71+sbQ87x6StWu07VzmYSUycwPRSaBlblmtw uDi2B10OztIHrgejnawN0ERA4tF7Wr7SOw65ufsPgv9iO2mDzeF2oxs1cWi/YitJnivS JjxLNMM7MjK3u+/MHBe/DpUyS0f1WpLSxf80nD3NSWvPfkkov/WTShXINlHU+U26a/Lf 9X/g== X-Forwarded-Encrypted: i=2; AJvYcCVHVmCCz/YKYwRc99Hgn/pEu5A1+TtZFkYsd8wYfc0gOHjG/iWN+zuoRbtyLUTMlz5IxX+Wc3c4R82LlzSs@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yyxyh7kTJHbUlC24zMKFnvJmoUXlAjLKqA2Kw8OVG/HjZXndmxx c7MRYKuXm3vvC0unly9SlWcMWWkWG6izmvctI++Z9qaOOLNUV3uD7fEEStENuYnx/A== X-Google-Smtp-Source: AGHT+IFxNfZTWqpa+3FvKzXEoWRHF5XtsmMItI24rzwGPo2yWTnag7MJaiZMwCaaNzlD44vzmDDzwQ== X-Received: by 2002:a05:6402:5249:b0:5c8:9722:f9d1 with SMTP id 4fb4d7f45d1cf-5c89722fb64mr1313830a12.5.1727630869747; Sun, 29 Sep 2024 10:27:49 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:430c:b0:5c8:757d:2f35 with SMTP id 4fb4d7f45d1cf-5c8777683afls858751a12.0.-pod-prod-08-eu; Sun, 29 Sep 2024 10:27:48 -0700 (PDT) X-Received: by 2002:a17:907:60ce:b0:a8a:8cdb:838c with SMTP id a640c23a62f3a-a93c4a973cemr979173566b.53.1727630868165; Sun, 29 Sep 2024 10:27:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727630868; cv=none; d=google.com; s=arc-20160816; b=yNmY6Kw91dUGwqf5kriQP9CjHbND8iZVB11GOTzNDWz2WLFAFuSbkcH/I4jQNlJ82V 4mO/rqmTEMV1BrvW5FTFOA2oGOyEiKDpQlaWGJBEovV3HHPKJMkHGBZarGVDklaSY/HG dF7ACjyNxhtTRIpU5uj44VIXIswJhqL5FaGQD7TdMKbXbMTDenv1POc/AcspD+VHfI+Z xE5oACfX7HPQKzbWfXMRzIR8Cmp1MAe5UjHMsc6kMsW5Pc4sf0DVbj2r1cGTC7Q2ZP9l ezcsi7h7/9Z/1BgJGFMnBytm6tInJixnqajLmML4H3XNqtZq7kec358tkhANWnCioH+6 6wXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=zsgh0kyD9U5ZxoRxA8QRLb2QSbsWIvPPTG1CIfNu7Us=; fh=TcT5mq+DOC99WOQKF/pyM5BqA4EvWwQBAkqh1EN56Eg=; b=K9d5fscwrdduGekZgAgN2QePyftRH0Sv8r/UWBjoFdKPI6cF0HAWFJxt/U3QsFypGG 5UmN4y9oUeUfsdkmhUWi6QOVI4vsd9BMbBDfQa773JTKtT96+6WxhXLqk5Kfw77rCocT IWi6qxfRvXHihyyQQin+4BqqhiPGjOw8FmLoTJ/7aJ2iKQxccpEzwkycMPUacTjC0uOp QtiqC9zMtAAmbHDhe/XuCLQK4Cn0QBiz960w1RPrppJL2nJhCOX4J5m/rXGuZf4EiUPN nNVs7mo4BHqaq0hKyPIo4RHM741m33s5gVbdgEduUXZLXCojBJXeJtgKevLQviqlZvHj HMyA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=BaKw40n5; 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-a93c29060acsor217647666b.6.2024.09.29.10.27.48 for (Google Transport Security); Sun, 29 Sep 2024 10:27:48 -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:3182:b0:a7a:a892:8e05 with SMTP id a640c23a62f3a-a93c492a4eemr1095867166b.33.1727630867626; Sun, 29 Sep 2024 10:27:47 -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-a93c27776a1sm403176866b.8.2024.09.29.10.27.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Sep 2024 10:27:47 -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 v2 1/6] dt-bindings: clock: imx8m-anatop: support spread spectrum clocking Date: Sun, 29 Sep 2024 19:27:11 +0200 Message-ID: <20240929172743.1758292-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240929172743.1758292-1-dario.binacchi@amarulasolutions.com> References: <20240929172743.1758292-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=BaKw40n5; 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 --- 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. .../bindings/clock/fsl,imx8m-anatop.yaml | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/fsl,imx8m-anatop.yaml b/Documentation/devicetree/bindings/clock/fsl,imx8m-anatop.yaml index bbd22e95b319..a142c04fef00 100644 --- a/Documentation/devicetree/bindings/clock/fsl,imx8m-anatop.yaml +++ b/Documentation/devicetree/bindings/clock/fsl,imx8m-anatop.yaml @@ -33,11 +33,56 @@ properties: '#clock-cells': const: 1 + fsl,ssc-clocks: + $ref: /schemas/types.yaml#/definitions/phandle-array + description: + List of phandle and clock specifier pairs of PLLs with spread + spectrum generation hardware capability. + maxItems: 4 + + fsl,ssc-modfreq-hz: + description: + The values of modulation frequency (Hz unit) of spread spectrum + clocking for each PLL. + maxItems: 4 + + fsl,ssc-modrate-percent: + 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 - reg - '#clock-cells' +allOf: + - if: + not: + properties: + compatible: + contains: + const: fsl,imx8mm-anatop + then: + properties: + fsl,ssc-clocks: false + fsl,ssc-modfreq-hz: false + fsl,ssc-modrate-percent: false + fsl,ssc-modmethod: false + additionalProperties: false examples: