From nobody Thu Feb 12 23:02:24 2026 Received: from freeshell.de (freeshell.de [116.202.128.144]) (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 DEB5E1B85CA; Thu, 2 Jan 2025 20:42:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.202.128.144 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735850537; cv=none; b=i3Zzl31V2kDDLoSuO/d1U7SFbuhgeMCgrRMVAiMwA/GoewSL/XDC1LodyMqjdmf/froMKWV6dOaLs47ExNBzqjJMnUpHgXFRfcuVR2CWRuC9DW418XAnLWj+SfJ+OO6negd7WsQV18SQXlZ4omYQRpNzmsLGgMYxMIdAGHGrBQY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735850537; c=relaxed/simple; bh=Pps2c+jDvrdC8pdFKVj5nZYhNq/vIPuVWMOWWdk0iIw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sHID00bgD45I8QsqTtwAlHjuPwG2cwGuu41b0ioAmQjGd2Jwh0kv6VqNQyvtM303hvfXZ+uSXTcMzWb4yllJVCCjaF1Y5ID8gaXQ7EJEjW3dpRmj7CkDeZ6bH19Zf23sIRGmJn3u51cV+Dz/6cjdp6ocs26cFLLDsDm2C1McPvY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de; spf=pass smtp.mailfrom=freeshell.de; arc=none smtp.client-ip=116.202.128.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freeshell.de Received: from hay.lan. (unknown [IPv6:2605:59c8:31de:bf00:6ecf:39ff:fe00:8375]) (Authenticated sender: e) by freeshell.de (Postfix) with ESMTPSA id EE03FB221E12; Thu, 2 Jan 2025 21:42:10 +0100 (CET) From: E Shattow To: Conor Dooley , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, E Shattow Subject: [RFC PATCH v1 1/3] riscv: dts: starfive: jh7110: add timer node Date: Thu, 2 Jan 2025 12:41:21 -0800 Message-ID: <20250102204137.423081-2-e@freeshell.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250102204137.423081-1-e@freeshell.de> References: <20250102204137.423081-1-e@freeshell.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" no idea if this does anything useful; not needed for boot Signed-off-by: E Shattow --- arch/riscv/boot/dts/starfive/jh7110.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts= /starfive/jh7110.dtsi index 0d8339357bad..0bc922b3ae8a 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -344,6 +344,15 @@ tdm_ext: tdm-ext-clock { #clock-cells =3D <0>; }; =20 + timer { + compatible =3D "riscv, timer"; + interrupts-extended =3D <&cpu0_intc 5>, + <&cpu1_intc 5>, + <&cpu2_intc 5>, + <&cpu3_intc 5>, + <&cpu4_intc 5>; + }; + soc { compatible =3D "simple-bus"; interrupt-parent =3D <&plic>; --=20 2.45.2 From nobody Thu Feb 12 23:02:24 2026 Received: from freeshell.de (freeshell.de [116.202.128.144]) (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 87A9C192D80; Thu, 2 Jan 2025 20:42:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.202.128.144 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735850542; cv=none; b=eoJ/JNv0zonTVT2Atybo4VN2cjAFjP0KXhsbZCrF3nAtRpgBHs3/oiGWiNvpxcjuFwA5XTKT4sqiUJQxLn3eGxEI6SfMsqj9nXgBzyEv+uN2Y4N2VM4NWzJihVKA3kCufBlPnxE+3S23I0qK4u9+dWqEQKnm3DmLqz9TniPnPuk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735850542; c=relaxed/simple; bh=jozzkGMdWxmNMtghD42Rm4kjebmORgkNVkIeu7U4wm8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AYhfuuKLegFxpDo/gBIeju+LSGAwXXwtE3KUIgQvFaub54sV1nWZ+Un/SMrE+PW9nKyDyzD6QyPD62XnXztTFgnwQR7VMy03Ax7T0wYXd2flgp2HAbMbiKstOKrH/ZkPJ+KczHrn4/BdqfoKcl2A9Ve8SS14aCAA4AVdhFl0VJ4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de; spf=pass smtp.mailfrom=freeshell.de; arc=none smtp.client-ip=116.202.128.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freeshell.de Received: from hay.lan. (unknown [IPv6:2605:59c8:31de:bf00:6ecf:39ff:fe00:8375]) (Authenticated sender: e) by freeshell.de (Postfix) with ESMTPSA id B1FF5B220C7F; Thu, 2 Jan 2025 21:42:16 +0100 (CET) From: E Shattow To: Emil Renner Berthing , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, E Shattow Subject: [RFC PATCH v1 2/3] riscv: dts: starfive: jh7110: add DRAM memory controller node Date: Thu, 2 Jan 2025 12:41:22 -0800 Message-ID: <20250102204137.423081-3-e@freeshell.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250102204137.423081-1-e@freeshell.de> References: <20250102204137.423081-1-e@freeshell.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" add DRAM memory controller node (no driver), required for U-Boot to boot successfully. Signed-off-by: E Shattow --- arch/riscv/boot/dts/starfive/jh7110.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts= /starfive/jh7110.dtsi index 0bc922b3ae8a..6948974400c1 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -381,6 +381,19 @@ ccache: cache-controller@2010000 { cache-unified; }; =20 + dmc: dmc@15700000 { + compatible =3D "starfive,jh7110-dmc"; + reg =3D <0x0 0x15700000 0x0 0x10000>, + <0x0 0x13000000 0x0 0x10000>; + resets =3D <&syscrg JH7110_SYSRST_DDR_AXI>, + <&syscrg JH7110_SYSRST_DDR_OSC>, + <&syscrg JH7110_SYSRST_DDR_APB>; + reset-names =3D "axi", "osc", "apb"; + clocks =3D <&syscrg JH7110_PLLCLK_PLL1_OUT>; + clock-names =3D "pll1_out"; + clock-frequency =3D <2133>; + }; + plic: interrupt-controller@c000000 { compatible =3D "starfive,jh7110-plic", "sifive,plic-1.0.0"; reg =3D <0x0 0xc000000 0x0 0x4000000>; --=20 2.45.2 From nobody Thu Feb 12 23:02:24 2026 Received: from freeshell.de (freeshell.de [116.202.128.144]) (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 A65581B85C5; Thu, 2 Jan 2025 20:42:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.202.128.144 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735850549; cv=none; b=GDR3nL82IABsuoxrthIL7AmVlivIXhQj0A6GSgKD6cF6FLnU/c80RrwXQzSWvq/5F17ImHhfhHr8PlUgq5PcwlRS+tZjvOxNyL7yfIy9mEB+XqXPJlRZiDU10xxFHgJ8F4LB+USiH7EtIdMpPr1mwWBHB5zkzfKOjgMBePJZJko= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735850549; c=relaxed/simple; bh=2fNyqbMZ/1javLFHnZLh8cu0ZqhvHoRvcbEkcELwjkM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EI9nee+SeUy/Jd3AyNSjLc8I8gfVKlU9mOQ7L/XvWqOygv2Io+QjkyvYtG0UvBnrhnmDgD1yMZu91+np+9WBRTCek5Hshk9+5v+kapmsP9QgFJnyyXVhqg0BwQBxXYw3U7VE8jHEZKPWwgpSYB288Gzj2ET/cKF+f721GX5K+RQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de; spf=pass smtp.mailfrom=freeshell.de; arc=none smtp.client-ip=116.202.128.144 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=freeshell.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freeshell.de Received: from hay.lan. (unknown [IPv6:2605:59c8:31de:bf00:6ecf:39ff:fe00:8375]) (Authenticated sender: e) by freeshell.de (Postfix) with ESMTPSA id C58F8B220C7F; Thu, 2 Jan 2025 21:42:22 +0100 (CET) From: E Shattow To: Emil Renner Berthing , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, E Shattow Subject: [RFC PATCH v1 3/3] riscv: dts: starfive: jh7110: bootph-pre-ram hinting needed by boot loader Date: Thu, 2 Jan 2025 12:41:23 -0800 Message-ID: <20250102204137.423081-4-e@freeshell.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20250102204137.423081-1-e@freeshell.de> References: <20250102204137.423081-1-e@freeshell.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add bootph-pre-ram hinting to jh7110.dtsi: - CPU interrupt controller(s) - timer - DRAM memory controller - oscillator - syscrg clock-controller - (optional) dma controller - (optional) aoncrg clock-controller With this the U-Boot SPL secondary program loader may drop such overrides when using dt-rebasing with JH7110 OF_UPSTREAM board targets. Signed-off-by: E Shattow --- arch/riscv/boot/dts/starfive/jh7110.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts= /starfive/jh7110.dtsi index 6948974400c1..4f19b88fe73f 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -37,6 +37,7 @@ cpu0_intc: interrupt-controller { compatible =3D "riscv,cpu-intc"; interrupt-controller; #interrupt-cells =3D <1>; + bootph-pre-ram; }; }; =20 @@ -70,6 +71,7 @@ cpu1_intc: interrupt-controller { compatible =3D "riscv,cpu-intc"; interrupt-controller; #interrupt-cells =3D <1>; + bootph-pre-ram; }; }; =20 @@ -103,6 +105,7 @@ cpu2_intc: interrupt-controller { compatible =3D "riscv,cpu-intc"; interrupt-controller; #interrupt-cells =3D <1>; + bootph-pre-ram; }; }; =20 @@ -136,6 +139,7 @@ cpu3_intc: interrupt-controller { compatible =3D "riscv,cpu-intc"; interrupt-controller; #interrupt-cells =3D <1>; + bootph-pre-ram; }; }; =20 @@ -169,6 +173,7 @@ cpu4_intc: interrupt-controller { compatible =3D "riscv,cpu-intc"; interrupt-controller; #interrupt-cells =3D <1>; + bootph-pre-ram; }; }; =20 @@ -323,6 +328,7 @@ osc: oscillator { compatible =3D "fixed-clock"; clock-output-names =3D "osc"; #clock-cells =3D <0>; + bootph-pre-ram; }; =20 rtc_osc: rtc-oscillator { @@ -368,6 +374,7 @@ clint: timer@2000000 { <&cpu2_intc 3>, <&cpu2_intc 7>, <&cpu3_intc 3>, <&cpu3_intc 7>, <&cpu4_intc 3>, <&cpu4_intc 7>; + bootph-pre-ram; }; =20 ccache: cache-controller@2010000 { @@ -382,6 +389,7 @@ ccache: cache-controller@2010000 { }; =20 dmc: dmc@15700000 { + bootph-pre-ram; compatible =3D "starfive,jh7110-dmc"; reg =3D <0x0 0x15700000 0x0 0x10000>, <0x0 0x13000000 0x0 0x10000>; @@ -916,6 +924,7 @@ syscrg: clock-controller@13020000 { "pll0_out", "pll1_out", "pll2_out"; #clock-cells =3D <1>; #reset-cells =3D <1>; + bootph-pre-ram; }; =20 sys_syscon: syscon@13030000 { @@ -1098,6 +1107,7 @@ dma: dma-controller@16050000 { snps,block-size =3D <65536 65536 65536 65536>; snps,priority =3D <0 1 2 3>; snps,axi-max-burst-len =3D <16>; + bootph-pre-ram; }; =20 aoncrg: clock-controller@17000000 { @@ -1115,6 +1125,7 @@ aoncrg: clock-controller@17000000 { "rtc_osc"; #clock-cells =3D <1>; #reset-cells =3D <1>; + bootph-pre-ram; }; =20 aon_syscon: syscon@17010000 { --=20 2.45.2