xref: /freebsd/sys/contrib/device-tree/src/riscv/canaan/k210_generic.dts (revision ebacd8013fe5f7fdf9f6a5b286f6680dd2891036)
1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com>
4 * Copyright (C) 2020 Western Digital Corporation or its affiliates.
5 */
6
7/dts-v1/;
8
9#include "k210.dtsi"
10
11#include <dt-bindings/gpio/gpio.h>
12#include <dt-bindings/input/input.h>
13
14/ {
15	model = "Kendryte K210 generic";
16	compatible = "canaan,kendryte-k210";
17
18	chosen {
19		bootargs = "earlycon console=ttySIF0";
20		stdout-path = "serial0:115200n8";
21	};
22};
23
24&fpioa {
25	pinctrl-0 = <&jtag_pins>;
26	pinctrl-names = "default";
27	status = "okay";
28
29	jtag_pins: jtag-pinmux {
30		pinmux = <K210_FPIOA(0, K210_PCF_JTAG_TCLK)>,
31			 <K210_FPIOA(1, K210_PCF_JTAG_TDI)>,
32			 <K210_FPIOA(2, K210_PCF_JTAG_TMS)>,
33			 <K210_FPIOA(3, K210_PCF_JTAG_TDO)>;
34	};
35
36	uarths_pins: uarths-pinmux {
37		pinmux = <K210_FPIOA(4, K210_PCF_UARTHS_RX)>,
38			 <K210_FPIOA(5, K210_PCF_UARTHS_TX)>;
39	};
40};
41
42&uarths0 {
43	pinctrl-0 = <&uarths_pins>;
44	pinctrl-names = "default";
45	status = "okay";
46};
47