xref: /linux/arch/riscv/boot/dts/thead/th1520-lichee-pi-4a.dts (revision d7252a0731ac6dd515e04e1f72e9247d6ded3492)
1// SPDX-License-Identifier: (GPL-2.0 OR MIT)
2/*
3 * Copyright (C) 2023 Jisheng Zhang <jszhang@kernel.org>
4 */
5
6#include "th1520-lichee-module-4a.dtsi"
7
8/ {
9	model = "Sipeed Lichee Pi 4A";
10	compatible = "sipeed,lichee-pi-4a", "sipeed,lichee-module-4a", "thead,th1520";
11
12	aliases {
13		gpio0 = &gpio0;
14		gpio1 = &gpio1;
15		gpio2 = &gpio2;
16		gpio3 = &gpio3;
17		gpio4 = &gpio4;
18		gpio5 = &aogpio;
19		serial0 = &uart0;
20		serial1 = &uart1;
21		serial2 = &uart2;
22		serial3 = &uart3;
23		serial4 = &uart4;
24		serial5 = &uart5;
25		spi0 = &spi0;
26	};
27
28	chosen {
29		stdout-path = "serial0:115200n8";
30	};
31};
32
33&padctrl0_apsys {
34	uart0_pins: uart0-0 {
35		tx-pins {
36			pins = "UART0_TXD";
37			function = "uart";
38			bias-disable;
39			drive-strength = <3>;
40			input-disable;
41			input-schmitt-disable;
42			slew-rate = <0>;
43		};
44
45		rx-pins {
46			pins = "UART0_RXD";
47			function = "uart";
48			bias-disable;
49			drive-strength = <1>;
50			input-enable;
51			input-schmitt-enable;
52			slew-rate = <0>;
53		};
54	};
55};
56
57&uart0 {
58	pinctrl-names = "default";
59	pinctrl-0 = <&uart0_pins>;
60	status = "okay";
61};
62
63&spi0 {
64	status = "okay";
65};
66