| // SPDX-License-Identifier: (GPL-2.0 OR MIT) |
| /* |
| * Copyright (C) 2023 Jisheng Zhang <jszhang@kernel.org> |
| */ |
| |
| #include "th1520-lichee-module-4a.dtsi" |
| |
| / { |
| model = "Sipeed Lichee Pi 4A"; |
| compatible = "sipeed,lichee-pi-4a", "sipeed,lichee-module-4a", "thead,th1520"; |
| |
| aliases { |
| gpio0 = &gpio0; |
| gpio1 = &gpio1; |
| gpio2 = &gpio2; |
| gpio3 = &gpio3; |
| gpio4 = &gpio4; |
| gpio5 = &aogpio; |
| serial0 = &uart0; |
| serial1 = &uart1; |
| serial2 = &uart2; |
| serial3 = &uart3; |
| serial4 = &uart4; |
| serial5 = &uart5; |
| spi0 = &spi0; |
| }; |
| |
| chosen { |
| stdout-path = "serial0:115200n8"; |
| }; |
| }; |
| |
| &padctrl0_apsys { |
| uart0_pins: uart0-0 { |
| tx-pins { |
| pins = "UART0_TXD"; |
| function = "uart"; |
| bias-disable; |
| drive-strength = <3>; |
| input-disable; |
| input-schmitt-disable; |
| slew-rate = <0>; |
| }; |
| |
| rx-pins { |
| pins = "UART0_RXD"; |
| function = "uart"; |
| bias-disable; |
| drive-strength = <1>; |
| input-enable; |
| input-schmitt-enable; |
| slew-rate = <0>; |
| }; |
| }; |
| }; |
| |
| &uart0 { |
| pinctrl-names = "default"; |
| pinctrl-0 = <&uart0_pins>; |
| status = "okay"; |
| }; |