From: Michal Wilczynski Date: Mon, 14 Oct 2024 08:34:28 +0000 (+0200) Subject: riscv: dts: thead: Enable light_event and dependent nodes X-Git-Tag: accepted/tizen/unified/x/20241017.075855~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d55fbd25f95201a492b0a320432b39d7a66f6b87;p=platform%2Fkernel%2Flinux-thead.git 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 --- 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"; + }; }; };