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: 3732 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 92A8040CF6 for ; Sun, 22 Dec 2024 18:06:02 +0100 (CET) Received: by mail-ed1-f71.google.com with SMTP id 4fb4d7f45d1cf-5d3ff30b566sf3485308a12.1 for ; Sun, 22 Dec 2024 09:06:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1734887162; cv=pass; d=google.com; s=arc-20240605; b=gcqHWLohr7ud2VADTbqMP/I2AlaNP6Tve277P9WMntdJK3yqt50o3IKB0C5oSBhKop vpx+xG1hsNi6U066IKb9iyQLqgotsOgjw3qYP0H2g/J17TGYU/qKUETFL4EYfhccpw12 h5dFREuoIpbx1HrdEym61E82+G5oJ3TGoaoYLlW5owoImxjyF4nXH085e5Gs4Y+Ty8X2 12zRt3xW4R8lR8I5ALQT6Q0zvmDEAeEtS2MDqsO5uPAr4o0mevhvDgrTSLeJrmxGCxBG VnnQCloiM1PykLDNpc5h2MBo7ramNCZv31nSw2nFsKRA843NGBO97ZzP574z3fvTDSiq tMGA== 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=8OvZHTieLB1IoERwrz+UnQHLPYGiytAS1QxfmvoNtyU=; fh=s5FP949uu6IenveIv8Vt5SMCsXfSKshKgZzl5Li7D4A=; b=BhZ7NdIDxMxDmTN5EVXECrTUsHfkhNeluCam80GovDfhLWrIvOfMB1q4BUm063CA0q UzDe5AL6vhCAqUDBmBx+JlwMXpOe0kKbIEeo3vWTJA9Vjf9RVuuAdWCUitdDnxpdoKOd hZmtCIAd0oMtkTD3vWqXaD0h4u40G9hEzOATMGv5DnjlfL6M+vi+wOk893gWYC6Y8/u0 eKofZkZCj0MYW0RwvuRICtMLnKHrlBOK2w/Ak4fm0/lYZt4EIWP7c1age2Fx2d2aTT9M KG7ifk9/ZAm5/4yq/4JbHNNptuXKeawntmORaN21AbxX1oidZKJ+z2gRkiq6PrgWXVfv 771w==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ihx5qGEB; 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=1734887162; x=1735491962; 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=8OvZHTieLB1IoERwrz+UnQHLPYGiytAS1QxfmvoNtyU=; b=CcbnbLjZLJUVrpTBOwYpAxPtBi+2KBP/TgRjIGuZRCXDALLvvJ/GtTNw0TOS1uyQ7L +D7zMbfvv8QwtiaEYB51qRFT1kVVbiRla52o0+/hTfoLPt8ACbwIidUihoObYHtbfgqC 8Cfdbmqz6DQsDmQTw8mzjpwuSshoh6NMRSJx0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734887162; x=1735491962; 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=8OvZHTieLB1IoERwrz+UnQHLPYGiytAS1QxfmvoNtyU=; b=b41MP6wZrN+uJXnrvzYgHVVY85ymsyiCRd8IWl0zLAmPU3C879UbhDcHIeblcq8Frr Gzvts01OwJSAfJiixavcx2N2caY6lBqwPQMVRm4GMd3rIv41QHpEBQPWXgFv4uc/b4Ha z2c0Rwgm7pd1yI3gHmLBEZ7jzEgJH/c6+Oxl5z9SaxfTNmUM8yqSJLxj2nICQQeAzb1F C3RHgOfTRhYx9NhZ8B0qwjDhFaWPgms+8ZcZeWpurcLpnnF/ZtVx7RZXLeWx0qJoD5ss Njj8Qq2Q+x0GtG5JRlkhHOMfaVaKROeABNbt0RTqAAaDPxIbNrgGMm6jvU7M2fq17gmz kaBA== X-Forwarded-Encrypted: i=2; AJvYcCWE4oQxSC+OQSs6mzpMtQNoH0PHKM5vuE6+S21X4jd+Ob6SV7fmuFRjRgIFSV1g+o2sbQyj4y7KdfEYsMmE@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yy6IGmiAdA//i4Os80WLYTOEuHYPFOEiX2gApSFsPjG2xny9NcW RR+VlfUYl6Va15gqtY6naD/4nLbciQUKpKsIgoEJZi0hPkkzGI7ymYUpfXY5bFUDyA== X-Google-Smtp-Source: AGHT+IF+5NBbCmen9HfNesRqbxIhsv+lx7b4HQ37R8H4djph9gca1gTJJ+5MwN8VUKuNtEtUfd5E4g== X-Received: by 2002:a05:6402:2109:b0:5cf:e66f:678d with SMTP id 4fb4d7f45d1cf-5d81de083bamr9308145a12.28.1734887161935; Sun, 22 Dec 2024 09:06:01 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a50:d51e:0:b0:5d3:cf02:d209 with SMTP id 4fb4d7f45d1cf-5d80259c450ls62864a12.1.-pod-prod-09-eu; Sun, 22 Dec 2024 09:06:00 -0800 (PST) X-Received: by 2002:a05:6402:530f:b0:5d6:5139:7e97 with SMTP id 4fb4d7f45d1cf-5d81dd5ed7amr8052638a12.1.1734887159911; Sun, 22 Dec 2024 09:05:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1734887159; cv=none; d=google.com; s=arc-20240605; b=g5UUy+fR7ErytzmuWPhIJMG+n73lk6LG0gI8bw5Zbkc+W/sMCcBVqAosEkk5wB4s+m o/S7VmtVUJFxqMyQGGgR/pLZKRfuWcd172V4DZdWXKcjbvkyY0y4WpPhtMgO1zbAYDS6 aYd50TUVBGwtGEAJKtxMR4G9xjRXMhUfElrBJ4hB2+Gi7JcmTh/E3unJ3jPB78KRFI58 rL8WhuaDUct/a00DWlmjCdMdYXuchvYGMR6aSdgDWf34rsPXC24QekZmdYVOSnSW/gBH kI5ngWOxUtHYzluSa2VpefKbO7QrFWsTHlzsAgcNZwXibITqtAMb/hsJyWcD1iK9o/8z d2UA== 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=m5m5kN2c/9wWpkcrILoC2ZFZNTUAnB55ZbrER3I9Ujk=; fh=2TL5gdVAJyX/yhk5/AxHrADrCeVz/BiuKBD/sWsuHYo=; b=ESABdFnz6tk9EDO0Toma6NEVspRvLe0BLGF82VPwPhhHruE5uzt6DsvXpGFylrkgax tFyPB34LJuWbQJYa07hf84c5lYvgzdLfHzlWhUoRlfUKD8Mo0y/9YX79tiwHYMi80olb 6bWxJdSt5U3cyvoqkMJfKEzkFZMWrhVPekzwcvBverwCXM9hvopDBMJ0XGfDS0CEeCvX hA1+5U3n5TFGxCgdXtdTdbYcJQs88EZhF63jmr+F2Dv2kb8p0eu252vOKu2xzr3NgLQU OpScwxSYi0y4h3zOpWKIwBHLmatnTEMYQY4WG4pp26IQR88u3HLywsZ3uUMDFtGvLU0a PzNQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ihx5qGEB; 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 4fb4d7f45d1cf-5d80677e687sor2315793a12.6.2024.12.22.09.05.59 for (Google Transport Security); Sun, 22 Dec 2024 09:05:59 -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: ASbGncu2GdtbWeC1XiYpMh7VIpxQfx06yhPyWDdMFDRPXwWPQxUJIn+5SlUru2H3dW5 wqwwtUpsRmtuJdoa+MMtD6n4XKQ21i96nMkqdvfz9zHML4JCf5OAXvf7pfwfO1XNcMx3nOzIgNS xCS/9cgFNFZK+ttqsQs2wJCvpBBwmag5JphXum098B57fBQgqU1fvWakfGlobOBBeFnmH1EkMe7 c3HbT2gP1cNTdUOtB6Fm4cAFd6GIkO33nzIrx7ZXcf878ipHQ4cFMT7Riu6YAfLTP07MrASSuu1 tUAlGGS8vvbHB0tGYayQifhnC4ZhXgNRUJF2HkMH9sAsdg== 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> 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=ihx5qGEB; 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 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"; }; - |