From nobody Mon Nov 25 02:37:37 2024 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) (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 6B4B41BBBFE; Thu, 31 Oct 2024 15:53:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730389992; cv=none; b=OO9j16r/jYInLI4y7nIEnKeDNWLtN+jWPXrmLwR2kzQMpMHuTqNLBDYMep+Gs3XTOS/fraW64bgUH7E3xfZKy+/Ho0feD77gMpLqU/FdGoIEp/zfwiheaD+2OcVKfJUSPZw/DQRvVWSsuz5NUYStDrI7r9HfbyLKe/PlLX9REww= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730389992; c=relaxed/simple; bh=164AvxpBW24lmZ5bza1gILy+9Z0x/iue+c4IgUxIOFc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZqbSMXuHvadY5RuZiMDupQhVqlLswsyrT2xBQUJN4qqonLtQsRFGlS2ysKL1yBrAQ6+BZNnynu0SlaPEAWWctYSwklaIW+xaitKWBaVFhaW+zZr6DGzznlKmtdP3jdQDacDIvrwUka4bK6ls1Vp9a1G3eRhkReGs/bFfVF0kSDo= 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=WatHdMoG; arc=none smtp.client-ip=217.70.183.197 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="WatHdMoG" Received: by mail.gandi.net (Postfix) with ESMTPSA id 868D11C0013; Thu, 31 Oct 2024 15:53:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1730389985; 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=dNYxA9PoraKNMZJ+/mQFXcEzKQ9APotFg7LB3yegiRc=; b=WatHdMoGNqWDyT/YrFtn7rOlSUilSNy5U+dCRtVlZRDIbiPA4b7hUWRI/86ILF5JCnoNMo gJ4VINXBS2wQkX25w5B5QInCoVztSEM5hwATAPXy6pS6UvT9Nw2dtE0yWOX3wDQl7dXnZL lA+R7fddw/Zwv80mJntbVLeU/X8HfgiJ91vB9X9lO8oVBD1fQ6cndjBqJMeuwhaiL317S6 L0BK2fF9yKHJk/K+GGfrWm/H+WGssUJ/KTt0aqmj4VWm0ia0vJqBAGl6dtQR+BPrPdH8x4 mSWtZmz7QnLQ9k2/MzS2KG7xApWFiuB4rSBcbAsqMMiWqjCCYzcPdWoxxFM6eA== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Thu, 31 Oct 2024 16:53:03 +0100 Subject: [PATCH 13/13] MIPS: mobileye: eyeq6h: add OLB nodes OLB and remove fixed clocks 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: <20241031-mbly-clk-v1-13-89d8b28e3006@bootlin.com> References: <20241031-mbly-clk-v1-0-89d8b28e3006@bootlin.com> In-Reply-To: <20241031-mbly-clk-v1-0-89d8b28e3006@bootlin.com> To: Vladimir Kondratiev , =?utf-8?q?Gr=C3=A9gory_Clement?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Thomas Petazzoni , Tawfik Bayouk , =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: b4 0.14.2 X-GND-Sasl: theo.lebrun@bootlin.com Change the declaration of clocks: remove all fixed clocks and declare system-controllers (OLB) as clock providers. Remove eyeq6h-fixed-clocks.dtsi and move the crystal clock to the main eyeq6h.dtsi file. Signed-off-by: Th=C3=A9o Lebrun --- .../boot/dts/mobileye/eyeq6h-fixed-clocks.dtsi | 52 --------------- arch/mips/boot/dts/mobileye/eyeq6h.dtsi | 73 ++++++++++++++++++= ++-- 2 files changed, 69 insertions(+), 56 deletions(-) diff --git a/arch/mips/boot/dts/mobileye/eyeq6h-fixed-clocks.dtsi b/arch/mi= ps/boot/dts/mobileye/eyeq6h-fixed-clocks.dtsi deleted file mode 100644 index 5fa99e06fde7e8f4942aafe5f6064e2c6f7d83fd..000000000000000000000000000= 0000000000000 --- a/arch/mips/boot/dts/mobileye/eyeq6h-fixed-clocks.dtsi +++ /dev/null @@ -1,52 +0,0 @@ -// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) -/* - * Copyright 2023 Mobileye Vision Technologies Ltd. - */ - -#include - -/ { - xtal: clock-30000000 { - compatible =3D "fixed-clock"; - #clock-cells =3D <0>; - clock-frequency =3D <30000000>; - }; - - pll_west: clock-2000000000-west { - compatible =3D "fixed-clock"; - #clock-cells =3D <0>; - clock-frequency =3D <2000000000>; - }; - - pll_cpu: clock-2000000000-cpu { - compatible =3D "fixed-clock"; - #clock-cells =3D <0>; - clock-frequency =3D <2000000000>; - }; - - /* pll-cpu derivatives */ - occ_cpu: clock-2000000000-occ-cpu { - compatible =3D "fixed-factor-clock"; - clocks =3D <&pll_cpu>; - #clock-cells =3D <0>; - clock-div =3D <1>; - clock-mult =3D <1>; - }; - - /* pll-west derivatives */ - occ_periph_w: clock-200000000 { - compatible =3D "fixed-factor-clock"; - clocks =3D <&pll_west>; - #clock-cells =3D <0>; - clock-div =3D <10>; - clock-mult =3D <1>; - }; - uart_clk: clock-200000000-uart { - compatible =3D "fixed-factor-clock"; - clocks =3D <&occ_periph_w>; - #clock-cells =3D <0>; - clock-div =3D <1>; - clock-mult =3D <1>; - }; - -}; diff --git a/arch/mips/boot/dts/mobileye/eyeq6h.dtsi b/arch/mips/boot/dts/m= obileye/eyeq6h.dtsi index 1db3c3cda2e395025075387bcb66ea0737fd37f6..4a1a43f351d39625b520a16d035= cacd2e29d157c 100644 --- a/arch/mips/boot/dts/mobileye/eyeq6h.dtsi +++ b/arch/mips/boot/dts/mobileye/eyeq6h.dtsi @@ -5,7 +5,7 @@ =20 #include =20 -#include "eyeq6h-fixed-clocks.dtsi" +#include =20 / { #address-cells =3D <2>; @@ -17,7 +17,7 @@ cpu@0 { device_type =3D "cpu"; compatible =3D "img,i6500"; reg =3D <0>; - clocks =3D <&occ_cpu>; + clocks =3D <&olb_central EQ6HC_CENTRAL_CPU_OCC>; }; }; =20 @@ -32,19 +32,42 @@ cpu_intc: interrupt-controller { #interrupt-cells =3D <1>; }; =20 + xtal: clock-30000000 { + compatible =3D "fixed-clock"; + #clock-cells =3D <0>; + clock-frequency =3D <30000000>; + }; + soc: soc { compatible =3D "simple-bus"; #address-cells =3D <2>; #size-cells =3D <2>; ranges; =20 + olb_acc: system-controller@d2003000 { + compatible =3D "mobileye,eyeq6h-acc-olb", "syscon"; + reg =3D <0x0 0xd2003000 0x0 0x1000>; + #reset-cells =3D <1>; + #clock-cells =3D <1>; + clocks =3D <&xtal>; + clock-names =3D "ref"; + }; + + olb_central: system-controller@d3100000 { + compatible =3D "mobileye,eyeq6h-central-olb", "syscon"; + reg =3D <0x0 0xd3100000 0x0 0x1000>; + #clock-cells =3D <1>; + clocks =3D <&xtal>; + clock-names =3D "ref"; + }; + uart0: serial@d3331000 { compatible =3D "arm,pl011", "arm,primecell"; reg =3D <0 0xd3331000 0x0 0x1000>; reg-io-width =3D <4>; interrupt-parent =3D <&gic>; interrupts =3D ; - clocks =3D <&occ_periph_w>, <&occ_periph_w>; + clocks =3D <&olb_west EQ6HC_WEST_PER_UART>, <&olb_west EQ6HC_WEST_PER_O= CC>; clock-names =3D "uartclk", "apb_pclk"; }; =20 @@ -56,6 +79,15 @@ pinctrl_west: pinctrl@d3337000 { pinctrl-single,function-mask =3D <0xffff>; }; =20 + olb_west: system-controller@d3338000 { + compatible =3D "mobileye,eyeq6h-west-olb", "syscon"; + reg =3D <0x0 0xd3338000 0x0 0x1000>; + #reset-cells =3D <1>; + #clock-cells =3D <1>; + clocks =3D <&xtal>; + clock-names =3D "ref"; + }; + pinctrl_east: pinctrl@d3357000 { compatible =3D "pinctrl-single"; reg =3D <0x0 0xd3357000 0x0 0xb0>; @@ -64,6 +96,23 @@ pinctrl_east: pinctrl@d3357000 { pinctrl-single,function-mask =3D <0xffff>; }; =20 + olb_east: system-controller@d3358000 { + compatible =3D "mobileye,eyeq6h-east-olb", "syscon"; + reg =3D <0x0 0xd3358000 0x0 0x1000>; + #reset-cells =3D <1>; + #clock-cells =3D <1>; + clocks =3D <&xtal>; + clock-names =3D "ref"; + }; + + olb_south: system-controller@d8013000 { + compatible =3D "mobileye,eyeq6h-south-olb", "syscon"; + reg =3D <0x0 0xd8013000 0x0 0x1000>; + #clock-cells =3D <1>; + clocks =3D <&xtal>; + clock-names =3D "ref"; + }; + pinctrl_south: pinctrl@d8014000 { compatible =3D "pinctrl-single"; reg =3D <0x0 0xd8014000 0x0 0xf8>; @@ -72,6 +121,22 @@ pinctrl_south: pinctrl@d8014000 { pinctrl-single,function-mask =3D <0xffff>; }; =20 + olb_ddr0: system-controller@e4080000 { + compatible =3D "mobileye,eyeq6h-ddr0-olb", "syscon"; + reg =3D <0x0 0xe4080000 0x0 0x1000>; + #clock-cells =3D <1>; + clocks =3D <&xtal>; + clock-names =3D "ref"; + }; + + olb_ddr1: system-controller@e4081000 { + compatible =3D "mobileye,eyeq6h-ddr1-olb", "syscon"; + reg =3D <0x0 0xe4081000 0x0 0x1000>; + #clock-cells =3D <1>; + clocks =3D <&xtal>; + clock-names =3D "ref"; + }; + gic: interrupt-controller@f0920000 { compatible =3D "mti,gic"; reg =3D <0x0 0xf0920000 0x0 0x20000>; @@ -89,7 +154,7 @@ gic: interrupt-controller@f0920000 { timer { compatible =3D "mti,gic-timer"; interrupts =3D ; - clocks =3D <&occ_cpu>; + clocks =3D <&olb_central EQ6HC_CENTRAL_CPU_OCC>; }; }; }; --=20 2.47.0