From patchwork Sun Dec 22 17:04:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13918199 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16B7C1AB6D4 for ; Sun, 22 Dec 2024 17:06:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734887164; cv=none; b=s2v6Q8yyWkkESm/qo20nm7kljUJJtlcG4+9R5VydWQYBgWztj3BAnxyoMH9AqqDs350zfInIfultsE2eunRtDe/HhiFwkHpFc2m18UrvJA11x327VAZC4FbDeYZWGNiKS+CA3pZO77uH0ANbXvWTR/2jLBEAImif4zxsImn0c0Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734887164; c=relaxed/simple; bh=TjoCD0n/fid43aNSIysze2zCd8hypyQLvXidZ8o6K7M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dK89ZtQuXc4Pv7jGhGqOiu9pL6frRIqYQzhHL6FVS/1oU/MHGg+fsncLU3c4I47Qqg6PLYthlnRAVvUbfh65cSKYYLwh4pjD4yBENMiY4nc0qa4caZVOj5jCEji7YStibd8n6W4/ccSWcYvk/hw48Vf1T8MeD/rBY+Q0BZm52cQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com; spf=pass smtp.mailfrom=amarulasolutions.com; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b=XGuLn1o8; arc=none smtp.client-ip=209.85.208.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amarulasolutions.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="XGuLn1o8" Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5cec9609303so4596991a12.1 for ; Sun, 22 Dec 2024 09:06:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1734887159; x=1735491959; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=m5m5kN2c/9wWpkcrILoC2ZFZNTUAnB55ZbrER3I9Ujk=; b=XGuLn1o8feF39Hw+B0LuxNTEW5D+Jg7Zkc6YqhVx1BEXSUtAhq2/whrppu+jOyl0jB Js1njevU1YfffPO9HralzuwA8bG98OZZc44TrUXc1O5kYqLEj+uhjgn3HLPHJJrehewH PRN1g7/S0TvabFNK1TgcU3nDmlKusSUQNxM38= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734887159; x=1735491959; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=m5m5kN2c/9wWpkcrILoC2ZFZNTUAnB55ZbrER3I9Ujk=; b=iwm79EfZNx3ZgYmbebRqFiNlT7aufFBGfBsMvacym5PeQfjHay3v7g9LbExim43tLv 9UOCJL39eC3AutJuEF+SLZhJjEHi/SgAV2gCwhHxF77udif+31kOxuSRA9HDNHQEOfX/ 4o4l3K0Mgt3qH4ndQ5vOecI8qhL2C/IB/atChMMz4Owk+4czLRq2tXbaEh1TaZJEmXMd BoKQ7/sjoAKg+K/mXPYE5AE4pZbt1K9/WqPkhd9hqilopcyApFX3sYTHH5Q9+tGj91TL KEpXTsnDK4INveqwifZ4hYMpv4Pv4ccxjrMfe/WEyE74Zwna3BhA0J2/5tS04CpGNgYx MamQ== X-Forwarded-Encrypted: i=1; AJvYcCWlJXco8ZFnh5xLEvqOz3fWkiuGuvQVKw3Kgw4fu4SRMfyd6ADEzPiVQy76t0BGS7WsRpc9NhyKjIE=@vger.kernel.org X-Gm-Message-State: AOJu0YxX277IVFv+BwZQ69lLmf4juefKln16SwhWzKt5IkX62IjzZgej jatJOt7HqFkuqr85bjCYjJ0/t9i0kYwJDgUrXURs3FiObRVjVOG22tBjhcLzSJw= X-Gm-Gg: ASbGncu+/AfVVlVPa+CSmhrEg8Ohyvg+Wx8UWFYVEAn5lI2PzOSimIQ3AM+NsPDMNFX 3gsIE2KI7QuXb6sMx00m2NGOolIuyAjle5Xrz6dhgzy2ld7UQloq0PFkS0jQUqxD5j2jLumxJGd GgzO4pIppNSpnhwXbFg7bXHbFfG0wxj/9erSB9NqE0aT1T6EN1AhLpTFcrxIOfBPsujio9OOtNF j6F73Pg8P3PinPS1VfW9ePkagdh+gU9CGtP0IzosQgxGmbqLivO4to8XrU08wvx9Wjy3OkrJxlo Gy2Xs6psrYrV0NO+kpjGRiWN6KyaBPeQgHniWbSw9wiKHw== X-Google-Smtp-Source: AGHT+IGQ5PR82cMFXIsPEja5Rl1PnbvtKofbUp3RjtQReEYEa0n9aDLlqkOdSSEf7LtARguXmUTwww== X-Received: by 2002:a05:6402:3714:b0:5d3:f6cb:73e4 with SMTP id 4fb4d7f45d1cf-5d81de1c236mr8514264a12.34.1734887159497; Sun, 22 Dec 2024 09:05:59 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.41.87]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aac0efe48d6sm414056566b.127.2024.12.22.09.05.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Dec 2024 09:05:59 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , 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 v6 12/18] dt-bindings: clock: imx8m-clock: add PLLs Date: Sun, 22 Dec 2024 18:04:27 +0100 Message-ID: <20241222170534.3621453-13-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241222170534.3621453-1-dario.binacchi@amarulasolutions.com> References: <20241222170534.3621453-1-dario.binacchi@amarulasolutions.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 --- 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..05bc01960045 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_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"; }; - |