From patchwork Wed Apr 23 06:02:32 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3932 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 39E6C3F9C5 for ; Wed, 23 Apr 2025 08:03:22 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-5e6d978792dsf5287759a12.1 for ; Tue, 22 Apr 2025 23:03:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1745388202; cv=pass; d=google.com; s=arc-20240605; b=UJ2CWnQ4nf7bVdvBoGfjyR0n/ej5DbD+vCoaAXIalVLRvkbAmwelBXUwjsnrL9tMmI B+e+7iagLbLXVQwoCAxgMxmySvUWb6BFL75XdTanV3WRLqfwXt3lDSnuqea4OFMlPRkR qm2rKis23mhmlZQe+yBmKYu9Ywyti8AJRmwMa8yPfaTwAKPfwW9FrncMSZqTh0YB1NYK c7Vb48cAIA1FV8rj94deJ7iga3FpZUKey57IrhE+akF+zSCvNBeYUql3v73PAn6pZlty hKA8fybZ/mJ1IorjsyjSBD0emh+CyUfA9SrQ2ee/S6ny/6S1UAc7ewRQtr9SaCgUfhw2 uygA== 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=JAfHDZVNy12KnjFu1AOd49lXfGaYeZP1+XZAN9GQlxo=; fh=nemgyjBne2o6qbvc2aLhVsxK1nkMPN8A9I1RA4PaQek=; b=AXwjcOBpjuoNKbDzusNupyhBnAz5P8i7pugD5FJKNxpxMlD/Nmh6j9LaxCRcO+XIvT TuzLbCeh8mVtErgXfr7ooQdJHUram0dDQmK4X5U1itX4yjGRAgud9+M68Ihpe19dVHgx hHzioCLTwrsLn/i/JO7jkiHVxKvwmdtCm12AxQbsIDgHH9bXon15RGrB1tDC0wcIgJsY rk/WPrG9bcFpWweFFI5TWN2BHAH5WS5A6O37sL1Az59eFmxTi6ziRPuhkeRxYv0ClT1P uT147HiMkZNHWQtifMitp0jbTor6hmT0FWkQaKYuuhK5BwICLC2/6eCt8I3GDzwLqYJ4 oGdA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=N9Tx8hz3; 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=1745388202; x=1745993002; 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=JAfHDZVNy12KnjFu1AOd49lXfGaYeZP1+XZAN9GQlxo=; b=P2P3DNCwlnXBDrsrYoOQuAoNjz9nYxV5QVeUPDBynU31As3dGeEeeKU0y0yrypSL63 vWexZQkVDLkbLi3FPbjQVaHhmkzJeFccATSQyJr6AEAkyilURmE3to+mxJ/BAyOzRqkw sTeX8QFcwzSo7yiNUTetYIgPUiASp0KmxKc5U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745388202; x=1745993002; 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=JAfHDZVNy12KnjFu1AOd49lXfGaYeZP1+XZAN9GQlxo=; b=asW2DhNv9oKrq2fuJvP8PZ2XdGb5s+aJjUVwHdSzMBcrDh7cqaza1/J0F1Z1FWZN7a /y5ul3TqAFakNZ3OvGPhl5LrkE54Xw8SSY0AkUr4sHPgdwW5NaIwW5Z5woOCtEohaTeF 45wMd146kL2rAq9/1RmVJYAJAw1LXpTlEvDcCipMGld7gRcpTzhbbr1vWBt4JXtogFM4 TXx+rHoeM4n3vk1exM0e0N+JTld3zVKb8PxMLoMiF1g7UDVyT5613nV/Hyt6baO3gh7M V0WxdUVlDTzmz2BHRwabVDxBkI3q8oQPJntrJ2ndYdbYsQAhm05P88ey88bJwq0qsv73 EJkQ== X-Forwarded-Encrypted: i=2; AJvYcCXJoNYTz5wPMAKh3uxuVnK0OrS9aFu81e37LiApGH9EhnUG7mwmTAm6MHrt06wYFVcO2L9O50eMDqKdOqMv@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxbqzRyicwq2YPcpL4cYaKQj5ItAtohswBg+qFFV5ZWU/Oc22CL 22Gr8zqIC0updtYXS3Pgcidy0yCpXp4/oQz3dX0ywR1HOhNwXDT5gxblX15XK5G9Pw== X-Google-Smtp-Source: AGHT+IGZpVgY+UAFCbSXUYaINEEAIIyUXMc4Usu+MbRASPclGg6xMUIaRM1pHT2sKq3HQFhN0WPlfg== X-Received: by 2002:a05:6402:210f:b0:5f4:c8b9:cd2c with SMTP id 4fb4d7f45d1cf-5f62862a6e6mr16717287a12.34.1745388201854; Tue, 22 Apr 2025 23:03:21 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARLLPAKymsfBB5SWjDpX2RdKTWIQEVCous859RbFrfnCQ+I/CQ== Received: by 2002:a05:6402:2551:b0:5de:45c1:d19e with SMTP id 4fb4d7f45d1cf-5f6b4f9793cls755282a12.0.-pod-prod-04-eu; Tue, 22 Apr 2025 23:03:20 -0700 (PDT) X-Received: by 2002:a17:906:7c43:b0:acb:b381:c28b with SMTP id a640c23a62f3a-acbb381cc4dmr568928466b.47.1745388199695; Tue, 22 Apr 2025 23:03:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1745388199; cv=none; d=google.com; s=arc-20240605; b=haxm4SdbCDth3dAy0aFeZlxm/9ujbYxSdRE+PrY/MUMPZbyjztbfmK8mlQgv1GYpN1 cs+J55BpdXO3HDfSG/n1mPghJNpJ2uIR+Oxtv3JIcuBFGLGP3DzhgQ59g09WvzRg6ZWz +46yKmntnh5C/D7/q3LLJzPfpfyNpz0NtFHanr4Edr0BAAZXLiVMCwduFQze7HVyHkMX u4Nfu44AQlCZjgccpJcd+bQAJW5f0orv0CSCETNN66PCMxV3EgPp3g86vyoUhWu2LkCW D/0Os7MWmYOpjveIBh5EVMG7TygB/xt4bcUM4C3wOLyqCZo/cxODUUBQDU5kixSkKA2Q QFFw== 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=Qlcrl/s66F8iW4Dfes9I7PvLNwTvzV7zn6ge9EdXk3Q=; fh=8I6Qc/k/D5kbyOaz9aI0uvvQ4OAyyXmFEJRmI3p3OLU=; b=EqH1xXJDXtJWR84PakecvKdJXdjDsiPshPNDMEBC4Lk+EY1ngnPwaJ8j12CLADA7Jd PfppvXLX94AXhT+r/KptSQtaND5JW4TRjnu9b0tSX+N+xrMWabm+OAPWHvh8W9mk4DUu ZYiTXYTSs1fWhZ/tsumxOx3v1ye3JtR8s4XIn2m4cjhng64Vn4mmblWp3fWCJGUA8G3u WN/bXB5TasDJMAXLCvi+UTV0o3z9sYGzo4TdUkpUMb3Wn58+fU45Xkvq9l1KL4dh7YrW 9pfF9S+Xw2aSt82Ibefe5jTinU2emextvE8z54/SAervkFL8aL3wRtqTAqOlQsn7Onpi 7nOA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=N9Tx8hz3; 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-acb6ee00f13sor583179666b.11.2025.04.22.23.03.19 for (Google Transport Security); Tue, 22 Apr 2025 23:03:19 -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-Gm-Gg: ASbGncvbax7SrghD0mM8QuMzhP70/1+IAECGrdCknSnZffdv0pT50M+ewV3xC5YhoLb ElF0ZjqVYyKVn3Ql5hzWsE4MP0dj4ofVWBrI8k2RgHW8bPSpnLnKBiqpZiYuKhd0oMQLgvOzt4G /xQX9R6ymDMk0uMsmkzc5TAN3mk+JLaPNiIHRqXxMH4I032q7GTBnGPUGMkKGsfJOBb44Ws78QT l+4ShRzVFa1Bd8lAe/neJ9wK6pezZJlhYbTCcCLF3skFjzcXFUvRLl4oPxuA2aQgdJThcp2owg1 Acjw2SQA9qUPPWov0nk1pDscCIkPsQ7HMFcRT+BkxvG9GdgyUjVXr7dRoFSuMajOIk55bAwNYI8 TpSR9 X-Received: by 2002:a17:906:c154:b0:aca:a162:8707 with SMTP id a640c23a62f3a-acb74ad9629mr1643817866b.7.1745388199239; Tue, 22 Apr 2025 23:03:19 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.40.29]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-acb6ef9e7e6sm745234366b.162.2025.04.22.23.03.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Apr 2025 23:03:18 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Abel Vesa , Peng Fan , Stephen Boyd , Shawn Guo , 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 v11 15/18] dt-bindings: clock: imx8m-clock: add PLLs Date: Wed, 23 Apr 2025 08:02:32 +0200 Message-ID: <20250423060241.95521-16-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250423060241.95521-1-dario.binacchi@amarulasolutions.com> References: <20250423060241.95521-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=N9Tx8hz3; 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 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"; };