xref: /freebsd/sys/contrib/device-tree/src/arm/hisilicon/sd5203.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (c) 2020 HiSilicon Limited.
4*f126890aSEmmanuel Vadot *
5*f126890aSEmmanuel Vadot * DTS file for Hisilicon SD5203 Board
6*f126890aSEmmanuel Vadot */
7*f126890aSEmmanuel Vadot
8*f126890aSEmmanuel Vadot/dts-v1/;
9*f126890aSEmmanuel Vadot
10*f126890aSEmmanuel Vadot/ {
11*f126890aSEmmanuel Vadot	model = "Hisilicon SD5203";
12*f126890aSEmmanuel Vadot	compatible = "H836ASDJ", "hisilicon,sd5203";
13*f126890aSEmmanuel Vadot	interrupt-parent = <&vic>;
14*f126890aSEmmanuel Vadot	#address-cells = <1>;
15*f126890aSEmmanuel Vadot	#size-cells = <1>;
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadot	chosen {
18*f126890aSEmmanuel Vadot		bootargs = "console=ttyS0,9600 earlycon=uart8250,mmio32,0x1600d000";
19*f126890aSEmmanuel Vadot	};
20*f126890aSEmmanuel Vadot
21*f126890aSEmmanuel Vadot	aliases {
22*f126890aSEmmanuel Vadot		serial0 = &uart0;
23*f126890aSEmmanuel Vadot	};
24*f126890aSEmmanuel Vadot
25*f126890aSEmmanuel Vadot	cpus {
26*f126890aSEmmanuel Vadot		#address-cells = <1>;
27*f126890aSEmmanuel Vadot		#size-cells = <0>;
28*f126890aSEmmanuel Vadot
29*f126890aSEmmanuel Vadot		cpu0 {
30*f126890aSEmmanuel Vadot			device_type = "cpu";
31*f126890aSEmmanuel Vadot			compatible = "arm,arm926ej-s";
32*f126890aSEmmanuel Vadot			reg = <0x0>;
33*f126890aSEmmanuel Vadot		};
34*f126890aSEmmanuel Vadot	};
35*f126890aSEmmanuel Vadot
36*f126890aSEmmanuel Vadot	memory@30000000 {
37*f126890aSEmmanuel Vadot		device_type = "memory";
38*f126890aSEmmanuel Vadot		reg = <0x30000000 0x8000000>;
39*f126890aSEmmanuel Vadot	};
40*f126890aSEmmanuel Vadot
41*f126890aSEmmanuel Vadot	soc {
42*f126890aSEmmanuel Vadot		#address-cells = <1>;
43*f126890aSEmmanuel Vadot		#size-cells = <1>;
44*f126890aSEmmanuel Vadot		compatible = "simple-bus";
45*f126890aSEmmanuel Vadot		ranges;
46*f126890aSEmmanuel Vadot
47*f126890aSEmmanuel Vadot		vic: interrupt-controller@10130000 {
48*f126890aSEmmanuel Vadot			compatible = "snps,dw-apb-ictl";
49*f126890aSEmmanuel Vadot			reg = <0x10130000 0x1000>;
50*f126890aSEmmanuel Vadot			interrupt-controller;
51*f126890aSEmmanuel Vadot			#interrupt-cells = <1>;
52*f126890aSEmmanuel Vadot		};
53*f126890aSEmmanuel Vadot
54*f126890aSEmmanuel Vadot		refclk125mhz: refclk125mhz {
55*f126890aSEmmanuel Vadot			compatible = "fixed-clock";
56*f126890aSEmmanuel Vadot			#clock-cells = <0>;
57*f126890aSEmmanuel Vadot			clock-frequency = <125000000>;
58*f126890aSEmmanuel Vadot		};
59*f126890aSEmmanuel Vadot
60*f126890aSEmmanuel Vadot		timer0: timer@16002000 {
61*f126890aSEmmanuel Vadot			compatible = "arm,sp804", "arm,primecell";
62*f126890aSEmmanuel Vadot			reg = <0x16002000 0x1000>;
63*f126890aSEmmanuel Vadot			interrupts = <4>;
64*f126890aSEmmanuel Vadot			clocks = <&refclk125mhz>;
65*f126890aSEmmanuel Vadot			clock-names = "apb_pclk";
66*f126890aSEmmanuel Vadot		};
67*f126890aSEmmanuel Vadot
68*f126890aSEmmanuel Vadot		timer1: timer@16003000 {
69*f126890aSEmmanuel Vadot			compatible = "arm,sp804", "arm,primecell";
70*f126890aSEmmanuel Vadot			reg = <0x16003000 0x1000>;
71*f126890aSEmmanuel Vadot			interrupts = <5>;
72*f126890aSEmmanuel Vadot			clocks = <&refclk125mhz>;
73*f126890aSEmmanuel Vadot			clock-names = "apb_pclk";
74*f126890aSEmmanuel Vadot		};
75*f126890aSEmmanuel Vadot
76*f126890aSEmmanuel Vadot		uart0: serial@1600d000 {
77*f126890aSEmmanuel Vadot			compatible = "snps,dw-apb-uart";
78*f126890aSEmmanuel Vadot			reg = <0x1600d000 0x1000>;
79*f126890aSEmmanuel Vadot			bus_id = "uart0";
80*f126890aSEmmanuel Vadot			clocks = <&refclk125mhz>;
81*f126890aSEmmanuel Vadot			clock-names = "baudclk", "apb_pclk";
82*f126890aSEmmanuel Vadot			reg-shift = <2>;
83*f126890aSEmmanuel Vadot			interrupts = <17>;
84*f126890aSEmmanuel Vadot		};
85*f126890aSEmmanuel Vadot
86*f126890aSEmmanuel Vadot		uart1: serial@1600c000 {
87*f126890aSEmmanuel Vadot			compatible = "snps,dw-apb-uart";
88*f126890aSEmmanuel Vadot			reg = <0x1600c000 0x1000>;
89*f126890aSEmmanuel Vadot			clocks = <&refclk125mhz>;
90*f126890aSEmmanuel Vadot			clock-names = "baudclk", "apb_pclk";
91*f126890aSEmmanuel Vadot			reg-shift = <2>;
92*f126890aSEmmanuel Vadot			interrupts = <16>;
93*f126890aSEmmanuel Vadot			status = "disabled";
94*f126890aSEmmanuel Vadot		};
95*f126890aSEmmanuel Vadot	};
96*f126890aSEmmanuel Vadot};
97