From: "Benoît Monin" <benoit.monin@bootlin.com>
To: "Vladimir Kondratiev" <vladimir.kondratiev@mobileye.com>,
"Gregory CLEMENT" <gregory.clement@bootlin.com>,
"Théo Lebrun" <theo.lebrun@bootlin.com>,
"Thomas Bogendoerfer" <tsbogend@alpha.franken.de>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Michael Turquette" <mturquette@baylibre.com>,
"Stephen Boyd" <sboyd@kernel.org>,
"Philipp Zabel" <p.zabel@pengutronix.de>,
"Linus Walleij" <linusw@kernel.org>
Cc: "Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
"Tawfik Bayouk" <tawfik.bayouk@mobileye.com>,
linux-mips@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org,
linux-gpio@vger.kernel.org,
"Benoît Monin" <benoit.monin@bootlin.com>
Subject: [PATCH v4 09/13] clk: eyeq: Add Mobileye EyeQ6Lplus OLB
Date: Mon, 16 Mar 2026 16:25:46 +0100 [thread overview]
Message-ID: <20260316-eyeq6lplus-v4-9-bf44dfc7a261@bootlin.com> (raw)
In-Reply-To: <20260316-eyeq6lplus-v4-0-bf44dfc7a261@bootlin.com>
Declare the PLLs and fixed factors found in the EyeQ6Lplus OLB as part
of the match data for the "mobileye,eyeq6lplus-olb" compatible.
The PLL and fixed factor of the CPU are registered in early init as they
are required during the boot by the GIC timer.
Also select clk-eyeq for all EYEQ SoCs instead of listing each one
individually, as it is needed by all Mobileye EyeQ SoC.
Signed-off-by: Benoît Monin <benoit.monin@bootlin.com>
---
drivers/clk/Kconfig | 4 +--
drivers/clk/clk-eyeq.c | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 72 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig
index 3d803b4cf5c1..240e9dbeff2b 100644
--- a/drivers/clk/Kconfig
+++ b/drivers/clk/Kconfig
@@ -236,9 +236,9 @@ config COMMON_CLK_EP93XX
config COMMON_CLK_EYEQ
bool "Clock driver for the Mobileye EyeQ platform"
- depends on MACH_EYEQ5 || MACH_EYEQ6H || COMPILE_TEST
+ depends on EYEQ || COMPILE_TEST
select AUXILIARY_BUS
- default MACH_EYEQ5 || MACH_EYEQ6H
+ default EYEQ
help
This driver provides clocks found on Mobileye EyeQ5, EyeQ6L and Eye6H
SoCs. Controllers live in shared register regions called OLB. Driver
diff --git a/drivers/clk/clk-eyeq.c b/drivers/clk/clk-eyeq.c
index abffa46364f5..d9303c2c7aa5 100644
--- a/drivers/clk/clk-eyeq.c
+++ b/drivers/clk/clk-eyeq.c
@@ -45,6 +45,7 @@
#include <linux/types.h>
#include <dt-bindings/clock/mobileye,eyeq5-clk.h>
+#include <dt-bindings/clock/mobileye,eyeq6lplus-clk.h>
/* In frac mode, it enables fractional noise canceling DAC. Else, no function. */
#define PCSR0_DAC_EN BIT(0)
@@ -541,6 +542,68 @@ static const struct eqc_match_data eqc_eyeq6l_match_data = {
.reset_auxdev_name = "reset",
};
+static const struct eqc_pll eqc_eyeq6lplus_early_plls[] = {
+ { .index = EQ6LPC_PLL_CPU, .name = "pll-cpu", .reg64 = 0x058 },
+};
+
+static const struct eqc_pll eqc_eyeq6lplus_plls[] = {
+ { .index = EQ6LPC_PLL_DDR, .name = "pll-ddr", .reg64 = 0x02C },
+ { .index = EQ6LPC_PLL_ACC, .name = "pll-acc", .reg64 = 0x034 },
+ { .index = EQ6LPC_PLL_PER, .name = "pll-per", .reg64 = 0x03C },
+ { .index = EQ6LPC_PLL_VDI, .name = "pll-vdi", .reg64 = 0x044 },
+};
+
+static const struct eqc_fixed_factor eqc_eyeq6lplus_early_fixed_factors[] = {
+ { EQ6LPC_CPU_OCC, "occ-cpu", 1, 1, EQ6LPC_PLL_CPU },
+};
+
+static const struct eqc_fixed_factor eqc_eyeq6lplus_fixed_factors[] = {
+ { EQ6LPC_DDR_OCC, "occ-ddr", 1, 1, EQ6LPC_PLL_DDR },
+
+ { EQ6LPC_ACC_VDI, "vdi-div", 1, 10, EQ6LPC_PLL_ACC },
+ { EQ6LPC_ACC_OCC, "occ-acc", 1, 1, EQ6LPC_PLL_ACC },
+ { EQ6LPC_ACC_FCMU, "fcmu-a-clk", 1, 10, EQ6LPC_ACC_OCC },
+
+ { EQ6LPC_PER_OCC, "occ-per", 1, 1, EQ6LPC_PLL_PER },
+ { EQ6LPC_PER_I2C_SER, "i2c-ser-clk", 1, 10, EQ6LPC_PER_OCC },
+ { EQ6LPC_PER_PCLK, "pclk", 1, 4, EQ6LPC_PER_OCC },
+ { EQ6LPC_PER_TSU, "tsu-clk", 1, 8, EQ6LPC_PER_OCC },
+ { EQ6LPC_PER_OSPI, "ospi-ref-clk", 1, 10, EQ6LPC_PER_OCC },
+ { EQ6LPC_PER_GPIO, "gpio-clk", 1, 4, EQ6LPC_PER_OCC },
+ { EQ6LPC_PER_TIMER, "timer-clk", 1, 4, EQ6LPC_PER_OCC },
+ { EQ6LPC_PER_I2C, "i2c-clk", 1, 4, EQ6LPC_PER_OCC },
+ { EQ6LPC_PER_UART, "uart-clk", 1, 4, EQ6LPC_PER_OCC },
+ { EQ6LPC_PER_SPI, "spi-clk", 1, 4, EQ6LPC_PER_OCC },
+ { EQ6LPC_PER_PERIPH, "periph-clk", 1, 1, EQ6LPC_PER_OCC },
+
+ { EQ6LPC_VDI_OCC, "occ-vdi", 1, 1, EQ6LPC_PLL_VDI },
+};
+
+static const struct eqc_early_match_data eqc_eyeq6lplus_early_match_data __initconst = {
+ .early_pll_count = ARRAY_SIZE(eqc_eyeq6lplus_early_plls),
+ .early_plls = eqc_eyeq6lplus_early_plls,
+
+ .early_fixed_factor_count = ARRAY_SIZE(eqc_eyeq6lplus_early_fixed_factors),
+ .early_fixed_factors = eqc_eyeq6lplus_early_fixed_factors,
+
+ .late_clk_count = ARRAY_SIZE(eqc_eyeq6lplus_plls) +
+ ARRAY_SIZE(eqc_eyeq6lplus_fixed_factors),
+};
+
+static const struct eqc_match_data eqc_eyeq6lplus_match_data = {
+ .pll_count = ARRAY_SIZE(eqc_eyeq6lplus_plls),
+ .plls = eqc_eyeq6lplus_plls,
+
+ .fixed_factor_count = ARRAY_SIZE(eqc_eyeq6lplus_fixed_factors),
+ .fixed_factors = eqc_eyeq6lplus_fixed_factors,
+
+ .reset_auxdev_name = "reset",
+ .pinctrl_auxdev_name = "pinctrl",
+
+ .early_clk_count = ARRAY_SIZE(eqc_eyeq6lplus_early_plls) +
+ ARRAY_SIZE(eqc_eyeq6lplus_early_fixed_factors),
+};
+
static const struct eqc_match_data eqc_eyeq6h_west_match_data = {
.reset_auxdev_name = "reset_west",
};
@@ -642,6 +705,7 @@ static const struct eqc_match_data eqc_eyeq6h_acc_match_data = {
static const struct of_device_id eqc_match_table[] = {
{ .compatible = "mobileye,eyeq5-olb", .data = &eqc_eyeq5_match_data },
{ .compatible = "mobileye,eyeq6l-olb", .data = &eqc_eyeq6l_match_data },
+ { .compatible = "mobileye,eyeq6lplus-olb", .data = &eqc_eyeq6lplus_match_data },
{ .compatible = "mobileye,eyeq6h-west-olb", .data = &eqc_eyeq6h_west_match_data },
{ .compatible = "mobileye,eyeq6h-east-olb", .data = &eqc_eyeq6h_east_match_data },
{ .compatible = "mobileye,eyeq6h-south-olb", .data = &eqc_eyeq6h_south_match_data },
@@ -825,3 +889,9 @@ static void __init eqc_eyeq6h_west_early_init(struct device_node *np)
}
CLK_OF_DECLARE_DRIVER(eqc_eyeq6h_west, "mobileye,eyeq6h-west-olb",
eqc_eyeq6h_west_early_init);
+
+static void __init eqc_eyeq6lplus_early_init(struct device_node *np)
+{
+ eqc_early_init(np, &eqc_eyeq6lplus_early_match_data);
+}
+CLK_OF_DECLARE_DRIVER(eqc_eyeq6lplus, "mobileye,eyeq6lplus-olb", eqc_eyeq6lplus_early_init);
--
2.53.0
next prev parent reply other threads:[~2026-03-16 15:26 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-16 15:25 [PATCH v4 00/13] Introducing the Mobileye EyeQ6Lplus SoC Benoît Monin
2026-03-16 15:25 ` [PATCH v4 01/13] dt-bindings: mips: Add " Benoît Monin
2026-03-16 15:25 ` [PATCH v4 02/13] dt-bindings: soc: mobileye: Add EyeQ6Lplus OLB Benoît Monin
2026-03-23 9:03 ` Linus Walleij
2026-03-24 0:26 ` Stephen Boyd
2026-03-16 15:25 ` [PATCH v4 03/13] MIPS: Add Mobileye EyeQ6Lplus support Benoît Monin
2026-03-16 15:25 ` [PATCH v4 04/13] reset: eyeq: Add Mobileye EyeQ6Lplus OLB Benoît Monin
2026-03-16 15:25 ` [PATCH v4 05/13] pinctrl: eyeq5: Use match data Benoît Monin
2026-03-23 9:04 ` Linus Walleij
2026-03-16 15:25 ` [PATCH v4 06/13] pinctrl: eyeq5: Add Mobileye EyeQ6Lplus OLB Benoît Monin
2026-03-23 9:05 ` Linus Walleij
2026-03-24 14:04 ` Thomas Bogendoerfer
2026-03-25 12:50 ` Benoît Monin
2026-03-16 15:25 ` [PATCH v4 07/13] clk: eyeq: Skip post-divisor when computing PLL frequency Benoît Monin
2026-03-24 0:30 ` Stephen Boyd
2026-03-16 15:25 ` [PATCH v4 08/13] clk: eyeq: Adjust PLL accuracy computation Benoît Monin
2026-03-24 0:30 ` Stephen Boyd
2026-03-16 15:25 ` Benoît Monin [this message]
2026-03-24 0:30 ` [PATCH v4 09/13] clk: eyeq: Add Mobileye EyeQ6Lplus OLB Stephen Boyd
2026-03-16 15:25 ` [PATCH v4 10/13] MIPS: Add Mobileye EyeQ6Lplus SoC dtsi Benoît Monin
2026-03-16 15:25 ` [PATCH v4 11/13] MIPS: Add Mobileye EyeQ6Lplus evaluation board dts Benoît Monin
2026-03-16 15:25 ` [PATCH v4 12/13] MIPS: config: add eyeq6lplus_defconfig Benoît Monin
2026-03-16 15:25 ` [PATCH v4 13/13] MAINTAINERS: Mobileye: Add EyeQ6Lplus files Benoît Monin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260316-eyeq6lplus-v4-9-bf44dfc7a261@bootlin.com \
--to=benoit.monin@bootlin.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregory.clement@bootlin.com \
--cc=krzk+dt@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=tawfik.bayouk@mobileye.com \
--cc=theo.lebrun@bootlin.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=tsbogend@alpha.franken.de \
--cc=vladimir.kondratiev@mobileye.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox