1*4fef0565SLucas Tanure// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2*4fef0565SLucas Tanure/*
3*4fef0565SLucas Tanure * Copyright (c) 2022 Wesion, Inc. All rights reserved.
4*4fef0565SLucas Tanure */
5*4fef0565SLucas Tanure
6*4fef0565SLucas Tanure/dts-v1/;
7*4fef0565SLucas Tanure
8*4fef0565SLucas Tanure#include "amlogic-t7.dtsi"
9*4fef0565SLucas Tanure
10*4fef0565SLucas Tanure/ {
11*4fef0565SLucas Tanure	model = "Khadas vim4";
12*4fef0565SLucas Tanure	compatible = "khadas,vim4", "amlogic,a311d2", "amlogic,t7";
13*4fef0565SLucas Tanure
14*4fef0565SLucas Tanure	aliases {
15*4fef0565SLucas Tanure		serial0 = &uart_a;
16*4fef0565SLucas Tanure	};
17*4fef0565SLucas Tanure
18*4fef0565SLucas Tanure	memory@0 {
19*4fef0565SLucas Tanure		device_type = "memory";
20*4fef0565SLucas Tanure		reg = <0x0 0x0 0x2 0x0>; /* 8 GB */
21*4fef0565SLucas Tanure	};
22*4fef0565SLucas Tanure
23*4fef0565SLucas Tanure	reserved-memory {
24*4fef0565SLucas Tanure		#address-cells = <2>;
25*4fef0565SLucas Tanure		#size-cells = <2>;
26*4fef0565SLucas Tanure		ranges;
27*4fef0565SLucas Tanure
28*4fef0565SLucas Tanure		/* 3 MiB reserved for ARM Trusted Firmware (BL31) */
29*4fef0565SLucas Tanure		secmon_reserved: secmon@5000000 {
30*4fef0565SLucas Tanure			reg = <0x0 0x05000000 0x0 0x300000>;
31*4fef0565SLucas Tanure			no-map;
32*4fef0565SLucas Tanure		};
33*4fef0565SLucas Tanure
34*4fef0565SLucas Tanure		/* 32 MiB reserved for ARM Trusted Firmware (BL32) */
35*4fef0565SLucas Tanure		secmon_reserved_bl32: secmon@5300000 {
36*4fef0565SLucas Tanure			reg = <0x0 0x05300000 0x0 0x2000000>;
37*4fef0565SLucas Tanure			no-map;
38*4fef0565SLucas Tanure		};
39*4fef0565SLucas Tanure	};
40*4fef0565SLucas Tanure
41*4fef0565SLucas Tanure	xtal: xtal-clk {
42*4fef0565SLucas Tanure		compatible = "fixed-clock";
43*4fef0565SLucas Tanure		clock-frequency = <24000000>;
44*4fef0565SLucas Tanure		clock-output-names = "xtal";
45*4fef0565SLucas Tanure		#clock-cells = <0>;
46*4fef0565SLucas Tanure	};
47*4fef0565SLucas Tanure
48*4fef0565SLucas Tanure};
49*4fef0565SLucas Tanure
50*4fef0565SLucas Tanure&uart_a {
51*4fef0565SLucas Tanure	status = "okay";
52*4fef0565SLucas Tanure	clocks = <&xtal>, <&xtal>, <&xtal>;
53*4fef0565SLucas Tanure	clock-names = "xtal", "pclk", "baud";
54*4fef0565SLucas Tanure};
55