riscv: dts: thead: Enable light_event and dependent nodes 57/319057/1
authorMichal Wilczynski <m.wilczynski@samsung.com>
Mon, 14 Oct 2024 08:34:28 +0000 (10:34 +0200)
committerMichal Wilczynski <m.wilczynski@samsung.com>
Mon, 14 Oct 2024 08:48:28 +0000 (10:48 +0200)
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 <m.wilczynski@samsung.com>
arch/riscv/boot/dts/thead/th1520.dtsi

index f8b217eb9e23448ad174b0398b240699d4d46d75..0f30927fc7a4090dcfd99d211ce865083245de17 100644 (file)
                };
        };
 
+       aon_iram: aon-iram@ffffef8000 {
+            compatible = "syscon";
+            reg = <0xff 0xffef8000 0x0 0x10000>;
+       };
 
        cpus: cpus {
                #address-cells = <1>;
                                status = "okay";
                        };
                };
+
+               light_event: light-event {
+                       compatible = "thead,light-event";
+                       aon-iram-regmap = <&aon_iram>;
+                       status = "okay";
+               };
        };
 };