xref: /freebsd/sys/contrib/device-tree/src/riscv/canaan/k210_generic.dts (revision 7d0873ebb83b19ba1e8a89e679470d885efe12e3)
15def4c47SEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0+
25def4c47SEmmanuel Vadot/*
35def4c47SEmmanuel Vadot * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com>
45def4c47SEmmanuel Vadot * Copyright (C) 2020 Western Digital Corporation or its affiliates.
55def4c47SEmmanuel Vadot */
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadot/dts-v1/;
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadot#include "k210.dtsi"
105def4c47SEmmanuel Vadot
115def4c47SEmmanuel Vadot#include <dt-bindings/gpio/gpio.h>
125def4c47SEmmanuel Vadot#include <dt-bindings/input/input.h>
135def4c47SEmmanuel Vadot
145def4c47SEmmanuel Vadot/ {
155def4c47SEmmanuel Vadot	model = "Kendryte K210 generic";
165def4c47SEmmanuel Vadot	compatible = "canaan,kendryte-k210";
175def4c47SEmmanuel Vadot
18*7d0873ebSEmmanuel Vadot	aliases {
19*7d0873ebSEmmanuel Vadot		serial0 = &uarths0;
20*7d0873ebSEmmanuel Vadot	};
21*7d0873ebSEmmanuel Vadot
225def4c47SEmmanuel Vadot	chosen {
235def4c47SEmmanuel Vadot		bootargs = "earlycon console=ttySIF0";
245def4c47SEmmanuel Vadot		stdout-path = "serial0:115200n8";
255def4c47SEmmanuel Vadot	};
265def4c47SEmmanuel Vadot};
275def4c47SEmmanuel Vadot
285def4c47SEmmanuel Vadot&fpioa {
295def4c47SEmmanuel Vadot	pinctrl-0 = <&jtag_pins>;
305def4c47SEmmanuel Vadot	pinctrl-names = "default";
315def4c47SEmmanuel Vadot
325def4c47SEmmanuel Vadot	jtag_pins: jtag-pinmux {
335def4c47SEmmanuel Vadot		pinmux = <K210_FPIOA(0, K210_PCF_JTAG_TCLK)>,
345def4c47SEmmanuel Vadot			 <K210_FPIOA(1, K210_PCF_JTAG_TDI)>,
355def4c47SEmmanuel Vadot			 <K210_FPIOA(2, K210_PCF_JTAG_TMS)>,
365def4c47SEmmanuel Vadot			 <K210_FPIOA(3, K210_PCF_JTAG_TDO)>;
375def4c47SEmmanuel Vadot	};
385def4c47SEmmanuel Vadot
395def4c47SEmmanuel Vadot	uarths_pins: uarths-pinmux {
405def4c47SEmmanuel Vadot		pinmux = <K210_FPIOA(4, K210_PCF_UARTHS_RX)>,
415def4c47SEmmanuel Vadot			 <K210_FPIOA(5, K210_PCF_UARTHS_TX)>;
425def4c47SEmmanuel Vadot	};
435def4c47SEmmanuel Vadot};
445def4c47SEmmanuel Vadot
455def4c47SEmmanuel Vadot&uarths0 {
465def4c47SEmmanuel Vadot	pinctrl-0 = <&uarths_pins>;
475def4c47SEmmanuel Vadot	pinctrl-names = "default";
485def4c47SEmmanuel Vadot	status = "okay";
495def4c47SEmmanuel Vadot};
50