From patchwork Sun Dec 29 14:49:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3777 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 409524158F for ; Sun, 29 Dec 2024 15:50:54 +0100 (CET) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-5d88d37abd0sf2398353a12.0 for ; Sun, 29 Dec 2024 06:50:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1735483854; cv=pass; d=google.com; s=arc-20240605; b=TLJnq1k9DP0QUJTPEMyaFfve8Si4B5ebifNk+Iud38MtgvaA9Sb7kPdPCCAw3oti9/ jFHwYEjXmVDXJy9d8WZEHXrza6j7oVaLe5KfIB3gHUWTE7h+BdG6eWmki7hrXmrLgu2w 0ByG/XHA+XfqFv2TE/Y9JIN0O4tsKQw+Vpt38xlje8O2c5u0b21wZdgudjQ7/D1V0m1i 8j5Fbs/uKk3FkCuNzx2ggkXeo+RrpqVwQKHjmwidmptylM0NBzNO+mzcMpPPK43nSbDy OJB57AMW9E019pQhjkof1f67A6PWrQo74PUPpubR36dbYIYkxqbeeL5ySNnJSbVN7j9H 20vQ== 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=VBO/i1r33SaYBAia2TJAHKT3RmjuVoJCwrqjjk61pgk=; fh=Uy8M/R10r65C2PkPn8FRhMS3AZurbmsi7u1rc+lOS3I=; b=EgHHYLywnojzNbXbitHNThIWqbm/lxE+sl4zl3fU1PYAYiAZi2UBKQRZUHA+xiMdu+ SQPKP2PTmP1rOJ/H2Xz4nzjyZs/LH/10XIWGqJg3fGQ47GyQ0LRmWZMgR9fx7UhauuUW ouxwxuTW0GY+fqne4OU0EYl1JcB7DtCt7k2rVD0tXQe7C0ap3H7xGnORBE96RGmjByp3 7JXNDa2Gxr4JZby6eNx6oBT+ObBtcsIMDR5tKxMC7p2OYacbnQjy3jzeoJLpplUx1qNr SU3l+qq9mTz03kFb4GmcmaKcEdSLUtv/BmNMxv8n1OdUqR17PCEXu+1z6eA2w8ZdCMa1 qEKg==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hehKegGR; 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=1735483854; x=1736088654; 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=VBO/i1r33SaYBAia2TJAHKT3RmjuVoJCwrqjjk61pgk=; b=eUB13et7Ag4KzI48D2jyi80tmJKvDeDVsroVM9nmOlwD//5srWD6yeLzbdNZBAbwai jWVtOgXbMjVf7dzKzHbemvdhGVcSFjFpPPRfjYcmCw2kswoRM2XXeu4wpDLybJQNg1et lteK0RDdrcDGlglKNc3BSqOdyBBTXFBtijdNc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735483854; x=1736088654; 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=VBO/i1r33SaYBAia2TJAHKT3RmjuVoJCwrqjjk61pgk=; b=heWAAlgU0zWn6golZ/EptiHn6btUdHydXXutdoa51SVMXkiJGkU2rIiHSgxlhH4OpQ YBxARsyeTT3PBkKjJCmTUdv+tEOuaz8al84wAKyNg2Pd402hoMAIkKdSw455zElAJuaL EYFqrCbUujOMtCKyamsLySdD12XG8uDH6YaenrTVO8ytNFJCi+yO34LgAU8alJci8kLd fqVu8B5INGpwkwpdFRIXuOaTdS0j42mWODPDw4M6l9WvaZmC9ikaF0rOxHX9kmfJywxv HD02GC7N3IALIeGPFbzrV3e4764Q6Ykymn/ZU//9Mcga490yF5TGdD7iSA+vrMtp+Hkr 23Lw== X-Forwarded-Encrypted: i=2; AJvYcCUmVBOM410rwdM8/Aazdz9uUSHBtN6k/UPTBP1Tfn9pJB2ARml+OgsUetM983cO8Mg3tVBKT1/trjisIeVp@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yz99pjGCIE/ptCUS89cAShhsGxYHq9/19Sft9Hpv0PD/gVlqFBj XF11rH//eI7Ar7HeIasRvYOyRcz8XiHJ8mJGYAEvco5oWjITRUtrlvG7wlAgOtYY8A== X-Google-Smtp-Source: AGHT+IGehRAQTqS0iRnPoxl9zzAJlMp8DGU+q/MNQwXodnIqyBx26EOHj509KMwTtYQ5Xdnicq03LA== X-Received: by 2002:a05:6402:5189:b0:5d2:7396:b0ca with SMTP id 4fb4d7f45d1cf-5d81dd8ea7dmr27380281a12.12.1735483853903; Sun, 29 Dec 2024 06:50:53 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:aa7:db94:0:b0:5d3:cdb1:60e with SMTP id 4fb4d7f45d1cf-5d8732b4878ls836058a12.1.-pod-prod-02-eu; Sun, 29 Dec 2024 06:50:52 -0800 (PST) X-Received: by 2002:a17:907:94c9:b0:aa5:225f:47d9 with SMTP id a640c23a62f3a-aac2d0479dcmr3636159166b.29.1735483852048; Sun, 29 Dec 2024 06:50:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735483852; cv=none; d=google.com; s=arc-20240605; b=lj+CAU4f0rpxWMC3/+1xNb02p5arMSWOHO50wkWvqgk+gLp2Heyhan6J9VR1NPehgt bYFmGKUWVKICRgtSYNuKkOEiT6XPBH6rTHeALumgCdK+ItpH7hXTxQrD/DhDRWIv1KD7 MqisZcIFQ2c2jYCSRK3mT59XZTp3NzEfT7Hh+azli7hZWn4GUC6NmxZsMvNG6auuTFKk rVMKYfzSLpxjGhvmeLc1ABlIxjCJvKlvXODkzzjYW8NMC4o3OrbM8i7Q8HU7Cm91Dk2l L0RwE3AeoPcFckcqMMCfxumH9QUTjjRGb5dRz9eflPLrb5ofQ1cDSnyeonsAG6jY6nl1 fsgg== 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=AjwlhaAOkrwwhyUyrS6nha6mqO5aPDlQoHWfonPTSAw=; fh=wKAqkX/zh+QR+hrT1E54GP1Qc3c+MR/u1426t/hKzhc=; b=Db2EZtakoh3BDpULlGc/xt5GHSmN9DX3L3gB3PSd/dqn2XnuoFJ27lOxGkp4HprW+E bfIUGWxBtnby39RaR6OGLACX7D/3/OueJuxbLWfvJfJGMkDvmdNx/p+Fq186RyrUJ/c5 aHHYmEeEUskJS8N3St+ExvTRmstFPtsk49hPkm37AGqo7x5HcMDknw5orIZgC1panI2p XiMQ7hZoQZ1hl0iRB88mIhHeCoqUfjjZR7VkXJDSTpHfvWrwQ2s4WZDqTZZTOx7+c0bW 56hLGXfSAlMn183AcmgNktiqDAyyn4F8VE5Ei/LXddn7qKPWH5hGOCt+RNjmxjBgTW5L 9zSw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hehKegGR; 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-aac0e99118asor627940566b.7.2024.12.29.06.50.51 for (Google Transport Security); Sun, 29 Dec 2024 06:50: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: ASbGncvO+7tkUybcJlsYjz0Bj3QV5N2sOVEkOTGZJ72AUiC9Sc/CJPNW0exkhREoBS/ lvDksOb1xfq1D0JAopA8BD8KnR+mufoVBn4aVgTT35SZoRStJbK7QSEltwZLzl7xxJa25hMzl7+ c/q/CGVk0w/WalEyxYtbn8Psii4ZsEjg8dTQdBcT1J8OZRsl8Mc4VdYhHjS4rWH/df3KLaLyyvT dCpoxXF2ukkpJf85umvxEOz0+42bEwrOP0D2XXT9FsDPmeAvtxPoC4yCrsraDMgcvRjG4Qb70jQ BTas17wJuudbDHmzi//bFA== X-Received: by 2002:a17:906:6a15:b0:aab:d8e4:2062 with SMTP id a640c23a62f3a-aac3366b549mr2566530166b.56.1735483851580; Sun, 29 Dec 2024 06:50:51 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.43.175]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aac0e895080sm1362084466b.47.2024.12.29.06.50.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Dec 2024 06:50: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 v8 12/18] dt-bindings: clock: imx8m-clock: add PLLs Date: Sun, 29 Dec 2024 15:49:36 +0100 Message-ID: <20241229145027.3984542-13-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241229145027.3984542-1-dario.binacchi@amarulasolutions.com> References: <20241229145027.3984542-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=hehKegGR; 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 --- (no changes since v7) 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 c643d4a81478..d96570bf60dc 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 @@ -86,6 +86,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: @@ -95,20 +99,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_PLL2>, + <&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"; }; - |