xref: /freebsd/sys/contrib/device-tree/src/arm64/nuvoton/ma35d1-som-256m.dts (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright (C) 2023 Nuvoton Technology Corp.
4f126890aSEmmanuel Vadot * Author: Shan-Chun Hung <schung@nuvoton.com>
5f126890aSEmmanuel Vadot *         Jacky huang <ychuang3@nuvoton.com>
6f126890aSEmmanuel Vadot */
7f126890aSEmmanuel Vadot
8f126890aSEmmanuel Vadot/dts-v1/;
9f126890aSEmmanuel Vadot#include "ma35d1.dtsi"
10f126890aSEmmanuel Vadot
11f126890aSEmmanuel Vadot/ {
12f126890aSEmmanuel Vadot	model = "Nuvoton MA35D1-SOM";
13f126890aSEmmanuel Vadot	compatible = "nuvoton,ma35d1-som", "nuvoton,ma35d1";
14f126890aSEmmanuel Vadot
15f126890aSEmmanuel Vadot	aliases {
16f126890aSEmmanuel Vadot		serial0 = &uart0;
17*b2d2a78aSEmmanuel Vadot		serial11 = &uart11;
18*b2d2a78aSEmmanuel Vadot		serial12 = &uart12;
19*b2d2a78aSEmmanuel Vadot		serial14 = &uart14;
20*b2d2a78aSEmmanuel Vadot		serial16 = &uart16;
21f126890aSEmmanuel Vadot	};
22f126890aSEmmanuel Vadot
23f126890aSEmmanuel Vadot	chosen {
24f126890aSEmmanuel Vadot		stdout-path = "serial0:115200n8";
25f126890aSEmmanuel Vadot	};
26f126890aSEmmanuel Vadot
27f126890aSEmmanuel Vadot	mem: memory@80000000 {
28f126890aSEmmanuel Vadot		device_type = "memory";
29f126890aSEmmanuel Vadot		reg = <0x00000000 0x80000000 0 0x10000000>; /* 256M DRAM */
30f126890aSEmmanuel Vadot	};
31f126890aSEmmanuel Vadot
32f126890aSEmmanuel Vadot	clk_hxt: clock-hxt {
33f126890aSEmmanuel Vadot		compatible = "fixed-clock";
34f126890aSEmmanuel Vadot		#clock-cells = <0>;
35f126890aSEmmanuel Vadot		clock-frequency = <24000000>;
36f126890aSEmmanuel Vadot		clock-output-names = "clk_hxt";
37f126890aSEmmanuel Vadot	};
38f126890aSEmmanuel Vadot};
39f126890aSEmmanuel Vadot
40f126890aSEmmanuel Vadot&clk {
41f126890aSEmmanuel Vadot	assigned-clocks = <&clk CAPLL>,
42f126890aSEmmanuel Vadot			  <&clk DDRPLL>,
43f126890aSEmmanuel Vadot			  <&clk APLL>,
44f126890aSEmmanuel Vadot			  <&clk EPLL>,
45f126890aSEmmanuel Vadot			  <&clk VPLL>;
46f126890aSEmmanuel Vadot	assigned-clock-rates = <800000000>,
47f126890aSEmmanuel Vadot			       <266000000>,
48f126890aSEmmanuel Vadot			       <180000000>,
49f126890aSEmmanuel Vadot			       <500000000>,
50f126890aSEmmanuel Vadot			       <102000000>;
51f126890aSEmmanuel Vadot	nuvoton,pll-mode = "integer",
52f126890aSEmmanuel Vadot			   "fractional",
53f126890aSEmmanuel Vadot			   "integer",
54f126890aSEmmanuel Vadot			   "integer",
55f126890aSEmmanuel Vadot			   "integer";
56f126890aSEmmanuel Vadot};
57*b2d2a78aSEmmanuel Vadot
58*b2d2a78aSEmmanuel Vadot&pinctrl {
59*b2d2a78aSEmmanuel Vadot	uart-grp {
60*b2d2a78aSEmmanuel Vadot		pinctrl_uart0: uart0-pins {
61*b2d2a78aSEmmanuel Vadot			nuvoton,pins = <4 14 1>,
62*b2d2a78aSEmmanuel Vadot				       <4 15 1>;
63*b2d2a78aSEmmanuel Vadot			bias-disable;
64*b2d2a78aSEmmanuel Vadot			power-source = <1>;
65*b2d2a78aSEmmanuel Vadot		};
66*b2d2a78aSEmmanuel Vadot
67*b2d2a78aSEmmanuel Vadot		pinctrl_uart11: uart11-pins {
68*b2d2a78aSEmmanuel Vadot			nuvoton,pins = <11 0 2>,
69*b2d2a78aSEmmanuel Vadot				       <11 1 2>,
70*b2d2a78aSEmmanuel Vadot				       <11 2 2>,
71*b2d2a78aSEmmanuel Vadot				       <11 3 2>;
72*b2d2a78aSEmmanuel Vadot			bias-disable;
73*b2d2a78aSEmmanuel Vadot			power-source = <1>;
74*b2d2a78aSEmmanuel Vadot		};
75*b2d2a78aSEmmanuel Vadot
76*b2d2a78aSEmmanuel Vadot		pinctrl_uart12: uart12-pins {
77*b2d2a78aSEmmanuel Vadot			nuvoton,pins = <8 1 2>,
78*b2d2a78aSEmmanuel Vadot				       <8 2 2>,
79*b2d2a78aSEmmanuel Vadot				       <8 3 2>;
80*b2d2a78aSEmmanuel Vadot			bias-disable;
81*b2d2a78aSEmmanuel Vadot			power-source = <1>;
82*b2d2a78aSEmmanuel Vadot		};
83*b2d2a78aSEmmanuel Vadot
84*b2d2a78aSEmmanuel Vadot		pinctrl_uart14: uart14-pins {
85*b2d2a78aSEmmanuel Vadot			nuvoton,pins = <8 5 2>,
86*b2d2a78aSEmmanuel Vadot				       <8 6 2>,
87*b2d2a78aSEmmanuel Vadot				       <8 7 2>;
88*b2d2a78aSEmmanuel Vadot			bias-disable;
89*b2d2a78aSEmmanuel Vadot			power-source = <1>;
90*b2d2a78aSEmmanuel Vadot		};
91*b2d2a78aSEmmanuel Vadot
92*b2d2a78aSEmmanuel Vadot		pinctrl_uart16: uart16-pins {
93*b2d2a78aSEmmanuel Vadot			nuvoton,pins = <10 0 2>,
94*b2d2a78aSEmmanuel Vadot				       <10 1 2>,
95*b2d2a78aSEmmanuel Vadot				       <10 2 2>,
96*b2d2a78aSEmmanuel Vadot				       <10 3 2>;
97*b2d2a78aSEmmanuel Vadot			bias-disable;
98*b2d2a78aSEmmanuel Vadot			power-source = <1>;
99*b2d2a78aSEmmanuel Vadot		};
100*b2d2a78aSEmmanuel Vadot	};
101*b2d2a78aSEmmanuel Vadot};
102*b2d2a78aSEmmanuel Vadot
103*b2d2a78aSEmmanuel Vadot&uart0 {
104*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
105*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart0>;
106*b2d2a78aSEmmanuel Vadot	status = "okay";
107*b2d2a78aSEmmanuel Vadot};
108*b2d2a78aSEmmanuel Vadot
109*b2d2a78aSEmmanuel Vadot&uart11 {
110*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
111*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart11>;
112*b2d2a78aSEmmanuel Vadot	status = "okay";
113*b2d2a78aSEmmanuel Vadot};
114*b2d2a78aSEmmanuel Vadot
115*b2d2a78aSEmmanuel Vadot&uart12 {
116*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
117*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart12>;
118*b2d2a78aSEmmanuel Vadot	status = "okay";
119*b2d2a78aSEmmanuel Vadot};
120*b2d2a78aSEmmanuel Vadot
121*b2d2a78aSEmmanuel Vadot&uart14 {
122*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
123*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart14>;
124*b2d2a78aSEmmanuel Vadot	status = "okay";
125*b2d2a78aSEmmanuel Vadot};
126*b2d2a78aSEmmanuel Vadot
127*b2d2a78aSEmmanuel Vadot&uart16 {
128*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
129*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart16>;
130*b2d2a78aSEmmanuel Vadot	status = "okay";
131*b2d2a78aSEmmanuel Vadot};
132