ramips: add support for the VoCore2 Lite
[openwrt/openwrt.git] / target / linux / ramips / dts / VOCORE2.dtsi
diff --git a/target/linux/ramips/dts/VOCORE2.dtsi b/target/linux/ramips/dts/VOCORE2.dtsi
new file mode 100644 (file)
index 0000000..dff9e54
--- /dev/null
@@ -0,0 +1,49 @@
+#include "mt7628an.dtsi"
+
+/ {
+       compatible = "vocore,vocore2", "mediatek,mt7628an-soc";
+
+       chosen {
+               bootargs = "console=ttyS2,115200";
+       };
+};
+
+
+&pinctrl {
+       state_default: pinctrl0 {
+               gpio {
+                       ralink,group = "wled_an", "perst", "wdt";
+                       ralink,function = "gpio";
+               };
+       };
+};
+
+&wmac {
+       status = "okay";
+       ralink,mtd-eeprom = <&factory 0x4>;
+};
+
+&esw {
+       mediatek,portmap = <0x7>;
+       mediatek,portdisable = <0x3a>;
+};
+
+&i2s {
+       status = "okay";
+};
+
+&gdma {
+       status = "okay";
+};
+
+&pwm {
+       status = "okay";
+};
+
+&uart1 {
+       status = "okay";
+};
+
+&uart2 {
+       status = "okay";
+};