reg = <0x0 0x00000000 0x1 0x00000000>;
};
+
+ aon: aon {
+ compatible = "thead,light-aon";
+ mbox-names = "aon";
+ mboxes = <&mbox_910t 1 0>;
+ status = "disabled";
+
+ pd: light-aon-pd {
+ compatible = "thead,light-aon-pd";
+ #power-domain-cells = <1>;
+ };
+ };
+
};
&osc {
mboxes = <&mbox_910t 1 0>;
status = "okay";
+ log-memory-region = <&aon_log_mem>;
+
pd: light-aon-pd {
compatible = "thead,light-aon-pd";
#power-domain-cells = <1>;
};
};
+&resmem {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges;
+ aon_log_mem: memory@33600000 {
+ reg = <0x0 0x33600000 0x0 0x200000>;
+ };
+};
+
&padctrl1_apsys {
light-evb-padctrl1 {
/*
max-frequency = <198000000>;
status = "okay";
};
+
+&gpu {
+ status = "okay";
+};
#include <dt-bindings/clock/light-vosys.h>
#include <dt-bindings/pinctrl/light-fm-left-pinctrl.h>
#include <dt-bindings/pinctrl/light-fm-right-pinctrl.h>
+#include <dt-bindings/firmware/thead/rsrc.h>
/ {
compatible = "thead,th1520";
#address-cells = <2>;
#size-cells = <2>;
+ resmem: reserved-memory {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges;
+
+ /* global autoconfigured region for contiguous allocations */
+ cmamem: linux,cma {
+ compatible = "shared-dma-pool";
+ reusable;
+ size = <0 0x14000000>; // 320MB by default
+ alloc-ranges = <0 0x64000000 0 0x14000000>; // [0x6400_0000 ~ 0x7800_0000]
+ linux,cma-default;
+ };
+ };
+
+
cpus: cpus {
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};
+ gpu: gpu@ffef400000 {
+ compatible = "img,gpu";
+ reg = <0xff 0xef400000 0x0 0x100000>;
+ interrupt-parent = <&plic>;
+ interrupts = <102 IRQ_TYPE_LEVEL_HIGH>;
+ interrupt-names = "gpuirq";
+ vosys-regmap = <&vosys_reg>;
+ power-domains = <&pd LIGHT_AON_GPU_PD>;
+ clocks = <&vosys_clk_gate LIGHT_CLKGEN_GPU_CORE_CLK>,
+ <&vosys_clk_gate LIGHT_CLKGEN_GPU_CFG_ACLK>;
+ clock-names = "cclk", "aclk";
+ gpu_clk_rate = <18000000>;
+ dma-mask = <0xf 0xffffffff>;
+ status = "disabled";
+ };
+
stmmac_axi_setup: stmmac-axi-config {
snps,wr_osr_lmt = <3>;
snps,rd_osr_lmt = <3>;