From patchwork Thu Dec 5 11:17:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3701 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B27E93FA09 for ; Thu, 5 Dec 2024 12:20:01 +0100 (CET) Received: by mail-ed1-f69.google.com with SMTP id 4fb4d7f45d1cf-5d0ca174864sf473585a12.2 for ; Thu, 05 Dec 2024 03:20:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1733397601; cv=pass; d=google.com; s=arc-20240605; b=dx/pvrPC2zIqwd3Sj5xuPeONM/rM6VzWWFlP5Odv7sULNa7yPlxWndClObW7qRR97t uTbUvCVDcf6drH8Gyh6sqdaDSBHyFDbJ9c+n1JlZqBuMc0UOGtV2otiJtczwdlHco2AM DOuZ3o/06eAyM0SmNcxokoI3yU14wHzjc3aAgCcHfYkZB6/3pA9KmsIT9jOL4rKI26Fc XcDb4sxSzFEwFPyq/Is71IaDxxNj3xvZXjghLtIEqgPEnzqJZRHu0SoJWge+UZdeDG/s 5OISKYQU4AyXcaaM4oyCno0stsToFaIHQYUa0sX7rm7qRiv2odLVKgoug8n0eFjsa4D2 OKbw== 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=KmPKXBaYBzsD4icbzjVaibU+QopeCade9U2ge64I4R0=; fh=VKdmYyv+tqU767lNGiEgapjvB/iMQ31exrrfdXAk+yU=; b=bPalZ/P0xrOYjY9bNRiPIhMrO2xQ7gFvTuRUphRjWoKZMDT4wcQg82VJqbMAAVJP8W BQa+RFO40HLOJN8Ykf1nqFTEvnxO5hdyKxbrYEYgokIS/vmxfFewo594jlOEsQUrKTkw Yva5+gVokqVbNKKTa6pjlqTH+yDUVQH59b72UrDv4jaTJu8/E9cstuRkX9DDhYuQNl2X C6+BatSA6fdhd+DguHqA7wqPyuuC7K9Ao8c9iNc+shCj1miJxZedtZEanhAaCcMAQFbh OqYu/C5mH7ofukXp4ij+gctpC2glrOEia2H0m4J2iBR8QKm4MpYI+gcfeHX/RIQ0XqWZ xIog==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=KJ41LDLI; 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=1733397601; x=1734002401; 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=KmPKXBaYBzsD4icbzjVaibU+QopeCade9U2ge64I4R0=; b=iVLjobvBdHIDKUiYJcBSvNc393D5HumSBSxYmw7OcVTbPJ6NpuaTAfVcm5VUWkd2xF afTsgTMQ5I6v2fbpUlKQzLEYmfCTyefwaSl0Z2H5rMVC8hfY+8y9zBaaSsUVKFW7Nowa nr2ranT/u0XCkB1ZRnGSda8KiFolmnetrLw84= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733397601; x=1734002401; 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=KmPKXBaYBzsD4icbzjVaibU+QopeCade9U2ge64I4R0=; b=Fh+ktsJO7rm0YwaYNA2n5xAcQ+g6GRJd8ZHam67YeKZ+pFrnsyCfW7HadxgQ7FsV60 9BS76HqnsgY+ywmKWd8kvQoZcIFWcA3LsspCT7Id3Nkl9x98ScdcNbbcfztcLDvH/jQ+ QxXcEfl3iLtge0rH64nJUPRyCPUF5/7U5X7Z2yW4lPvTIeQ498c5j+XIkxDeAAesGH9Z ebEL30wYYl9T2niwjKLtpEhPjfcJDgGB1dQmHKjypx7//9H5o1J0O0FIHotniPEmu7rw PIUvCsvOODr+yy+0s3FfLt5Rlwh+1ANwnWy9qVQsk6xAx9Xmb/Lioz7TfYRRmFHWNnfu 5Ssw== X-Forwarded-Encrypted: i=2; AJvYcCWgaVudIlb1KyGrpc+2CHHBV+ce1koNzliwG3o+TY2GeKpDyAkRfZmQXn0CBm2V1y/4R1Z24m9ErjUC+f8E@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yy48ExgjOo+8oKIUenRkM/F+08dvErIjD8XM1jKJP6DvKDl5GM7 cAks5AAz7KkWwHwLBWkSfWmIpGSdVaM9X89WG6QrrrgXNYfH72yERqDDuH4+OD5BhA== X-Google-Smtp-Source: AGHT+IGnKdZUU1qumY6VQcFZreCFuroPcwJmBtMQf+gdwd0zIFTkDHIJvZhJ9KZ9Ioj2+RwJmL/XgQ== X-Received: by 2002:a05:6402:42c8:b0:5d0:ceec:deec with SMTP id 4fb4d7f45d1cf-5d10cb55abdmr9249231a12.13.1733397601037; Thu, 05 Dec 2024 03:20:01 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:7c1:b0:5d0:9923:4b97 with SMTP id 4fb4d7f45d1cf-5d1251ffdb6ls439162a12.2.-pod-prod-07-eu; Thu, 05 Dec 2024 03:19:59 -0800 (PST) X-Received: by 2002:a17:906:cc2:b0:a9a:13f8:60b9 with SMTP id a640c23a62f3a-aa5f7de8da2mr796713666b.36.1733397599168; Thu, 05 Dec 2024 03:19:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733397599; cv=none; d=google.com; s=arc-20240605; b=aJnE165uRvVwO+V2a5hYceN39NHItbwvoB/37PvQgNICYAk+9PRtFZ/EPUy8/j+v/q wx4G+BQ7olXFniBPax6hgdIx+lHSHLtUC29Eb2EK8+PKPt3TNMhi9Cf/WaOzwFNmUA5B /zPoOk/bX5DpUyrvP36fTPKDQaVywCXIqoqhDz9vXbl9UaK8c2ft8MqiLoda8hsu/dPT +jPSxih1AyPO/SApVI8kBNSib112q+K+sXJuzjuD1a0WFAN/Qq2FFEledP2+X9uOSXxr gL7nxghWRIWNk1I49NghzeJ0UICI2w5zODIOuRmLub9sk1Lh2uSTZMxIdT4sarqCrloL 7/Ew== 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=gOY72MHaxAftY+kPZT4cz9mX5QyWQyee4eQ/HvJFX/U=; fh=2TL5gdVAJyX/yhk5/AxHrADrCeVz/BiuKBD/sWsuHYo=; b=kzEtA4OlYCED77xyVVNM1lZnr8bSHAQesr0XQWeDBlFclRvuIE4e0ZGe61hmwAJlFt DMGQyZEhA1S7AYTfvvPIZfmW6CHQzNSLjxLp0wwgWaHw6EHxJRu7MHIItVEvwshpt3A6 1kGLMixJCG52SwKZGlFTLqznAb6YOQqbDlpWbNuX1MfDKYajd3GUhtZx8nQIRv23VcSD rG+JT6Z7+UDoqrB1mEb9RLyTLJ41rvSweYF/6WhDdqt7HMPaXd1u44IjP6W1U7wmYCNH OIX17TyyEn1HxrFfopYo4mXVSyFzQ6nqmL0VDKvuYwyT4Z7wHyIIttqe4fZxazdMmkJZ ZqZg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=KJ41LDLI; 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-aa6261bc5e6sor38037066b.17.2024.12.05.03.19.59 for (Google Transport Security); Thu, 05 Dec 2024 03:19: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: ASbGncuTHyXi8P9pMIVzyg9U/pMsEVJnOptXH+O3p/N19RThvmFHYoCATD25qWhrw3z OckY0UJgF+Gu2jcm3GalzgDw5GGlB8OPV7HM881J6Xmtn4pszAaKlJJa1ZJDhBc9MFaQtxQs3Vc aYfZ5dpS+zgI4iRGRHct5Tc78fxJ+bStJ01Du+JvyVxaWp10pUoxt0mzlPZ/eg65atooM4kfVBc /NpaejqJM7HvKzViTZPG6UsJeQ3TEWa8QFvaJvKCYh/+7VjXva6l78AqXMu12dnvzKNcBlfWgnD vuJUv64xgEwuSutnuCprfE0E9qDs6sCHo0sJgqjcG/VTsw== X-Received: by 2002:a17:906:4c1:b0:aa5:f288:e7d8 with SMTP id a640c23a62f3a-aa5f7de5826mr706812166b.26.1733397598755; Thu, 05 Dec 2024 03:19:58 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2001:b07:6474:ebbf:61a1:9bc8:52c6:3c2d]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aa625eedcd0sm77505266b.87.2024.12.05.03.19.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2024 03:19:58 -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 v5 11/20] dt-bindings: clock: imx8mn: add binding definitions for anatop Date: Thu, 5 Dec 2024 12:17:46 +0100 Message-ID: <20241205111939.1796244-12-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241205111939.1796244-1-dario.binacchi@amarulasolutions.com> References: <20241205111939.1796244-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=KJ41LDLI; 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: , Add the bindings definitions for the anatop node. The patch is preparatory for future developments. Signed-off-by: Dario Binacchi --- (no changes since v4) Changes in v4: - New include/dt-bindings/clock/imx8mn-clock.h | 67 ++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/include/dt-bindings/clock/imx8mn-clock.h b/include/dt-bindings/clock/imx8mn-clock.h index 04809edab33c..732ff87a16c2 100644 --- a/include/dt-bindings/clock/imx8mn-clock.h +++ b/include/dt-bindings/clock/imx8mn-clock.h @@ -267,4 +267,71 @@ #define IMX8MN_CLK_END 235 +#define IMX8MN_ANATOP_CLK_DUMMY 0 +#define IMX8MN_ANATOP_CLK_32K 1 +#define IMX8MN_ANATOP_CLK_24M 2 +#define IMX8MN_ANATOP_AUDIO_PLL1_REF_SEL 3 +#define IMX8MN_ANATOP_AUDIO_PLL2_REF_SEL 4 +#define IMX8MN_ANATOP_VIDEO_PLL_REF_SEL 5 +#define IMX8MN_ANATOP_DRAM_PLL_REF_SEL 6 +#define IMX8MN_ANATOP_GPU_PLL_REF_SEL 7 +#define IMX8MN_ANATOP_M7_ALT_PLL_REF_SEL 8 +#define IMX8MN_ANATOP_ARM_PLL_REF_SEL 9 +#define IMX8MN_ANATOP_SYS_PLL3_REF_SEL 10 +#define IMX8MN_ANATOP_AUDIO_PLL1 11 +#define IMX8MN_ANATOP_AUDIO_PLL2 12 +#define IMX8MN_ANATOP_VIDEO_PLL 13 +#define IMX8MN_ANATOP_DRAM_PLL 14 +#define IMX8MN_ANATOP_GPU_PLL 15 +#define IMX8MN_ANATOP_M7_ALT_PLL 16 +#define IMX8MN_ANATOP_ARM_PLL 17 +#define IMX8MN_ANATOP_SYS_PLL1 18 +#define IMX8MN_ANATOP_SYS_PLL2 19 +#define IMX8MN_ANATOP_SYS_PLL3 20 +#define IMX8MN_ANATOP_AUDIO_PLL1_BYPASS 21 +#define IMX8MN_ANATOP_AUDIO_PLL2_BYPASS 22 +#define IMX8MN_ANATOP_VIDEO_PLL_BYPASS 23 +#define IMX8MN_ANATOP_DRAM_PLL_BYPASS 24 +#define IMX8MN_ANATOP_GPU_PLL_BYPASS 25 +#define IMX8MN_ANATOP_M7_ALT_PLL_BYPASS 26 +#define IMX8MN_ANATOP_ARM_PLL_BYPASS 27 +#define IMX8MN_ANATOP_SYS_PLL3_BYPASS 28 +#define IMX8MN_ANATOP_AUDIO_PLL1_OUT 29 +#define IMX8MN_ANATOP_AUDIO_PLL2_OUT 30 +#define IMX8MN_ANATOP_VIDEO_PLL_OUT 31 +#define IMX8MN_ANATOP_DRAM_PLL_OUT 32 +#define IMX8MN_ANATOP_GPU_PLL_OUT 33 +#define IMX8MN_ANATOP_M7_ALT_PLL_OUT 34 +#define IMX8MN_ANATOP_ARM_PLL_OUT 35 +#define IMX8MN_ANATOP_SYS_PLL3_OUT 36 +#define IMX8MN_ANATOP_SYS_PLL1_OUT 37 +#define IMX8MN_ANATOP_SYS_PLL1_40M 38 +#define IMX8MN_ANATOP_SYS_PLL1_80M 39 +#define IMX8MN_ANATOP_SYS_PLL1_100M 40 +#define IMX8MN_ANATOP_SYS_PLL1_133M 41 +#define IMX8MN_ANATOP_SYS_PLL1_160M 42 +#define IMX8MN_ANATOP_SYS_PLL1_200M 43 +#define IMX8MN_ANATOP_SYS_PLL1_266M 44 +#define IMX8MN_ANATOP_SYS_PLL1_400M 45 +#define IMX8MN_ANATOP_SYS_PLL1_800M 46 +#define IMX8MN_ANATOP_SYS_PLL2_OUT 47 +#define IMX8MN_ANATOP_SYS_PLL2_50M 48 +#define IMX8MN_ANATOP_SYS_PLL2_100M 49 +#define IMX8MN_ANATOP_SYS_PLL2_125M 50 +#define IMX8MN_ANATOP_SYS_PLL2_166M 51 +#define IMX8MN_ANATOP_SYS_PLL2_200M 52 +#define IMX8MN_ANATOP_SYS_PLL2_250M 53 +#define IMX8MN_ANATOP_SYS_PLL2_333M 54 +#define IMX8MN_ANATOP_SYS_PLL2_500M 55 +#define IMX8MN_ANATOP_SYS_PLL2_1000M 56 + +#define IMX8MN_ANATOP_CLK_CLKOUT1_SEL 57 +#define IMX8MN_ANATOP_CLK_CLKOUT1_DIV 58 +#define IMX8MN_ANATOP_CLK_CLKOUT1 59 +#define IMX8MN_ANATOP_CLK_CLKOUT2_SEL 60 +#define IMX8MN_ANATOP_CLK_CLKOUT2_DIV 61 +#define IMX8MN_ANATOP_CLK_CLKOUT2 62 + +#define IMX8MN_ANATOP_CLK_END 63 + #endif