From nobody Tue Feb 10 02:49:35 2026 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89BE874E19; Fri, 9 Feb 2024 14:32:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707489128; cv=none; b=R2wwIsF0s3NOqPoQUryHJOdc1p5Kd8fHPV+/nwp9deKJnb8Mo85hv3a6q4PK6p8GtBZWvhy7MvgrZkKf6eLrhTQ9VS7JNyhvmGwDBq8lgTIAf+mMzQ3hZ8gjhb8hHsJx3g/WmbCJ9tn/MeCLtkbQYED/ED8/WRT5zo4MKXahT/w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707489128; c=relaxed/simple; bh=rDMeScbT4J1ap/5Fo/1rYba4D68tYzKkIH/bckjdRsg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LZRJbxSvDZ8xZqrKAYq1A1JrhNSZjy5mNySFlPHJtoOj3uoVIUBiPq1CV/SkPBF3HuqTxuBf9suJ0vlGCCdNhKYF7yZrIYPy6KkhuRjBewgSDHlDWCyTDFS4Sl3da89Cz9X0y7o96XyQ82f08DyCJChuvKvYe67nFp8GSWxOjkg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=C08XFn83; arc=none smtp.client-ip=217.70.183.193 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="C08XFn83" Received: by mail.gandi.net (Postfix) with ESMTPSA id 7299D240009; Fri, 9 Feb 2024 14:32:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707489123; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wi8jwip8WrhGTKLzAJSMQEzhaSDon8uDm4Ah20T+FYE=; b=C08XFn832FcXvazvT69WjKZyI7OA/4xu/z0xbeaF+lBpr3AGoHCen9MT2pivpW+4W90vWl qq1NkvFBv5VnXtqG7Ut+ioolboKw5CjB3rKLq7x5kiUZ7QmL1XZYRrKOVTIgd1oqwThEif wry/t65wFfHx/tNgJc33JE6UlRcE0f9rYHouD0/wgA00YXVSrTgy85hrqOmjdR82fx9ZbW aEDdVDF3/P8Llnhu4BMoODFTcGxHoRBg2SqVmF4EIho86u8UoFJWXluU9gPQ+nuZuZ3GGC OnF72mR88+Sru5S3Exje6dV9OE7gPAE3i9tKtjuTzKa2NsNKCcXIV5eXbcoGxQ== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Fri, 09 Feb 2024 15:31:47 +0100 Subject: [PATCH v5 11/13] MIPS: mobileye: eyeq5: use OLB clocks controller node Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240209-mbly-clk-v5-11-f094ee5e918a@bootlin.com> References: <20240209-mbly-clk-v5-0-f094ee5e918a@bootlin.com> In-Reply-To: <20240209-mbly-clk-v5-0-f094ee5e918a@bootlin.com> To: Gregory CLEMENT , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer , Linus Walleij , =?utf-8?q?Rafa=C5=82_Mi=C5=82ecki?= , Philipp Zabel Cc: Vladimir Kondratiev , linux-mips@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Tawfik Bayouk , linux-gpio@vger.kernel.org, =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: b4 0.12.4 X-GND-Sasl: theo.lebrun@bootlin.com We add the clock controller inside the OLB syscon region and remove previous fixed devicetree nodes representing PLLs exposed by the clock controller. Signed-off-by: Th=C3=A9o Lebrun --- .../{eyeq5-fixed-clocks.dtsi =3D> eyeq5-clocks.dtsi} | 54 +++++++---------= ------ arch/mips/boot/dts/mobileye/eyeq5.dtsi | 11 ++++- 2 files changed, 26 insertions(+), 39 deletions(-) diff --git a/arch/mips/boot/dts/mobileye/eyeq5-fixed-clocks.dtsi b/arch/mip= s/boot/dts/mobileye/eyeq5-clocks.dtsi similarity index 88% rename from arch/mips/boot/dts/mobileye/eyeq5-fixed-clocks.dtsi rename to arch/mips/boot/dts/mobileye/eyeq5-clocks.dtsi index 78f5533a95c6..aa6db704a786 100644 --- a/arch/mips/boot/dts/mobileye/eyeq5-fixed-clocks.dtsi +++ b/arch/mips/boot/dts/mobileye/eyeq5-clocks.dtsi @@ -3,42 +3,20 @@ * Copyright 2023 Mobileye Vision Technologies Ltd. */ =20 +#include + / { /* Fixed clock */ - pll_cpu: pll-cpu { - compatible =3D "fixed-clock"; - #clock-cells =3D <0>; - clock-frequency =3D <1500000000>; - }; - - pll_vdi: pll-vdi { - compatible =3D "fixed-clock"; - #clock-cells =3D <0>; - clock-frequency =3D <1280000000>; - }; - - pll_per: pll-per { - compatible =3D "fixed-clock"; - #clock-cells =3D <0>; - clock-frequency =3D <2000000000>; - }; - - pll_ddr0: pll-ddr0 { - compatible =3D "fixed-clock"; - #clock-cells =3D <0>; - clock-frequency =3D <1857210000>; - }; - - pll_ddr1: pll-ddr1 { + xtal: xtal { compatible =3D "fixed-clock"; #clock-cells =3D <0>; - clock-frequency =3D <1857210000>; + clock-frequency =3D <30000000>; }; =20 /* PLL_CPU derivatives */ occ_cpu: occ-cpu { compatible =3D "fixed-factor-clock"; - clocks =3D <&pll_cpu>; + clocks =3D <&clocks EQ5C_PLL_CPU>; #clock-cells =3D <0>; clock-div =3D <1>; clock-mult =3D <1>; @@ -101,7 +79,7 @@ mem_clk: mem-clk { }; occ_isram: occ-isram { compatible =3D "fixed-factor-clock"; - clocks =3D <&pll_cpu>; + clocks =3D <&clocks EQ5C_PLL_CPU>; #clock-cells =3D <0>; clock-div =3D <2>; clock-mult =3D <1>; @@ -115,7 +93,7 @@ isram_clk: isram-clk { /* gate ClkRstGen_isram */ }; occ_dbu: occ-dbu { compatible =3D "fixed-factor-clock"; - clocks =3D <&pll_cpu>; + clocks =3D <&clocks EQ5C_PLL_CPU>; #clock-cells =3D <0>; clock-div =3D <10>; clock-mult =3D <1>; @@ -130,7 +108,7 @@ si_dbu_tp_pclk: si-dbu-tp-pclk { /* gate ClkRstGen_dbu = */ /* PLL_VDI derivatives */ occ_vdi: occ-vdi { compatible =3D "fixed-factor-clock"; - clocks =3D <&pll_vdi>; + clocks =3D <&clocks EQ5C_PLL_VDI>; #clock-cells =3D <0>; clock-div =3D <2>; clock-mult =3D <1>; @@ -144,7 +122,7 @@ vdi_clk: vdi-clk { /* gate ClkRstGen_vdi */ }; occ_can_ser: occ-can-ser { compatible =3D "fixed-factor-clock"; - clocks =3D <&pll_vdi>; + clocks =3D <&clocks EQ5C_PLL_VDI>; #clock-cells =3D <0>; clock-div =3D <16>; clock-mult =3D <1>; @@ -158,7 +136,7 @@ can_ser_clk: can-ser-clk { /* gate ClkRstGen_can_ser */ }; i2c_ser_clk: i2c-ser-clk { compatible =3D "fixed-factor-clock"; - clocks =3D <&pll_vdi>; + clocks =3D <&clocks EQ5C_PLL_VDI>; #clock-cells =3D <0>; clock-div =3D <20>; clock-mult =3D <1>; @@ -166,7 +144,7 @@ i2c_ser_clk: i2c-ser-clk { /* PLL_PER derivatives */ occ_periph: occ-periph { compatible =3D "fixed-factor-clock"; - clocks =3D <&pll_per>; + clocks =3D <&clocks EQ5C_PLL_PER>; #clock-cells =3D <0>; clock-div =3D <16>; clock-mult =3D <1>; @@ -225,7 +203,7 @@ gpio_clk: gpio-clk { }; emmc_sys_clk: emmc-sys-clk { compatible =3D "fixed-factor-clock"; - clocks =3D <&pll_per>; + clocks =3D <&clocks EQ5C_PLL_PER>; #clock-cells =3D <0>; clock-div =3D <10>; clock-mult =3D <1>; @@ -233,7 +211,7 @@ emmc_sys_clk: emmc-sys-clk { }; ccf_ctrl_clk: ccf-ctrl-clk { compatible =3D "fixed-factor-clock"; - clocks =3D <&pll_per>; + clocks =3D <&clocks EQ5C_PLL_PER>; #clock-cells =3D <0>; clock-div =3D <4>; clock-mult =3D <1>; @@ -241,7 +219,7 @@ ccf_ctrl_clk: ccf-ctrl-clk { }; occ_mjpeg_core: occ-mjpeg-core { compatible =3D "fixed-factor-clock"; - clocks =3D <&pll_per>; + clocks =3D <&clocks EQ5C_PLL_PER>; #clock-cells =3D <0>; clock-div =3D <2>; clock-mult =3D <1>; @@ -265,7 +243,7 @@ mjpeg_core_clk: mjpeg-core-clk { /* gate ClkRstGen_mjpe= g_gen */ }; fcmu_a_clk: fcmu-a-clk { compatible =3D "fixed-factor-clock"; - clocks =3D <&pll_per>; + clocks =3D <&clocks EQ5C_PLL_PER>; #clock-cells =3D <0>; clock-div =3D <20>; clock-mult =3D <1>; @@ -273,7 +251,7 @@ fcmu_a_clk: fcmu-a-clk { }; occ_pci_sys: occ-pci-sys { compatible =3D "fixed-factor-clock"; - clocks =3D <&pll_per>; + clocks =3D <&clocks EQ5C_PLL_PER>; #clock-cells =3D <0>; clock-div =3D <8>; clock-mult =3D <1>; diff --git a/arch/mips/boot/dts/mobileye/eyeq5.dtsi b/arch/mips/boot/dts/mo= bileye/eyeq5.dtsi index e82d2a57f6da..1a65b43e13b1 100644 --- a/arch/mips/boot/dts/mobileye/eyeq5.dtsi +++ b/arch/mips/boot/dts/mobileye/eyeq5.dtsi @@ -5,7 +5,7 @@ =20 #include =20 -#include "eyeq5-fixed-clocks.dtsi" +#include "eyeq5-clocks.dtsi" =20 / { #address-cells =3D <2>; @@ -106,6 +106,15 @@ olb: system-controller@e00000 { ranges =3D <0x0 0x0 0xe00000 0x400>; #address-cells =3D <1>; #size-cells =3D <1>; + + clocks: clock-controller@e0002c { + compatible =3D "mobileye,eyeq5-clk"; + reg =3D <0x02c 0x50>, <0x11c 0x04>; + reg-names =3D "plls", "ospi"; + #clock-cells =3D <1>; + clocks =3D <&xtal>; + clock-names =3D "ref"; + }; }; =20 gic: interrupt-controller@140000 { --=20 2.43.0