xref: /freebsd/sys/contrib/device-tree/src/arm64/nuvoton/ma35d1-iot-512m.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-IoT";
13f126890aSEmmanuel Vadot	compatible = "nuvoton,ma35d1-iot", "nuvoton,ma35d1";
14f126890aSEmmanuel Vadot
15f126890aSEmmanuel Vadot	aliases {
16f126890aSEmmanuel Vadot		serial0 = &uart0;
17*b2d2a78aSEmmanuel Vadot		serial10 = &uart10;
18*b2d2a78aSEmmanuel Vadot		serial12 = &uart12;
19*b2d2a78aSEmmanuel Vadot		serial13 = &uart13;
20*b2d2a78aSEmmanuel Vadot		serial14 = &uart14;
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 0x20000000>; /* 512M 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_uart10: uart10-pins {
68*b2d2a78aSEmmanuel Vadot			nuvoton,pins = <7 4 2>,
69*b2d2a78aSEmmanuel Vadot				       <7 5 2>,
70*b2d2a78aSEmmanuel Vadot				       <7 6 2>,
71*b2d2a78aSEmmanuel Vadot				       <7 7 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 = <2 13 2>,
78*b2d2a78aSEmmanuel Vadot				       <2 14 2>,
79*b2d2a78aSEmmanuel Vadot				       <2 15 2>;
80*b2d2a78aSEmmanuel Vadot			bias-disable;
81*b2d2a78aSEmmanuel Vadot			power-source = <1>;
82*b2d2a78aSEmmanuel Vadot		};
83*b2d2a78aSEmmanuel Vadot
84*b2d2a78aSEmmanuel Vadot		pinctrl_uart13: uart13-pins {
85*b2d2a78aSEmmanuel Vadot			nuvoton,pins = <7 12 3>,
86*b2d2a78aSEmmanuel Vadot				       <7 13 3>;
87*b2d2a78aSEmmanuel Vadot			bias-disable;
88*b2d2a78aSEmmanuel Vadot			power-source = <1>;
89*b2d2a78aSEmmanuel Vadot		};
90*b2d2a78aSEmmanuel Vadot
91*b2d2a78aSEmmanuel Vadot		pinctrl_uart14: uart14-pins {
92*b2d2a78aSEmmanuel Vadot			nuvoton,pins = <7 14 2>,
93*b2d2a78aSEmmanuel Vadot				       <7 15 2>;
94*b2d2a78aSEmmanuel Vadot			bias-disable;
95*b2d2a78aSEmmanuel Vadot			power-source = <1>;
96*b2d2a78aSEmmanuel Vadot		};
97*b2d2a78aSEmmanuel Vadot	};
98*b2d2a78aSEmmanuel Vadot};
99*b2d2a78aSEmmanuel Vadot
100*b2d2a78aSEmmanuel Vadot&uart0 {
101*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
102*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart0>;
103*b2d2a78aSEmmanuel Vadot	status = "okay";
104*b2d2a78aSEmmanuel Vadot};
105*b2d2a78aSEmmanuel Vadot
106*b2d2a78aSEmmanuel Vadot&uart10 {
107*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
108*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart10>;
109*b2d2a78aSEmmanuel Vadot	status = "okay";
110*b2d2a78aSEmmanuel Vadot};
111*b2d2a78aSEmmanuel Vadot
112*b2d2a78aSEmmanuel Vadot&uart12 {
113*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
114*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart12>;
115*b2d2a78aSEmmanuel Vadot	status = "okay";
116*b2d2a78aSEmmanuel Vadot};
117*b2d2a78aSEmmanuel Vadot
118*b2d2a78aSEmmanuel Vadot&uart13 {
119*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
120*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart13>;
121*b2d2a78aSEmmanuel Vadot	status = "okay";
122*b2d2a78aSEmmanuel Vadot};
123*b2d2a78aSEmmanuel Vadot
124*b2d2a78aSEmmanuel Vadot&uart14 {
125*b2d2a78aSEmmanuel Vadot	pinctrl-names = "default";
126*b2d2a78aSEmmanuel Vadot	pinctrl-0 = <&pinctrl_uart14>;
127*b2d2a78aSEmmanuel Vadot	status = "okay";
128*b2d2a78aSEmmanuel Vadot};
129