From d55fbd25f95201a492b0a320432b39d7a66f6b87 Mon Sep 17 00:00:00 2001 From: Michal Wilczynski Date: Mon, 14 Oct 2024 10:34:28 +0200 Subject: riscv: dts: thead: Enable light_event and dependent nodes Light event device tree node is required for the 'reboot' feature to work, as the driver function gets called by the watchdog. Enable it in the device tree to get the driver initialized properly. Add aon_iram dependent node as well. Ported from vendor kernel [1]. [1] https://gitee.com/thead-yocto/kernel.git Change-Id: Id77c4901a2a77146d0f26e31769221a1cf5ca853 Signed-off-by: Michal Wilczynski --- arch/riscv/boot/dts/thead/th1520.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/riscv/boot/dts/thead/th1520.dtsi b/arch/riscv/boot/dts/thead/th1520.dtsi index f8b217eb9e23..0f30927fc7a4 100644 --- a/arch/riscv/boot/dts/thead/th1520.dtsi +++ b/arch/riscv/boot/dts/thead/th1520.dtsi @@ -32,6 +32,10 @@ }; }; + aon_iram: aon-iram@ffffef8000 { + compatible = "syscon"; + reg = <0xff 0xffef8000 0x0 0x10000>; + }; cpus: cpus { #address-cells = <1>; @@ -1164,5 +1168,11 @@ status = "okay"; }; }; + + light_event: light-event { + compatible = "thead,light-event"; + aon-iram-regmap = <&aon_iram>; + status = "okay"; + }; }; }; -- cgit v1.2.3