From patchwork Fri Dec 27 16:56:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3756 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 77EC043434 for ; Fri, 27 Dec 2024 17:57:54 +0100 (CET) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-5d3f55f8f3asf8729868a12.2 for ; Fri, 27 Dec 2024 08:57:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1735318674; cv=pass; d=google.com; s=arc-20240605; b=XnTlXOZdbw4cRb375kURrW2Lq0JiK7gx75YkBurqEN9G8J23mCA3bvNGZHhIRaT7a3 AtWrZA+1hKWuH0vg7AyZePIkoSR3yBH5eukGWVlCpYqSCYG4aBOrwPO5ZYdISRw27ROI DHSmYdaDNPX2do+hOmDSmwwk22KLhoN0C5Ga6SgGC6idUviE9FPrL6Lo7RCr+DHaz/z6 k15jM7X/oR3N5x2ibfUtY3Y6MHgAjfBWJV6/lvjKUoKG7nlQsgzNDAbur0BOnmqPrILw j9DHXHZhrNT29SGCIWIaK+iMBNtCstwqutJQsdYdRvCQ4FOp3HP2C/Ch4GDiF3+ERwWE 5ruw== 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=Dlx5e2FJ1SQyE2pe89UjJXDef38U9/LQTADyP+zI1i8=; fh=0sDM0M1VgCihpDiq99TiWyq2dYhy5hhFqMC+xCkJNnI=; b=bB37mcofzzHqYjb+MW0qyFQi+i7x38LUeY6J6eY3+Ep1eAvzrmXcdQkhDI8FHZmPU6 +eYNfPsYxBBswfidC5a3PuzpDFup9XFJZjvU94lsZyK/YX2H7c3jQdNBviJdIaBLT68Y IHGjmEyg0EzJD1BqT6WOEqI+G/zytX5RvKYV0CQgWLyoy9O6niTuu9BmpoHxpAza9jKe w54wgOhFFzK6lkibwNcBUy7pBQt00fsZff+DDqM1WOpT7fxXSOeWjlRv74BrcuByeZBA e2iA6M3oF4HYeXD0IO9wIeM97pZLlW5stPhh7JIWtf/j3wZ0H22LvZA/t3W69QFJtahW FwOg==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ivSdBTmD; 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=1735318674; x=1735923474; 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=Dlx5e2FJ1SQyE2pe89UjJXDef38U9/LQTADyP+zI1i8=; b=AuI8hblNmbZhJIJS02/MdcxB4GJl+VotkDyfZpShBohimfx6dV64YVA9mGmdzFs8cp OtlvJy/+6Dio/FWW0T52DQv70OEDvn643lUXKQEyd0H2xI79bM1qNicTq+mpm2s3wmfI 1DRaSvLJyXoT9JyC+G2JdIcBrwW8YJGDpHA+s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735318674; x=1735923474; 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=Dlx5e2FJ1SQyE2pe89UjJXDef38U9/LQTADyP+zI1i8=; b=NbDSXTCQBzwpCatNwsn43EDGmG9SngJkamkLKfatWxLddKjRbY1uMDh2uxbIm91UyE KIcVHRQmg/DiJceWgPJRbeYHfXVFn/U5Ghmou6phkcXiyWAzs1igH0cLjOz8WvYaFD+1 Nmm5o0JprlB3pNHcOQaxvoPi5klTW/hu7jStOCddvtVI8yNONqbsbnPCdyceh54rEofL 3PTnx7woKG927Ais7DAeac4DvyJYjOx5uMIspNBlNYs7oaYLwVwskYGuJ1idH8RUYEYf JnOyYUHN/VFCjnRSLd+IO1L97pODikOa7F2+fbI0guAMFsTfNFMM4nze+8Wo/0dHYk25 pdgQ== X-Forwarded-Encrypted: i=2; AJvYcCUKPi1suY0Govz/F5s9uj2S4SEq4JnhuSdyYTxs45ROhDq58E6s0rPi18+rVftkqVXlEq673cgO72edtxhA@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YyQfahUXU6+47RbP4CEMFcF1FguNvFArFrFk6EAcURk3wAMtCtT 1X0bAG0p/oWEj4V6FqcIYd7/Wfdp7UxvD+1CMbsFC68+RcEmtqgGADLcDRGyLHplgw== X-Google-Smtp-Source: AGHT+IFQyC/5aL4VIfTISR0hV+kTsCRBP2JuV+ZpuHDxW85y2UNRZJRoHr1t6z8wB5O8ySXPBKBv9A== X-Received: by 2002:a05:6402:40c1:b0:5d0:b2c8:8d04 with SMTP id 4fb4d7f45d1cf-5d81dde872fmr23328872a12.18.1735318673907; Fri, 27 Dec 2024 08:57:53 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a50:d552:0:b0:5d3:d143:5a84 with SMTP id 4fb4d7f45d1cf-5d88fc98855ls97707a12.1.-pod-prod-03-eu; Fri, 27 Dec 2024 08:57:52 -0800 (PST) X-Received: by 2002:a17:907:2da7:b0:aae:ec01:2de4 with SMTP id a640c23a62f3a-aaeec012f70mr1197792366b.30.1735318672055; Fri, 27 Dec 2024 08:57:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735318672; cv=none; d=google.com; s=arc-20240605; b=esjmzGgkyJOnjvQyj0nS1cMbeXGK2iqaQPJGxfHjiHIx3wxkkF9L7phopiDXOY1Ddv 9Z5g7bbJLqbtIdbzv4M4lZ1M81fKm2A8I/TuwsLOxhLIaBNqRSLn23ck+zNTNCrw7r4L VjPizg6PlU3bWsEITiVJutneRgxvyVTxhr9NeDbPW5LGrC/Ai3ZSoVSEQe6lL3l8Afpf vUkwK+a6deK2SKt6eSEoJN4KzD6FjcqBNcB+dFhIF2g1vSjctpQMi227tv6gg6u5qx7T IYUqZZ8ZpBPycL9l/VPZWhKaML+bs8xvJGZm6vn8KUjPhY2+cP/gUb+pk+bFJRQPUy/c BNOg== 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=6+kAaC1AoQ98ph6jwnNcppkKlX4Rs9Hgex1b/X1iVho=; fh=wKAqkX/zh+QR+hrT1E54GP1Qc3c+MR/u1426t/hKzhc=; b=asQTheN43K5bcWQFdwIDr/e6b4hNEYc7NIMdSKrsNPek9Od5OrSXImTNKVfwdtSxVW T01w6duzb6s9vCo8lJa5RwGmbzwXDjsBXxAfeEH/BFP4DmRrf33UVj56U9PUOC14i1nj jgx25flLNl3sOeMjQdJ7SiYSMFFTEKIcG/cofiyGX0eUPvMMoZZzt5+nEQGdPTGcBPO4 CGxYGM+d+0U5rhvI/BcsGtGb16EAf0ffND50/6oOU95GnXfsRK+d+JFZusB4ldBB9qr3 dPWIfvqQB/xx1c5qMtOBIcsaK1jznxIQFKjsAP3Mw2lDGQs1QvfM1dlz/wxNUGfDg7Bd 8zgA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ivSdBTmD; 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-aac0ef1d780sor692366166b.15.2024.12.27.08.57.52 for (Google Transport Security); Fri, 27 Dec 2024 08:57:52 -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: ASbGncu7q3zrx/Z6CCw3g4CgMDueSh2rVQNv2d/UdDeL4RaAQOzGQwD73aLG8r2aHr6 ENcCMZk3oVWaXGfpGc+NN03aQWB2fgKMAVouLA/sICPDMGHwp/T4KPBi6VQUxKykpF+Qr3bV3qO dbSpGLxVifMy6RZNyYhvf+h8w4CrJ8GQIR+42fT+p06oq50Mh6qrTbvCWZO2rgBDO62zD4IgJga 1+KjcxIO2abFLblMlk7pd2/0igb7BvshjVkUI3Bh3pVGwPpM4yh/JlYVZ0Nj787xYZGK1kv1tbS u0sRTxTIvrsPp2hEdngrsA== X-Received: by 2002:a17:907:60c9:b0:aa6:5385:90ef with SMTP id a640c23a62f3a-aac34404937mr2534593366b.61.1735318671648; Fri, 27 Dec 2024 08:57:51 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.43.175]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aac0f0159f1sm1130097266b.154.2024.12.27.08.57.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2024 08:57:51 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Krzysztof Kozlowski , Abel Vesa , 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 v7 17/23] dt-bindings: clock: imx8m-clock: add PLLs Date: Fri, 27 Dec 2024 17:56:20 +0100 Message-ID: <20241227165719.3902388-18-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241227165719.3902388-1-dario.binacchi@amarulasolutions.com> References: <20241227165719.3902388-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=ivSdBTmD; 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: , Though adding the PLLs to clocks and clock-names properties will break the ABI, it is required to accurately describe the hardware. Indeed, the Clock Control Module (CCM) receives clocks from the PLLs and oscillators and generates clocks for on-chip peripherals. Signed-off-by: Dario Binacchi Reviewed-by: Krzysztof Kozlowski --- Changes in v7: - Add 'Reviewed-by' tag of Krzysztof Kozlowski Changes in v6: - New .../bindings/clock/imx8m-clock.yaml | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/imx8m-clock.yaml b/Documentation/devicetree/bindings/clock/imx8m-clock.yaml index b23e639e6389..eb2e6e702de9 100644 --- a/Documentation/devicetree/bindings/clock/imx8m-clock.yaml +++ b/Documentation/devicetree/bindings/clock/imx8m-clock.yaml @@ -29,12 +29,12 @@ properties: maxItems: 2 clocks: - minItems: 6 - maxItems: 7 + minItems: 7 + maxItems: 10 clock-names: - minItems: 6 - maxItems: 7 + minItems: 7 + maxItems: 10 '#clock-cells': const: 1 @@ -94,6 +94,10 @@ allOf: - description: ext2 clock input - description: ext3 clock input - description: ext4 clock input + - description: audio1 PLL input + - description: audio2 PLL input + - description: dram PLL input + - description: video PLL input clock-names: items: @@ -103,20 +107,31 @@ allOf: - const: clk_ext2 - const: clk_ext3 - const: clk_ext4 + - const: audio_pll1 + - const: audio_pll2 + - const: dram_pll + - const: video_pll additionalProperties: false examples: # Clock Control Module node: - | + #include + clock-controller@30380000 { compatible = "fsl,imx8mm-ccm"; reg = <0x30380000 0x10000>; #clock-cells = <1>; clocks = <&osc_32k>, <&osc_24m>, <&clk_ext1>, <&clk_ext2>, - <&clk_ext3>, <&clk_ext4>; + <&clk_ext3>, <&clk_ext4>, + <&anatop IMX8MM_ANATOP_AUDIO_PLL1>, + <&anatop IMX8MM_ANATOP_AUDIO_PLL1>, + <&anatop IMX8MM_ANATOP_DRAM_PLL>, + <&anatop IMX8MM_ANATOP_VIDEO_PLL>; clock-names = "osc_32k", "osc_24m", "clk_ext1", "clk_ext2", - "clk_ext3", "clk_ext4"; + "clk_ext3", "clk_ext4", "audio_pll1", "audio_pll2", + "dram_pll", "video_pll"; fsl,anatop = <&anatop>; };