From patchwork Thu Apr 24 06:21:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3953 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 3963E3F0D8 for ; Thu, 24 Apr 2025 08:22:32 +0200 (CEST) Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-43d3b211d0esf7522985e9.1 for ; Wed, 23 Apr 2025 23:22:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1745475752; cv=pass; d=google.com; s=arc-20240605; b=TwL29quQ3vKQgBR40eYo+ZFtN09gGxMMs7ZgYUpL90yilGNa2R65Ky901906HOZ+KJ 80leLAGoT3Vt2m8tk5aYC1zi0+/13Ed26Yz2uHJBFkwlGQvHL5u/miIUHa2MEy2wNh6A G0h0YqtoRhPQ+7qZ91ZTfjVNVdJyKTOJotA3Lbme3SYCYq5nbHHG82KKqDo2vGJNEh7G lnq9Mv5+bv8kyP/XVXCESANthJVZtQ8FcdIluA/lcuChLTiHgYyDtPlaK6/erCrS49UY LtozezVRfpMT3Vo28d8x40iy5Tcjovf25qBtNT997X4W7gH4Snb4/t6Jeqtq4ddcWePD ac0w== 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=SE5OYFnqFp0a0FEJaE/uZTQ7SVjaPvB88TgoCKMRUe4=; fh=wIG3yyRseOgylJirrlfL9UNngBPVOX7qDq4e9f5D310=; b=UkhqsSmn0nFT+yGtYrx4HmizB28s/FD/S7ERqy93myGcilQKXrImLuHtF2xcsKPq3g goZ8h+kpwLNEsKeO4EkQbsEpxbcDpYvZYT93miJY04DTHZhS4bKQlZ7sKdGZOH+zlPfm qMrk9epdFZZKWmR15Rkvjs0b8elbuDY4ohEWuJXzz40vfri+foIiMHUvK3tMk0cahKw/ IEzj/yNJh9HRQQyAf9KMigyNZRXrcd6exB2aqsQqxE5FvbtDo87LC+LwrkhlpqssFXLJ iEBc4x/3lvxfzHfLcBdXHckZegunwkBp7qtyIWaXpCNlDi/u2U9k3FpPuFyaSJK0cD4j FiOg==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SEGqdMEW; 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=1745475752; x=1746080552; 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=SE5OYFnqFp0a0FEJaE/uZTQ7SVjaPvB88TgoCKMRUe4=; b=I0b0u+ysnMTQGIRiKvyx8UoZ2hkGsjYdC2IgOzZmum3XcBHK9rwyzy4T1fPmQPD8iW nOKZ+PGMJeKLuOaK+ArMOVn4xCKlpB7J7h6+a+V/1wk4TM3RFFsFRUntXQlviDL26WqG dw/VAESHLG7/KF4KySoFo85Fd0o9oX+csa350= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745475752; x=1746080552; 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=SE5OYFnqFp0a0FEJaE/uZTQ7SVjaPvB88TgoCKMRUe4=; b=oSqwbFW0BP25e/9IMrmO1s+M2jFF0KD3qpZrAj6lG7Lf29FQq6En+Vt7qHKo5BB+B+ FNZs0FpU50O+x7rAYsrXVwoM5jczSrVQKzCd8OOs5d1t5Zdhw2mddTNo2d5hy5elLtD3 z+8xKm2HO+focmHTv7d7DB5YpGXrGhYrnMJTGkLXVipLKS8iwo81tNyecZ16fwNOXDrl cVBeV4fWYLs1/h2+J6JuewyBFvx+Ec9iiT7C8Yo7hQKYnEprRyLRlGrucJ2YsReq6sgb Eh6JeCAtGtp+2FQm4qxDEg58pSVGVNn5rdialnWV3w45S7G7iA2RfLUbaVasRAfFr2hR ysXA== X-Forwarded-Encrypted: i=2; AJvYcCUNYquhb99IqNSHaXHZbaU+VlPZBA2o65YCSv/Q8kzsmu1wUAC7d/035IJxZ4h+NeEQTDU2LpIMbhd/9fKq@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yx9plVNtjjwV78ZSADdVvPTKHWrHAKpJZ+lwF7k0vfhYuIjRW+Z mCwfQEDMXWa+EYXxsZB5rhKmRqpm3v98+Rsm0QXPMjno4u1hO+58TN2cNgsqd1rBnjY/rIGFEg= = X-Google-Smtp-Source: AGHT+IHN4WpJP1oTb/UX4e0H0DF7ocBmCxY173WeG8h3X2cff3OBCCCagl5F25hCTKgBVg0tmjgqHg== X-Received: by 2002:a05:600c:1c23:b0:43c:ec72:3daf with SMTP id 5b1f17b1804b1-4409c513fa7mr8981465e9.14.1745475751795; Wed, 23 Apr 2025 23:22:31 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARLLPALD66uKAH72jK3Zs0mky2ZnTgD5slAHKFdl+sm/QL1qYQ== Received: by 2002:a05:600c:350e:b0:43c:f182:cc48 with SMTP id 5b1f17b1804b1-44099ea31aals1680215e9.2.-pod-prod-00-eu; Wed, 23 Apr 2025 23:22:30 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXwb2UNIRn117+UL3X1hrtvW+gl+j2wmjwBg75gFUXHirXZ07nxAv7SwOFKB7oISEKc/FcYhjMPuhvVykEH@amarulasolutions.com X-Received: by 2002:a7b:cc13:0:b0:43b:bfa7:c7d with SMTP id 5b1f17b1804b1-4409c453addmr7040485e9.2.1745475749730; Wed, 23 Apr 2025 23:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1745475749; cv=none; d=google.com; s=arc-20240605; b=AGub5hHebxURzQk9ct6m94yjKDS8xscYUPrB7fJiwlQiSvzBUSvHgZONiNWFxttAyS hwE9Gox44i4MmrrAfaHEbqPepLejbPM7Js1SsB9d1q/zNMITy2a/1XQwFV8+72lvIL0M uxE8N7i5AYwrItgF5a0mDugdvM5AtBgDKB7HL6+Z4LyCj805jU6WnVVuE+FYwltjTbEP fkSeVw28CZjaL2KLAdUOkr2FKBbgcXTTSRj1c05DfA/42YAyi3GzOT8J3ceODDPLKePs xeDW6LCWxL/Dh3YJRZ+8iKvUiKBF+oqCcmB4BqbjXMvjuQ7NunZ0rxbWNzTLiUOIPuOO gdxA== 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=4lFy00OTtg40In8pvAKghkkcDK/j3ZCpiu8RgaE7BUc=; fh=HUOJtM/c1fewkhZD5xvcqZc7RHPbMD1qWZ7QXct3iog=; b=P8IiEhWP+sdX5kfITPq6pm5dGTH+M/MBoT7tn5alooui4IsWw53TFTtmpA0PP4CIB0 q8aRar4y4fBxYuyO2h0UinKU0SmmlpaIh369LHvq/3fHCIpXbn1pCu9QlpdrLJjDosOJ SAhvI9OOJjq1kSGiWi5++P2jDQA2x2hxr4RD30tScp2WvgZbxDLgoWKs52jiInHiQtMH tDb5aN4wyNHWc4A1OhQfAu4+3ohd/B1C4HSs6XI5d3aLM3T5cb4P5NGIDHbHIi0dJAv6 WxGYxjPAHnUFo/mWSdqmzot+ZcMi/DfR3pfpuRcVbrhojDg5m+r6UH4Qs665G35gEjEp nPBQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SEGqdMEW; 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 5b1f17b1804b1-44092d666e4sor11901885e9.3.2025.04.23.23.22.29 for (Google Transport Security); Wed, 23 Apr 2025 23:22:29 -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-Forwarded-Encrypted: i=1; AJvYcCX23lP/krGzxW7YweRSV4B0P50fMgtfk2XNaBOrEUXcToI98jmK2bl7+jyWWX8Gg7CQlnSIYVtn4hJQnkLr@amarulasolutions.com X-Gm-Gg: ASbGncsUSPiRm6a/Ebf5BwzvQwGbPFr3EBk+5jje2vqJnnihBWXN5TSSUkkTn42M9uY 89YMax6JKSkPNXXZqpi6qHEG56fvlbyIxqQZY5OAbCXF1rSiX2gmv3e3pw0aFr8YYzIuSabQBsm mvQEwva4lTIcXYEAs6B7orwPYgmQSUZfUppQd9SB2E3QACDVbE/YXCuqLUs4c7WLZmEeuxlqDf8 oAAJSue2g6Y5mZfs0F4mRM2a4GCrFzHqqECvSqNrVGaf/hceimg6Kca1af/uHA8+utW0p8E+XGd CiFH1Q05PcyP+v/m760WQoz8toijCQPweMwZ2mChtoGklm20aMkGrz07T5rjg56bLy2+soQDn1D 0K4ri X-Received: by 2002:a05:600c:2045:b0:439:8490:d1e5 with SMTP id 5b1f17b1804b1-4409c46087amr6406085e9.4.1745475749362; Wed, 23 Apr 2025 23:22:29 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.40.65]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4409d2bf8dbsm7243435e9.35.2025.04.23.23.22.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Apr 2025 23:22:29 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Peng Fan , Stephen Boyd , Shawn Guo , linux-amarula@amarulasolutions.com, Abel Vesa , Dario Binacchi , Krzysztof Kozlowski , Conor Dooley , Fabio Estevam , Krzysztof Kozlowski , Michael Turquette , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH v12 16/19] dt-bindings: clock: imx8m-clock: add PLLs Date: Thu, 24 Apr 2025 08:21:46 +0200 Message-ID: <20250424062154.2999219-17-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250424062154.2999219-1-dario.binacchi@amarulasolutions.com> References: <20250424062154.2999219-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=SEGqdMEW; 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 v11) Changes in v11: - Fix conflict while rebasing on master 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 4fec55832702..e83f08abd44c 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 @@ -93,6 +93,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: @@ -102,20 +106,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"; fsl,operating-mode = "nominal"; };