1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2019 Mauro Condarelli <mc5686@mclink.it>
4 */
5
6/dts-v1/;
7
8#include "mt7628a.dtsi"
9#include <dt-bindings/gpio/gpio.h>
10
11/ {
12	compatible = "vocore,vocore2", "ralink,mt7628a-soc";
13	model = "VoCore2";
14
15	aliases {
16		serial0 = &uart2;
17		spi0 = &spi0;
18	};
19
20	memory@0 {
21		device_type = "memory";
22		reg = <0x0 0x08000000>;
23	};
24	leds {
25		compatible = "gpio-leds";
26
27		power {
28			label = "vocore:power";
29			gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
30			default-state = "off";
31		};
32	};
33
34	chosen {
35		bootargs = "console=ttyS2,115200";
36		stdout-path = &uart2;
37	};
38};
39
40&pinctrl {
41	state_default: pin_state {
42		p0led {
43			groups = "p0led_a";
44			function = "led";
45		};
46	};
47};
48
49&uart2 {
50	status = "okay";
51
52	pinctrl-names = "default";
53	pinctrl-0 = <&uart2_pwm_pins>;
54};
55
56&spi0 {
57	status = "okay";
58	nor0: spi-flash@0 {
59		#address-cells = <1>;
60		#size-cells = <1>;
61		compatible = "jedec,spi-nor";
62		spi-max-frequency = <40000000>;
63		reg = <0>;
64	};
65};
66
67&eth {
68	status = "okay";
69
70	pinctrl-names = "default";
71	pinctrl-0 = <&ephy_iot_mode>;
72	mediatek,poll-link-phy = <0>;
73};
74
75&mmc {
76	status = "okay";
77
78	bus-width = <4>;
79	max-frequency = <48000000>;
80	cap-sd-highspeed;
81	cap-mmc-highspeed;
82
83	pinctrl-names = "default";
84	pinctrl-0 = <&sd_iot_mode>;
85};
86